/* =============================
   EILA MEDIA — GLOBAL STYLES
   ============================= */
:root {
  --bg: #F8F8FC;
  --bg-alt: #FFFFFF;
  --bg-dark: #0D0D1A;
  --bg-dark-2: #13131F;
  --primary: #5B3FD9;
  --primary-light: #7C5CE4;
  --primary-dark: #3D29A0;
  --secondary: #2563EB;
  --accent: #A78BFA;
  --text: #1A1A2E;
  --text-muted: #6B6B8D;
  --text-light: #9999B8;
  --white: #FFFFFF;
  --border: #E5E5F0;
  --border-dark: #1E1E30;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow: 0 4px 24px rgba(91,63,217,0.10);
  --shadow-lg: 0 16px 48px rgba(91,63,217,0.18);
  --transition: 0.4s cubic-bezier(0.16,1,0.3,1);
  --nav-height: 72px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg: #0D0D1A;
  --bg-alt: #13131F;
  --text: #F0F0FF;
  --text-muted: #8888AA;
  --border: #1E1E30;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

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

/* ===== PAGE TRANSITION ===== */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 9999;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

.page-transition.enter { animation: ptEnter 0.5s cubic-bezier(0.16,1,0.3,1) forwards; }
.page-transition.exit  { animation: ptExit  0.5s cubic-bezier(0.16,1,0.3,1) forwards; }

@keyframes ptEnter {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}
@keyframes ptExit {
  from { transform: scaleY(1); transform-origin: top; }
  to   { transform: scaleY(0); transform-origin: top; }
}

/* ===== LOADER ===== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s, visibility 0.6s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}
.loader-logo span { color: var(--primary-light); }
.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: var(--primary-light);
  width: 0%;
  animation: loaderFill 1.2s ease forwards;
}
@keyframes loaderFill {
  to { width: 100%; }
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#navbar.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 1px 24px rgba(0,0,0,0.06);
  backdrop-filter: blur(12px);
}

[data-theme="dark"] #navbar.scrolled {
  background: rgba(13,13,26,0.92);
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
  transition: color 0.3s;
}
#navbar.scrolled .nav-logo { color: var(--text); }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
#navbar.scrolled .nav-links a { color: var(--text-muted); }
#navbar.scrolled .nav-links a:hover, #navbar.scrolled .nav-links a.active { color: var(--text); }

.nav-actions { display: flex; gap: 12px; align-items: center; }

.btn-nav {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  background: var(--primary);
  color: var(--white);
  transition: all 0.3s;
}
.btn-nav:hover { background: var(--primary-light); transform: translateY(-1px); }

.dark-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.15);
}
#navbar.scrolled .dark-toggle { color: var(--text-muted); border-color: var(--border); }
.dark-toggle:hover { background: rgba(255,255,255,0.1); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
#navbar.scrolled .hamburger span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: min(340px, 90vw);
  height: 100vh;
  background: var(--bg-dark);
  z-index: 999;
  padding: 100px 40px 40px;
  transition: right 0.5s cubic-bezier(0.16,1,0.3,1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -20px 0 60px rgba(0,0,0,0.3);
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, padding-left 0.3s;
}
.mobile-menu a:hover { color: var(--accent); padding-left: 8px; }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }

/* ===== SCROLL PROGRESS ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1001;
  width: 0%;
  transition: width 0.1s;
}

/* ===== BACK TO TOP ===== */
#back-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(91,63,217,0.4);
}
#back-top.visible { opacity: 1; transform: translateY(0); }
#back-top:hover { background: var(--primary-light); transform: translateY(-3px); }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 24px; left: 24px; right: 24px;
  max-width: 560px;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  z-index: 900;
  display: flex;
  gap: 20px;
  align-items: flex-end;
  box-shadow: 0 8px 48px rgba(0,0,0,0.4);
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
#cookie-banner.show { transform: translateY(0); }
.cookie-text { flex: 1; }
.cookie-text h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.cookie-text p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.cookie-actions { display: flex; gap: 8px; white-space: nowrap; }
.btn-cookie-accept {
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-cookie-accept:hover { background: var(--primary-light); }
.btn-cookie-decline {
  padding: 10px 16px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-cookie-decline:hover { background: rgba(255,255,255,0.12); }

/* ===== SECTION DEFAULTS ===== */
section { padding: 100px 5%; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 20px;
}
.section-title span { color: var(--primary); }
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}
.section-head { margin-bottom: 64px; }
.section-head.center { text-align: center; }
.section-head.center .section-subtitle { margin: 0 auto; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(91,63,217,0.35);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-white {
  background: white;
  color: var(--primary);
}
.btn-white:hover {
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* Ripple */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}
@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5% 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0D0D1A 0%, #1A0D40 50%, #0D1A3A 100%);
  z-index: 0;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1600&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,26,1) 0%, rgba(13,13,26,0.6) 40%, transparent 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 6px 16px 6px 10px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-eyebrow span { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.75); }

.hero-title {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -3px;
  color: white;
  margin-bottom: 24px;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent), #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-typewriter {
  font-size: clamp(18px, 2.5vw, 24px);
  color: rgba(255,255,255,0.65);
  margin-bottom: 44px;
  font-weight: 400;
  min-height: 32px;
}
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 0.8s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  right: 5%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  z-index: 2;
}
.scroll-line {
  width: 48px; height: 1px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  to { left: 100%; }
}

/* ===== MARQUEE ===== */
.marquee-section {
  padding: 0;
  background: var(--primary);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 20s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 40px;
  border-right: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.marquee-item svg { opacity: 0.7; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: white;
}
.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.service-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 20px;
  transition: gap 0.2s;
}
.service-link:hover { gap: 10px; }

