/* ═══════════════════════════════════════════
   TNF RENOV — style.css
   ═══════════════════════════════════════════ */

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

:root {
  --violet:      #2D1B69;
  --violet-dark: #1A1040;
  --violet-mid:  #3D2880;
  --coral:       #E8614A;
  --coral-light: #F07A65;
  --white:       #F8F6F2;
  --dark:        #0E0B1F;
  --gold:        #C9A84C;
  --gray:        #6B7280;
}

[data-theme="light"] {
  --violet:      #6D4FC2;
  --violet-dark: #F0EEF7;
  --violet-mid:  #E8E4F5;
  --white:       #1A1A2E;
  --dark:        #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--coral); border-radius: 2px; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 10px 60px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(14, 11, 31, 0.95);
  backdrop-filter: blur(20px);
  padding: 14px 60px;
  border-bottom: 1px solid rgba(232, 97, 74, 0.2);
}
.nav-logo img {
  height: 62px;
  filter: drop-shadow(0 0 12px rgba(232,97,74,0.4));
}
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--white); text-decoration: none;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
  position: relative; padding-bottom: 4px;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--coral);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--coral); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-cta {
  position: relative; display: inline-block; cursor: pointer;
  outline: none; border: 0; vertical-align: middle;
  text-decoration: none; background: transparent; padding: 0;
  font-size: inherit; font-family: inherit;
  width: 12rem; height: auto;
}
.nav-links a.nav-cta::after { display: none !important; }
.nav-links a.nav-cta .circle {
  transition: all 0.45s cubic-bezier(0.65,0,0.076,1);
  position: relative; display: block; margin: 0;
  width: 3rem; height: 3rem;
  background: var(--coral); border-radius: 1.625rem;
}
.nav-links a.nav-cta .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65,0,0.076,1);
  position: absolute; top: 0; bottom: 0; left: 0.625rem;
  margin: auto; height: 34px; background: none;
}
.nav-links a.nav-cta .button-text {
  transition: all 0.45s cubic-bezier(0.65,0,0.076,1);
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  padding: 0.75rem 0; margin: 0 0 0 1.85rem;
  color: var(--coral); font-weight: 700; line-height: 1.6;
  text-align: center; text-transform: uppercase;
  font-family: 'Bebas Neue', sans-serif; letter-spacing: 1.5px;
  display: flex; align-items: center; justify-content: center;
}
.nav-links a.nav-cta:hover .circle { width: 100%; }
.nav-links a.nav-cta:hover .circle .icon.arrow {
  left: 0.15rem; transform: translate(1rem, 0);
}
.nav-links a.nav-cta:hover .button-text { color: var(--white); }
/* ─── SLIDE BUTTON ─── */
.btn-slide {
  display: inline-flex;
  align-items: center;
  padding: 16px 40px;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  border-radius: 2px;
}
.btn-slide-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--white);
  position: relative;
  padding-left: 28px;
  transition: all 0.3s ease-in-out;
  z-index: 1;
  line-height: 1.2;
}
.btn-slide-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--coral);
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}
.btn-slide-text::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border: solid 3px var(--coral);
  border-left: 0;
  border-bottom: 0;
  border-radius: 2px;
  transform: rotate(45deg);
  opacity: 0;
  transition: all 0.3s 0.2s ease-in-out;
}
.btn-slide::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  transition: all 0.4s 0.2s ease-in-out;
  z-index: 0;
}
.btn-slide:hover::before {
  width: 100%;
  left: 0;
}
.btn-slide:hover .btn-slide-text {
  padding-left: 56px;
}
.btn-slide:hover .btn-slide-text::before {
  left: 16px;
  transform: rotate(90deg);
}
.btn-slide:hover .btn-slide-text::after {
  left: 14px;
  opacity: 1;
}

