/* ============================================================
   MEC Engineering Solutions — Premium Design System
   Gold + Deep Navy | Space Grotesk headings | Premium cards
   ============================================================ */

:root {
  --bg:        #04091a;
  --bg-mid:    #070e1d;
  --bg-card:   #0b1428;
  --gold:      #d9b45b;
  --gold-lt:   #f5d58b;
  --gold-glow: rgba(217,180,91,0.28);
  --teal:      #22d3ee;
  --border:    rgba(255,255,255,0.07);
  --border-g:  rgba(217,180,91,0.18);
  --text:      #e2ecff;
  --muted:     #7a92b4;
  --r-lg: 18px;
  --r-md: 12px;
  --shadow: 0 18px 48px rgba(2,6,23,0.6);
  --ease: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ── Base overrides ── */
html { scroll-behavior: smooth; }
body { background: var(--bg) !important; color: var(--text) !important;
  font-family: 'Inter', system-ui, sans-serif !important; }
body.nav-lock { overflow: hidden; }
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700; line-height: 1.1;
}
.container { width: min(1180px, 92%); margin: 0 auto; }
a { color: inherit; text-decoration: none; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4,9,26,0.78) !important;
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(217,180,91,0.22) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
}
.nav-wrap {
  display: flex; align-items: center;
  justify-content: space-between; padding: 0.85rem 0; gap: 1rem;
}
.logo-brand { display: flex; align-items: center; gap: 0.75rem; }
.logo-brand .brand-logo { height: 42px; width: auto; border-radius: 8px; }
.logo-creds { display: flex; flex-direction: column; line-height: 1.2; }
.logo-company {
  font-family: 'Space Grotesk', sans-serif; font-weight: 800;
  font-size: clamp(15px, 1.8vw, 20px);
  background: linear-gradient(90deg, #e8f0ff, #d9b45b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.05em; }
.nav { display: flex !important; align-items: center; gap: 1.5rem; }
.nav a {
  font-weight: 500; font-size: 0.92rem; color: var(--text); opacity: 0.82;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
  transition: opacity var(--ease), border-color var(--ease);
}
.nav a:hover { opacity: 1; border-bottom-color: var(--gold); }
.btn-nav-cta {
  padding: 0.5rem 1.1rem !important; border-radius: 999px !important;
  border: 1.5px solid var(--gold) !important; color: var(--gold) !important;
  font-weight: 700 !important; font-size: 0.88rem !important;
  opacity: 1 !important; border-bottom-color: var(--gold) !important;
  transition: background var(--ease), color var(--ease) !important;
}
.btn-nav-cta:hover { background: var(--gold) !important; color: #04091a !important; }
.nav-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; background: rgba(255,255,255,0.06);
  border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
}
.nav-menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
@media (max-width: 900px) {
  .logo-creds { display: none; }
  .nav-menu-btn { display: flex; }
  .nav {
    display: none; position: fixed; top: 68px; left: 12px; right: 12px;
    background: rgba(7,14,29,0.97); backdrop-filter: blur(16px);
    border: 1px solid rgba(217,180,91,0.2); border-radius: 14px;
    padding: 1rem; flex-direction: column; gap: 0.3rem; z-index: 200;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0.9rem; border-radius: 10px; border-bottom: none; }
  .nav a:hover { background: rgba(255,255,255,0.05); }
  .btn-nav-cta { border-radius: 10px !important; text-align: center; }
}

/* ── Hero ── */
.hero-full {
  position: relative; height: 95vh; min-height: 580px; max-height: 920px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.62) contrast(1.15) saturate(1.25);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(217,180,91,0.09), transparent 65%),
    linear-gradient(to bottom, rgba(4,9,26,0.12) 0%, rgba(4,9,26,0.58) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 860px; padding: 0 1rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.32rem 0.9rem; border-radius: 999px;
  background: rgba(217,180,91,0.12); border: 1px solid rgba(217,180,91,0.3);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; color: #f5d58b;
  margin-bottom: 1.1rem; animation: fadeUp 0.7s 0.1s ease both;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.8rem); font-weight: 900;
  letter-spacing: -0.025em; margin: 0 0 0.8rem;
  animation: fadeUp 0.8s 0.25s ease both;
}
.grad-text {
  background: linear-gradient(90deg, var(--gold), var(--teal) 60%, #a78bfa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem); color: rgba(226,236,255,0.82);
  max-width: 56ch; margin: 0 auto 1.8rem;
  animation: fadeUp 0.8s 0.4s ease both;
}
.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.8s 0.55s ease both;
}
.hero-trust {
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  animation: fadeUp 0.8s 0.7s ease both;
}
.hero-trust li { font-size: 0.81rem; color: rgba(226,236,255,0.6); font-weight: 500; }
.hero-scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
}
.hero-scroll-cue span {
  display: block; width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.2); border-radius: 999px; position: relative;
}
.hero-scroll-cue span::after {
  content: ''; display: block; width: 4px; height: 8px;
  background: rgba(255,255,255,0.45); border-radius: 2px;
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  animation: bobDown 1.6s ease-in-out infinite;
}
@keyframes bobDown { 0%,100%{top:6px;opacity:1} 80%{top:18px;opacity:0} }
@keyframes fadeUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:none} }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.8rem; background: var(--gold); color: #04091a;
  font-weight: 800; font-size: 0.95rem; border-radius: 999px;
  box-shadow: 0 8px 28px var(--gold-glow); transition: all var(--ease);
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(217,180,91,0.45); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.8rem; background: rgba(255,255,255,0.08); color: var(--text);
  font-weight: 700; font-size: 0.95rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16); transition: all var(--ease);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.8rem; background: transparent; color: var(--gold);
  font-weight: 700; font-size: 0.95rem; border-radius: 999px;
  border: 1.5px solid var(--gold); transition: all var(--ease);
}
.btn-outline:hover { background: var(--gold); color: #04091a; transform: translateY(-2px); }
.footer-cta { margin-top: 1rem; display: block; text-align: center; }

/* ── Stats Strip ── */
.stats-strip {
  background: var(--bg-mid);
  border-top: 1px solid var(--border-g); border-bottom: 1px solid var(--border-g);
  padding: 2.5rem 0;
  width: 100%;
  overflow: hidden;
}
.stats-grid { 
  display: flex; 
  align-items: stretch;
  justify-content: center;
  width: 100%; 
}
.stat-item {
  flex: 1 1 0px;
  text-align: center; padding: 1.5rem 0.75rem;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: inline-block; font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--gold); line-height: 1;
}
.stat-plus { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 800; color: var(--gold); }
.stat-label { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--muted); font-weight: 500; }
@media (max-width: 700px) {
  .stats-grid { flex-wrap: wrap; }
  .stat-item { flex: 1 1 45%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.05); }
  .stat-item:nth-child(n+3) { border-bottom: none; }
}

