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

:root {
  --primary: #6C5CE7;
  --primary-2: #00D2FF;
  --gradient: linear-gradient(135deg, #6C5CE7 0%, #00D2FF 100%);
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --surface-alt: #EFF1F8;
  --neutral: #DCE0EE;
  --navy: #0E1526;
  --navy-2: #182238;
  --heading: #12172B;
  --gray: #5B6478;
  --gray-light: #333B55;
  --muted: #9AA1B8;
  --white: #FFFFFF;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 20px 50px rgba(31,41,74,0.12);
  --transition: 0.45s cubic-bezier(.4,0,.2,1);
  --transition-fast: 0.25s cubic-bezier(.4,0,.2,1);
  --header-h: 84px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--gray-light);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: default;
}

h1, h2, h3, h4, h5 {
  font-family: 'Sora', sans-serif;
  color: var(--heading);
  line-height: 1.2;
  font-weight: 700;
}

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

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--neutral); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============ CUSTOM CURSOR ============ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
}
.cursor-dot { width: 8px; height: 8px; background: var(--primary); }
.cursor-ring { width: 34px; height: 34px; border: 1.5px solid rgba(108,92,231,0.5); }
.cursor-dot.visible, .cursor-ring.visible { opacity: 1; }
.cursor-ring.grow { width: 60px; height: 60px; background: rgba(108,92,231,0.1); }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 1001;
  background: rgba(18,23,43,0.06);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gradient);
  transition: width 0.1s linear;
}

/* ============ PRELOADER ============ */
#preloader {
  position: fixed; inset: 0;
  background: var(--surface);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo { position: relative; width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; }
.logo-mark { width: 52px; display: flex; align-items: center; justify-content: center; animation: pulseLogo 1.4s ease-in-out infinite; }
.logo-mark img { width: 100%; height: auto; display: block; }
@keyframes pulseLogo { 0%, 100% { opacity: 0.7; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.06); } }
.loader-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(108,92,231,0.15);
  border-top-color: var(--primary-2);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn i { transition: transform var(--transition-fast); font-size: 0.85em; }
.btn:hover i { transform: translateX(4px); }
.btn-primary {
  background: var(--gradient);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 10px 30px rgba(108,92,231,0.3);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 14px 36px rgba(0,167,204,0.35); transform: translateY(-3px); }
.btn-outline {
  border: 1.5px solid rgba(18,23,43,0.14);
  color: var(--heading);
  background: rgba(18,23,43,0.02);
}
.btn-outline:hover { border-color: var(--primary); background: rgba(108,92,231,0.07); color: var(--primary); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--heading); box-shadow: 0 10px 26px rgba(14,21,38,0.18); }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14,21,38,0.26); }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }
.play-badge {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
  color: #fff;
}

.btn-ripple { position: relative; }
.ripple-span {
  position: absolute;
  border-radius: 50%;
  background: rgba(108,92,231,0.35);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(3); opacity: 0; } }

