/* Aurora Systems — Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;600;700;800&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap');

:root {
  --bg: #ffffff;
  --bg-2: #f4f6fb;
  --bg-dark: #0a0c14;
  --fg: #0a0c14;
  --fg-muted: #5a6070;
  --fg-light: #9aa0b0;
  --accent: #2541e8;
  --accent-end: #00e5c8;
  --accent-hover: #1a32d4;
  /* gradient stops from logo */
  --grad-start: #2541e8;
  --grad-end: #00e5c8;
  --accent-gradient: linear-gradient(135deg, #2541e8, #00e5c8);
  --white: #ffffff;
  --border: rgba(10,12,20,0.09);
  --border-dark: rgba(10,12,20,0.16);
  --radius: 4px;
  --radius-lg: 12px;
  --nav-h: 72px;
  --font-display: 'League Spartan', sans-serif;
  --font-header: 'League Spartan', sans-serif;
  --font-body: 'Satoshi', sans-serif;
  --max-w: 1200px;
  --section-pad: clamp(80px, 10vw, 140px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ── TYPOGRAPHY ─────────────────────────────────────── */
.display-1 {
  font-family: var(--font-header);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.display-2 {
  font-family: var(--font-header);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.display-3 {
  font-family: var(--font-header);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
}
.eyebrow {
  font-family: var(--font-header);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.body-lg { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.65; color: var(--fg-muted); }
.body-sm { font-size: 15px; line-height: 1.6; color: var(--fg-muted); }

/* ── LAYOUT ─────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

section { padding: var(--section-pad) 0; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--fg);
  color: var(--white);
  border-color: var(--fg);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-dark);
}
.btn-outline:hover {
  border-color: var(--fg);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--accent-gradient);
  color: var(--white);
  border: none;
}
.btn-accent:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* gradient text utility */
.grad-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* Arrow button */
.btn-arrow::after {
  content: '→';
  transition: transform 0.18s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ── NAVIGATION ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(245,242,238,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.nav-logo {
  font-family: var(--font-header);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-mark svg { width: 18px; height: 18px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-header);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.15s;
  position: relative;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
  background: none;
  border: none;
  font-family: var(--font-header);
  padding: 0;
}
.nav-dropdown-toggle:hover { color: var(--fg); }
.nav-dropdown-toggle svg { transition: transform 0.2s; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-width: 240px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  font-family: var(--font-header);
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: all 0.12s;
}
.nav-dropdown-item:hover { background: var(--bg); color: var(--fg); }

/* Mobile menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: all 0.2s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 32px clamp(20px, 5vw, 60px);
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--fg);
  color: var(--white);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(250,249,247,0.55);
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,249,247,0.4);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 15px;
  color: rgba(250,249,247,0.7);
  padding: 5px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(250,249,247,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(250,249,247,0.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  font-family: var(--font-header);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-mark {
  width: 30px;
  height: 30px;
  background: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── MARQUEE ─────────────────────────────────────────── */
.marquee-track {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee-inner {
  display: inline-flex;
  gap: 64px;
  align-items: center;
  animation: marquee 28s linear infinite;
}
.marquee-inner:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-light);
  flex-shrink: 0;
  transition: color 0.2s;
}
.marquee-item:hover { color: var(--fg); }
.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gradient);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── CARDS ─────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s ease;
}
.card:hover {
  border-color: var(--border-dark);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.card-dark {
  background: var(--fg);
  color: var(--white);
  border-color: transparent;
}
.card-dark .body-sm,
.card-dark .body-lg { color: rgba(250,249,247,0.6); }
.card-accent {
  background: var(--accent);
  color: var(--white);
  border-color: transparent;
}

/* ── DIVIDER ─────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); }

/* ── BADGE / TAG ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--bg-2);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.badge-accent {
  background: oklch(95% 0.04 35);
  color: var(--accent);
  border-color: oklch(85% 0.08 35);
}

/* ── SCROLL ANIMATION ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── ACTIVE NAV ─────────────────────────────────────── */
.page-home .nav-home,
.page-services .nav-services,
.page-portfolio .nav-portfolio,
.page-about .nav-about,
.page-contact .nav-contact { color: var(--fg) !important; }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-dropdown { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --section-pad: 64px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