/* ─── HERO ─── */
#hero {
  position: relative; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(45,27,105,0.6) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 70%, rgba(232,97,74,0.15) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.06;
  background-image:
    linear-gradient(var(--white) 1px, transparent 1px),
    linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(20deg);
  transform-origin: bottom;
}
.particles { position: absolute; inset: 0; pointer-events: none; }
#bgCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.particle {
  position: absolute;
  border-radius: 50%;
  animation: fall linear infinite;
  opacity: 0;
}
@keyframes fall {
  0%   { opacity: 0; transform: translateY(-20px) rotate(0deg); }
  10%  { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  transform-style: preserve-3d;
}
.hero-3d-layer { transition: none; }
.hero-eyebrow {
  font-size: 11px; letter-spacing: 6px; text-transform: uppercase;
  color: var(--coral); font-weight: 600; margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero-title {
  opacity: 0; animation: fadeUp 0.9s 0.4s forwards;
  display: inline-block;
  max-width: 80vw;
}
.hero-logo-svg {
  display: block;
  width: clamp(240px, 42vw, 620px);
  height: auto;
  filter: drop-shadow(0 4px 30px rgba(232,97,74,0.2));
}
.hero-subtitle-block {
  margin-top: 24px;
  opacity: 0; animation: fadeUp 0.9s 0.6s forwards;
}
.hero-subtitle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 4vw, 48px);
  letter-spacing: 14px; color: var(--white); opacity: 0.7;
}
.hero-tagline {
  margin-top: 16px; font-size: 13px;
  letter-spacing: 4px; color: var(--gray); text-transform: uppercase;
  opacity: 0; animation: fadeUp 0.9s 0.8s forwards;
}
.hero-tagline span { color: var(--coral); }
.hero-cta-group {
  display: flex; gap: 20px; justify-content: center;
  margin-top: 52px;
  opacity: 0; animation: fadeUp 0.9s 1s forwards;
}
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: fadeUp 1s 1.4s forwards;
}
.hero-scroll span {
  font-size: 10px; letter-spacing: 3px; color: var(--gray); text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(var(--coral), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── BUTTONS ─── */
.btn-secondary {
  background: transparent; color: var(--white);
  padding: 16px 44px; border-radius: 2px;
  text-decoration: none; font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; font-weight: 600;
  transition: all 0.3s; border: 2px solid rgba(255,255,255,0.2);
  display: inline-block;
}
.btn-secondary:hover {
  border-color: var(--white); background: rgba(255,255,255,0.05);
}

/* ─── SNAKE BORDER ─── */
.btn-snake-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  border-radius: 2px;
}

.btn-snake-bar {
  position: absolute;
  background: var(--coral);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.btn-snake-wrap:hover .btn-snake-bar {
  opacity: 1;
}

/* BARRES */
.btn-snake-bar.top {
  top: -1px;
  left: -40px;
  width: 40px;
  height: 3px;
}

.btn-snake-bar.right {
  right: -1px;
  top: -40px;
  width: 3px;
  height: 40px;
}

.btn-snake-bar.bottom {
  bottom: -1px;
  right: -40px;
  width: 40px;
  height: 3px;
}

.btn-snake-bar.left {
  left: -1px;
  bottom: -40px;
  width: 3px;
  height: 40px;
}


/* ─── ANIMATION SYNCHRO ─── */

.btn-snake-wrap:hover .top {
  animation: snakeTop 3.2s linear infinite;
}

.btn-snake-wrap:hover .right {
  animation: snakeRight 3.2s linear infinite;
  animation-delay: .8s;
}

.btn-snake-wrap:hover .bottom {
  animation: snakeBottom 3.2s linear infinite;
  animation-delay: 1.6s;
}

.btn-snake-wrap:hover .left {
  animation: snakeLeft 3.2s linear infinite;
  animation-delay: 2.4s;
}


/* ─── KEYFRAMES ─── */

@keyframes snakeTop {
  0% {
    left: -40px;
  }

  25% {
    left: calc(100% + 40px);
  }

  100% {
    left: calc(100% + 40px);
  }
}


@keyframes snakeRight {
  0% {
    top: -40px;
  }

  25% {
    top: calc(100% + 40px);
  }

  100% {
    top: calc(100% + 40px);
  }
}


@keyframes snakeBottom {
  0% {
    right: -40px;
  }

  25% {
    right: calc(100% + 40px);
  }

  100% {
    right: calc(100% + 40px);
  }
}


@keyframes snakeLeft {
  0% {
    bottom: -40px;
  }

  25% {
    bottom: calc(100% + 40px);
  }

  100% {
    bottom: calc(100% + 40px);
  }
}
/* ─── SECTION BASE ─── */
section { padding: 120px 0; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 60px; }

.section-label {
  font-size: 11px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--coral); font-weight: 600; margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::before {
  content: ''; display: block; width: 30px; height: 2px; background: var(--coral);
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 90px); line-height: 0.9;
}

/* ─── STATS ─── */
#stats {
  padding: 0;
  background: var(--violet-dark);
  border-top: 1px solid rgba(232,97,74,0.2);
  border-bottom: 1px solid rgba(232,97,74,0.2);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  padding: 60px 40px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.4s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(232,97,74,0.06); }