/* ── Section Common ── */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block; padding: 0.28rem 0.85rem; border-radius: 999px;
  background: rgba(217,180,91,0.1); border: 1px solid rgba(217,180,91,0.25);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 0.7rem;
}
.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; margin: 0 0 0.6rem;
  letter-spacing: -0.015em;
}
.section-sub { color: var(--muted); max-width: 52ch; margin: 0 auto; font-size: 1rem; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.in { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { transition: none; opacity: 1; transform: none; }
}

/* ── Capabilities Cards ── */
.capabilities-section { background: var(--bg); }
.caps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width: 900px) { .caps-grid { grid-template-columns: 1fr; } }
.cap-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.75rem; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.cap-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  opacity: 0; transition: opacity var(--ease);
}
.cap-card:hover { transform: translateY(-5px); box-shadow: 0 28px 64px rgba(2,6,23,0.75); border-color: var(--border-g); }
.cap-card:hover::before { opacity: 1; }
.cap-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(217,180,91,0.1); border: 1px solid rgba(217,180,91,0.22);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.cap-icon svg { width: 22px; height: 22px; stroke: var(--gold); }
.cap-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.8rem; }
.cap-card ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.cap-card ul li {
  padding: 0.28rem 0; color: var(--muted); font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cap-card ul li:last-child { border-bottom: none; }
.cap-card ul li::before { content: '→ '; color: var(--gold); font-size: 0.78rem; }
.cap-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin: 0 0 0.75rem; }
.cap-link {
  color: var(--gold); font-size: 0.88rem; font-weight: 700;
  display: inline-block; margin-top: 0.5rem;
  transition: transform var(--ease);
}
.cap-link:hover { transform: translateX(5px); }

