:root {
  --primary: #A1E8AF; /* Accent Green */
  --primary-hover: #88d197;
  --secondary: #747C92; /* Blue Gray */
  --accent: #372772; /* Deep Purple */
  --dark: #0f172a; /* Original Dark background for panels */
  --dark-light: #1e293b;
  --glass: rgba(15, 23, 42, 0.75);
  --glass-border: rgba(161, 232, 175, 0.15);
  --text: #ffffff;
  --text-muted: #94a3b8;
  --gradient: linear-gradient(135deg, #A1E8AF, #747C92);
  --font-main: 'Space Grotesk', sans-serif;
  --font-heading: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Background specific colors */
  --bg-1: #A1E8AF;
  --bg-2: #747C92;
  --bg-3: #372772;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Gradients */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background-color: var(--dark); /* Base layer */
}

.blob {
  position: absolute;
  filter: blur(120px);
  opacity: 0.25;
  border-radius: 50%;
  animation: float 20s infinite alternate;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--bg-1); /* #A1E8AF */
  top: -150px;
  right: -100px;
}

.blob-2 {
  width: 700px;
  height: 700px;
  background: var(--bg-2); /* #747C92 */
  bottom: -200px;
  left: -200px;
  animation-delay: -5s;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: var(--bg-3); /* #372772 */
  top: 35%;
  left: 25%;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(20px) scale(1.1); }
  100% { transform: translateY(-20px) scale(0.9); }
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-main); /* Space Grotesk for better legibility */
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.logo-svg {
  width: 38px;
  height: 28px;
  display: block;
}

.card-outline {
  fill: rgba(161, 232, 175, 0.05);
  stroke: var(--primary);
  stroke-width: 1.5;
}

.chip {
  fill: #00f2ff;
  filter: drop-shadow(0 0 5px #00f2ff);
}

.waves {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.6;
  animation: wave-pulse 3s infinite;
}

@keyframes wave-pulse {
  0%, 100% { opacity: 0.3; stroke-width: 1.5; }
  50% { opacity: 1; stroke-width: 2; }
}

.logo span {
  color: var(--primary);
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s ease;
}

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

/* Hero */
.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.btn-primary {
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, rgba(161, 232, 175, 0.2), rgba(0, 242, 255, 0.15));
  color: #fff;
  border: 1.5px solid var(--primary);
  border-radius: 12px; /* Card-like corners */
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(161, 232, 175, 0.15);
  backdrop-filter: blur(10px);
}

.btn-primary::before {
  content: '■'; /* Mock chip icon */
  font-size: 0.8rem;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(161, 232, 175, 0.3);
  box-shadow: 0 0 30px rgba(161, 232, 175, 0.4), 0 0 15px rgba(0, 242, 255, 0.3);
  border-color: #00f2ff;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: 0.5s;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 100%;
}

.hero-image-container {
  position: relative;
  perspective: 1500px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.hero-card-3d {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1.58 / 1;
  position: relative;
  transform-style: preserve-3d;
  animation: card-rotate 10s linear infinite;
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.card-back {
  transform: rotateY(180deg); /* Shows when container spins 180 */
}

@keyframes card-rotate {
  from { transform: rotateY(0deg) rotateX(10deg); }
  to { transform: rotateY(360deg) rotateX(10deg); }
}


/* Sections */
section {
  padding: 8rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  background: rgba(30, 41, 59, 0.9);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
}

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


.service-item {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.service-item:nth-child(even) {
  flex-direction: row-reverse;
}

.service-img {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  display: block;
}

.service-info {
  flex: 1;
}

.service-info h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Partner Badge */
.partner-badge {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: rgba(15, 23, 42, 0.5); /* Semi-transparent matching the larger panel's base */
  border: 1px solid #00f2ff;
  color: #00f2ff;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
  backdrop-filter: blur(5px);
}

/* Partner Section / Trust Bar */
.trust-bar {
  text-align: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(55, 39, 114, 0.6));
  padding: 6rem 2rem;
  border-radius: 40px;
  border: 1px solid rgba(161, 232, 175, 0.3);
  margin: 6rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(55, 39, 114, 0.4), inset 0 0 20px rgba(161, 232, 175, 0.05);
  backdrop-filter: blur(20px);
}

.trust-bar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(161, 232, 175, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.trust-bar h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  color: #fff;
}

.trust-bar p {
  color: var(--text-muted);
  font-size: 1.4rem;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.4;
}

/* Tech Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.specs-table th, .specs-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.specs-table th {
  background: rgba(161, 232, 175, 0.1);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

/* Contact Form */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--glass);
  padding: 4rem;
  border-radius: 32px;
  border: 1px solid var(--glass-border);
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* Animations */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

[data-aos].active {
  opacity: 1;
  transform: translateY(0);
}

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

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 8rem;
    gap: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem; /* Reduced for mobile */
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image-container {
    perspective: 1500px;
    perspective-origin: center center;
    min-height: 250px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
  }

  .hero-card-3d {
    width: 280px; /* Precise fixed width for mobile */
    height: 177px; /* Matches 1.58 aspect ratio exactly */
    position: relative;
    transform-style: preserve-3d;
    transform-origin: center center;
    animation: card-rotate-mobile 10s linear infinite !important;
    margin: 0 auto;
  }

  @keyframes card-rotate-mobile {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
  }

  .card-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
  }
  
  .service-item, .service-item:nth-child(even) {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .trust-bar {
    padding: 3rem 1.5rem;
    margin: 4rem 0;
    border-radius: 20px;
  }

  .trust-bar h2 {
    font-size: 1.5rem; /* Further reduced to prevent overflow */
    line-height: 1.2;
    word-break: break-all;
  }

  .trust-bar h2 a {
    font-size: 1.5rem;
    color: var(--primary);
  }

  .nav-cta-desktop {
    display: none;
  }

  .mobile-only {
    display: block !important;
  }
}

.mobile-only {
  display: none;
}

/* Specific fix for card blurriness on all screens */
.hero-image {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0); 
  image-rendering: -webkit-optimize-contrast;
  will-change: transform;
}
