/* ==========================================================================
   NexovianTec -- style.css
   Base styles, design tokens, layout, and components
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --primary: #0F172A;
  --primary-soft: #1E293B;
  --secondary: #190F6E;
  --accent: #4C43C7;
  --royal-blue: #190F6E;
  --royal-blue-light: #2B1F92;
  --lime: #AFEB00;
  --lime-light: #C9F94D;
  --bg-light: #F8FAFC;
  --text-dark: #111827;
  --success: #10B981;

  --text-on-dark: #E2E8F0;
  --text-on-dark-muted: #94A3B8;

  /* Light section palette */
  --white: #FFFFFF;
  --light-blue: #EEF5FF;
  --light-blue-2: #E6F0FF;
  --light-gray: #f8fafc;
  --text-heading-light: #0F172A;
  --text-muted-light: #52607A;

  --gradient-primary: var(--royal-blue);
  --gradient-dark: linear-gradient(160deg, #0B1220 0%, #0F172A 55%, #14213D 100%);

  --font-display: 'Sora', sans-serif;
  --font-body: 'Sora', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.35);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.25);

  --container-width: 1600px;
  --transition-fast: 0.25s cubic-bezier(.4,0,.2,1);
  --transition-mid: 0.5s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

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

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

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.01em;
}

.section-desc {
  margin-top: 18px;
  max-width: 620px;
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
}

.section-head { margin-bottom: 56px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--lime);
  color: var(--royal-blue);
  box-shadow: 0 12px 30px rgba(175, 235, 0, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(175, 235, 0, 0.5); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

.cta-section .btn-outline {
  color: var(--text-heading-light);
  border-color: rgba(15,23,42,0.25);
}
.cta-section .btn-outline:hover { border-color: var(--royal-blue); color: var(--royal-blue); }

.cta-section .btn-primary {
  background: var(--royal-blue);
  color: #fff;
  box-shadow: 0 12px 30px rgba(25,15,110,0.35);
}
.cta-section .btn-primary:hover { box-shadow: 0 18px 40px rgba(25,15,110,0.45); }

.btn-sm { padding: 11px 22px; font-size: 13.5px; }
.btn-block { width: 100%; }

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: scale(0);
  pointer-events: none;
  animation: ripple 0.6s ease-out forwards;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(15,23,42,0.06);
  transition: padding var(--transition-mid), box-shadow var(--transition-mid);
}

.site-header.scrolled {
  padding: 12px 0;
  box-shadow: 0 8px 30px rgba(15,23,42,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 42px; width: auto; }

.main-nav .nav-list {
  display: flex;
  gap: 38px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-heading-light);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active-link { color: var(--royal-blue); }
.nav-link:hover::after, .nav-link.active-link::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 20px; }

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--light-gray);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-muted-light);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.lang-btn.active {
  background: var(--royal-blue);
  color: #fff;
}

.lang-btn:not(.active):hover { color: var(--royal-blue); }

.lang-toggle-mobile {
  margin-top: 8px;
  background: rgba(255,255,255,0.08);
}
.lang-toggle-mobile .lang-btn { color: rgba(255,255,255,0.7); }
.lang-toggle-mobile .lang-btn.active { background: var(--lime); color: var(--royal-blue); }
.lang-toggle-mobile .lang-btn:not(.active):hover { color: #fff; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  z-index: 1300;
}
.hamburger span {
  height: 2px;
  width: 100%;
  background: var(--text-heading-light);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.hamburger.open span { background: #fff; }
.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-nav {
  position: fixed;
  inset: 0;
  background: var(--gradient-dark);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(.65,0,.35,1);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav-list { display: flex; flex-direction: column; gap: 26px; text-align: center; }
.mobile-nav-link { font-size: 26px; font-weight: 600; color: #fff; }

/* ---------- Cursor glow / progress ---------- */
.cursor-glow {
  position: fixed;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25,15,110,0.16), transparent 70%);
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: transform;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-primary);
  z-index: 2000;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 110px;
  background: var(--gradient-dark);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-tech-pattern {
  position: absolute;
  inset: -220px;
  background-image: url('../images/backgrounds/tech-circuit-pattern.svg');
  background-repeat: repeat;
  background-size: 220px 220px;
  opacity: 0.55;
  animation: techPan 40s linear infinite;
}

.hero-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.hero-gradient-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--secondary), transparent 70%);
  top: -140px; right: -100px;
}
.hero-gradient-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  bottom: -160px; left: -80px;
}

