/* ============================================
   NOVEX — Components (DensityMace Style)
   ============================================ */

/* ══════════════════════════════════════════════
   AMBIENT BACKGROUND ELEMENTS
   ══════════════════════════════════════════════ */

/* ── CLOUD CONTAINER (light mode default) ── */
.sky-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Real 3-D CSS clouds */
.sky-cloud {
  position: absolute;
  pointer-events: none;
}

.sky-cloud .cloud-body {
  position: relative;
  background: white;
  border-radius: 50px;
  box-shadow:
    0 8px 32px rgba(255,255,255,0.6),
    inset 0 -4px 12px rgba(0,0,0,0.05);
}
.sky-cloud .cloud-body::before,
.sky-cloud .cloud-body::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
}

/* Cloud sizes */
.sky-cloud.sm .cloud-body { width:90px; height:36px; }
.sky-cloud.sm .cloud-body::before { width:48px; height:48px; top:-24px; left:14px; }
.sky-cloud.sm .cloud-body::after  { width:34px; height:34px; top:-16px; right:14px; }

.sky-cloud.md .cloud-body { width:140px; height:52px; }
.sky-cloud.md .cloud-body::before { width:72px; height:72px; top:-36px; left:20px; }
.sky-cloud.md .cloud-body::after  { width:52px; height:52px; top:-24px; right:20px; }

.sky-cloud.lg .cloud-body { width:200px; height:70px; }
.sky-cloud.lg .cloud-body::before { width:100px; height:100px; top:-50px; left:28px; }
.sky-cloud.lg .cloud-body::after  { width:72px;  height:72px;  top:-34px; right:28px; }

.sky-cloud.xl .cloud-body { width:260px; height:88px; }
.sky-cloud.xl .cloud-body::before { width:130px; height:130px; top:-65px; left:36px; }
.sky-cloud.xl .cloud-body::after  { width:92px;  height:92px;  top:-44px; right:36px; }

/* Drift animations */
.sky-cloud.anim-1  { animation: cloudDrift1 22s ease-in-out infinite; }
.sky-cloud.anim-2  { animation: cloudDrift2 28s ease-in-out infinite; }
.sky-cloud.anim-3  { animation: cloudDrift3 18s ease-in-out infinite; }
.sky-cloud.anim-f  { animation: cloudFloat  14s ease-in-out infinite; }

/* In dark mode, hide clouds */
body.dark-mode .sky-layer { display: none; }

/* ── MOON / STAR LAYER (dark mode only) ── */
.moon-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: none;
}
body.dark-mode .moon-layer { display: block; }

/* ── SVG CRESCENT MOONS & STAR FIELD (dark mode) ── */

/* Moon wrapper: position/size set inline by buildMoons() */
.moon-float-a,
.moon-float-b,
.moon-float-c {
  will-change: transform;
  opacity: 0;
}

/* Fade-in then float */
.moon-float-a { animation: moonFadeIn 1.4s ease forwards, moonFloatA 22s ease-in-out 1.4s infinite; }
.moon-float-b { animation: moonFadeIn 1.6s ease forwards, moonFloatB 28s ease-in-out 1.6s infinite; }
.moon-float-c { animation: moonFadeIn 1.2s ease forwards, moonFloatC 18s ease-in-out 1.2s infinite; }

@keyframes moonFadeIn {
  0%   { opacity:0; transform:translateY(16px) scale(0.88); }
  100% { opacity:1; transform:translateY(0)    scale(1);    }
}
@keyframes moonFloatA {
  0%   { transform: translateY(0px)   translateX(0px)    rotate(0deg);    }
  28%  { transform: translateY(-20px) translateX(9px)    rotate(2.5deg);  }
  55%  { transform: translateY(-7px)  translateX(-6px)   rotate(-1.5deg); }
  80%  { transform: translateY(-16px) translateX(4px)    rotate(1deg);    }
  100% { transform: translateY(0px)   translateX(0px)    rotate(0deg);    }
}
@keyframes moonFloatB {
  0%   { transform: translateY(0px)   translateX(0px)    rotate(0deg);  }
  35%  { transform: translateY(-24px) translateX(-11px)  rotate(-3deg); }
  65%  { transform: translateY(-5px)  translateX(7px)    rotate(1.5deg);}
  100% { transform: translateY(0px)   translateX(0px)    rotate(0deg);  }
}
@keyframes moonFloatC {
  0%   { transform: translateY(0px)   rotate(0deg);  }
  50%  { transform: translateY(-16px) rotate(4.5deg);}
  100% { transform: translateY(0px)   rotate(0deg);  }
}