/* ============ REVEAL ANIMATIONS ============ */
.reveal { opacity: 0; transition: opacity 0.9s cubic-bezier(.4,0,.2,1), transform 0.9s cubic-bezier(.4,0,.2,1); }
.reveal[data-reveal="fade-up"] { transform: translateY(50px); }
.reveal[data-reveal="fade-right"] { transform: translateX(-60px); }
.reveal[data-reveal="fade-left"] { transform: translateX(60px); }
.reveal.revealed { opacity: 1; transform: translate(0,0); }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 22px 0;
  transition: var(--transition-fast);
  background: transparent;
}
.navbar.scrolled {
  padding: 14px 0;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(18,23,43,0.08);
  border-bottom: 1px solid rgba(18,23,43,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; }
.brand-icon {
  height: 34px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-icon img {
  height: 100%; width: auto; display: block;
  filter: drop-shadow(0 2px 8px rgba(108,92,231,0.3));
  transition: transform var(--transition-fast);
}
.brand:hover .brand-icon img { transform: scale(1.08) rotate(-4deg); }
.brand-text { font-weight: 700; font-size: 1.2rem; color: var(--heading); }
.brand-text em { font-style: normal; font-weight: 400; color: var(--gray); margin-left: 3px; font-size: 0.95rem; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-size: 0.94rem; font-weight: 500; color: var(--gray-light);
  position: relative; padding: 6px 0; transition: color var(--transition-fast);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gradient);
  transition: width var(--transition-fast);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { flex-shrink: 0; }
.nav-cta-mobile { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  z-index: 1002;
}
.hamburger span { display: block; width: 100%; height: 2px; background: var(--heading); border-radius: 2px; transition: var(--transition-fast); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(10,14,26,0.45);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0; visibility: hidden;
  transition: var(--transition-fast);
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  padding: calc(var(--header-h) + 40px) 0 60px;
  overflow: hidden;
  background: radial-gradient(ellipse at top, #EEEAFE 0%, var(--bg) 60%);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(18,23,43,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,23,43,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 10%, transparent 70%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  z-index: 0;
  animation: blobFloat 14s ease-in-out infinite;
}
.blob-1 { width: 480px; height: 480px; background: #6C5CE7; top: -120px; right: -100px; }
.blob-2 { width: 380px; height: 380px; background: #00D2FF; bottom: -140px; left: -80px; animation-delay: -4s; }
.blob-3 { width: 300px; height: 300px; background: #FF6CAB; top: 40%; left: 55%; opacity: 0.2; animation-delay: -8s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-25px, 25px) scale(0.95); }
}

.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(108,92,231,0.08);
  border: 1px solid rgba(108,92,231,0.2);
  padding: 8px 18px; border-radius: 50px;
  margin-bottom: 26px;
}
.dot-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-2); position: relative; }
.dot-pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--primary-2); animation: pulseRing 1.6s ease-out infinite;
}
@keyframes pulseRing { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-title { font-size: clamp(2.4rem, 5.2vw, 4.2rem); margin-bottom: 22px; letter-spacing: -0.02em; }
.gradient-text {
  background: var(--gradient);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero-sub { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--gray-light); margin-bottom: 18px; font-weight: 500; }
.typed-wrap { color: var(--heading); font-weight: 700; }
#typedText { border: none; }
.typed-cursor { color: var(--primary-2); animation: blink 0.8s steps(1) infinite; font-weight: 400; }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc { max-width: 520px; margin-bottom: 36px; color: var(--gray); }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 60px; }

.hero-scroll-indicator { display: flex; flex-direction: column; align-items: center; gap: 10px; width: fit-content; color: var(--gray); }
.mouse { width: 26px; height: 42px; border: 2px solid rgba(18,23,43,0.2); border-radius: 14px; display: flex; justify-content: center; padding-top: 6px; }
.wheel { width: 4px; height: 8px; background: var(--primary-2); border-radius: 2px; animation: mouseScroll 1.6s ease infinite; }
@keyframes mouseScroll { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
.hero-scroll-indicator small { font-size: 0.75rem; letter-spacing: 0.05em; }

/* ============ MARQUEE ============ */
.marquee-section { padding: 50px 0; border-top: 1px solid rgba(18,23,43,0.08); border-bottom: 1px solid rgba(18,23,43,0.08); }
.marquee-label { text-align: center; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-bottom: 24px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marqueeScroll 26s linear infinite; }
.marquee-track span { font-family: 'Sora', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--muted); white-space: nowrap; transition: color var(--transition-fast); }
.marquee-track span:hover { color: var(--primary); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ STATS ============ */
.stats { padding: 90px 0 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  text-align: center; padding: 30px 16px; border-radius: var(--radius);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--surface-alt) 100%);
  border: 1px solid rgba(18,23,43,0.07);
  box-shadow: 0 10px 30px rgba(31,41,74,0.06);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.stat-card:hover { transform: translateY(-8px); border-color: rgba(108,92,231,0.3); box-shadow: var(--shadow); }
