/* ====================================================
   SETSEL V3 — PREMIUM DESIGN SYSTEM
   Complete rebuild: variables, components, animations
   ==================================================== */

/* ---- IMPORTS ---- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&family=Russo+One&display=swap");

/* ---- CSS VARIABLES ---- */
:root {
  --primary: #05d1e2;
  --primary-rgb: 5, 209, 226;
  --secondary: #87f0f9;
  --dark: #0a182e;
  --darker: #060f1e;
  --accent: #0082a0;
  --text: #e5e7eb;
  --text-muted: rgba(255, 255, 255, 0.5);
  --glass-bg: rgba(10, 24, 46, 0.7);
  --glass-border: rgba(5, 209, 226, 0.12);
  --glass-blur: blur(24px) saturate(180%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Outfit", sans-serif;
  --font-accent: "Russo One", sans-serif;
}

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--dark);
}

body {
  font-family: var(--font-body);
  background: var(--darker);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--darker);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 3px;
}
::selection {
  background: rgba(var(--primary-rgb), 0.3);
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
ul,
ol {
  list-style: none;
}

/* ---- PRELOADER ---- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--darker);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-logo {
  width: 80px;
  height: auto;
  animation: preloader-pulse 1.5s ease-in-out infinite;
}
.preloader-bar {
  width: 160px;
  height: 2px;
  background: rgba(var(--primary-rgb), 0.15);
  border-radius: 2px;
  margin-top: 24px;
  overflow: hidden;
  position: relative;
}
.preloader-bar::after {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: preloader-slide 1.2s ease-in-out infinite;
}
@keyframes preloader-pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}
@keyframes preloader-slide {
  0% {
    left: -60%;
  }
  100% {
    left: 100%;
  }
}

/* ---- CUSTOM CURSOR ---- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  transition: transform 0.15s ease;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(var(--primary-rgb), 0.5);
  transition:
    transform 0.25s ease,
    width 0.3s ease,
    height 0.3s ease,
    border-color 0.3s ease;
}
.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--primary);
}
@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* ---- NAVIGATION ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(6, 15, 30, 0.85);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 38px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  border-radius: 1px;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link:hover::after {
  left: 0;
  right: 0;
}
.nav-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  padding: 10px 24px;
  border-radius: 100px;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}
.nav-cta:hover {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2);
}

/* Mobile menu button */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-burger.active span:nth-child(2) {
  opacity: 0;
}
.nav-burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 15, 30, 0.97);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  z-index: 999;
  padding: 100px 32px 32px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
}
.mobile-menu a {
  font-size: 24px;
  font-weight: 700;
  color: white;
  font-family: var(--font-display);
  transition: color 0.3s;
}
.mobile-menu a:hover {
  color: var(--primary);
}

/* Megamenu */
.megamenu {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(850px, 90vw);
  background: rgba(8, 18, 38, 0.97);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(var(--primary-rgb), 0.06);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When the nav is scrolled, it shrinks to 62px height. 
   The megamenu must stay sticky/glued to it. */
.nav.scrolled ~ .megamenu {
  top: 62px;
}

.megamenu.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.megamenu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.mega-col {
  padding: 28px 22px;
  border-right: 1px solid rgba(var(--primary-rgb), 0.06);
  transition: background 0.3s;
}
.mega-col:last-child {
  border-right: none;
}
.mega-col:hover {
  background: rgba(var(--primary-rgb), 0.04);
}
.mega-col-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 12px;
  margin-bottom: 14px;
  transition: all 0.3s;
}
.mega-col:hover .mega-col-icon {
  background: rgba(var(--primary-rgb), 0.15);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.15);
}
.mega-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.mega-col p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.mega-col ul li {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  padding: 3px 0 3px 14px;
  position: relative;
  transition: all 0.2s;
}
.mega-col ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  transition: transform 0.2s;
}
.mega-col ul li:hover {
  color: var(--primary);
  padding-left: 18px;
}
.mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid rgba(var(--primary-rgb), 0.1);
  background: rgba(var(--primary-rgb), 0.03);
}
.mega-footer span {
  font-size: 13px;
  color: var(--text-muted);
}
.mega-footer-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 16px;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}
.mega-footer-cta:hover {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: var(--primary);
}