/* ── Why Strip ── */
.why-strip {
  background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { padding: 1.5rem 1rem; text-align: center; }
.why-ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(217,180,91,0.1); border: 1px solid rgba(217,180,91,0.2);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 0.9rem;
}
.why-ico svg { width: 24px; height: 24px; stroke: var(--gold); }
.why-item h4 { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.4rem; }
.why-item p { color: var(--muted); font-size: 0.85rem; margin: 0; line-height: 1.5; }

/* ── Services Grid ── */
.services-section { background: var(--bg-mid); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }
.svc-card-new {
  display: flex; flex-direction: column; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.svc-card-new:hover { transform: translateY(-5px); border-color: var(--border-g); box-shadow: 0 28px 64px rgba(2,6,23,0.7); }
.svc-img { height: 180px; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 0.5s ease; }
.svc-card-new:hover .svc-img img { transform: scale(1.06); }
.svc-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.svc-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(217,180,91,0.1); border: 1px solid rgba(217,180,91,0.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem;
}
.svc-icon svg { width: 18px; height: 18px; stroke: var(--gold); }
.svc-body h3 { font-size: 0.98rem; font-weight: 700; margin: 0 0 0.4rem; }
.svc-body p { color: var(--muted); font-size: 0.85rem; line-height: 1.5; margin: 0 0 auto; }
.svc-link { color: var(--gold); font-size: 0.82rem; font-weight: 700; margin-top: 0.9rem; display: block; transition: transform var(--ease); }
.svc-card-new:hover .svc-link { transform: translateX(4px); }

/* ── CTA Band ── */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a1a2e 0%, #0c1628 100%);
  border-top: 1px solid var(--border-g); border-bottom: 1px solid var(--border-g);
  padding: 4rem 0;
}
.cta-band-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 400px at 80% 50%, rgba(217,180,91,0.07), transparent 65%),
    radial-gradient(600px 300px at 10% 80%, rgba(34,211,238,0.05), transparent 60%);
}
.cta-band-inner {
  position: relative; display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-band-text h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 0.5rem; }
.cta-band-text p { color: var(--muted); margin: 0; max-width: 50ch; }
@media (max-width: 800px) { .cta-band-inner { flex-direction: column; text-align: center; } }

/* ── Clients Marquee ── */
.clients-section { background: var(--bg); padding-bottom: 0; }
.marquee-wrap {
  overflow: hidden; margin-top: 2rem;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 100%);
  padding: 2rem 0;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 3rem;
  white-space: nowrap; animation: marquee 32s linear infinite;
}
.marquee-track img {
  height: 56px; width: auto; border-radius: 0;
  filter: grayscale(0); opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}
