/* ============================================
   KODENOIR V3 – Full Overhaul
   ============================================ */


:root {
  --black: #08080c;
  --black-2: #0e0e14;
  --black-3: #16161e;
  --gray-1: #2a2a36;
  --gray-2: #4a4a5a;
  --gray-3: #8888a0;
  --light: #c8c8d8;
  --white: #f0f0f5;
  --purple: #8b5cf6;
  --purple-l: #a78bfa;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --grad: linear-gradient(135deg, #8b5cf6, #06b6d4);
  --font-body: 'Inter', sans-serif;
  --font-h: 'Outfit', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  cursor: none;
}

/* === CURSOR === */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), border-color 0.3s, background 0.3s;
  mix-blend-mode: difference;
}

.cursor.h {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

@media (pointer: coarse) {

  .cursor,
  .cursor-dot {
    display: none;
  }

  body,
  a,
  button,
  input,
  textarea,
  select {
    cursor: auto;
  }
}

/* === LOADER === */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: opacity 1s var(--ease), visibility 1s;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 120px;
  height: auto;
  opacity: 0;
  transform: scale(0.5);
  animation: loaderLogoIn 1s var(--ease) 0.2s forwards;
  filter: drop-shadow(0 0 0px rgba(139, 92, 246, 0));
}

.loader-logo.glow {
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 60px rgba(6, 182, 212, 0.3));
}

@keyframes loaderLogoIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.loader-text {
  font-family: var(--font-h);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--white);
}

.loader-text span {
  display: inline-block;
  animation: lSlide 0.5s var(--ease) forwards;
  opacity: 0;
  transform: translateY(100%);
}

@keyframes lSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
}

.nav-logo {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}

.nav-menu-btn {
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-line {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.menu-line span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: all 0.4s var(--ease);
}

.menu-line span:nth-child(1) {
  width: 100%;
}

.menu-line span:nth-child(2) {
  width: 60%;
}

.nav-menu-btn:hover .menu-line span:nth-child(2) {
  width: 100%;
}

/* Menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(0% at calc(100% - 60px) 40px);
  transition: clip-path 0.8s var(--ease);
}

.menu-overlay.open {
  clip-path: circle(150% at calc(100% - 60px) 40px);
}

.menu-overlay-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.menu-overlay-links a {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 800;
  color: var(--gray-2);
  transition: color 0.3s;
  display: inline-block;
  line-height: 1.2;
}

.menu-overlay-links a:hover {
  color: var(--white);
}

.menu-overlay-links .link-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--purple);
  vertical-align: super;
  margin-right: 8px;
}

.menu-close {
  position: absolute;
  top: 24px;
  right: 40px;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #06060a;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  margin-top: -40px;
}

/* Old unused styles kept for safety */
.hero-title { display: none; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .char { display: inline-block; opacity: 0; transform: translateY(100%); }

/* ── Logo with rings ── */
.hero-logo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.hero-logo-svg {
  width: 68px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(139,92,246,0.5)) drop-shadow(0 0 40px rgba(6,182,212,0.2));
  animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 20px rgba(139,92,246,0.5)) drop-shadow(0 0 40px rgba(6,182,212,0.2)); }
  50%       { transform: translateY(-6px); filter: drop-shadow(0 0 28px rgba(139,92,246,0.7)) drop-shadow(0 0 55px rgba(6,182,212,0.3)); }
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  inset: 0;
  margin: auto;
}

.hero-ring-1 {
  width: 96px; height: 96px;
  border-width: 1px;
  border-color: rgba(139,92,246,0.4);
  animation: ringPulse 3s ease-in-out infinite;
}

.hero-ring-2 {
  width: 124px; height: 124px;
  border-width: 1px;
  border-color: rgba(6,182,212,0.25);
  animation: ringPulse 3s ease-in-out 0.5s infinite;
}

.hero-ring-3 {
  width: 160px; height: 160px;
  border-width: 1px;
  border-color: rgba(139,92,246,0.12);
  animation: ringPulse 3s ease-in-out 1s infinite;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

/* ── Wordmark ── */
.hero-wordmark {
  font-family: var(--font-h);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: clamp(-2px, -0.5vw, -5px);
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f0f0f5 0%, #a78bfa 45%, #06b6d4 80%, #f0f0f5 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: wordmarkShine 5s linear infinite;
}

@keyframes wordmarkShine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}