/* NOTE: Removed .hero::before to prevent ANY dark masking on top */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #0d2847 0%, var(--darker) 70%);
}
.hero-accordion {
  position: absolute;
  top: 70px; /* GARANTIE ABSOLUE d'être collé sous la barre de navigation */
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  padding: 0 24px 24px;
  z-index: 10; /* Boosted z-index to break through ANY foreground mask */
}
.hero-panel {
  flex: 1;
  position: relative;
  height: 100%; /* S'étend parfaitement de 70px jusqu'au bas de l'écran */
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.5);
}
.hero-panel:hover {
  flex: 4;
}
.hero-panel-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: brightness(0.85);
}
.hero-panel:hover .hero-panel-bg {
  transform: scale(1.08);
  filter: brightness(1.1);
}
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 15, 30, 0.95) 0%,
    rgba(5, 209, 226, 0.05) 50%,
    rgba(5, 209, 226, 0.15) 100%
  );
  pointer-events: none;
}
.hero-panel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 50px 32px;
  z-index: 2;
  transform: translateY(15px);
  opacity: 0.7;
  transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-panel:hover .hero-panel-content {
  transform: translateY(0);
  opacity: 1;
}
.hero-panel-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 3px;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.hero-panel-title {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 14px;
  font-family: var(--font-display);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-25px);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.1s;
}
.hero-panel:hover .hero-panel-title {
  opacity: 1;
  transform: translateX(0);
}
.hero-panel-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 380px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease 0.2s;
}
.hero-panel:hover .hero-panel-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Hero overlay — centers title, subtitle, CTAs */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  pointer-events: none;
  padding: 80px 24px 0;
}
.hero-title {
  font-size: clamp(36px, 7.5vw, 100px);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 10px 40px rgba(0, 0, 0, 0.8),
    0 0 100px rgba(var(--primary-rgb), 0.6);
  white-space: nowrap;
  letter-spacing: -3px;
  font-family: var(--font-display);
  line-height: 0.85;
  transition: all 0.6s ease;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: clamp(15px, 2vw, 22px);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  max-width: 650px;
  line-height: 1.6;
  margin-bottom: 32px;
  transition: opacity 0.5s ease;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 100px;
}
.hero-accordion:hover ~ .hero-overlay .hero-title {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  text-shadow: none;
}
.hero-accordion:hover ~ .hero-overlay .hero-subtitle,
.hero-accordion:hover ~ .hero-overlay .hero-ctas {
  opacity: 0.2;
}

/* Hero gradient overlay for visual punch */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 40%,
    rgba(6, 15, 30, 0.8) 100%
  );
  z-index: 5;
  pointer-events: none;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  right: 40px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.hero-scroll-line {
  width: 50px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  animation: hero-scroll-anim 2s ease-in-out infinite;
}
@keyframes hero-scroll-anim {
  to {
    transform: translateX(200%);
  }
}

/* ---- TRUST BAND ---- */
.trust-band {
  padding: 24px 0;
  background: rgba(var(--primary-rgb), 0.03);
  border-top: 1px solid rgba(var(--primary-rgb), 0.08);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
  overflow: hidden;
}
.trust-track {
  display: flex;
  gap: 60px;
  animation: trust-scroll 25s linear infinite;
  width: max-content;
}
.trust-item {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-item .dot {
  width: 6px;
  height: 6px;
  background: rgba(var(--primary-rgb), 0.3);
  border-radius: 50%;
}
@keyframes trust-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ---- SECTION COMMON ---- */
.section {
  padding: 80px 24px;
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  font-family: var(--font-display);
}
.section-title span {
  color: var(--primary);
}
.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--primary-rgb), 0.2),
    transparent
  );
  margin: 0 auto;
}