.marquee-track img:hover { opacity: 1; transform: scale(1.06); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Projects Grid ── */
.projects-section { background: var(--bg-mid); }
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
@media (max-width: 900px) { .projects-grid { grid-template-columns: 1fr; } }
.proj-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  display: block; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.proj-card img { width: 100%; height: 280px; object-fit: cover; display: block; border-radius: 0; transition: transform 0.5s ease; }
.proj-card:hover img { transform: scale(1.06); }
.proj-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.5rem;
  background: linear-gradient(to top, rgba(4,9,26,0.92) 0%, rgba(4,9,26,0.4) 50%, transparent 100%);
  opacity: 0; transition: opacity 0.35s ease;
}
.proj-card:hover .proj-overlay { opacity: 1; }
.proj-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); background: rgba(217,180,91,0.15); border: 1px solid rgba(217,180,91,0.3);
  border-radius: 999px; padding: 0.2rem 0.7rem; display: inline-block; margin-bottom: 0.5rem;
  align-self: flex-start;
}
.proj-overlay h4 { margin: 0 0 0.5rem; font-size: 0.95rem; font-weight: 700; line-height: 1.3; }
.proj-cta { font-size: 0.82rem; font-weight: 700; color: var(--gold); }

/* ── Footer Premium Overrides ── */
footer.footer-enhanced {
  background: radial-gradient(circle at top left, #0e0e10 0%, #050508 100%) !important;
  color: #f3f3f3 !important; border-top: 2px solid var(--gold) !important;
}
footer.footer-enhanced a { color: var(--gold); }
footer.footer-enhanced a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem; padding: 2.5rem 0;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 { margin: 0 0 0.8rem; font-size: 0.9rem; color: #cfd9ec; font-family: 'Space Grotesk', sans-serif; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0.3rem 0; color: #a8b8cc; font-size: 0.88rem; }
.brand-name { margin: 0 0 0.2rem; font-size: 1rem; font-family: 'Space Grotesk', sans-serif; }
.brand-tag { margin: 0; color: #7a92b4; font-size: 0.82rem; }
.contact-list { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.contact-list a { color: var(--gold); }
address { font-style: normal; color: #8fa0bb; font-size: 0.88rem; }
.footer-bottom { border-top: 1px solid rgba(148,163,184,0.12); position: relative; z-index: 10; padding-bottom: .5rem; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; color: #6a7c95; font-size: 0.85rem; }
.footer-bottom .powered a { color: #93a3b8; }
.footer-bottom .powered a:hover { color: #fff; }

/* Footer waves */
footer.footer-enhanced .footer-waves { position: absolute; inset: auto 0 0 0; height: 100px; pointer-events: none; opacity: 0.3; }
footer.footer-enhanced { position: relative; overflow: hidden; }
footer.footer-enhanced .wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100px; animation: waveSway 12s ease-in-out infinite; }
footer.footer-enhanced .wave path { fill: var(--gold); opacity: 0.2; }
footer.footer-enhanced .wave.second { animation-duration: 16s; }
footer.footer-enhanced .wave.second path { opacity: 0.14; }
@keyframes waveSway { 0%,100%{transform:translateX(0)} 50%{transform:translateX(-1.5%)} }

/* Footer icons */
.footer-icons { display: flex; gap: 12px; align-items: center; padding: 0.75rem 0; position: relative; z-index: 2; }
.ficon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(217,180,91,0.28);
  color: #f5e7c0; transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.ficon:hover { transform: translateY(-3px) scale(1.06); background: rgba(217,180,91,0.12); box-shadow: 0 8px 24px rgba(217,180,91,0.25); }

/* WhatsApp float */
.wa-chat-btn {
  position: fixed; right: 18px; bottom: 22px; z-index: 9999;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px;
  background: #25d366; color: #fff; font-weight: 700; font-size: 0.88rem;
  box-shadow: 0 8px 28px rgba(37,211,102,0.35); transition: all var(--ease);
}
.wa-chat-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(37,211,102,0.45); }
@media (max-width:520px) { .wa-chat-btn span { display: none; } .wa-chat-btn { padding: 14px; } }

/* Back to top */
#backToTop {
  position: fixed; bottom: 82px; right: 20px; z-index: 9998;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-g);
  background: var(--bg-card); color: var(--gold); font-size: 1rem; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  transition: all var(--ease);
}
#backToTop.show { display: flex; }
#backToTop:hover { background: var(--gold); color: #04091a; }

/* ── Inner Page Hero ── */
.page-hero-inner {
  position: relative; padding: clamp(5rem,12vw,9rem) 0 clamp(3rem,6vw,5rem); overflow: hidden;
}
.page-hero-inner .hero-bg { position: absolute; inset: 0; }
.page-hero-inner .hero-bg video,
.page-hero-inner .hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.35) saturate(1.1);
}
.page-hero-inner .hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(4,9,26,0.4), rgba(4,9,26,0.85));
}
.page-hero-inner .container { position: relative; z-index: 2; }
.page-hero-inner h1 { font-size: clamp(2rem,5vw,3.5rem); font-weight: 900; margin: 0 0 .6rem; }
.page-hero-inner p { color: var(--muted); font-size: 1.05rem; max-width: 55ch; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.breadcrumbs a { color: var(--gold); }
.breadcrumbs a:hover { color: var(--gold-lt); }

/* ── Service Detail Layout ── */
.svc-detail { background: var(--bg); }
.svc-detail-grid {
  display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 2rem; align-items: start;
}
@media(max-width:900px) { .svc-detail-grid { grid-template-columns: 1fr; } }
.svc-detail-content p {
  color: var(--muted); line-height: 1.75; margin: 0 0 1rem;
}
.svc-detail-content ul {
  list-style: none; padding: 0; margin: .75rem 0 1.25rem;
}
.svc-detail-content ul li {
  padding: .4rem 0; color: var(--muted); font-size: .92rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.svc-detail-content ul li::before { content: '→ '; color: var(--gold); font-size: .82rem; }
.svc-detail-content ul li:last-child { border-bottom: none; }
.svc-detail-content h3 {
  font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .75rem;
  color: var(--text);
}
.svc-sidebar .card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow);
  transition: border-color var(--ease);
}
.svc-sidebar .card:hover { border-color: var(--border-g); }
.svc-sidebar .card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .8rem; }
.svc-sidebar .card p { color: var(--muted); font-size: .88rem; margin: 0 0 .75rem; line-height: 1.5; }
.rel-list a {
  display: block; padding: .6rem .8rem; border-radius: 10px; color: var(--text);
  border: 1px solid rgba(255,255,255,0.06); margin: .35rem 0; font-size: .88rem;
  transition: background var(--ease), border-color var(--ease);
}
.rel-list a:hover { background: rgba(217,180,91,0.06); border-color: var(--border-g); }