/* ── Typewriter subtitle ── */
.hero-sub {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.1vw, 0.88rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gray-3);
  text-shadow: 0 0 16px rgba(139,92,246,0.15);
  min-height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.hero-cursor {
  color: var(--purple);
  animation: blink 0.9s step-end infinite;
  font-weight: 300;
}

@keyframes blink { 50% { opacity: 0; } }

/* ── Scroll indicator ── */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-2);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollP 2s ease-in-out infinite;
}

@keyframes scrollP {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.6); opacity: 1; }
}

/* === GRADIENT BANDS === */
.gradient-bands {
  position: relative;
  padding: 24px 0;
  overflow: hidden;
}

.g-band {
  height: 4px;
  margin: 10px 0;
  border-radius: 4px;
  will-change: transform;
  background-size: 200% 100%;
  filter: blur(0.5px);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3), 0 0 24px rgba(6, 182, 212, 0.15);
}

.g-band:nth-child(1) {
  background: linear-gradient(90deg, transparent 0%, #8b5cf6 20%, #06b6d4 40%, #8b5cf6 60%, #ec4899 80%, transparent 100%);
  background-size: 200% 100%;
  animation: bandFlow 4s linear infinite;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.4), 0 0 28px rgba(6, 182, 212, 0.2);
}

.g-band:nth-child(2) {
  background: linear-gradient(90deg, transparent 0%, #ec4899 20%, #8b5cf6 40%, #06b6d4 60%, #ec4899 80%, transparent 100%);
  background-size: 200% 100%;
  animation: bandFlow 5s linear infinite reverse;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.4), 0 0 28px rgba(139, 92, 246, 0.2);
}

.g-band:nth-child(3) {
  background: linear-gradient(90deg, transparent 0%, #06b6d4 20%, #4ade80 40%, #06b6d4 60%, #8b5cf6 80%, transparent 100%);
  background-size: 200% 100%;
  animation: bandFlow 3.5s linear infinite;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.4), 0 0 28px rgba(74, 222, 128, 0.2);
}

.g-band:nth-child(4) {
  background: linear-gradient(90deg, transparent 0%, #f59e0b 20%, #ec4899 40%, #8b5cf6 60%, #f59e0b 80%, transparent 100%);
  background-size: 200% 100%;
  animation: bandFlow 4.5s linear infinite reverse;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4), 0 0 28px rgba(236, 72, 153, 0.2);
}

.g-band:nth-child(5) {
  background: linear-gradient(90deg, transparent 0%, #8b5cf6 20%, #06b6d4 40%, #ec4899 60%, #8b5cf6 80%, transparent 100%);
  background-size: 200% 100%;
  animation: bandFlow 3s linear infinite;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.4), 0 0 28px rgba(6, 182, 212, 0.2);
}

@keyframes bandFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* === FULL-SCREEN IMAGE SECTION === */
.fullscreen-img {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.fullscreen-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.fullscreen-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.3) 0%, rgba(8, 8, 12, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 60px;
}

.fullscreen-img-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--purple-l);
  margin-bottom: 16px;
}

.fullscreen-img-title {
  font-family: var(--font-h);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  max-width: 700px;
  margin-bottom: 16px;
}

.fullscreen-img-desc {
  font-size: 1rem;
  color: var(--light);
  max-width: 500px;
  line-height: 1.7;
}

/* === MANIFESTO === */
.manifesto {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10vh 8vw;
  background: var(--black);
}

.manifesto-text {
  font-family: var(--font-h);
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  max-width: 950px;
}

.manifesto-text .word {
  display: inline-block;
  opacity: 0.1;
  margin: 0 3px;
}

.manifesto-text .word.acc {
  color: var(--purple-l);
}

/* === SERVICES SHOWCASE === */
.services-showcase {
  padding: 120px 40px 0;
  max-width: 1300px;
  margin: 0 auto;
}

.ss-header {
  margin-bottom: 80px;
}

.ss-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--purple-l);
  margin-bottom: 16px;
}

.ss-title {
  font-family: var(--font-h);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
}

.ss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.ss-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: default;
}

.ss-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  filter: brightness(0.6);
}

.ss-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.75);
}

.ss-card-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(8, 8, 12, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
}

.ss-card-num {
  font-family: var(--font-h);
  font-size: 4.5rem;
  font-weight: 900;
  position: absolute;
  top: 24px;
  right: 32px;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
}

.ss-card-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-l);
  margin-bottom: 8px;
}