/* ---- 3D CAROUSEL (Services) ---- */
.carousel-section {
  padding: 40px 0 80px;
  overflow: hidden;
  position: relative;
}
.carousel-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    ellipse,
    rgba(var(--primary-rgb), 0.06),
    transparent 70%
  );
  pointer-events: none;
}
.carousel-wrapper {
  position: relative;
  width: 100%;
  perspective: 1200px;
}
.carousel-viewport {
  position: relative;
  width: 100%;
  height: 460px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.carousel-card {
  position: absolute;
  width: min(340px, 80vw);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}
.carousel-card.active {
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(var(--primary-rgb), 0.08);
}
.carousel-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  transition: all 0.4s ease;
}
.carousel-card.active .carousel-card-icon {
  background: rgba(var(--primary-rgb), 0.15);
  box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.2);
}
.carousel-card-num {
  font-size: 42px;
  font-weight: 900;
  color: rgba(var(--primary-rgb), 0.07);
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-accent);
  line-height: 1;
}
.carousel-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.carousel-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.carousel-card ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.carousel-card ul li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  padding-left: 16px;
  position: relative;
}
.carousel-card ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 10px;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}
.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.carousel-btn:hover {
  background: rgba(var(--primary-rgb), 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
}
.carousel-dots {
  display: flex;
  gap: 10px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.4s;
}
.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

/* ---- APPROACH TIMELINE ---- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--primary-rgb), 0.2),
    rgba(var(--primary-rgb), 0.4),
    rgba(var(--primary-rgb), 0.2),
    transparent
  );
}
.timeline-step {
  text-align: center;
  position: relative;
  padding: 0 16px;
}
.timeline-dot {
  width: 16px;
  height: 16px;
  background: var(--dark);
  border: 2px solid var(--primary);
  border-radius: 50%;
  margin: 30px auto 24px;
  position: relative;
  z-index: 2;
  transition: all 0.4s;
}
.timeline-step:hover .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
  transform: scale(1.3);
}
.timeline-num {
  font-size: 48px;
  font-weight: 900;
  color: rgba(var(--primary-rgb), 0.08);
  font-family: var(--font-accent);
  line-height: 1;
}
.timeline-step h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.timeline-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- PORTFOLIO GRID ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.portfolio-card {
  position: relative;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid rgba(var(--primary-rgb), 0.08);
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}
.portfolio-card:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.portfolio-card-gradient {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  transition: opacity 0.5s;
}
.portfolio-card:hover .portfolio-card-gradient {
  opacity: 0.22;
}
.portfolio-card-content {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  transform: translateY(8px);
  transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-card-content {
  transform: translateY(0);
}
.portfolio-card-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  padding: 4px 12px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 12px;
}
.portfolio-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.portfolio-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.portfolio-card-link {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}
.portfolio-card-link:hover {
  color: var(--primary);
}
.portfolio-card-link svg {
  transition: transform 0.3s;
}
.portfolio-card-link:hover svg {
  transform: translateX(4px);
}

/* 3D tilt glow */
.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(var(--primary-rgb), 0.2) 0%,
    transparent 60%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1;
}
.portfolio-card:hover::after {
  opacity: 1;
}

/* ---- STATS ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--glass-bg);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-lg);
  transition: all 0.4s;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.stat-card:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(var(--primary-rgb), 0.08);
}
.stat-value {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: rgba(var(--primary-rgb), 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- FOUNDER ---- */
.founder {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}
.founder-img-wrap {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}
.founder-img-wrap::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.5;
  animation: premium-breath 4s ease-in-out infinite;
}
.founder-img {
  border-radius: var(--radius-xl);
  width: 100%;
  object-fit: cover;
  border: 4px solid rgba(8, 18, 38, 0.8);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  transition: opacity 0.5s ease;
}
.founder-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  opacity: 0;
  z-index: 2;
}
.founder-img-wrap:hover .founder-img-hover {
  opacity: 1;
}
@keyframes premium-breath {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(5, 209, 226, 0.2)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 30px rgba(5, 209, 226, 0.5)); transform: scale(1.02); }
}
.founder-quote {
  position: relative;
  padding: 28px 32px;
  background: rgba(var(--primary-rgb), 0.04);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}