/* ── Image Slider (Service Pages) ── */
.svc-slider {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.svc-slider img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease;
}
.svc-slider img.active { opacity: 1; }
.svc-slider-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.svc-slider-dot {
  width: 8px; height: 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.7);
  background: rgba(4,9,26,0.4); cursor: pointer; padding: 0;
  transition: background var(--ease);
}
.svc-slider-dot.active { background: rgba(255,255,255,0.9); }

/* ── Project Detail Gallery ── */
.project-detail { background: var(--bg); }
.project-gallery {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem;
}
@media(max-width:800px) { .project-gallery { grid-template-columns: repeat(2,1fr); } }
@media(max-width:500px) { .project-gallery { grid-template-columns: 1fr; } }
.gallery-item {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); cursor: pointer;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.gallery-item:hover {
  transform: translateY(-4px); border-color: var(--border-g);
  box-shadow: 0 20px 50px rgba(2,6,23,0.7);
}
.gallery-item img {
  width: 100%; height: 220px; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: '⤢'; position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(4,9,26,0.7); color: var(--gold); font-size: 14px;
  display: grid; place-items: center; opacity: 0; transition: opacity var(--ease);
}
.gallery-item:hover::after { opacity: 1; }

/* ── Premium Lightbox ── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(4,9,26,0.95); backdrop-filter: blur(12px);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease;
}
.lightbox-overlay.open { display: flex; opacity: 1; }
.lightbox-img {
  max-width: 90vw; max-height: 85vh; border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6); object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--border-g);
  background: var(--bg-card); color: var(--gold); font-size: 1.3rem;
  cursor: pointer; display: grid; place-items: center;
  transition: all var(--ease);
}
.lightbox-close:hover { background: var(--gold); color: #04091a; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid var(--border-g); background: var(--bg-card);
  color: var(--gold); font-size: 1.2rem; cursor: pointer;
  display: grid; place-items: center; transition: all var(--ease);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); color: #04091a; }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: .88rem; font-weight: 600;
}

/* ── Service Page: Alternating Image + Text Rows ── */
.svc-split { background: var(--bg); }
.svc-split.alt { background: var(--bg-mid); }
.svc-split-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; padding: 5rem 0;
}
.svc-split.alt .svc-split-grid { direction: rtl; }
.svc-split.alt .svc-split-grid > * { direction: ltr; }
@media(max-width:900px) {
  .svc-split-grid { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
  .svc-split.alt .svc-split-grid { direction: ltr; }
}
.svc-split-img {
  position: relative; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.svc-split-img::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(217,180,91,0.08) 0%, transparent 60%);
  z-index: 1; pointer-events: none;
}
.svc-split-img img {
  width: 100%; display: block; aspect-ratio: 4/3;
  object-fit: cover; transition: transform .6s ease;
}
.svc-split-img:hover img { transform: scale(1.04); }
.svc-split-img-badge {
  position: absolute; bottom: 16px; left: 16px; z-index: 2;
  background: rgba(4,9,26,0.82); backdrop-filter: blur(8px);
  border: 1px solid var(--border-g); border-radius: 10px;
  padding: .4rem .85rem; font-size: .78rem; font-weight: 700;
  color: var(--gold); letter-spacing: .04em;
}
.svc-split-text {}
.svc-split-text .section-tag { margin-bottom: .75rem; }
.svc-split-text h2 { font-size: clamp(1.5rem,3.2vw,2.2rem); font-weight: 800; margin: 0 0 1rem; }
.svc-split-text p { color: var(--muted); line-height: 1.78; margin: 0 0 .9rem; }
.svc-split-checklist {
  list-style: none; padding: 0; margin: 1.25rem 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem;
}
@media(max-width:600px) { .svc-split-checklist { grid-template-columns: 1fr; } }
.svc-split-checklist li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; color: var(--text); font-weight: 500; padding: .3rem 0;
}
.svc-split-checklist li::before {
  content: '✓'; color: var(--gold); font-weight: 800; font-size: .95rem;
  flex-shrink: 0;
}

