/* ════════════════════════════════════════════════════════════
   MULTIPELSTACK — SHARED DESIGN SYSTEM
   Premium motion design: Apple / Stripe quality
════════════════════════════════════════════════════════════ */

/* ═══ GOOGLE FONTS ═══ */
/* Syne + DM Sans loaded in each page's <head> */

/* ═══ DESIGN TOKENS ═══ */
:root {
  --navy:        #07162a;
  --navy-mid:    #0c1f3f;
  --navy-hi:     #132850;
  --navy-card:   rgba(12,31,63,0.6);
  --gold:        #D4AF37;
  --gold-lt:     #f0cc5a;
  --gold-dk:     #a8871a;
  --gold-glow:   rgba(212,175,55,0.15);
  --red:         #E63946;
  --red-dk:      #b82833;
  --red-glow:    rgba(230,57,70,0.15);
  --white:       #ffffff;
  --muted:       rgba(255,255,255,0.55);
  --faint:       rgba(255,255,255,0.06);
  --border:      rgba(255,255,255,0.08);
  --border-gold: rgba(212,175,55,0.22);
  --r-sm:        8px;
  --r-md:        14px;
  --r-lg:        22px;
  --r-xl:        32px;
  --grad-gold:   linear-gradient(135deg, var(--gold-lt), var(--gold-dk));
  --grad-red:    linear-gradient(135deg, var(--red), var(--red-dk));
  --grad-text:   linear-gradient(110deg, var(--gold-lt) 0%, var(--gold) 40%, var(--red) 100%);
  --transition-smooth: cubic-bezier(.16,1,.3,1);
}

