/* =========================================================================
   1. VARIABLES & RESET
   ========================================================================= */

:root {
  /* Colors */
  --bg-primary: #050508;
  --bg-secondary: #0c0c14;
  --bg-card: #111120;
  --color-accent-primary: #6c63ff;
  --color-accent-secondary: #00d4ff;
  --gradient-accent: linear-gradient(135deg, #6c63ff, #00d4ff);
  
  --text-primary: #f0f0ff;
  --text-secondary: #8888aa;
  --text-muted: #444466;
  
  --border-light: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --glow-primary: rgba(108, 99, 255, 0.15);
  --glow-hover: rgba(108, 99, 255, 0.5);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Layout */
  --max-width: 1200px;
  --section-padding: 120px 0;
  
  /* Transitions */
  --transition-bezier: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: auto; /* Handled by Lenis via JS */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-primary);
}

/* Selection Color */
::selection {
  background: var(--color-accent-primary);
  color: #fff;
  text-shadow: none;
}

/* Base Elements */
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--transition-bezier);
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

img, svg {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.section-padding {
  padding: var(--section-padding);
}

/* Typography Utilities */
h1, h2, h3, h4, .hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

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

.gradient-text-animated {
  background: linear-gradient(90deg, #6c63ff, #00d4ff, #6c63ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent-primary);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.section-heading {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 24px;
}

.section-subheading {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 60px;
}

.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s var(--transition-bezier);
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px var(--glow-hover);
}

.btn-secondary {
  background: transparent;
  border: 1px solid transparent;
  background-image: linear-gradient(var(--bg-primary), var(--bg-primary)), var(--gradient-accent);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #fff; /* Ensure fallback text color */
}

/* A gradient text fill on secondary button hover */
.btn-secondary:hover {
  box-shadow: 0 5px 20px rgba(108, 99, 255, 0.2);
  transform: translateY(-2px);
}

.btn.nav-cta {
  padding: 10px 22px;
  border-radius: 6px;
}

.btn.nav-cta:hover {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(108,99,255, 0.3);
}

/* =========================================================================
   2. GLOBAL VISUAL MOTIFS
   ========================================================================= */

.background-layers {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(108,99,255,0.18);
  top: -100px;
  left: -100px;
  animation: float 20s infinite alternate ease-in-out;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: rgba(0,212,255,0.10);
  bottom: -200px;
  right: -200px;
  animation: float 25s infinite alternate-reverse ease-in-out;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(108,99,255,0.12);
  top: 40%;
  right: 10%;
  animation: float 18s infinite alternate ease-in-out;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient-accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, opacity 0.3s ease;
  mix-blend-mode: screen;
}

.custom-cursor.hover {
  width: 40px;
  height: 40px;
  background: rgba(108, 99, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* =========================================================================
   3. NAVIGATION
   ========================================================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: all 0.4s ease;
  padding: 20px 0;
}

.navbar.scrolled {
  background: rgba(5,5,8,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 15px 0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  z-index: 1001;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

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

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

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  transition: right 0.6s var(--transition-bezier);
}

.mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.mobile-menu.active {
  right: 0;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-link:hover {
  color: #fff;
}

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

/* =========================================================================
   4. HERO SECTION
   ========================================================================= */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent-secondary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,212,255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0,212,255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0,212,255, 0); }
}

.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}

.line {
  overflow: hidden;
}

.line-inner {
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.arrow-down {
  font-size: 16px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* =========================================================================
   5. MARQUEE SECTION
   ========================================================================= */

.marquee-section {
  background: var(--bg-secondary);
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  animation: scrollLeft 30s linear infinite;
  padding-right: 30px;
}

.marquee-content.reverse {
  animation: scrollRight 40s linear infinite;
}

.star-icon {
  color: var(--color-accent-primary);
  margin-right: 15px;
}

.dot-separator {
  color: var(--text-muted);
  margin: 0 30px;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

/* =========================================================================
   6. SERVICES SECTION
   ========================================================================= */

.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 36px;
  z-index: 1;
  transition: all 0.4s var(--transition-bezier);
}

/* Gradient border trick */
.card-border-gradient {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px; /* border thickness */
  background: var(--border-light);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  transition: background 0.4s ease;
}

.service-card:hover .card-border-gradient {
  background: var(--gradient-accent);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px var(--glow-primary);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.service-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-accent-primary);
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-list {
  margin-bottom: 30px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.check-icon {
  color: var(--color-accent-secondary);
  font-weight: bold;
}

.learn-more {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent-primary);
  position: relative;
}

.learn-more::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  background: var(--color-accent-primary);
  bottom: -2px;
  left: 0;
  transition: width 0.3s ease;
}

.learn-more:hover::after {
  width: 100%;
}

.wide-card {
  grid-column: 1 / -1;
}

.wide-card .card-content {
  display: flex;
  gap: 40px;
}

.wide-card .service-header-wrap {
  flex-shrink: 0;
}

/* =========================================================================
   7. PROCESS SECTION
   ========================================================================= */

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 40px;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--border-light);
  transform: translateX(-50%);
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--gradient-accent);
  height: 0; /* Animated by JS */
}

.timeline-step {
  width: 50%;
  padding-bottom: 60px;
  position: relative;
}

.step-left {
  left: 0;
  padding-right: 40px;
}

.step-right {
  left: 50%;
  padding-left: 40px;
}

.step-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step-left .step-content {
  justify-content: flex-end;
  text-align: right;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent-secondary);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 8px var(--bg-primary); /* mask the line behind */
  transition: all 0.3s ease;
}

.timeline-step:hover .step-icon {
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
  box-shadow: 0 0 20px rgba(108,99,255,0.2), 0 0 0 8px var(--bg-primary);
}

.step-icon svg {
  width: 20px;
  height: 20px;
}

.step-text h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step-text p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* =========================================================================
   8. ABOUT SECTION
   ========================================================================= */

.about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  margin-bottom: 30px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 16px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--color-accent-secondary);
}

.arrow-link .arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.arrow-link:hover .arrow {
  transform: translateX(5px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-hover);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.decorative-visual {
  position: relative;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rotating-mesh {
  width: 150px;
  height: 150px;
  border: 1px solid rgba(108, 99, 255, 0.3);
  position: relative;
  animation: rotate 20s linear infinite;
}

.rotating-mesh::before, .rotating-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.rotating-mesh::before { transform: rotate(30deg); }
.rotating-mesh::after { transform: rotate(60deg); }

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

/* =========================================================================
   9. TESTIMONIALS SECTION
   ========================================================================= */

.carousel-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.carousel-track-wrapper {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 20px);
  margin-right: 30px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  /* Hover handled similarly with abstract border logic */
}

.testimonial-card:hover {
  transform: translateY(-4px);
}
.testimonial-card:hover .card-border-gradient {
  background: var(--gradient-accent);
}

.quote-mark {
  position: absolute;
  top: 20px;
  right: 30px;
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.3;
}

.rating {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 18px;
  margin-bottom: 20px;
}

.quote-text {
  font-size: 16px;
  font-style: italic;
  color: #c0c0dd;
  line-height: 1.8;
  margin-bottom: 30px;
  min-height: 120px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.author-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.author-role {
  font-size: 13px;
  color: var(--color-accent-primary);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  gap: 20px;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.nav-btn:hover {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #fff;
  transform: scale(1.1);
}

.nav-btn svg { width: 20px; height: 20px; }

.dot-indicators {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-hover);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--color-accent-primary);
  box-shadow: 0 0 10px var(--color-accent-primary);
  transform: scale(1.2);
}

/* =========================================================================
   10. FAQ SECTION
   ========================================================================= */

.faq {
  background: var(--bg-secondary);
}

.faq-container {
  max-width: 760px;
}

.accordion {
  margin-top: 40px;
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion-header {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accordion-header h3 {
  font-size: 18px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.icon-plus {
  font-size: 24px;
  color: var(--text-secondary);
  transition: transform 0.4s ease, color 0.3s ease;
}

.accordion-item.active .accordion-header h3 {
  color: var(--color-accent-primary);
}

.accordion-item.active .icon-plus {
  transform: rotate(45deg);
  color: var(--color-accent-primary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content p {
  padding-bottom: 24px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* =========================================================================
   11. CONTACT SECTION
   ========================================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
}

.contact-form {
  position: relative;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 18px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.form-group select {
  appearance: none;
  cursor: pointer;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "↓";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  font-family: var(--font-mono);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.submit-btn {
  width: 100%;
}

.form-success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg-primary);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 10;
}

.form-success.active {
  opacity: 1;
  visibility: visible;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.2);
  color: var(--color-accent-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

/* Contact Info Side */
.contact-info-container {
  padding: 40px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.contact-info-block {
  margin-bottom: 30px;
}

.contact-info-block h4 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.social-links svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.social-links a:hover {
  background: var(--gradient-accent);
  border-color: transparent;
}
.social-links a:hover svg { color: #fff; }

.quote-block .large-quote {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.quote-author {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent-primary);
}

.contact-decorative {
  position: absolute;
  bottom: -50px;
  right: -50px;
  opacity: 0.1;
  pointer-events: none;
}

.geometric-rings {
  width: 200px;
  height: 200px;
  border: 2px dashed #fff;
  border-radius: 50%;
  animation: rotate 60s linear infinite;
}

/* =========================================================================
   12. FOOTER
   ========================================================================= */

.footer {
  background: #020204;
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  display: block;
  margin-bottom: 15px;
}

.brand-tagline {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 250px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  font-size: 14px;
  color: var(--text-muted);
}
.footer-socials a:hover {
  color: var(--text-primary);
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-col .mt-4 {
  margin-top: 40px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-col a:hover {
  color: var(--color-accent-primary);
  transform: translateX(3px);
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================================================================
   13. REDUCED MOTION
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   14. RESPONSIVE DESIGN
   ========================================================================= */

@media (max-width: 1199px) { /* Tablet Portrait/Landscape */
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonial-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 991px) { /* Small Tablet */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) { /* Mobile */
  
  .nav-links, .nav-cta {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .wide-card .card-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .timeline::before {
    left: 24px; /* Shift line to left */
  }
  
  .timeline-line {
    left: 24px;
  }

  .timeline-step {
    width: 100%;
    left: 0 !important; /* Override left/right flow */
    padding-left: 60px !important;
    padding-right: 0 !important;
  }
  
  .step-content {
    flex-direction: row !important; /* Icon then text */
    justify-content: flex-start !important;
    text-align: left !important;
  }
  
  .step-icon {
    position: absolute;
    left: 0;
    top: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-card {
    flex: 0 0 100%;
    margin-right: 0;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) { /* Small Mobile */
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