/* ── Service Page: Animated Circle Stats ── */
.svc-stats { background: var(--bg-mid); padding: 5rem 0; }
.svc-stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem;
}
@media(max-width:1000px) { .svc-stats-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:500px) { .svc-stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.stat-circle {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  text-align: center;
}
.stat-ring-wrap {
  position: relative; width: 110px; height: 110px;
}
.stat-ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.stat-ring-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 6; }
.stat-ring-fg {
  fill: none; stroke: var(--gold); stroke-width: 6;
  stroke-linecap: round; transition: stroke-dashoffset 1.5s cubic-bezier(.4,0,.2,1);
}
.stat-ring-val {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.stat-ring-val .num {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.45rem; font-weight: 800;
  color: var(--gold-lt); line-height: 1;
}
.stat-ring-val .unit { font-size: .75rem; color: var(--muted); font-weight: 600; }
.stat-label { font-size: .82rem; font-weight: 600; color: var(--muted); max-width: 9rem; line-height: 1.3; }

/* ── Service Page: Icon Feature Cards ── */
.svc-features { background: var(--bg); padding: 5rem 0; }
.svc-features-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2.5rem;
}
@media(max-width:900px) { .svc-features-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:560px) { .svc-features-grid { grid-template-columns: 1fr; } }
.feat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.75rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.feat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity var(--ease);
}
.feat-card:hover { transform: translateY(-5px); border-color: var(--border-g); box-shadow: 0 24px 60px rgba(2,6,23,0.7), 0 0 0 1px var(--border-g); }
.feat-card:hover::before { opacity: 1; }
.feat-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(217,180,91,0.15), rgba(217,180,91,0.04));
  border: 1px solid var(--border-g); display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 1.1rem;
}
.feat-card h4 { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; color: var(--text); }
.feat-card p { font-size: .86rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* ── Service Page: Full-Width Image Banner ── */
.svc-banner {
  position: relative; height: clamp(200px, 35vw, 420px); overflow: hidden;
}
.svc-banner img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.5) saturate(1.1);
}
.svc-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,9,26,0.88) 0%, rgba(4,9,26,0.1) 100%);
  display: flex; align-items: center;
}
.svc-banner-text { padding: 0 calc((100% - min(1180px,92%))/2 + 24px); }
.svc-banner-text h2 { font-size: clamp(1.5rem,3.5vw,2.5rem); margin: 0 0 .5rem; }
.svc-banner-text p { color: rgba(226,236,255,0.75); max-width: 44ch; font-size: 1rem; }