/* ═══ RESET + BASE ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--red)); border-radius: 4px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ═══ LAYOUT ═══ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
section { padding: 120px 0; position: relative; z-index: 1; }

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4 { font-family: 'none'; line-height: 1.1; }
.display { font-size: clamp(3rem, 6.5vw, 5.5rem); font-weight: 800; letter-spacing: -0.03em; }
.h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.h3 { font-size: 1.25rem; font-weight: 700; }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  /* Animate the gradient */
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.label-tag {
  display: inline-block; font-size: .7rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
p.body-text { color: var(--muted); line-height: 1.85; font-size: .97rem; }

/* Section header */
.sec-head { text-align: center; margin-bottom: 80px; }
.sec-head .label-tag { display: block; }
.sec-head p { max-width: 540px; margin: 18px auto 0; color: var(--muted); line-height: 1.8; }
.sec-line {
  width: 60px; height: 3px; margin: 20px auto 0;
  background: var(--grad-text); border-radius: 3px;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
}

/* ═══ NAVBAR ═══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 90px; display: flex; align-items: center;
  transition: background .4s, height .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(7,22,42,.92);
  backdrop-filter: blur(28px) saturate(1.8);
  height: 72px;
  border-color: var(--border);
}
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--grad-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 800;
  color: var(--navy); transition: transform .4s var(--transition-smooth); flex-shrink: 0;
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.logo-text { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 800; }
.logo-text span { color: var(--gold); }

.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.65);
  transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1.5px;
  background: var(--gold); transform: scaleX(0);
  transition: transform .25s var(--transition-smooth); transform-origin: left;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-hire {
  background: var(--grad-gold);
  color: var(--navy) !important; padding: 10px 26px;
  border-radius: 50px; font-weight: 700 !important;
  font-size: .86rem !important;
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.nav-hire::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
  opacity: 0; transition: opacity .2s;
}
.nav-hire:hover::before { opacity: 1; }
.nav-hire:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,175,55,.45) !important; }
.nav-hire::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1000; }
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .35s; display: block; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(7,22,42,.97); backdrop-filter: blur(28px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  transform: translateX(100%); transition: transform .5s cubic-bezier(.77,0,.175,1);
}
.mobile-menu.open { transform: none; }
.mobile-menu a {
  font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800;
  color: rgba(255,255,255,.6); transition: color .2s, transform .2s;
}
.mobile-menu a:hover { color: var(--gold); transform: translateX(8px); }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 32px; border-radius: 50px;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: .92rem;
  cursor: pointer; border: none;
  transition: transform .22s var(--transition-smooth), box-shadow .22s;
  position: relative; overflow: hidden;
}

/* Shimmer effect */
.btn::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
}
.btn:hover::before { left: 150%; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-red  { background: var(--grad-red); color: #fff; }
.btn-red:hover  { box-shadow: 0 16px 36px rgba(230,57,70,.45); }
.btn-gold { background: var(--grad-gold); color: var(--navy); }
.btn-gold:hover { box-shadow: 0 16px 36px rgba(212,175,55,.42); }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.18); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

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

/* Glow button */
.btn-glow {
  background: var(--grad-gold); color: var(--navy);
  box-shadow: 0 0 20px rgba(212,175,55,.3);
  animation: glowPulse 2.5s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100%{ box-shadow: 0 0 20px rgba(212,175,55,.3); } 50%{ box-shadow: 0 0 40px rgba(212,175,55,.6), 0 0 80px rgba(212,175,55,.2); } }

/* ═══ KEYFRAME ANIMATIONS ═══ */
@keyframes fadeSlideUp   { from { opacity:0; transform:translateY(32px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeSlideDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeSlideLeft { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeSlideRight{ from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:translateX(0); } }
@keyframes zoomIn        { from { opacity:0; transform:scale(.92); } to { opacity:1; transform:scale(1); } }
@keyframes fadeIn        { from { opacity:0; } to { opacity:1; } }

/* ═══ SCROLL REVEAL ═══ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s var(--transition-smooth), transform .8s var(--transition-smooth);
}
.reveal.up { opacity: 1; transform: none; }

.reveal-l {
  opacity: 0; transform: translateX(-44px);
  transition: opacity .8s var(--transition-smooth), transform .8s var(--transition-smooth);
}
.reveal-l.up { opacity: 1; transform: none; }

.reveal-r {
  opacity: 0; transform: translateX(44px);
  transition: opacity .8s var(--transition-smooth), transform .8s var(--transition-smooth);
}
.reveal-r.up { opacity: 1; transform: none; }

.reveal-zoom {
  opacity: 0; transform: scale(.92);
  transition: opacity .8s var(--transition-smooth), transform .8s var(--transition-smooth);
}
.reveal-zoom.up { opacity: 1; transform: scale(1); }

.reveal-delay-1 { transition-delay: .1s !important; }
.reveal-delay-2 { transition-delay: .22s !important; }
.reveal-delay-3 { transition-delay: .36s !important; }
.reveal-delay-4 { transition-delay: .5s !important; }
.reveal-delay-5 { transition-delay: .65s !important; }

/* ═══ PROGRESS BAR ═══ */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: var(--grad-text);
  background-size: 200% 100%;
  width: 0%;
  transition: width .1s;
  animation: gradientShift 3s ease-in-out infinite;
}

/* ═══ CURSOR GLOW (desktop only) ═══ */
#cursor-glow {
  position: fixed; pointer-events: none; z-index: 9998;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity .3s;
  opacity: 0;
}

/* ═══ FLOATING WHATSAPP ═══ */
.float-wa {
  position: fixed; bottom: 28px; right: 28px; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; cursor: pointer;
  box-shadow: 0 6px 28px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  animation: floaty 3s ease-in-out infinite;
}
.float-wa:hover { transform: scale(1.12); box-shadow: 0 12px 40px rgba(37,211,102,.6); }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ═══ SCROLL TO TOP ═══ */
.scroll-top {
  position: fixed; bottom: 92px; right: 28px; z-index: 800;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-mid); border: 1px solid var(--border);
  color: var(--gold); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .3s, transform .3s, background .2s;
  opacity: 0; transform: translateY(10px); pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: none; pointer-events: all; }
.scroll-top:hover { background: rgba(212,175,55,.12); transform: translateY(-3px); }

/* ═══ FOOTER ═══ */
footer {
  background: rgba(255,255,255,.012);
  border-top: 1px solid var(--border);
  padding: 80px 0 36px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-mark {
  width: 38px; height: 38px; border-radius: 9px; background: var(--grad-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: .9rem; font-weight: 800; color: var(--navy);
}
.footer-logo-text { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 800; }
.footer-brand p { font-size: .84rem; color: var(--muted); max-width: 270px; line-height: 1.8; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: .88rem; font-weight: 700; margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a {
  font-size: .83rem; color: rgba(255,255,255,.42);
  transition: color .2s, transform .2s; display: inline-block;
}
.footer-col ul a:hover { color: var(--gold); transform: translateX(4px); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.3); }
.socials { display: flex; gap: 10px; }
.soc {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--faint); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; cursor: pointer;
  transition: all .25s var(--transition-smooth);
}
.soc:hover { background: var(--gold-glow); border-color: rgba(212,175,55,.3); transform: translateY(-4px); }

/* ═══ PAGE HERO (for inner pages) ═══ */
.page-hero {
  min-height: 50vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 130px; padding-bottom: 80px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(212,175,55,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift { to { background-position: 60px 60px; } }
.page-hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.08) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2)} }
.page-hero-inner { position: relative; z-index: 1; }

/* ═══ ANIMATED GRADIENT BACKGROUND UTILITY ═══ */
.animated-bg {
  background: linear-gradient(-45deg, var(--navy), var(--navy-mid), var(--navy-hi), var(--navy));
  background-size: 400% 400%;
  animation: bgShift 12s ease infinite;
}
@keyframes bgShift {
  0%  { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

/* ═══ PAGE TRANSITIONS ═══ */
.page-transition {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  transform: scaleX(1); transform-origin: left;
  animation: pageEnter .6s cubic-bezier(.77,0,.175,1) forwards;
}
@keyframes pageEnter { to { transform: scaleX(0); transform-origin: right; } }

/* ═══ PARALLAX ═══ */
.parallax-wrap { overflow: hidden; }
.parallax-el { will-change: transform; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  section { padding: 84px 0; }
  .nav-links, .nav-hire { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .float-wa, .scroll-top { bottom: 18px; right: 18px; }
  .scroll-top { bottom: 82px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
}
