/* ═══════════════════════════════════════════════════════════
   SHAGIZ ZELALEM — GLOBAL STYLESHEET
   File: assets/css/global.css
   Covers: tokens, reset, typography, navbar, footer, buttons,
           cards, utilities, scroll-reveal, responsive
═══════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ────────────────────────────────────── */
:root {
  /* Colors */
  --void:            #0A0A0F;
  --void-2:          #0F0F1A;
  --void-3:          #141420;
  --royal-purple:    #6B21A8;
  --electric-purple: #A855F7;
  --ep-dim:          rgba(168,85,247,0.12);
  --ep-glow:         rgba(168,85,247,0.35);
  --solar-gold:      #F59E0B;
  --ember-orange:    #F97316;
  --offwhite:        #F1EEF9;
  --muted:           #7C6FA0;
  --border:          rgba(168,85,247,0.12);
  --border-hover:    rgba(168,85,247,0.4);

  /* Typography */
  --font-display:    'Helvetica Neue', 'Arial Black', Arial, sans-serif;
  --font-body:       'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:       'Space Mono', 'Courier New', monospace;

  /* Spacing scale */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   40px;
  --space-xl:   64px;
  --space-2xl:  100px;

  /* Motion */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.35s var(--ease);
  --transition-slow: 0.65s var(--ease);

  /* Layout */
  --max-width: 1160px;
  --nav-h:     72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--void);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* ── 3. TYPOGRAPHY ───────────────────────────────────────── */
.t-display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: uppercase;
}

.t-mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.t-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Section heading sizes */
.h-xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.h-lg {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

/* ── 4. GRADIENT UTILITIES ───────────────────────────────── */
.grad-text {
  background: linear-gradient(135deg, var(--electric-purple) 0%, var(--solar-gold) 55%, var(--ember-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-text {
  background: linear-gradient(90deg, var(--solar-gold), var(--ember-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 5. LAYOUT ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-2xl) 0;
}

section.alt {
  background: var(--void-2);
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--electric-purple);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--electric-purple);
  flex-shrink: 0;
}

.section-body {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 560px;
  margin-top: 12px;
}

/* ── 6. BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--royal-purple), var(--electric-purple));
  color: #fff;
  box-shadow: 0 0 20px rgba(168,85,247,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 32px rgba(168,85,247,0.55);
}

.btn-outline {
  background: transparent;
  color: var(--offwhite);
  border-color: rgba(255,255,255,0.15);
}
.btn-outline:hover {
  border-color: var(--electric-purple);
  color: var(--electric-purple);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--solar-gold), var(--ember-orange));
  color: var(--void);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(245,158,11,0.25);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 32px rgba(245,158,11,0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--electric-purple);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover {
  gap: 14px;
  color: var(--solar-gold);
}

/* ── 7. CARD BASE ────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(107,33,168,0.18);
}

/* ── 8. NAVBAR ───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), border-color var(--transition);
}

#navbar.scrolled {
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(168,85,247,0.1);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 1px;
}
.nav-logo .logo-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--offwhite);
}
.nav-logo .logo-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--electric-purple);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--electric-purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--offwhite); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  width: 36px;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--offwhite);
  transition: var(--transition);
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10,10,15,0.98);
  backdrop-filter: blur(20px);
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 8vw, 3rem);
  text-transform: uppercase;
  color: var(--offwhite);
  letter-spacing: -0.03em;
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--electric-purple); }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}
.breadcrumb a { color: var(--muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--electric-purple); }
.breadcrumb span { color: rgba(255,255,255,0.2); }
.breadcrumb .current { color: var(--electric-purple); }

/* ── 9. FOOTER ───────────────────────────────────────────── */
#footer {
  background: var(--void);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 60px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand .brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--offwhite);
  margin-bottom: 4px;
}
.footer-brand .brand-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--electric-purple);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--offwhite);
  margin-bottom: 20px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--electric-purple); }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.social-icon {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.8rem;
  color: var(--muted);
  transition: var(--transition);
  font-family: var(--font-mono);
}
.social-icon:hover {
  border-color: var(--electric-purple);
  color: var(--electric-purple);
  background: var(--ep-dim);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.footer-copy a {
  color: var(--electric-purple);
  transition: color var(--transition);
}
.footer-copy a:hover { color: var(--solar-gold); }
.footer-location {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(124,111,160,0.5);
  letter-spacing: 0.05em;
}

/* ── 10. SCROLL REVEAL ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.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; }

/* ── 11. PAGE HERO (inner pages) ─────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 80px;
  background: var(--void-2);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: rgba(107,33,168,0.18);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.page-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--electric-purple);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--offwhite);
  margin-bottom: 20px;
}
.page-hero .lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.75;
}

/* ── 12. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  :root { --space-2xl: 72px; }

  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-brand { grid-column: span 1; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}