.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px; line-height: 1; color: var(--coral); display: block;
}
.stat-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gray); margin-top: 8px;
}

/* ─── SERVICES ─── */
#services { background: var(--dark); }
.services-header { margin-bottom: 80px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

.service-card {
  background: rgba(45,27,105,0.15);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 52px 44px;
  position: relative; overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23,1,0.32,1);
  cursor: default;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--coral);
  transition: height 0.5s ease;
}
.service-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45,27,105,0.4) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.5s;
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(232,97,74,0.3); }
.service-card:hover::before { height: 100%; }
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 56px; height: 56px; margin-bottom: 28px; display: block;
  transition: transform 0.4s;
}
.service-card:hover .service-icon { transform: scale(1.12) rotate(-4deg); }

.service-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px; letter-spacing: 1px; color: var(--white);
  margin-bottom: 14px; line-height: 1;
}
.service-desc {
  font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.5);
}
.service-list { margin-top: 24px; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-list li {
  font-size: 12px; color: rgba(255,255,255,0.4);
  display: flex; align-items: center; gap: 10px;
}
.service-list li::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none' stroke='%23E8614A' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M3 1l4 4-4 4'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

/* ─── POURQUOI ─── */
#why {
  background: var(--violet-dark);
  position: relative; overflow: hidden;
}
#why::before {
  content: 'TNF'; position: absolute;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 500px; color: rgba(255,255,255,0.015);
  right: -100px; top: 50%; transform: translateY(-50%);
  pointer-events: none; line-height: 1; letter-spacing: -20px;
}
.why-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: center; }
.why-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.logo-container {
  width: 336px; height: 336px;
  position: relative;
  cursor: grab;
  touch-action: none;
}
.logo-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.why-points { display: flex; flex-direction: column; gap: 44px; }
.why-point { display: flex; gap: 28px; align-items: flex-start; }
.why-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px; color: var(--coral); opacity: 0.25; line-height: 1;
  flex-shrink: 0; width: 56px; transition: opacity 0.3s;
}
.why-point:hover .why-num { opacity: 0.7; }
.why-point-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; letter-spacing: 1px; margin-bottom: 8px;
}
.why-point-text { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.8; }

.badge-rge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.3); border-radius: 2px;
  margin-bottom: 32px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold);
  animation: glowPulse 3s ease-in-out infinite;
}
.badge-rge svg { flex-shrink: 0; }
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.2); }
  50%       { box-shadow: 0 0 20px 4px rgba(201,168,76,0.15); }
}

/* ─── RÉALISATIONS ─── */
#realisations { background: var(--dark); }
.real-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 64px;
}
.real-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 4px;
}
.real-item { position: relative; overflow: hidden; cursor: pointer; background: var(--violet-dark); }
.real-item:nth-child(1) { grid-column: 1 / 5; }
.real-item:nth-child(2) { grid-column: 5 / 9; }
.real-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 3; }
.real-item:nth-child(4) { grid-column: 1 / 7; }
.real-item:nth-child(5) { grid-column: 7 / 9; }

.real-item:nth-child(1) { aspect-ratio: 4/3; }
.real-item:nth-child(2) { aspect-ratio: 4/3; }
.real-item:nth-child(3) { aspect-ratio: auto; }
.real-item:nth-child(4) { aspect-ratio: 6/3; }
.real-item:nth-child(5) { aspect-ratio: 2/3; }

.real-inner {
  width: 100%; min-height: 260px; height: 100%;
  background: linear-gradient(135deg, var(--violet-dark) 0%, var(--violet-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
  overflow: hidden;
}
.real-item:hover .real-inner { transform: scale(1.05); }
.real-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
}
.real-item:hover .real-img { transform: scale(1.08); }
.real-bg-svg {
  position: absolute; opacity: 0.07;
  transition: transform 0.4s, opacity 0.4s;
}
.real-item:hover .real-bg-svg { transform: scale(1.18); opacity: 0.12; }
.real-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,11,31,0.95) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; opacity: 0; transition: opacity 0.4s;
}
.real-item:hover .real-overlay { opacity: 1; }
.real-tag {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--coral); margin-bottom: 8px;
}
.real-name { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 1px; }
.real-placeholder {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px; color: rgba(255,255,255,0.15);
  letter-spacing: 3px; text-align: center; padding: 24px; line-height: 1.6;
}

/* ─── PROCESS ─── */
#process { background: var(--violet-dark); position: relative; overflow: hidden; }
.process-timeline {
  margin-top: 80px; position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.process-timeline::before {
  content: ''; position: absolute;
  top: 32px; left: 12.5%; right: 12.5%;
  height: 1px; background: linear-gradient(90deg, var(--coral), rgba(232,97,74,0.2));
}
.process-step { text-align: center; padding: 0 20px; }
.process-dot {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--dark); border: 2px solid var(--coral);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 32px;
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--coral);
  position: relative; z-index: 2;
  transition: all 0.4s;
}
.process-step:hover .process-dot {
  background: var(--coral); color: #fff;
  box-shadow: 0 0 0 16px rgba(232,97,74,0.1);
}
.process-step-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; letter-spacing: 1px; margin-bottom: 12px;
}
.process-step-text { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.8; }

/* ─── CONTACT ─── */
#contact { background: var(--dark); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 100px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 44px; }
.contact-item { display: flex; gap: 20px; align-items: flex-start; }
.contact-icon {
  width: 48px; height: 48px; background: rgba(232,97,74,0.1);
  border: 1px solid rgba(232,97,74,0.3); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.3s;
}
.contact-icon svg { transition: all 0.3s; }
.contact-item:hover .contact-icon { background: var(--coral); border-color: var(--coral); }
.contact-item:hover .contact-icon svg path,
.contact-item:hover .contact-icon svg circle,
.contact-item:hover .contact-icon svg rect { stroke: #fff; }
.contact-item-label {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gray); margin-bottom: 6px;
}
.contact-item-value { font-size: 15px; font-weight: 500; }
.contact-zones {
  padding: 28px; background: rgba(45,27,105,0.2);
  border: 1px solid rgba(232,97,74,0.15); border-radius: 2px;
}
.contact-zones-title {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--coral); margin-bottom: 16px;
}
.zone-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.zone-tag {
  font-size: 11px; padding: 5px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
  color: rgba(255,255,255,0.6); letter-spacing: 1px;
}