.stat-card h3 { font-size: clamp(2rem, 4vw, 2.6rem); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card p { color: var(--gray); margin-top: 6px; font-size: 0.92rem; }

/* ============ SECTION HEAD / TAGS ============ */
.section-tag {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 18px; letter-spacing: -0.01em; }
.section-desc { color: var(--gray); font-size: 1.05rem; max-width: 560px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head { max-width: 640px; margin: 0 auto 60px; }

/* ============ ABOUT ============ */
.about { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.about-visual { position: relative; }
.about-card-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.mock-window { background: var(--surface-alt); border: 1px solid rgba(18,23,43,0.07); border-radius: var(--radius-lg); padding: 20px; }
.mock-dots { display: flex; gap: 7px; margin-bottom: 20px; }
.mock-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--neutral); }
.mock-dots span:nth-child(1) { background: #FF6C6C; }
.mock-dots span:nth-child(2) { background: #FFB100; }
.mock-dots span:nth-child(3) { background: #21C173; }
.mock-line { height: 12px; border-radius: 6px; background: var(--neutral); margin-bottom: 12px; }
.mock-line.l1 { width: 70%; }
.mock-line.l2 { width: 100%; }
.mock-line.l3 { width: 45%; margin-bottom: 24px; }
.mock-chart { display: flex; align-items: flex-end; gap: 12px; height: 120px; }
.mock-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: var(--gradient); opacity: 0.9; animation: barGrow 1.4s cubic-bezier(.4,0,.2,1) both; }
@keyframes barGrow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

.floating-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid rgba(18,23,43,0.07);
  padding: 12px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading);
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
  animation: floatUpDown 5s ease-in-out infinite;
}
.floating-badge i { color: var(--primary); }
.badge-1 { top: 10%; right: -8%; animation-delay: 0s; }
.badge-2 { bottom: 8%; left: -8%; animation-delay: -2.5s; }
@keyframes floatUpDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.check-list { margin: 26px 0 34px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; color: var(--gray-light); }
.check-list i { color: var(--primary); margin-top: 3px; }

/* ============ SERVICES ============ */
.services { padding: 100px 0 120px; background: var(--surface-alt); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  padding: 40px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(18,23,43,0.06);
  box-shadow: 0 10px 30px rgba(31,41,74,0.05);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}
.service-card:hover::before { opacity: 0.05; }
.service-card:hover { transform: translateY(-10px); border-color: rgba(108,92,231,0.3); box-shadow: var(--shadow); }
.service-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--primary);
  margin-bottom: 22px;
  position: relative; z-index: 1;
  transition: var(--transition-fast);
}
.service-card:hover .service-icon { background: var(--gradient); color: #fff; transform: rotate(-8deg) scale(1.05); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; position: relative; z-index: 1; }
.service-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 20px; position: relative; z-index: 1; }
.service-link { font-size: 0.9rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.service-link i { transition: transform var(--transition-fast); font-size: 0.8em; }
.service-card:hover .service-link i { transform: translateX(5px); }

/* ============ PROCESS ============ */
.process { padding: 60px 0 120px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.process-step {
  padding: 34px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(18,23,43,0.06);
  box-shadow: 0 10px 26px rgba(31,41,74,0.05);
  position: relative;
  transition: var(--transition-fast);
}
.process-step:hover { border-color: rgba(0,183,217,0.35); transform: translateY(-6px); box-shadow: var(--shadow); }
.process-num {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
  opacity: 0.9;
}
.process-step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { color: var(--gray); font-size: 0.9rem; }

/* ============ PORTFOLIO ============ */
.portfolio { padding: 100px 0 120px; background: var(--surface-alt); }
.portfolio-filters { display: flex; justify-content: center; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid rgba(18,23,43,0.14);
  background: var(--surface);
  color: var(--gray-light);
  font-weight: 600; font-size: 0.9rem;
  transition: var(--transition-fast);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--gradient); color: #fff; border-color: transparent; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 14px 34px rgba(31,41,74,0.1);
  transition: transform 0.6s ease, opacity 0.4s ease;
}
.portfolio-item.hide { display: none; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(.4,0,.2,1); }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,11,18,0.95) 10%, rgba(8,11,18,0.1) 70%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
  opacity: 0; transition: opacity var(--transition-fast);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay .tag { align-self: flex-start; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-2); background: rgba(0,210,255,0.12); padding: 5px 14px; border-radius: 50px; margin-bottom: 10px; }