.founder-quote-mark {
  position: absolute;
  top: -8px;
  left: 14px;
  font-size: 64px;
  font-family: Georgia, serif;
  color: rgba(var(--primary-rgb), 0.12);
  line-height: 1;
  pointer-events: none;
}
.founder-quote p {
  font-size: 16px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 16px;
}
.founder-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.founder-role {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.founder-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  margin-top: 28px;
  border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}
.founder-stat-num {
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.founder-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ---- TESTIMONIALS ---- */
.testimonials-slider {
  position: relative;
  margin-top: 60px;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.6s ease;
}
.testimonial-card {
  min-width: 100%;
  padding: 0 40px;
}
.testimonial-card-inner {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}
.testimonial-stars svg {
  color: #fbbf24;
}
.testimonial-text {
  font-size: 18px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 24px;
}
.testimonial-author {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}
.testimonial-company {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s;
}
.testimonial-dot.active {
  background: var(--primary);
  transform: scale(1.4);
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  margin-top: 60px;
}
.contact-info h3 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.contact-info p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-detail {
  margin-bottom: 20px;
}
.contact-detail-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.contact-detail-value {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}
.contact-form-wrap {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(10, 24, 46, 0.8);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-family: var(--font-body);
  transition: all 0.3s;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow:
    0 0 0 3px rgba(var(--primary-rgb), 0.1),
    0 0 20px rgba(var(--primary-rgb), 0.08);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}
.form-select {
  appearance: none;
  cursor: pointer;
}

/* ---- CTA BUTTON ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent) 50%,
    var(--primary) 100%
  );
  background-size: 200% 200%;
  color: var(--darker);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  border-radius: 100px;
  border: none;
  transition: all 0.4s ease;
  box-shadow: 0 4px 25px rgba(var(--primary-rgb), 0.35);
  animation: btn-shimmer 3s ease-in-out infinite;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 35px rgba(var(--primary-rgb), 0.5);
}
@keyframes btn-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 100px;
  transition: all 0.3s;
}
.btn-outline:hover {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.15);
}

/* ---- FOOTER ---- */
.footer {
  background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
  border-top: 1px solid rgba(var(--primary-rgb), 0.08);
  padding: 60px 24px 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
}
.footer h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.footer ul li {
  margin-bottom: 8px;
}
.footer ul li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer ul li a:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}
.footer-bottom a {
  transition: color 0.3s;
}
.footer-bottom a:hover {
  color: var(--text-muted);
}

/* ---- PARTICLES CANVAS ---- */
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s var(--transition),
    transform 0.7s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- AMBIENT BG ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(var(--primary-rgb), 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(0, 130, 160, 0.02) 0%,
      transparent 50%
    );
}
body > *:not(.particles-canvas):not(.cursor-dot):not(.cursor-ring) {
  position: relative;
  z-index: 1;
}

/* ---- GRADIENT MESH ACCENTS ---- */
.carousel-section,
#stats,
#testimonials {
  position: relative;
}
#stats::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    ellipse,
    rgba(var(--primary-rgb), 0.04),
    transparent 70%
  );
  pointer-events: none;
}
#founder::before {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(0, 130, 160, 0.04),
    transparent 70%
  );
  pointer-events: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .mega-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .timeline::before {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .founder {
    grid-template-columns: 1fr;
  }
  .founder-img-wrap {
    max-width: 300px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  .hero-accordion {
    flex-direction: column;
  }
  .hero-panel {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .hero-panel:last-child {
    border-bottom: none;
  }
  .hero-title {
    font-size: clamp(28px, 12vw, 60px);
    letter-spacing: -1px;
  }
  .hero-panel-title {
    font-size: 26px;
    white-space: normal;
  }
  .hero-panel-content {
    padding: 24px 20px;
  }
  .hero-scroll-hint {
    display: none;
  }
  .mega-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 60px 16px;
  }
  .carousel-viewport {
    height: 480px;
  }
  .carousel-card {
    width: min(300px, 85vw);
    min-height: 360px;
    padding: 30px 22px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .founder-stats {
    gap: 20px;
  }
  .founder-stat-num {
    font-size: 28px;
  }
}

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