/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #050505;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}
img { user-select: none; -webkit-user-drag: none; max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --black: #050505;
  --black-light: #0a0a0a;
  --surface: #111111;
  --surface-light: #1a1a1a;
  --surface-lighter: #222222;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-muted: #888888;
  --text-dim: #666666;
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.15);
  --accent-glow: rgba(0, 212, 255, 0.3);
  --gold: #c9a84c;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --header-h: 72px;
  --max-w: 1200px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.04em; }

/* ===== PRELOADER ===== */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--black);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-logo { width: 160px; margin: 0 auto 36px; opacity: 0.7; }
.preloader-bar-wrap { width: 160px; height: 2px; background: #1a1a1a; border-radius: 2px; overflow: hidden; margin: 0 auto; }
.preloader-bar { height: 100%; width: 0%; background: var(--accent); border-radius: 2px; transition: width 0.3s ease; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 48px 0 38px;
  background: rgba(5, 5, 5, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled { background: rgba(5, 5, 5, 0.95); box-shadow: 0 1px 0 rgba(255,255,255,0.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header-logo { flex-shrink: 0; }
.header-logo img { height: 52px; width: auto; transition: height var(--transition); }
.header.scrolled .header-logo img { height: 36px; }

.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
  position: relative; padding: 4px 0;
  transition: color var(--transition);
}
.header-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width var(--transition);
}
.header-nav a:hover, .header-nav a.active { color: #fff; }
.header-nav a:hover::after, .header-nav a.active::after { width: 100%; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; z-index: 1001; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); transform-origin: center; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(5,5,5,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 28px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 12px 0; transition: color var(--transition);
}
.mobile-menu a:hover { color: #fff; }

/* ===== FOOTER ===== */
.footer {
  position: relative;
  background: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, #000 100%);
  padding: 72px 24px 24px;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.3;
}
.footer-bg {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0.03; pointer-events: none;
}
.footer-bg svg { width: 100%; max-width: 800px; height: auto; }
.footer-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

/* Brand */
.footer-brand img { height: 48px; margin-bottom: 12px; opacity: 0.9; }
.footer-brand .tagline {
  font-size: 14px; color: rgba(255,255,255,0.65);
  line-height: 1.8; max-width: 260px;
  font-family: var(--font-display); letter-spacing: 0.03em;
}

/* Navigation */
.footer-nav-title {
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 20px;
}
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-nav a {
  font-size: 14px; color: rgba(255,255,255,0.7);
  font-family: var(--font-display); letter-spacing: 0.02em;
  transition: color 0.3s ease;
  position: relative; width: fit-content;
  padding: 4px 0;
}
.footer-nav a:hover { color: var(--accent); }

/* Social */
.footer-social-title {
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 20px;
}
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  transition: all 0.3s ease;
}
.footer-social a svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.6); transition: fill 0.3s ease; }
.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.footer-social a:hover svg { fill: #000; }

/* Bottom */
.footer-bottom {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 48px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.5); font-family: var(--font-display); letter-spacing: 0.05em; }
.footer-bottom a { color: rgba(255,255,255,0.55); transition: color 0.3s ease; }
.footer-bottom a:hover { color: var(--accent); }

/* ===== SECTION TITLES ===== */
.section-label {
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(32px, 5vw, 56px); color: #fff;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px; color: var(--text-muted); max-width: 600px; line-height: 1.7;
}

/* ===== LIGHTBOX (shared) ===== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95); align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: #fff; font-size: 36px;
  cursor: pointer; opacity: 0.6; transition: opacity var(--transition);
  line-height: 1; z-index: 2;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-content { max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lightbox-content img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 2px; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s 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; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: calc(var(--header-h) + 60px) 24px 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--black) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 12px; }
.page-hero p { font-size: 18px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 32px; border-radius: 2px;
  transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: var(--black); }
.btn-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,255,0.25); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ===== SECTION DEFAULT ===== */
.section { padding: 100px 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-nav a { margin: 0 auto; }
  .footer-social { justify-content: center; }

}

@media (min-width: 901px) {
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}
