@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0f172a;
  --secondary: #1e293b;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.4);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --glass: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-1: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --gradient-accent: linear-gradient(90deg, #38bdf8, #818cf8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Animation */
.bg-animate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.15) 0%, transparent 40%);
  filter: blur(80px);
  animation: bg-drift 20s infinite alternate ease-in-out;
}

@keyframes bg-drift {
  from { transform: scale(1); }
  to { transform: scale(1.1) translate(20px, 20px); }
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 5%;
  height: 80px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  height: 100%;
}

.logo img {
  height: 100px;
  width: auto;
  position: relative;
  top: 10px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.logo:hover img {
  transform: scale(1.15) translateY(-5px);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
}

.logo-text span {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.nav-slogan {
  display: block;
  font-size: 10px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0;
  margin-top: 4px;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover, nav a.active {
  color: var(--text);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--primary);
  box-shadow: 0 4px 14px 0 rgba(56, 189, 248, 0.39);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 88px);
}

.hero-pane {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  transition: all 0.5s ease;
}

.hero-pane::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
  z-index: -1;
}

.hero-left::before {
  background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6)), url('security.png');
}

.hero-pane:hover::before {
  transform: scale(1.1);
}

.hero-content {
  z-index: 10;
  max-width: 500px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slogan {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Sections */
section {
  padding: 8rem 5%;
}

.tagline {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.tagline h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Feature Cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--glass);
  padding: 3rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature-card p {
  color: var(--text-muted);
}

/* Service Detail Section */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  margin: 2rem 0;
}

.service-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: bold;
}

.service-image {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.service-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Form Styles */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

/* Form Status & Spinner */
.form-status {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

#submit-btn {
  position: relative;
  overflow: hidden;
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(15, 23, 42, 0.3);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-text {
  transition: opacity 0.2s ease;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  padding: 4rem 5%;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  width: 30px;
  height: 3px;
  background-color: var(--text);
  border-radius: 999px;
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-pane { padding: 5rem 5%; min-height: 50vh; }
  .service-detail { grid-template-columns: 1fr; }
  .navbar { padding: 1rem 5%; }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--primary);
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
  }

  nav.active {
    right: 0;
  }

  nav a {
    font-size: 1.5rem;
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  nav .btn-primary {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  /* Hamburger Animation */
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2.5rem; }
}
