@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;800&display=swap');

:root {
  /* Brand Theme: 2026 Dark Mode Premium */
  --bg-primary: #020617; /* Very Dark Slate */
  --bg-secondary: #0f172a;
  --bg-surface: rgba(30, 41, 59, 0.4);
  --bg-surface-hover: rgba(30, 41, 59, 0.7);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-inverse: #020617;

  /* Thematic Gradients */
  --accent-cool: #38bdf8;
  --accent-heat: #fb923c;
  --grad-cool: linear-gradient(135deg, #0ea5e9, #2dd4bf);
  --grad-heat: linear-gradient(135deg, #f97316, #ef4444);
  --grad-brand: linear-gradient(135deg, #fb923c, #38bdf8);

  /* Glassmorphism */
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Spacing & Layout */
  --container-max: 1200px;
  --nav-height: 80px;

  /* Typography */
  --font-base: 'Inter', system-ui, sans-serif;
  --font-heading: 'Outfit', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Dynamic Ambient Glows */
body::before, body::after {
  content: '';
  position: fixed;
  width: 50vw;
  height: 50vh;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
  animation: pulseGlow 15s infinite alternate;
}

body::before {
  top: -10%;
  left: -20%;
  background: var(--accent-heat);
}

body::after {
  bottom: -10%;
  right: -20%;
  background: var(--accent-cool);
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.2; }
  100% { transform: scale(1.1); opacity: 0.35; }
}

/* Typography Base */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
a { color: var(--accent-cool); text-decoration: none; transition: 0.3s ease; }
a:hover { color: #fff; }

/* Structural Utility */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 6rem 0;
}

/* Glass Surface Components */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before { left: 100%; }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 15px rgba(251, 146, 60, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251, 146, 60, 0.6);
  color: #fff;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Header */
.header {
  position: fixed;
  top: 0; width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: var(--glass-border);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: ''; position: absolute;
  width: 0; height: 2px;
  bottom: -4px; left: 0;
  background: var(--accent-cool);
  transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none; border: none; color: white; cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-height); left: 100%;
    width: 100%; height: calc(100vh - var(--nav-height));
    background: var(--bg-primary);
    flex-direction: column; align-items: center; justify-content: center;
    transition: left 0.3s ease;
  }
  .nav-links.active { left: 0; }
  .mobile-toggle { display: block; }
  
  .header.scrolled { background: var(--bg-primary); }
}

/* Scroll Fade In Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