.ss-card-title {
  font-family: var(--font-h);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.ss-card-desc {
  font-size: 0.88rem;
  color: var(--gray-3);
  line-height: 1.6;
  max-width: 360px;
}

.ss-card-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.ss-card-techs span {
  padding: 4px 12px;
  border: 1px solid var(--gray-1);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--gray-3);
  letter-spacing: 0.5px;
}

/* === SS-CARD "EN SAVOIR PLUS" BTN — TOUJOURS VISIBLE === */
.ss-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 22px;
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(6,182,212,0.12));
  border: 1px solid rgba(139,92,246,0.45);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-l);
  cursor: pointer;
  transition: all 0.35s var(--ease);
  opacity: 1;
  transform: none;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
  overflow: hidden;
  animation: btnPulse 3s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139,92,246,0); border-color: rgba(139,92,246,0.45); }
  50%  { box-shadow: 0 0 14px 2px rgba(139,92,246,0.22); border-color: rgba(139,92,246,0.7); }
}

/* Shimmer sweep */
.ss-card-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
  0%   { left: -100%; }
  40%, 100% { left: 180%; }
}

.ss-card-btn:hover {
  background: linear-gradient(135deg, rgba(139,92,246,0.32), rgba(6,182,212,0.22));
  border-color: rgba(139,92,246,0.75);
  color: var(--white);
  box-shadow: 0 0 24px rgba(139,92,246,0.3);
  animation: none;
}

.ss-card-btn .btn-arrow {
  transition: transform 0.3s var(--ease);
  display: inline-block;
}

.ss-card-btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* === MENU OVERLAY — SOUS-MENU SERVICES === */
.menu-services-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-h);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 800;
  color: var(--gray-2);
  transition: color 0.3s;
  cursor: none;
  background: none;
  border: none;
  line-height: 1.2;
  width: 100%;
  justify-content: center;
}

.menu-services-toggle:hover { color: var(--white); }

.menu-services-arrow {
  font-size: 0.5em;
  transition: transform 0.4s var(--ease);
  display: inline-block;
  opacity: 0.5;
}

.menu-services-toggle.open .menu-services-arrow {
  transform: rotate(90deg);
}

.menu-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.menu-sub.open { max-height: 500px; }

.menu-sub a {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-2);
  padding: 8px 0;
  transition: color 0.25s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-sub a::before { content: '→'; opacity: 0.4; font-size: 0.9em; }
.menu-sub a:hover { color: var(--purple-l); }

/* === KEY FEATURES (IMMERSIVE) === */
.key-features {
  position: relative;
  min-height: 100vh;
  padding: 120px 40px;
  overflow: hidden;
  background: #06060a;
}

#kf-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.kf-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.kf-header {
  margin-bottom: 80px;
  text-align: center;
}

.kf-header .ss-title {
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.kf-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 80px;
}

.kf-item {
  opacity: 0;
  transform: translateY(30px);
}

.kf-item-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.5));
}

.kf-item h3 {
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.4), 0 0 50px rgba(6, 182, 212, 0.15);
}

.kf-item p {
  font-size: 0.9rem;
  color: rgba(200, 200, 216, 0.7);
  line-height: 1.7;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

/* === SATISFACTION === */
.satisfaction {
  padding: 120px 40px;
  background: var(--black);
}

.satisfaction-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}



.satisfaction-text h2 {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.satisfaction-text h2 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.satisfaction-text p {
  font-size: 1rem;
  color: var(--gray-3);
  line-height: 1.8;
  max-width: 450px;
}

.satisfaction-rings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.ring-item {
  text-align: center;
}

.ring-svg {
  width: 130px;
  height: 130px;
  margin: 0 auto 16px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--gray-1);
  stroke-width: 4;
}

.ring-fill {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 282.7;
  stroke-dashoffset: 282.7;
  transition: stroke-dashoffset 2s var(--ease);
}

.ring-fill.purple {
  stroke: url(#ring-grad-1);
}

.ring-fill.cyan {
  stroke: url(#ring-grad-2);
}

.ring-val {
  font-family: var(--font-h);
  font-size: 1.6rem;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

.ring-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-3);
}

/* === PORTFOLIO 3D CAROUSEL === */
.portfolio {
  padding: 120px 0 140px;
  position: relative;
  background: var(--black-2);
  overflow: hidden;
}

.portfolio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, var(--black), var(--black-2));
}

.portfolio-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
  padding: 0 40px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--purple-l);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-h);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
}