.floating-shape {
  position: absolute;
  border-radius: 30%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.shape-1 { width: 90px; height: 90px; top: 22%; left: 8%; border-radius: 50%; }
.shape-2 { width: 60px; height: 60px; top: 65%; left: 20%; transform: rotate(20deg); }
.shape-3 { width: 120px; height: 120px; top: 15%; right: 30%; border-radius: 24px; transform: rotate(-15deg); }

.hero-particles { position: absolute; inset: 0; }
.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  /* gap: 40px; */
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  min-height: calc(3 * clamp(2.4rem, 4.4vw, 3.4rem) * 1.12);
}

.typing-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

.hero-desc {
  margin-top: 26px;
  max-width: 520px;
  font-size: 1.08rem;
  color: var(--text-on-dark-muted);
}

.hero-cta-group {
  margin-top: 40px;
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-visual { position: relative; width: 100%; }
.hero-illustration {width: 100%;height: auto;filter: drop-shadow(0 30px 60px rgba(0,0,0,0.4));}

.scroll-indicator {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--text-on-dark-muted);
}
.scroll-mouse {
  display: block;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  position: relative;
}
.scroll-dot {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}

/* ---------- Stats strip (full width edge to edge) ---------- */
.stats-strip {
  width: 100%;
  background: var(--royal-blue);
}

.stats-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 56px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--lime);
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
}

/* ---------- Marquee background (word slide animation) ---------- */
.marquee-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  opacity: 0.3;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marqueeSlide 128s linear infinite;
  will-change: transform;
}

.marquee-track-reverse { animation-direction: reverse; animation-duration: 152s; }

/* Scroll-direction control: scrolling down = right to left, scrolling up = left to right */
body.scroll-down .marquee-track { animation-direction: normal; }
body.scroll-up .marquee-track { animation-direction: reverse; }

.marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 72vw, 800px);
  color: var(--text-on-dark-muted);
  letter-spacing: -0.01em;
  padding-right: 0;
}

/* Section-specific solid marquee colors */
.about .marquee-track span { color: var(--white); font-size: clamp(4rem, 72vw, 800px); }
.portfolio .marquee-track span { color: var(--light-gray); }
.cta-section .marquee-track span { color: var(--lime-light); }
.contact .marquee-track span { color: var(--light-gray); }

/* ---------- About ---------- */
.about {
  padding: 140px 0 120px;
  background: var(--light-blue);
  overflow: hidden;
}

.about-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.8fr;
  gap: 70px;
  align-items: stretch;
}

.about-text { display: flex; flex-direction: column; }

.about-lead {
  margin-top: 22px;
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.about-block { margin-top: 30px; }
.about-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
}
.about-block p { color: var(--text-on-dark-muted); max-width: 520px; }

.about-trust-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-trust-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-on-dark);
  font-size: 0.98rem;
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-size: 13px;
  flex-shrink: 0;
}

.about-visual {
  position: relative;
  display: flex;
}
.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------- Services ---------- */
.services { padding: 120px 0; background: var(--light-gray); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  background: var(--white);
  border: none;
  border-top: 5px solid var(--royal-blue);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(15,23,42,0.08);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 55px rgba(15,23,42,0.14);
}

.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  color: #000;
  margin-bottom: 26px;
}
.service-icon { width: 26px; height: 26px; }

.service-card h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--royal-blue); margin-bottom: 12px; }
.service-card p { color: var(--text-muted-light); font-size: 0.96rem; }

.card-glow {
  position: absolute;
  top: -60%; right: -30%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(25,15,110,0.06), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-mid);
}
.service-card:hover .card-glow { opacity: 1; }

/* ---------- Menu Showcase (restaurant menu boards video, full-bleed) ---------- */
.menu-showcase { padding: 0; background: var(--primary); overflow: hidden; }

.menu-video-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}

.menu-video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--primary);
}

.video-mute-toggle {
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.video-mute-toggle:hover { background: var(--royal-blue); transform: scale(1.08); }
.video-mute-toggle svg { width: 20px; height: 20px; }

.slider-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(15,23,42,0.15);
  color: var(--text-heading-light);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}
