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

:root {
  --dark:     #2d3a48;
  --dark2:    #3a4f63;
  --dark3:    #445e75;
  --orange:   #65cff4;
  --orange2:  #4bbde8;
  --gray:     #797D8B;
  --gray2:    #CBCBCC;
  --gray3:    #D7D3D0;
  --white:    #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--gray2);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── NAV ─────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 110px;
  background: rgba(45,58,72,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 90px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--gray2);
  letter-spacing: 0.5px;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); border-bottom-color: var(--orange); }

.nav-cta {
  background: var(--orange) !important;
  color: var(--dark) !important;
  padding: 10px 22px !important;
  border-radius: 10px;
  border-bottom: none !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--orange2) !important; }

.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--gray2) !important;
  border-bottom: none !important;
  transition: background 0.2s, color 0.2s !important;
}

.nav-social:hover {
  background: #1877F2 !important;
  color: var(--white) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── MOBILE NAV ──────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 110px; left: 0; right: 0; bottom: 0;
  background: var(--dark2);
  z-index: 998;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--orange); }
.mobile-nav .btn-primary { border-bottom: none; margin-top: 16px; text-align: center; }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--orange);
  color: var(--dark);
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
  letter-spacing: 0.5px;
}

.btn-primary:hover { background: var(--orange2); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  display: inline-block;
  letter-spacing: 0.5px;
}

.btn-outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

.btn-white {
  background: var(--white);
  color: var(--orange);
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 17px;
  padding: 18px 40px;
  border-radius: 12px;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}

.btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

/* ─── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 72px 48px 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(101,207,244,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner { max-width: 1200px; margin: 0 auto; }

.page-hero .section-tag { margin-bottom: 12px; }

.page-hero h1 {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 900;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── SECTION UTILITIES ───────────────────────────────────── */
section { padding: 100px 48px; }

.inner { max-width: 1200px; margin: 0 auto; }

.section-tag {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.7;
}

.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ─── CTA BANNER ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, #4bbde8 100%);
  padding: 80px 48px;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--dark);
}

.cta-banner p {
  font-size: 18px;
  color: rgba(45,58,72,0.85);
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
footer {
  background: #1d2c3a;
  padding: 70px 48px 32px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 56px;
}

.footer-brand p {
  font-size: 14px;
  color: #6D6D6D;
  line-height: 1.7;
  max-width: 260px;
  margin: 16px 0 24px;
}

.footer-social { display: flex; gap: 12px; }

.footer-social a {
  width: 38px;
  height: 38px;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 16px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-social a:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }

.footer-col h5 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.footer-links a {
  font-size: 14px;
  color: #6D6D6D;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--orange); }

.footer-links li.muted {
  font-size: 14px;
  color: #6D6D6D;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6D6D6D;
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── BEFORE & AFTER MODAL ───────────────────────────────── */
.ba-modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ba-modal.open { opacity: 1; pointer-events: all; }

.ba-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,28,38,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ba-modal-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  background: var(--dark2);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transform: scale(0.93) translateY(20px);
  transition: transform 0.38s cubic-bezier(0.34,1.4,0.64,1);
}

.ba-modal.open .ba-modal-container { transform: scale(1) translateY(0); }

.ba-modal-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: #111;
}

.ba-modal-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--dark);
}

.ba-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ba-modal-img-wrap:hover img { transform: scale(1.03); }

.ba-modal-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(45,58,72,0.88);
  color: var(--gray2);
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.ba-modal-label.after { background: rgba(101,207,244,0.9); color: var(--dark); }

.ba-modal-footer {
  padding: 22px 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ba-modal-tag {
  display: inline-block;
  background: rgba(101,207,244,0.1);
  border: 1px solid rgba(101,207,244,0.25);
  color: var(--orange);
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.ba-modal-text h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.ba-modal-text p { font-size: 14px; color: var(--gray); }

.ba-modal-nav { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.ba-modal-counter {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--gray);
  min-width: 44px;
  text-align: center;
}

.ba-modal-btn {
  width: 42px;
  height: 42px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.ba-modal-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--dark); }
.ba-modal-btn:disabled { opacity: 0.3; cursor: default; }

.ba-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(30,40,55,0.9);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.ba-modal-close:hover { background: var(--orange); color: var(--dark); }

@media (max-width: 700px) {
  .ba-modal-images { grid-template-columns: 1fr; }
  .ba-modal-img-wrap { aspect-ratio: 4/3; }
  .ba-modal-footer { flex-direction: column; align-items: flex-start; }
}

/* ─── PAGE TRANSITIONS ────────────────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

#page-transition.is-entering {
  pointer-events: all;
}

.pt-layer {
  position: absolute;
  inset: 0;
  /* default: covering the page before JS fires */
}

.pt-layer-1 { background: #65cff4; }
.pt-layer-2 { background: #3a4f63; }

/* Reveal the page on load (wipe off to the right) */
#page-transition.is-leaving .pt-layer-2 {
  animation: ptReveal 0.55s cubic-bezier(0.77, 0, 0.175, 1) 0s both;
}
#page-transition.is-leaving .pt-layer-1 {
  animation: ptReveal 0.55s cubic-bezier(0.77, 0, 0.175, 1) 0.08s both;
}

/* Cover the page on exit (wipe in from the left) */
#page-transition.is-entering .pt-layer-1 {
  animation: ptCover 0.45s cubic-bezier(0.77, 0, 0.175, 1) 0s both;
}
#page-transition.is-entering .pt-layer-2 {
  animation: ptCover 0.45s cubic-bezier(0.77, 0, 0.175, 1) 0.07s both;
}

@keyframes ptReveal {
  from { transform: translateX(0); }
  to   { transform: translateX(105%); }
}

@keyframes ptCover {
  from { transform: translateX(-105%); }
  to   { transform: translateX(0); }
}

/* ─── SCROLL ANIMATIONS ───────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 72px 24px; }
  .page-hero { padding: 56px 24px 48px; }
  .cta-banner { padding: 64px 24px; }
  footer { padding: 56px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