.carousel-scene {
  perspective: 1200px;
  width: 100%;
  height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-ring {
  width: 350px;
  height: 440px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
}

.carousel-cell {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.carousel-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-cell-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 8, 12, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.carousel-cell-title {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.carousel-cell-desc {
  font-size: 0.82rem;
  color: var(--gray-3);
  line-height: 1.5;
}

.carousel-cell-tags {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.carousel-cell-tags span {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--purple-l);
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.carousel-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gray-1);
  background: transparent;
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.carousel-btn:hover {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.1);
}

.carousel-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.carousel-counter .current {
  color: var(--white);
  font-weight: 600;
}

/* === STATS === */
.stats {
  padding: 120px 40px;
  background: var(--black);
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.stat-item {
  padding: 40px 0;
  border-top: 1px solid var(--gray-1);
}

.stat-item:nth-child(2) {
  transform: translateY(50px);
}

.stat-num {
  font-family: var(--font-h);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -3px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-3);
}

/* === MARQUEE TESTIMONIALS === */
.testimonials {
  padding: 100px 0;
  overflow: hidden;
  background: var(--black-2);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 56px;
  padding: 0 40px;
}

.marquee-row {
  display: flex;
  gap: 24px;
  padding: 10px 0;
  width: max-content;
}

.marquee-forward {
  animation: mF 40s linear infinite;
}

.marquee-reverse {
  animation: mR 35s linear infinite;
}

@keyframes mF {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes mR {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.mq-card {
  flex-shrink: 0;
  width: 400px;
  padding: 28px;
  background: var(--black-3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
}

.mq-card-quote {
  font-size: 0.92rem;
  color: var(--light);
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}

.mq-card-quote::before {
  content: '"';
  font-family: var(--font-h);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--purple);
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 4px;
}

.mq-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mq-card-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
}

.mq-card-name {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.85rem;
}

.mq-card-role {
  font-size: 0.7rem;
  color: var(--gray-2);
}

/* === CONTACT === */
.contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 40px;
  background: var(--black);
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-heading {
  font-family: var(--font-h);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 20px;
}

.contact-heading em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-desc {
  font-size: 1rem;
  color: var(--gray-3);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 400px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--light);
  transition: color 0.3s;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-link:hover {
  color: var(--purple-l);
}

.contact-link-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-field {
  position: relative;
  border-bottom: 1px solid var(--gray-1);
}

.form-field::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--grad);
  transition: width 0.6s var(--ease);
}

.form-field:focus-within::after {
  width: 100%;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-2);
  display: block;
  padding-top: 18px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 0 14px;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--gray-1);
}

.form-field textarea {
  min-height: 70px;
  resize: none;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a4a5a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.form-field select option {
  background: var(--black);
  color: var(--white);
}

.btn-submit {
  margin-top: 32px;
  padding: 18px 44px;
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  align-self: flex-start;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.btn-submit:hover {
  color: var(--black);
}

.btn-submit:hover::before {
  transform: translateY(0);
}

.btn-submit span {
  position: relative;
  z-index: 1;
}

/* === FOOTER === */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 80px 40px 30px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-logo {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.footer-brand-name {
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--gray-3);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--gray-3);
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--purple-l);
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.footer-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.footer-social:hover {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--gray-3);
  transition: fill 0.3s;
}

.footer-social:hover svg {
  fill: var(--purple-l);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gray-2);
  letter-spacing: 1px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gray-2);
  letter-spacing: 1px;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--purple-l);
}

/* === REVEAL === */
.rvl {
  opacity: 0;
  transform: translateY(50px);
}

.rvl.vis {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.rvl-d1 {
  transition-delay: 0.1s !important;
}

.rvl-d2 {
  transition-delay: 0.2s !important;
}

.rvl-d3 {
  transition-delay: 0.3s !important;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .ss-grid {
    grid-template-columns: 1fr;
  }

  .kf-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item:nth-child(2) {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 16px 20px;
  }

  .hero-title {
    letter-spacing: -2px;
  }

  .fullscreen-img-overlay {
    padding: 40px 24px;
  }

  .ss-grid {
    grid-template-columns: 1fr;
  }

  .kf-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-item:nth-child(2) {
    transform: none;
  }

  .carousel-ring {
    width: 280px;
    height: 360px;
  }

  .mq-card {
    width: 300px;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .services-showcase,
  .key-features {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact {
    padding: 60px 20px;
  }
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-1);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple);
}