/* ══════════════════════════════════════════════
   GLASS CARD
   ══════════════════════════════════════════════ */
.glass {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 1;
}
.glass:hover, .glass-hover:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(3,211,252,0.12);
}

/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--navbar-border);
  border-radius: var(--radius-full);
  padding: 8px 8px 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 48px);
  max-width: 1020px;
  box-shadow: 0 4px 24px rgba(4,17,26,0.1);
}

.navbar.scrolled {
  max-width: 1020px;
  padding: 12px 12px 12px 22px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 40px rgba(4,17,26,0.15);
  border-color: rgba(255,255,255,1);
}
body.dark-mode .navbar {
  background: rgba(0,0,0,0.8);
  border-color: rgba(3,211,252,0.15);
  box-shadow: 0 4px 24px rgba(3,211,252,0.05);
}
body.dark-mode .navbar.scrolled {
  background: rgba(0,0,0,0.95);
  box-shadow: 0 8px 40px rgba(3,211,252,0.08);
  border-color: rgba(3,211,252,0.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--foreground);
  white-space: nowrap;
  cursor: pointer;
  margin-right: auto;
  padding-right: 8px;
  user-select: none;
}
.nav-logo img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.nav-logo:hover img { transform: scale(1.08) rotate(-5deg); }

/* Dark-mode toggle button */
.mode-toggle {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: rgba(4,17,26,0.08);
  border: 1px solid rgba(4,17,26,0.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.mode-toggle:hover { background: rgba(4,17,26,0.15); transform: scale(1.08); }
body.dark-mode .mode-toggle { background: rgba(3,211,252,0.08); border-color: rgba(3,211,252,0.2); }
body.dark-mode .mode-toggle:hover { background: rgba(3,211,252,0.15); }

.nav-links { display: flex; align-items: center; gap: 1px; list-style: none; }
.nav-links a {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--foreground); background: rgba(4,17,26,0.06); }
.nav-links a.active { color: var(--foreground); background: rgba(4,17,26,0.08); }
body.dark-mode .nav-links a:hover { background: rgba(255,255,255,0.06); }
body.dark-mode .nav-links a.active { background: rgba(255,255,255,0.08); }

.nav-cta {
  padding: 7px 20px !important;
  border-radius: var(--radius-full) !important;
  background: #04111a !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  margin-left: 4px;
  letter-spacing: 0.02em;
  transition: all var(--transition) !important;
  border: 1.5px solid rgba(255,255,255,0.2) !important;
}
.nav-cta:hover {
  background: #0a2030 !important;
  box-shadow: 0 4px 16px rgba(4,17,26,0.3) !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.4) !important;
}
body.dark-mode .nav-cta {
  background: var(--primary) !important;
  color: #000 !important;
  border-color: transparent !important;
}
body.dark-mode .nav-cta:hover {
  background: var(--primary-hover) !important;
  color: #000 !important;
  box-shadow: 0 0 20px rgba(3,211,252,0.45) !important;
  border-color: transparent !important;
}