/* first-visit-only loader */
html.visited #loader { display: none !important; }

/* ===== SHRINK HERO GALLERY (special effect) ===== */
.gallery-scroll-section {
  position: relative;
  height: 300vh;
  /* no overflow:hidden — it would break position:sticky on the child */
}
.gallery-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
}
.gallery-center-img {
  position: absolute;
  width: 80vw;
  max-width: 900px;
  height: 65vh;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.1s, border-radius 0.3s;
  z-index: 2;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.gallery-side-imgs {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  pointer-events: none;
}
.gallery-side-img {
  position: absolute;
  width: 26vw;
  height: 50vh;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
}
.gallery-side-img.left-1  { left: 2%;  transform: translateX(-40px); }
.gallery-side-img.left-2  { left: 30%; top: 5%; transform: translateY(-40px); }
.gallery-side-img.right-1 { right: 2%;  transform: translateX(40px); }
.gallery-side-img.right-2 { right: 30%; bottom: 5%; transform: translateY(40px); }

.gallery-text-overlay {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s;
}
.gallery-text-overlay h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
}

/* ===== HORIZONTAL SCROLL ===== */
.h-scroll-section {
  position: relative;
  height: 400vh;
}
.h-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}
.h-scroll-track {
  display: flex;
  gap: 32px;
  padding: 0 5%;
  transition: transform 0.05s linear;
  will-change: transform;
}
.h-scroll-card {
  min-width: 380px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.h-scroll-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.h-scroll-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.h-scroll-card-body { padding: 28px 28px 32px; }
.h-scroll-card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 10px;
}
.h-scroll-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.h-scroll-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.h-scroll-header {
  padding: 80px 5% 0;
  position: relative;
  z-index: 1;
}

/* ===== STATS ===== */
.stats-section {
  background: var(--bg-dark);
  padding: 80px 5%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -3px;
  background: linear-gradient(135deg, var(--accent), #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 15px; color: rgba(255,255,255,0.5); font-weight: 500; }

/* ===== PROCESS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 40px; left: 0; right: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.process-step {
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.process-num {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 24px;
}
.process-step h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.process-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--bg-alt); }
.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.testimonial-slide {
  min-width: 100%;
  padding: 0 5%;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.testimonial-card {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px; left: 40px;
  font-size: 120px;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.08;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  color: #F59E0B;
}
.testimonial-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 28px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: white;
}
.author-name { font-size: 15px; font-weight: 700; color: var(--text); }
.author-role { font-size: 13px; color: var(--text-muted); }

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.testimonials-nav button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.testimonials-nav button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(91,63,217,0.05);
}
.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.testimonials-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}
.testimonials-dot.active {
  width: 24px;
  border-radius: 3px;
  background: var(--primary);
}

/* ===== FAQ ACCORDION ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}
.faq-item.open .faq-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), padding 0.3s;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 24px; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), #7C3AED);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 5% 80px;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(167,139,250,0.25) 0%, transparent 70%);
}
.cta-banner h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -1px;
  position: relative;
}
.cta-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  position: relative;
}
.cta-banner .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-dark);
  color: white;
  padding: 80px 5% 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin: 16px 0 24px;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(167,139,250,0.08);
}
.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-bottom-links a:hover { color: white; }

/* ===== CONTACT FORM ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-info { padding-top: 8px; }
.contact-info h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.contact-info p { font-size: 16px; color: var(--text-muted); margin-bottom: 40px; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-detail-icon {
  width: 48px; height: 48px;
  background: rgba(91,63,217,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-detail-text p:first-child { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
.contact-detail-text p:last-child { font-size: 15px; font-weight: 600; color: var(--text); }

/* Form */
.form-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91,63,217,0.1);
}
.form-group input.error,
.form-group textarea.error { border-color: #EF4444; }
.form-group .error-msg {
  font-size: 12px;
  color: #EF4444;
  margin-top: 6px;
  display: none;
}
.form-group.has-error .error-msg { display: block; }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: var(--text);
}
.form-success svg { color: var(--primary); margin: 0 auto 16px; }
.form-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: var(--text-muted); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 60px) 5% 80px;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-2));
  position: relative;
  overflow: hidden;
}
.page-hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 25% 50%, rgba(91,63,217,0.15) 0%, transparent 50%),
                    radial-gradient(circle at 75% 50%, rgba(37,99,235,0.1) 0%, transparent 50%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  color: white;
  letter-spacing: -2px;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 540px;
  line-height: 1.7;
}

/* ===== BOOKING PAGE ===== */
.booking-embed {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 700px;
}
.booking-embed iframe {
  width: 100%;
  min-height: 700px;
  border: none;
  display: block;
}

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.team-card {
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-img {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--primary);
  padding: 3px;
  background: linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box,
              linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  border: 3px solid transparent;
}
.team-name { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 12px; }
.team-bio { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== PORTFOLIO GRID ===== */
.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-dark);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.portfolio-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.portfolio-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.portfolio-item:hover .portfolio-img { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,26,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { font-size: 18px; font-weight: 700; color: white; margin-bottom: 4px; }
.portfolio-overlay span { font-size: 12px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.pt-nav { padding-top: var(--nav-height); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .h-scroll-card { min-width: 320px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  section { padding: 72px 5%; }
  .nav-links, .nav-actions .btn-nav { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 56px 32px; margin: 0 4% 64px; }
  .hero-title { letter-spacing: -2px; }
  .process-steps::before { display: none; }
  .process-step { padding: 0 0 32px; }
  .testimonial-slide { flex-direction: column; }
  .gallery-center-img { width: 90vw; }
  .gallery-side-img { display: none; }
  .h-scroll-section { height: 500vh; }
  #back-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}