.portfolio-overlay h4 { font-size: 1.15rem; color: #fff; }
.view-btn {
  position: absolute; top: 22px; right: 22px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transform: translateY(-10px);
  opacity: 0;
  transition: var(--transition-fast);
}
.portfolio-item:hover .view-btn { transform: translateY(0); opacity: 1; }
.view-btn:hover { background: var(--gradient); }

/* ============ TESTIMONIALS ============ */
.testimonials { padding: 60px 0 120px; }
.testimonial-tabs { display: flex; justify-content: center; gap: 14px; margin-bottom: 54px; flex-wrap: wrap; }
.tab-btn {
  padding: 13px 28px;
  border-radius: 50px;
  border: 1px solid rgba(18,23,43,0.14);
  background: var(--surface);
  color: var(--gray-light);
  font-weight: 600; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 10px;
  transition: var(--transition-fast);
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 10px 26px rgba(108,92,231,0.3); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.testimonial-slider { max-width: 780px; margin: 0 auto; position: relative; }
.testimonial-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.testimonial-track { display: flex; transition: transform 0.7s cubic-bezier(.65,0,.35,1); }
.testimonial-slide {
  min-width: 100%;
  text-align: center;
  padding: 56px 60px;
  background: linear-gradient(160deg, #FFFFFF, var(--surface-alt));
  border: 1px solid rgba(18,23,43,0.07);
  position: relative;
  overflow: hidden;
  opacity: 0.4;
  transform: scale(0.94);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.testimonial-slide.active-slide { opacity: 1; transform: scale(1); }
.testimonial-slide::before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: -18px; left: 34px;
  font-size: 110px;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}
.testimonial-slide::after {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 64px; height: 3px; border-radius: 0 0 8px 8px;
  background: var(--gradient);
}
.stars { position: relative; z-index: 1; color: #FFB100; letter-spacing: 4px; font-size: 1.1rem; margin-bottom: 22px; text-shadow: 0 2px 10px rgba(255,177,0,0.25); }
.quote { position: relative; z-index: 1; font-size: 1.28rem; color: var(--heading); font-weight: 500; line-height: 1.6; margin-bottom: 32px; font-family: 'Sora', sans-serif; }
.author { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 14px; }
.author img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 3px rgba(0,210,255,0.35), 0 0 24px rgba(108,92,231,0.25);
}
.author h5 { font-size: 1rem; }
.author span { font-size: 0.85rem; color: var(--gray); }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 34px; }
.slider-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(18,23,43,0.14);
  background: var(--surface);
  color: var(--heading);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
.slider-btn:hover { background: var(--gradient); border-color: transparent; color: #fff; transform: scale(1.1); box-shadow: 0 10px 26px rgba(108,92,231,0.35); }
.slider-dots { display: flex; align-items: center; gap: 9px; }
.slider-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--neutral); cursor: pointer; transition: var(--transition-fast); }
.slider-dots span:hover { background: var(--muted); }
.slider-dots span.active { background: var(--gradient); width: 26px; border-radius: 6px; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5/4;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.video-card:hover img { transform: scale(1.08); }
.video-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,11,18,0.9), rgba(8,11,18,0.15) 60%); }
.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: var(--transition-fast);
}
.video-card:hover .play-btn { background: var(--gradient); border-color: transparent; transform: translate(-50%,-50%) scale(1.12); }
.video-card-info { position: absolute; bottom: 20px; left: 22px; z-index: 2; }
.video-card-info h5 { color: #fff; font-size: 1rem; }
.video-card-info span { font-size: 0.82rem; color: rgba(255,255,255,0.75); }
.video-note { text-align: center; color: var(--gray); font-size: 0.82rem; margin-top: 26px; }
.video-note code { color: var(--primary); }

/* ============ VIDEO MODAL ============ */
.video-modal {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.video-modal.open { opacity: 1; visibility: visible; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(4,6,12,0.85); backdrop-filter: blur(6px); }
.video-modal-content {
  position: relative;
  width: min(880px, 92vw);
  background: var(--navy-2);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.4s ease;
}
.video-modal.open .video-modal-content { transform: scale(1); opacity: 1; }
.video-modal-player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.video-modal-player video, .video-modal-player iframe { width: 100%; height: 100%; display: block; border: none; }
.video-modal-meta { padding: 20px 26px; }
.video-modal-meta h5, .video-modal-meta h4 { color: #fff; font-size: 1.05rem; }
.video-modal-meta span { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.video-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: var(--transition-fast);
}
.video-modal-close:hover { background: #FF5C6C; transform: rotate(90deg); }

/* ============ CTA BANNER ============ */
.cta-banner {
  margin: 0 24px;
  border-radius: var(--radius-lg);
  background: var(--gradient);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1220px;
  margin-left: auto; margin-right: auto;
  box-shadow: 0 30px 70px rgba(108,92,231,0.25);
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 34px; }

/* ============ OFFICES ============ */
.offices { padding: 100px 0 60px; }
.offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.office-card {
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(18,23,43,0.07);
  box-shadow: 0 10px 30px rgba(31,41,74,0.06);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.office-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.office-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(108,92,231,0.25); }
.office-card:hover::before { transform: scaleX(1); }
.office-flag { display: inline-block; font-size: 2rem; margin-bottom: 14px; line-height: 1; }
.office-region { display: block; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--heading); margin-bottom: 12px; }
.office-address { color: var(--gray); font-size: 0.92rem; line-height: 1.6; margin-bottom: 18px; min-height: 68px; }
.office-phone {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.95rem; color: var(--heading);
  margin-bottom: 14px;
  transition: color var(--transition-fast);
}
.office-phone i {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-alt); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0;
  transition: var(--transition-fast);
}
.office-phone:hover { color: var(--primary); }
.office-phone:hover i { background: var(--gradient); color: #fff; }
.office-directions {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--primary);
  padding-top: 14px; border-top: 1px solid rgba(18,23,43,0.07);
}
.office-directions i { font-size: 0.75em; transition: transform var(--transition-fast); }
.office-directions:hover i { transform: translate(2px, -2px); }

/* ============ CONTACT ============ */
.contact { padding: 130px 0 120px; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; }
.contact-list { margin: 30px 0; }
.contact-list li { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--gray-light); font-size: 0.98rem; }
.contact-list li a { transition: color var(--transition-fast); }
.contact-list li a:hover { color: var(--primary); }
.contact-list i { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-alt); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(18,23,43,0.12);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--heading);
  transition: var(--transition-fast);
}
.social-links a:hover { background: var(--gradient); border-color: transparent; color: #fff; transform: translateY(-4px); }

.contact-form { background: var(--surface); border: 1px solid rgba(18,23,43,0.07); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { position: relative; margin-bottom: 26px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 16px 4px 10px;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(18,23,43,0.16);
  color: var(--heading);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group label {
  position: absolute; left: 4px; top: 16px;
  color: var(--gray);
  font-size: 1rem;
  pointer-events: none;
  transition: var(--transition-fast);
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
  top: -2px; font-size: 0.75rem; color: var(--primary);
}
.form-group input:not(:focus):invalid:not(:placeholder-shown) { border-color: #E23D4D; }
.form-error { display: none; color: #D9364B; font-size: 0.78rem; margin-top: 6px; }
.form-group.error input, .form-group.error textarea { border-color: #E23D4D; }
.form-group.error .form-error { display: block; }

.btn-loader { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.contact-form.sending .btn-text { display: none; }
.contact-form.sending .btn-loader { display: inline-block; }
.contact-form.sending button[type="submit"] { pointer-events: none; opacity: 0.8; }

.form-success {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(22,166,114,0.08);
  border: 1px solid rgba(22,166,114,0.25);
  color: #14915F;
  font-size: 0.9rem;
  align-items: center; gap: 10px;
}
.form-success.show { display: flex; animation: fadeIn 0.4s ease; }

/* ============ FOOTER ============ */
.footer { background: var(--navy); padding-top: 80px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer .brand-text { color: #fff; }
.footer .brand-text em { color: rgba(255,255,255,0.55); }
.footer .brand-icon img { filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.footer-brand p { color: rgba(255,255,255,0.55); margin: 18px 0 22px; font-size: 0.92rem; max-width: 280px; }
.footer .social-links a { border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.85); }
.footer .social-links a:hover { background: var(--gradient); color: #fff; }
.footer-col h5 { font-size: 1rem; margin-bottom: 22px; color: #fff; }
.footer-col a { display: block; color: rgba(255,255,255,0.55); margin-bottom: 13px; font-size: 0.92rem; transition: var(--transition-fast); }
.footer-col a:hover { color: var(--primary-2); padding-left: 4px; }
.footer-newsletter p { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-bottom: 18px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1; padding: 13px 16px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.14);
  background: var(--navy-2); color: #fff; font-size: 0.88rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { outline: none; border-color: var(--primary-2); }
.newsletter-form button {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
.newsletter-form button:hover { transform: rotate(20deg) scale(1.08); }
.newsletter-success { display: none; color: #5CFFB0; font-size: 0.82rem; margin-top: 12px; }
.newsletter-success.show { display: block; animation: fadeIn 0.4s ease; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom-inner p { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-bottom-inner i { color: #FF5C6C; }

/* ============ BACK TO TOP ============ */
#backToTop {
  position: fixed; bottom: 30px; right: 30px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--gradient);
  color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(108,92,231,0.4);
  z-index: 900;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: var(--transition-fast);
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { transform: translateY(-6px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-visual { max-width: 480px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 82vw); height: 100vh;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    transition: right var(--transition);
    z-index: 1001;
    border-left: 1px solid rgba(18,23,43,0.08);
    box-shadow: -10px 0 40px rgba(31,41,74,0.14);
  }
  .nav-links.open { right: 0; }
  .nav-links .nav-link { width: 100%; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(18,23,43,0.07); }
  .nav-links .nav-cta-mobile { display: inline-flex; margin-top: 20px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }
  .hero { padding-top: calc(var(--header-h) + 30px); text-align: left; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .services-grid, .process-grid, .portfolio-grid, .video-grid, .offices-grid { grid-template-columns: 1fr; }
  .office-address { min-height: 0; }
  .testimonial-slide { padding: 44px 26px; }
  .quote { font-size: 1.1rem; }
  .testimonial-slide::before { font-size: 80px; top: -10px; left: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-form { padding: 30px 24px; }
  .cta-banner { padding: 56px 26px; margin: 0 14px; }
  .badge-1, .badge-2 { position: static; margin-top: 16px; width: fit-content; animation: none; }
  .about-visual { display: flex; flex-direction: column; gap: 0; }
  #backToTop { right: 18px; bottom: 18px; width: 44px; height: 44px; }
}