/* ─── FORM ─── */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 2px;
  padding: 16px 20px;
  color: var(--white); font-family: 'Inter', sans-serif; font-size: 14px;
  outline: none; transition: border-color 0.3s, background 0.3s;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--coral); background: rgba(232,97,74,0.05);
}
.form-group select option { background: #1A1040; }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit {
  background: var(--coral); color: #fff; border: none;
  padding: 18px 48px; font-family: 'Inter', sans-serif;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600;
  cursor: pointer; border-radius: 2px;
  transition: all 0.3s; align-self: flex-start;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
}
.form-submit .btn-arrow { transition: transform 0.3s; }
.form-submit:hover .btn-arrow { transform: translateX(4px); }
.form-submit.sent .btn-arrow { display: none; }
.form-submit:hover {
  background: var(--coral-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(232,97,74,0.35);
}
.form-submit.sent { background: #22c55e; pointer-events: none; }

/* ─── FOOTER ─── */
footer {
  background: var(--violet-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 40px;
}
.footer-layout {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 48px;
}
.footer-logo img { height: 60px; opacity: 0.85; }
.footer-tagline { font-size: 11px; letter-spacing: 5px; text-transform: uppercase; color: var(--gray); }
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  color: rgba(255,255,255,0.4); text-decoration: none;
  font-size: 12px; letter-spacing: 1px; transition: color 0.3s;
}
.footer-links a:hover { color: var(--coral); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.25); letter-spacing: 1px; }
.footer-cert { display: flex; gap: 16px; }
.cert-badge {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(201,168,76,0.3); color: var(--gold); border-radius: 2px;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23,1,0.32,1), transform 0.8s cubic-bezier(0.23,1,0.32,1);
}
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.23,1,0.32,1), transform 0.8s cubic-bezier(0.23,1,0.32,1);
}
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.23,1,0.32,1), transform 0.8s cubic-bezier(0.23,1,0.32,1);
}
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: translate(0, 0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── MOBILE NAV ─── */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
  align-items: center; justify-content: center;
}
.hamburger span {
  width: 28px; height: 2px; background: var(--white); display: block;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: center;
}
.hamburger:hover span { background: var(--coral); }
.hamburger:hover span:nth-child(1) { transform: translateY(-3px) rotate(-8deg); width: 22px; background: var(--coral); }
.hamburger:hover span:nth-child(2) { transform: translateX(4px); width: 20px; background: var(--coral); }
.hamburger:hover span:nth-child(3) { transform: translateY(3px) rotate(8deg); width: 22px; background: var(--coral); }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(14,11,31,0.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px; color: var(--white); text-decoration: none;
  letter-spacing: 3px; transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--coral); }
.mobile-close {
  display: none;
  background: none; border: none; cursor: pointer; padding: 8px;
  touch-action: manipulation; position: relative;
  width: 44px; height: 44px; overflow: hidden;
}
.mobile-close span {
  position: absolute;
  width: 28px; height: 2px; background: var(--white);
  left: 8px; top: 21px; border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.65,0,0.076,1);
}
.mobile-close span:nth-child(1) { transform: rotate(-45deg); }
.mobile-close span:nth-child(2) { transform: rotate(45deg); }
.mobile-close:hover span {

  background: var(--coral); opacity: 0.8;
}
.mobile-close:hover span:nth-child(1) { transform: rotate(45deg); }
.mobile-close:hover span:nth-child(2) { transform: rotate(-45deg); }

/* ─── LIGHT THEME OVERRIDES ─── */
[data-theme="light"] nav.scrolled {
  background: rgba(255,255,255,0.92);
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #1A1A2E 30%, rgba(26,26,46,0.4));
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="light"] .hero-subtitle { opacity: 0.6; }
[data-theme="light"] .mobile-menu { background: rgba(255,255,255,0.98); }
[data-theme="light"] .real-overlay {
  background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, transparent 50%);
}
[data-theme="light"] .service-card {
  background: rgba(240,238,247,0.5);
  border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .service-desc,
[data-theme="light"] .service-list li { color: rgba(26,26,46,0.5); }
[data-theme="light"] .why-point-text { color: rgba(26,26,46,0.5); }
[data-theme="light"] .process-step-text { color: rgba(26,26,46,0.45); }
[data-theme="light"] .stat-item { border-right-color: rgba(0,0,0,0.06); }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .form-group select option { background: #F0EEF7; }
[data-theme="light"] .zone-tag {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
  color: var(--gray);
}
[data-theme="light"] .contact-zones {
  background: rgba(240,238,247,0.5);
  border-color: rgba(232,97,74,0.15);
}
[data-theme="light"] .btn-slide-text { color: var(--white); }
[data-theme="light"] .btn-secondary { border-color: rgba(26,26,46,0.2); }
[data-theme="light"] .btn-secondary:hover {
  background: rgba(26,26,46,0.05);

}
[data-theme="light"] .btn-slide::before {
  background: rgba(39, 39, 96, 0.24);

}
[data-theme="light"] .footer-links a { color: rgba(26,26,46,0.4); }
[data-theme="light"] .footer-copy { color: rgba(26,26,46,0.25); }
[data-theme="light"] .hamburger span { background: var(--white); }
[data-theme="light"] #stats,
[data-theme="light"] #why,
[data-theme="light"] #process {
  border-top-color: rgba(232,97,74,0.15);
  border-bottom-color: rgba(232,97,74,0.15);
}

/* ─── THEME TOGGLE ─── */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  color: var(--white);

  transition: opacity 0.3s, color 0.3s;
  margin-left: 24px;
}
.theme-toggle:hover { opacity: 1; }
.toggle-track {
  width: 36px; height: 20px;
  border-radius: 10px;
  background: var(--white);
  position: relative;
  transition: background 0.3s;
}
.theme-toggle.dark .toggle-track { background: rgb(255, 255, 255); }
.toggle-knob {
  width: 16px; height: 16px;
  background: var(--coral);
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  transition: transform 0.3s cubic-bezier(0.23,1,0.32,1);
}
.theme-toggle.dark .toggle-knob { transform: translateX(16px); }
.theme-toggle svg {
  width: 16px; height: 16px;
  transition: opacity 0.3s;
}
.theme-toggle .sun-icon { opacity: 0.4; }
.theme-toggle .moon-icon { opacity: 0.4; }
.theme-toggle.light .sun-icon { opacity: 1; }
.theme-toggle.dark .moon-icon { opacity: 1; }

@media (max-width: 768px) {
  .theme-toggle { margin-left: 0; }
}

/* ═══════════════════════════════════════════
   MAP CARD
   ═══════════════════════════════════════════ */
.map-card {
  background: var(--violet-dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.23,1,0.32,1), box-shadow 0.5s;
}
.map-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(232,97,74,0.15);
}
.map-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
#map {
  width: 100%;
  height: 280px;
  background: #0E0B1F;
}
.map-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.map-pin-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pinPulse 2s ease-in-out infinite;
}
.map-pin-pulse svg {
  filter: drop-shadow(0 0 8px rgba(232,97,74,0.6));
}
@keyframes pinPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.2); opacity: 0.8; }
}

/* Leaflet map pin override */
.map-pin-div {
  background: none;
  border: none;
  filter: drop-shadow(0 2px 8px rgba(232,97,74,0.5));
  animation: mapPinBounce 2s ease-in-out infinite;
}
@keyframes mapPinBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

[data-theme="light"] .map-card {
  background: var(--violet-dark);
}

/* ─── SOCIAL CONTACT ─── */
.contact-social {
  padding: 24px 28px;
  background: rgba(45,27,105,0.2);
  border: 1px solid rgba(232,97,74,0.15);
  border-radius: 2px;
}
.contact-social-title {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
}
.contact-social-links {
  display: flex;
  gap: 10px;
}
.contact-social-link {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s;
  text-decoration: none;
}
.contact-social-link:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
  transform: translateY(-3px);
}
[data-theme="light"] .contact-social {
  background: rgba(240,238,247,0.5);
  border-color: rgba(232,97,74,0.15);
}
[data-theme="light"] .contact-social-link {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
  color: var(--gray);
}
[data-theme="light"] .contact-social-link:hover {
  background: var(--coral);
  color: #fff;
}

/* ─── SOCIAL FOOTER ─── */
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: all 0.3s;
  text-decoration: none;
}
.footer-social-link:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
  transform: translateY(-3px);
}
[data-theme="light"] .footer-social-link {
  color: rgba(26,26,46,0.4);
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .footer-social-link:hover {
  background: var(--coral);
  color: #fff;
}

/* ═══════════════════════════════════════════
   CHAT WIDGET
   ═══════════════════════════════════════════ */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--coral);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 24px rgba(232,97,74,0.4);
  transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
}
.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(232,97,74,0.5);
}
.chat-toggle svg {
  transition: transform 0.3s;
}
.chat-icon-close {
  display: none;
}
.chat-widget.open .chat-icon-open {
  display: none;
}
.chat-widget.open .chat-icon-close {
  display: block;
}

.chat-panel {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 360px;
  max-height: 520px;
  background: var(--violet-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.35s cubic-bezier(0.23,1,0.32,1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.chat-widget.open .chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--coral);
  flex-shrink: 0;
}
.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-header-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.chat-header-status {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-header-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
}
.chat-header-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 4px;
}
.chat-header-close:hover { opacity: 1; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(232,97,74,0.3); border-radius: 2px; }

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}
.chat-msg-user {
  align-self: flex-end;
  align-items: flex-end;
}
.chat-msg-bot {
  align-self: flex-start;
  align-items: flex-start;
}
.chat-msg-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
}
.chat-msg-bot .chat-msg-bubble {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-bottom-left-radius: 2px;
}
.chat-msg-user .chat-msg-bubble {
  background: var(--coral);
  color: #fff;
  border-bottom-right-radius: 2px;
}
.chat-msg-time {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
  padding: 0 4px;
}

.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  outline: none;
  resize: none;
  max-height: 120px;
  transition: border-color 0.3s;
}
.chat-input:focus {
  border-color: var(--coral);
}
.chat-input::placeholder {
  color: rgba(255,255,255,0.25);
}
.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--coral);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}
.chat-send:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(232,97,74,0.4);
}

/* ─── CHAT RESPONSIVE ─── */
@media (max-width: 480px) {
  .chat-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  .chat-widget {
    bottom: 16px;
    right: 16px;
  }
  .chat-widget.open .chat-toggle {
    display: none;
  }
}

/* ─── MAP RESPONSIVE ─── */
@media (max-width: 768px) {
  #map {
    height: 200px;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1212px) {
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 11px; letter-spacing: 1px; }
}
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-layout { grid-template-columns: 1fr; gap: 60px; }
  .logo-container { width: 240px; height: 240px; }
  .contact-layout { grid-template-columns: 1fr; gap: 60px; }
  .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-timeline::before { display: none; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-close { display: none; }
  #themeToggle { display: none; }
  .mobile-menu.open ~ nav .hamburger { display: none !important; }
  .mobile-menu.open ~ nav .mobile-close { display: flex !important; }
}
/* ─── PRELOADER ─── */
.preloader {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark);
  transition: opacity 0.6s, visibility 0.6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-content { text-align: center; }
.preloader-logo { height: 80px; margin-bottom: 32px; filter: drop-shadow(0 0 20px rgba(232,97,74,0.3)); }
.preloader-bar {
  width: 200px; height: 3px; background: rgba(255,255,255,0.06);
  border-radius: 2px; overflow: hidden; margin: 0 auto;
}
.preloader-fill {
  width: 0%; height: 100%; background: var(--coral);
  border-radius: 2px; animation: preloaderFill 1.5s ease-in-out forwards;
}
@keyframes preloaderFill {
  0% { width: 0%; }
  50% { width: 55%; }
  100% { width: 100%; }
}

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed; bottom: 100px; right: 28px; z-index: 9998;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--coral); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden;
  transform: translateY(16px); transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
  box-shadow: 0 4px 20px rgba(232,97,74,0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(232,97,74,0.5); }
@media (max-width: 480px) {
  .back-to-top { bottom: 80px; right: 16px; width: 42px; height: 42px; }
}

@media (max-width: 768px) {
  nav { padding: 18px 28px; }
  nav.scrolled { padding: 14px 28px; }
  .container { padding: 0 28px; }
  section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .real-grid { display: flex; flex-direction: column; }
  .real-item { width: 100%; }
  .footer-layout { flex-direction: column; gap: 28px; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .real-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .process-timeline { grid-template-columns: 1fr; }
}