/* ── Service Page: Process Steps ── */
.svc-process { background: var(--bg); padding: 5rem 0; }
.process-steps {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 3rem;
  position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 34px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold), transparent);
  opacity: .3;
}
@media(max-width:900px) { .process-steps { grid-template-columns: repeat(2,1fr); gap: 2rem; } .process-steps::before { display: none; } }
@media(max-width:500px) { .process-steps { grid-template-columns: 1fr; } }
.process-step { text-align: center; padding: 0 1rem; }
.process-num {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(135deg, rgba(217,180,91,0.15), rgba(217,180,91,0.03));
  border: 2px solid var(--border-g); display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--gold);
  position: relative; z-index: 2; transition: all var(--ease);
}
.process-step:hover .process-num { background: var(--gold); color: #04091a; border-color: var(--gold); box-shadow: 0 0 30px var(--gold-glow); }
.process-step h4 { font-size: .95rem; font-weight: 700; margin: 0 0 .45rem; }
.process-step p { font-size: .83rem; color: var(--muted); line-height: 1.5; }

/* ── Service Page: Masonry-style Gallery ── */
.svc-gallery-section { background: var(--bg-mid); padding: 5rem 0; }
.svc-gallery-heading { text-align: center; margin-bottom: 2.5rem; }
.svc-gallery-masonry {
  column-count: 3; column-gap: 1rem;
}
@media(max-width:900px) { .svc-gallery-masonry { column-count: 2; } }
@media(max-width:500px) { .svc-gallery-masonry { column-count: 1; } }
.svc-gallery-masonry .gallery-item { break-inside: avoid; margin-bottom: 1rem; display: block; }
.svc-gallery-masonry .gallery-item img { height: auto; }

/* ── Enhanced Clients Marquee ── */
.clients-section { background: var(--bg); padding-bottom: 2rem; }
.clients-section .section-header { margin-bottom: 1rem; }
.marquee-wrap {
  overflow: hidden; margin-top: 1.5rem;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  background: linear-gradient(180deg, rgba(7,14,29,0.5) 0%, rgba(11,20,40,0.8) 100%);
  border-top: 1px solid var(--border-g); border-bottom: 1px solid var(--border-g);
  padding: 2.5rem 0; position: relative;
}
.marquee-wrap::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 100% at 50% 50%, rgba(217,180,91,0.04), transparent 70%);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 4rem;
  white-space: nowrap; animation: marquee 35s linear infinite;
}
.marquee-track img {
  height: 52px; width: auto; border-radius: 0;
  filter: grayscale(0.3) brightness(0.9); opacity: 0.7;
  transition: all .35s ease;
}
.marquee-track img:hover {
  opacity: 1; filter: grayscale(0) brightness(1.1) drop-shadow(0 0 12px rgba(217,180,91,0.3));
  transform: scale(1.12);
}