.slider-btn:hover { background: var(--gradient-primary); border-color: transparent; color: #fff; transform: scale(1.08); }

.slider-dots { display: flex; gap: 10px; }
.slider-dots .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(15,23,42,0.18);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.slider-dots .dot.active { background: var(--secondary); transform: scale(1.3); }

/* ---------- Portfolio ---------- */
.portfolio { padding: 140px 0 120px; background: var(--white); overflow: hidden; }

.portfolio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.tab-btn {
  padding: 11px 24px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(15,23,42,0.14);
  color: var(--text-muted-light);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.tab-btn:hover { color: var(--text-heading-light); border-color: rgba(15,23,42,0.3); }
.tab-btn.active { background: var(--gradient-primary); color: #fff; border-color: transparent; }

.portfolio-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: transform var(--transition-mid);
}
.portfolio-item:hover { transform: translateY(-6px); }

.portfolio-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s ease; }
.portfolio-item:hover img { transform: scale(1.08); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.92), rgba(15,23,42,0.1) 60%);
  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 .cat { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.portfolio-overlay h3 { font-family: var(--font-display); font-size: 1.1rem; color: #fff; margin-bottom: 14px; }

.view-project-btn {
  align-self: flex-start;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
}

.portfolio-item.hide { display: none; }

.portfolio-see-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  position: relative;
  z-index: 2;
}

.btn-outline-dark {
  background: transparent;
  color: var(--royal-blue);
  border: 1.5px solid rgba(25,15,110,0.3);
}
.btn-outline-dark:hover {
  background: var(--royal-blue);
  color: #fff;
  border-color: var(--royal-blue);
  transform: translateY(-3px);
}

/* ---------- Portfolio Modal ---------- */
.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.portfolio-modal.open { display: flex; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.82);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  z-index: 2;
  background: var(--primary-soft);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  max-width: 980px;
  width: 100%;
  max-height: 88vh;
  overflow: auto;
  box-shadow: var(--shadow-soft);
}

.modal-body { display: grid; grid-template-columns: 1.3fr 1fr; }
.modal-image-wrap {
  background: var(--primary);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.modal-image { width: 100%; height: auto; object-fit: contain; display: block; }

.modal-info { padding: 42px; display: flex; flex-direction: column; }
.modal-category { color: var(--accent); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.modal-title { font-family: var(--font-display); font-size: 1.6rem; color: #fff; margin-bottom: 16px; }
.modal-desc { color: var(--text-on-dark-muted); line-height: 1.75; }

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  transition: background var(--transition-fast);
}
.modal-close:hover { background: var(--secondary); }

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  transition: background var(--transition-fast);
}
.modal-nav:hover { background: var(--secondary); }
.modal-prev { left: -60px; }
.modal-next { right: -60px; }

/* ---------- Reviews ---------- */
.reviews {padding: 120px 0;background: var(--royal-blue);overflow: hidden;position: relative;}
.reviews .container { position: relative; z-index: 2; }
.reviews .marquee-track span { color: var(--royal-blue-light); font-size: clamp(5rem, 40vw, 2160px); }

.reviews-slider {overflow: hidden;/* max-width: 1180px; */margin: 0 auto;}
.reviews-track { display: flex; gap: 24px; transition: transform 0.6s cubic-bezier(.65,0,.35,1); }

.review-card {
  min-width: calc(33.333% - 16px);
  background: var(--white);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(15,23,42,0.06);
}

.review-stars { color: #FBBF24; font-size: 1.1rem; letter-spacing: 4px; margin-bottom: 22px; }
.review-text { font-size: 1.12rem; color: var(--text-heading-light); line-height: 1.75; margin-bottom: 30px; }

.review-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.review-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.review-author h4 { font-size: 15px; color: var(--text-heading-light); }
.review-author span { font-size: 13px; color: var(--text-muted-light); }

.reviews-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 40px; }
.reviews .slider-dots .dot { background: rgba(255,255,255,0.25); }
.reviews .slider-dots .dot.active { background: var(--lime); }

/* ---------- CTA ---------- */
.cta-section {
  position: relative;
  padding: 150px 0;
  background: var(--lime);
  text-align: center;
  overflow: hidden;
}

.cta-bg-anim {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 30%, rgba(25,15,110,0.06), transparent 55%),
              radial-gradient(circle at 70% 70%, rgba(25,15,110,0.05), transparent 55%);
  animation: ctaDrift 14s ease-in-out infinite alternate;
  z-index: 0;
}