.nav-toggle { display:none; flex-direction:column; gap:4px; cursor:pointer; padding:8px; }
.nav-toggle span { width:20px; height:2px; background:var(--foreground); border-radius:2px; transition:all var(--transition); }
.nav-toggle.active span:nth-child(1) { transform:rotate(45deg) translate(4px,4px); }
.nav-toggle.active span:nth-child(2) { opacity:0; }
.nav-toggle.active span:nth-child(3) { transform:rotate(-45deg) translate(4px,-4px); }

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: all var(--transition);
  text-decoration: none; letter-spacing: 0.01em;
}
.btn-primary {
  background: #04111a;
  color: #ffffff;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.2);
}
.btn-primary:hover {
  background: #0a2030;
  color: #ffffff;
  box-shadow: 0 0 28px rgba(4,17,26,0.4), 0 4px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.4);
}
/* In dark mode, btn-primary uses cyan */
body.dark-mode .btn-primary {
  background: var(--primary);
  color: #000;
  border-color: transparent;
}
body.dark-mode .btn-primary:hover {
  background: var(--primary-hover);
  color: #000;
  box-shadow: 0 0 28px rgba(3,211,252,0.5);
  border-color: transparent;
}
.btn-outline {
  background: rgba(255,255,255,0.5);
  color: #04111a;
  border: 1.5px solid rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.8);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(4,17,26,0.1);
}
body.dark-mode .btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: rgba(3,211,252,0.2);
}
body.dark-mode .btn-outline:hover {
  border-color: rgba(3,211,252,0.5);
  background: rgba(3,211,252,0.05);
  box-shadow: 0 4px 20px rgba(3,211,252,0.1);
}
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 15px 36px; font-size: 0.95rem; }

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding-top: var(--navbar-h);
  overflow: hidden;
}
.hero-content {
  max-width: 780px; margin: 0 auto;
  padding: 40px 24px;
  position: relative; z-index: 2;
}
.hero-avatar-wrap {
  position: relative;
  width: 140px; height: 140px;
  margin: 0 auto 32px;
  cursor: pointer;
  user-select: none;
  perspective: 600px;
}

/* ── FLIP CARD ── */
.avatar-flipcard {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 92px; height: 92px;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  z-index: 2;
}

/* On hover: flip to reveal sun/moon */
.hero-avatar-wrap:hover .avatar-flipcard {
  transform: translate(-50%, -50%) rotateY(180deg);
}

.avatar-front,
.avatar-back {
  position: absolute; inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.avatar-front {
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 6px 24px rgba(4,17,26,0.18);
}
body.dark-mode .avatar-front {
  border-color: rgba(3,211,252,0.45);
  box-shadow: 0 6px 24px rgba(3,211,252,0.25);
}

.avatar-front img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
}

.avatar-back {
  transform: rotateY(180deg);
  background: rgba(0,0,0,0.85);
  border: 2.5px solid rgba(3,211,252,0.4);
  box-shadow: 0 0 30px rgba(3,211,252,0.3), 0 6px 24px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
}
body:not(.dark-mode) .avatar-back {
  background: rgba(4,17,26,0.88);
  border-color: rgba(3,211,252,0.5);
}

/* Show correct icon based on current mode */
.mode-icon { position: absolute; width: 62px; height: 62px; transition: opacity 0.3s ease; }

/* Light mode: show moon (clicking = go dark) */
body:not(.dark-mode) .mode-sun  { opacity: 0; pointer-events: none; }
body:not(.dark-mode) .mode-moon { opacity: 1; }

/* Dark mode: show sun (clicking = go light) */
body.dark-mode .mode-sun  { opacity: 1; }
body.dark-mode .mode-moon { opacity: 0; pointer-events: none; }

/* Tooltip hint on hover */
.hero-avatar-wrap::after {
  content: attr(data-hint);
  position: absolute;
  bottom: -28px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(4,17,26,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
body.dark-mode .hero-avatar-wrap::after { color: rgba(255,255,255,0.5); }
.hero-avatar-wrap:hover::after { opacity: 1; }
.hero-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-right-color: rgba(3,211,252,0.2);
  animation: spin 3s linear infinite;
}
.hero-ring-2 {
  position: absolute; inset: -10px; border-radius: 50%;
  border: 1.5px solid transparent;
  border-bottom-color: rgba(3,211,252,0.35);
  border-left-color: rgba(3,211,252,0.12);
  animation: spinReverse 5s linear infinite;
}
.hero-ring-3 {
  position: absolute; inset: -22px; border-radius: 50%;
  border: 1px dashed rgba(3,211,252,0.15);
  animation: spin 10s linear infinite;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 16px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(255,255,255,0.9);
  color: #1a5a72; font-size: 0.78rem; font-weight: 600;
  margin-bottom: 22px; backdrop-filter: blur(8px);
  animation: fadeInDown 0.8s ease both 0.1s;
}
body.dark-mode .hero-badge {
  background: rgba(0,200,100,0.07);
  border-color: rgba(0,200,100,0.18);
  color: #2ecc71;
}
.hero-badge-dot { width:7px; height:7px; border-radius:50%; background:#2ecc71; animation: pulseDot 2s ease-in-out infinite; }
.hero h1 {
  margin-bottom: 18px; text-transform: uppercase;
  animation: fadeInUp 0.9s ease both 0.2s;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(4,17,26,0.15);
}
body.dark-mode .hero h1 {
  background: linear-gradient(135deg,#fff 0%,rgba(3,211,252,0.7) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-shadow: none;
}
.hero-sub {
  color: rgba(255,255,255,0.9); font-size: 1.05rem;
  max-width: 560px; margin: 0 auto 32px; line-height: 1.75;
  animation: fadeInUp 0.9s ease both 0.35s;
  text-shadow: 0 1px 6px rgba(4,17,26,0.1);
}
body.dark-mode .hero-sub { color: var(--muted); text-shadow: none; }
.hero-buttons {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  animation: fadeInUp 0.9s ease both 0.5s;
}

/* ══════════════════════════════════════════════
   STATS
   ══════════════════════════════════════════════ */
.stats-section { position: relative; overflow: hidden; }
.stats-orbit-wrapper {
  text-align: center; margin-bottom: 48px;
  display: flex; align-items: center; justify-content: center;
}
.stats-orbit { position:relative; width:80px; height:80px; }
.stats-orbit-ring {
  position:absolute; inset:0; border-radius:50%;
  border: 1.5px solid rgba(4,17,26,0.15);
  animation: orbitSpin 8s linear infinite;
}
body.dark-mode .stats-orbit-ring { border-color: rgba(3,211,252,0.2); }
.stats-orbit-ring::before {
  content:''; position:absolute; top:-4px; left:50%; transform:translateX(-50%);
  width:8px; height:8px; border-radius:50%; background:var(--primary);
  box-shadow: 0 0 12px rgba(3,211,252,0.8);
}
.stats-orbit-ring-2 {
  position:absolute; inset:-16px; border-radius:50%;
  border: 1px dashed rgba(4,17,26,0.08);
  animation: spinReverse 12s linear infinite;
}
body.dark-mode .stats-orbit-ring-2 { border-color: rgba(3,211,252,0.08); }
.stats-orbit-ring-2::after {
  content:''; position:absolute; bottom:-3px; left:50%; transform:translateX(-50%);
  width:6px; height:6px; border-radius:50%; background:rgba(3,211,252,0.6);
}
.stats-orbit-center {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:1.4rem; animation: glowPulse 3s ease-in-out infinite;
}
.stats-bar {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--card-border);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.stat-item {
  text-align: center; padding: 36px 16px;
  background: var(--card);
  transition: background var(--transition);
}
.stat-item:hover { background: rgba(255,255,255,0.85); }
body.dark-mode .stat-item:hover { background: rgba(3,211,252,0.03); }
.stat-num {
  font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800;
  color: var(--primary); margin-bottom: 4px; letter-spacing: -0.02em;
}
.stat-label {
  color: var(--muted); font-size: 0.82rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════════
   SERVICE CARDS
   ══════════════════════════════════════════════ */
.services-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.service-card { padding:32px; display:flex; flex-direction:column; gap:14px; }
.service-card .icon {
  width:48px; height:48px;
  background: rgba(3,211,252,0.1);
  border: 1px solid rgba(3,211,252,0.25);
  border-radius: var(--radius);
  display:flex; align-items:center; justify-content:center;
}
.service-card .icon svg { width:22px; height:22px; stroke:var(--primary); fill:none; stroke-width:2; }
.service-card h3 { font-size:1.15rem; }
.service-card p { color:var(--muted); font-size:0.88rem; line-height:1.6; }

/* ══════════════════════════════════════════════
   STEPS
   ══════════════════════════════════════════════ */
.steps-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.step-card { padding:32px 24px; text-align:center; }
.step-num {
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:var(--radius-full);
  background: rgba(3,211,252,0.1);
  border: 1px solid rgba(3,211,252,0.25);
  color:var(--primary); font-family:var(--font-mono); font-size:0.85rem; font-weight:700;
  margin-bottom:16px;
}
.step-card h3 { margin-bottom:8px; font-size:1.1rem; }
.step-card p { color:var(--muted); font-size:0.85rem; line-height:1.5; }

/* ══════════════════════════════════════════════
   ADVANTAGES
   ══════════════════════════════════════════════ */
.advantages-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.advantage-card { padding:32px; }
.advantage-card .icon {
  width:44px; height:44px;
  background: rgba(3,211,252,0.08); border:1px solid rgba(3,211,252,0.2);
  border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.advantage-card .icon svg { width:20px; height:20px; stroke:var(--primary); fill:none; stroke-width:2; }
.advantage-card h3 { font-size:1.1rem; margin-bottom:8px; }
.advantage-card p { color:var(--muted); font-size:0.85rem; line-height:1.5; }

/* ══════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════ */
.testimonials-track-wrapper {
  overflow: hidden; position: relative; padding: 8px 0;
}
.testimonials-track-wrapper::before,
.testimonials-track-wrapper::after {
  content:''; position:absolute; top:0; bottom:0; width:120px; z-index:2; pointer-events:none;
}
.testimonials-track-wrapper::before { left:0; background: linear-gradient(to right, var(--background), transparent); }
.testimonials-track-wrapper::after  { right:0; background: linear-gradient(to left, var(--background), transparent); }
.testimonials-track {
  display:flex; gap:20px; width:max-content;
  animation: testimonialScroll 30s linear infinite;
}
.testimonials-track:hover { animation-play-state: paused; }
.testimonial-card { padding:26px; width:320px; flex-shrink:0; }
.testimonial-stars { display:flex; gap:2px; margin-bottom:14px; }
.testimonial-stars span { color:#f59e0b; font-size:0.85rem; }
.testimonial-text { color:var(--muted); font-size:0.88rem; line-height:1.65; margin-bottom:18px; }
.testimonial-author { display:flex; align-items:center; gap:12px; }
.testimonial-avatar {
  width:40px; height:40px; border-radius:50%;
  background: rgba(3,211,252,0.12); border:1px solid rgba(3,211,252,0.3);
  display:flex; align-items:center; justify-content:center;
  font-size:0.7rem; font-weight:700; color:var(--primary);
  font-family:var(--font-mono); flex-shrink:0; overflow:hidden;
}
.testimonial-avatar img { width:100%; height:100%; object-fit:cover; }
.testimonial-name { font-weight:700; font-size:0.88rem; color:var(--foreground); }
.testimonial-handle { color:var(--primary); font-size:0.75rem; margin-top:2px; }

/* ══════════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════════ */
.cta-banner { text-align:center; padding:70px 48px; position:relative; overflow:hidden; z-index:2; }
.cta-banner::before {
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.2), transparent 70%);
}
body.dark-mode .cta-banner::before { background: radial-gradient(ellipse at center, rgba(3,211,252,0.04), transparent 70%); }
.cta-banner h2 { margin-bottom:14px; position:relative; z-index:1; }
.cta-banner > p { color:var(--muted); margin-bottom:32px; font-size:1rem; max-width:480px; margin-left:auto; margin-right:auto; margin-bottom:32px; line-height:1.7; position:relative; z-index:1; }
.cta-buttons { display:flex; justify-content:center; gap:14px; flex-wrap:wrap; position:relative; z-index:10; }

/* ══════════════════════════════════════════════
   PROJECTS PAGE
   ══════════════════════════════════════════════ */
.section-divider {
  display: flex; align-items: center; gap: 20px;
  margin: 72px 0 48px;
}
.section-divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--card-border), transparent);
}
.section-divider-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700;
  white-space: nowrap; padding: 8px 24px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-full); backdrop-filter: blur(12px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.project-card {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; aspect-ratio: 9/16; max-height: 420px;
  background: var(--surface); border: 1px solid var(--card-border);
  transition: all var(--transition); cursor: pointer;
}
.project-card:hover { border-color: var(--card-hover-border); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(3,211,252,0.12); }

/* Video wrapper */
.project-card .video-wrap {
  width: 100%; height: 100%; position: relative;
}
.project-card video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
/* Play overlay */
.play-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
  cursor: pointer;
}
.play-overlay:hover { background: rgba(0,0,0,0.1); }
.play-overlay.hidden { display: none; }
.play-btn-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.play-overlay:hover .play-btn-icon { transform: scale(1.1); }
.play-btn-icon svg { width:22px; height:22px; fill:#03d3fc; margin-left:3px; }

.project-card .card-tag {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: var(--radius-full);
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  color: var(--primary); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; z-index: 3;
}
.project-card .placeholder-thumb {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--surface), var(--surface-light));
  font-size:3rem; color:var(--muted-dim);
}
.project-label {
  margin-top: 10px;
  font-family: var(--font-heading); font-size: 0.92rem; font-weight: 600;
  color: var(--foreground);
}
.project-sublabel { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }

/* ══════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════ */
.about-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start; padding-top: calc(var(--navbar-h) + 60px);
  min-height: 100vh;
}
.about-left { padding: 60px 0; }
.about-left .label { margin-bottom: 24px; }
.about-left h1 { margin-bottom: 24px; color: #04111a; }
body.dark-mode .about-left h1 { color: var(--foreground); }
.about-left p { color: var(--muted); font-size: 0.97rem; line-height: 1.8; margin-bottom: 18px; }
.about-left .btn { margin-top: 8px; }

.about-skills-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin: 40px 0 20px; }
.skills-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-pill {
  padding: 7px 18px; border-radius: var(--radius-full);
  background: var(--card); border: 1px solid var(--card-border);
  font-size: 0.82rem; font-weight: 500; color: var(--foreground);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.skill-pill:hover { border-color: var(--card-hover-border); background: rgba(255,255,255,0.85); color: var(--primary); transform: translateY(-2px); }
body.dark-mode .skill-pill:hover { background: rgba(3,211,252,0.08); }

.about-right {
  padding: 60px 0;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.about-avatar-card {
  position: relative; width: 340px; border-radius: 28px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(4,17,26,0.2);
  border: 4px solid rgba(255,255,255,0.9);
  background: linear-gradient(135deg, #b8edff, #d0f5ff);
}
body.dark-mode .about-avatar-card { border-color: rgba(3,211,252,0.3); box-shadow: 0 20px 60px rgba(3,211,252,0.15); }
.about-avatar-card img { width:100%; display:block; }
.about-avatar-card .avatar-placeholder {
  width:100%; aspect-ratio:3/4;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, #7ecaef, #a8dcf0);
  font-size: 5rem;
}

/* Floating skill tags */
.float-tag {
  position: absolute;
  padding: 8px 18px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  box-shadow: 0 4px 20px rgba(4,17,26,0.15);
  animation: cloudFloat 6s ease-in-out infinite;
  z-index: 2;
}
.float-tag:nth-child(2) { animation-delay: -2s; }
.float-tag:nth-child(3) { animation-delay: -4s; }
.float-tag.tag-green  { background: #adff2f; color: #1a3300; top: 12%; right: -30px; }
.float-tag.tag-yellow { background: #ffe066; color: #3a2c00; bottom: 22%; left: -40px; }
.float-tag.tag-purple { background: #d4b4ff; color: #2a0060; bottom: 8%;  right: -20px; }

/* ══════════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════════ */
.pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; align-items:start; }
.pricing-card { padding:36px 30px; position:relative; }
.pricing-card.featured { border-color:rgba(3,211,252,0.4); box-shadow:0 0 40px rgba(3,211,252,0.1); }
.pricing-badge {
  position:absolute; top:-14px; left:50%; transform:translateX(-50%);
  padding:5px 16px; border-radius:var(--radius-full);
  background:var(--primary); color:#fff;
  font-size:0.68rem; font-weight:800; text-transform:uppercase; white-space:nowrap; letter-spacing:0.08em;
}
.pricing-card h3 { font-size:1.2rem; margin-bottom:6px; }
.pricing-price { font-family:var(--font-heading); font-size:2.2rem; font-weight:800; margin-bottom:22px; }
.pricing-price span { font-size:1rem; color:var(--muted); font-weight:400; }
.pricing-features { list-style:none; display:flex; flex-direction:column; gap:10px; }
.pricing-features li { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:0.88rem; }
.pricing-features li .check { color:var(--primary); }

/* ══════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════ */
.social-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-bottom:44px; }
.social-card { padding:32px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px; cursor:pointer; }
.social-card .social-emoji { font-size:2.4rem; }
.social-card h3 { font-size:1rem; }
.social-card p { color:var(--muted); font-size:0.82rem; }
.or-divider { text-align:center; color:var(--muted); font-size:0.78rem; margin:30px 0; text-transform:uppercase; letter-spacing:0.12em; }
.contact-form { max-width:500px; margin:0 auto; display:flex; flex-direction:column; gap:20px; }
.form-group { display:flex; flex-direction:column; gap:7px; }
.form-group label { font-size:0.82rem; font-weight:600; color:var(--muted); font-family:var(--font-mono); text-transform:uppercase; letter-spacing:0.06em; }
.form-group input, .form-group textarea {
  padding:13px 18px; border-radius:var(--radius);
  background:var(--surface); border:1px solid var(--card-border);
  color:var(--foreground); font-family:var(--font-body); font-size:0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition); outline:none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color:var(--primary); box-shadow:0 0 0 3px rgba(3,211,252,0.12);
}
.form-group textarea { resize:vertical; min-height:120px; }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0; text-align: center;
  color: var(--muted-dim); font-size: 0.78rem;
  position: relative; z-index: 1;
}

/* ══════════════════════════════════════════════
   FILTER TAGS
   ══════════════════════════════════════════════ */
.filter-tags { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-bottom:36px; }
.filter-tag {
  padding:6px 18px; border-radius:var(--radius-full);
  border:1px solid var(--card-border); background:var(--card);
  color:var(--muted); font-size:0.8rem; font-weight:500; cursor:pointer;
  transition:all var(--transition);
}
.filter-tag:hover, .filter-tag.active {
  border-color:var(--card-hover-border);
  color:var(--primary); background:rgba(3,211,252,0.08);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 992px) {
  .pricing-grid { grid-template-columns:1fr; max-width:380px; margin:0 auto; }
  .social-cards { grid-template-columns:1fr; max-width:320px; margin:0 auto 40px; }
  .steps-grid { grid-template-columns:repeat(2,1fr); }
  .advantages-grid { grid-template-columns:repeat(2,1fr); }
  .about-hero { grid-template-columns:1fr; gap:40px; }
  .about-right { padding-top: 0; }
  .about-avatar-card { width:260px; }
  .float-tag { display:none; }
}
/* ══ DESKTOP: hide mobile-only elements ══════════════════ */
/* Mobile-only contact btn: hidden on desktop, shown in dropdown context */
.nav-cta-mobile-btn { display: none; }

/* ══ NAVBAR — collapse to hamburger below 768px ══════════ */
@media (max-width: 768px) {
  .navbar {
    top: 10px; left: 10px; right: 10px;
    transform: none; max-width: none; width: auto;
    border-radius: 16px;
    padding: 7px 10px 7px 14px;
    display: flex; align-items: center;
    flex-wrap: nowrap; gap: 6px;
    overflow: hidden;
  }
  .navbar.scrolled { max-width: none; }
  .nav-logo { margin-right: auto; flex-shrink: 0; }
  .live-status { display: none; }

  /* Nav links become dropdown */
  .nav-links {
    display: none;
    position: fixed;
    top: 66px; left: 10px; right: 10px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    flex-direction: column;
    padding: 10px;
    gap: 2px;
    z-index: 998;
    box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  }
  body.dark-mode .nav-links { background: rgba(14,14,16,0.98); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 16px; text-align: left; border-radius: 10px; font-size: 0.9rem; font-weight: 600; }

  /* Show compact contact btn inside the bar */
  .nav-cta-mobile-btn {
    display: inline-flex !important;
    align-items: center;
    padding: 7px 12px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Mode toggle stays in bar */
  .mode-toggle { display: flex !important; flex-shrink: 0; width: 34px; height: 34px; }

  /* Hamburger stays in bar */
  .nav-toggle { display: flex; flex-shrink: 0; }
}

/* ══ OTHER LAYOUT BREAKPOINTS ════════════════════════════ */
@media (max-width: 768px) {
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .services-grid, .advantages-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .projects-grid { grid-template-columns: repeat(2,1fr); }
  .hero h1 { font-size: 2.2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .testimonial-card { width: 280px; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns:1fr; }
  .projects-grid { grid-template-columns:1fr; }
}

/* Project wrap (card + label below) */
.project-wrap { display: flex; flex-direction: column; }
.project-wrap .project-card { flex: 1; }