.cta-inner { position: relative; z-index: 2; }

.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--text-heading-light);
  line-height: 1.15;
}

.cta-desc {
  margin: 26px auto 0;
  max-width: 560px;
  color: var(--text-muted-light);
  font-size: 1.08rem;
}

.cta-inner .hero-cta-group { justify-content: center; margin-top: 44px; }

/* ---------- Contact ---------- */
.contact { padding: 140px 0 120px; background: var(--white); overflow: hidden; }

.contact-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}

.contact-text { display: flex; flex-direction: column; }

.contact-info-list { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; align-items: center; gap: 18px; }
.info-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--light-blue-2);
  border: 1px solid rgba(15,23,42,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--secondary);
  flex-shrink: 0;
}
.contact-info-item h4 { font-size: 14px; color: var(--text-heading-light); margin-bottom: 2px; }
.contact-info-item a, .contact-info-item span { color: var(--text-muted-light); font-size: 14.5px; }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 20px 50px rgba(15,23,42,0.07);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; color: var(--text-muted-light); font-weight: 500; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--light-blue-2);
  border: 1px solid rgba(15,23,42,0.08);
  color: var(--text-heading-light);
  font-size: 14.5px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(15,23,42,0.4); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: var(--white);
}
.form-group select option { background: var(--white); color: var(--text-heading-light); }

/* ---------- JS-driven form validation states ---------- */
.form-group input.field-invalid,
.form-group textarea.field-invalid {
  border-color: #DC2626;
  background: rgba(220, 38, 38, 0.05);
}
.form-group input.field-valid,
.form-group textarea.field-valid {
  border-color: #10B981;
}

.form-error {
  display: none;
  font-size: 12.5px;
  color: #DC2626;
  font-weight: 500;
}
.form-error.visible { display: block; }

.form-note { margin-top: 16px; font-size: 12.5px; color: var(--text-muted-light); text-align: center; }
.form-note.error-summary { color: #DC2626; font-weight: 600; }
.form-note.success-summary { color: #10B981; font-weight: 600; }

/* ---------- Light section text overrides ----------
   Applied to sections with light backgrounds (about, services,
   menu-showcase, portfolio, reviews, cta-section, contact) */
.light-section .section-title { color: var(--text-heading-light); }
.light-section .section-desc { color: var(--text-muted-light); }
.light-section .section-eyebrow { color: var(--secondary); }

.light-section .about-lead { color: var(--text-muted-light); }
.light-section .about-block h3 { color: var(--text-heading-light); }
.light-section .about-block p { color: var(--text-muted-light); }
.light-section .about-trust-list li { color: var(--text-heading-light); }
.light-section .trust-icon { background: rgba(16, 185, 129, 0.15); color: #0D9467; }

/* ---------- Footer ---------- */
.site-footer { background: #0B1220; padding-top: 90px; border-top: 1px solid rgba(255,255,255,0.06); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 50px;
  padding-bottom: 70px;
}

.footer-brand img { height: 38px; margin-bottom: 20px; }
.footer-brand p { color: var(--text-on-dark-muted); font-size: 14px; max-width: 320px; line-height: 1.7; }

.footer-social { display: flex; gap: 12px; margin-top: 26px; }
.social-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.social-icon img { width: 88%; height: 88%; object-fit: contain; display: block; margin: auto; }
.social-icon:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 24px rgba(175,235,0,0.35); }

.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 22px; font-family: var(--font-display); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a, .footer-col ul li { color: var(--text-on-dark-muted); font-size: 14px; transition: color var(--transition-fast); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-col p { color: var(--text-on-dark-muted); font-size: 13.5px; margin-bottom: 18px; }

.newsletter-form { display: flex; border-radius: var(--radius-full); overflow: hidden; border: 1px solid rgba(255,255,255,0.15); }
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: #fff;
  font-size: 13.5px;
}
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
  padding: 0 18px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 16px;
}

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 24px 0; }
.footer-bottom-inner { display: flex; justify-content: center; text-align: center; }
.footer-bottom-inner p { color: var(--text-on-dark-muted); font-size: 13px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(25,15,110,0.35);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-fast);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }
