@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@400;700;800&display=swap');

:root {
  --navbar-height: 74px;
  /* Premium Light Theme Palette */
  --color-bg-base: #ffffff; /* Clean white */
  --color-bg-secondary: #f8fafc; /* Very light slate */
  --color-bg-tertiary: #f1f5f9; /* Light slate */
  --color-border: rgba(0, 0, 0, 0.08);
  
  /* Text Colors */
  --color-text-muted: #64748b;
  --color-text-secondary: #475569;
  --color-text-primary: #0f172a;
  
  /* Vibrant Accents */
  --color-accent-primary: #1d4ed8; /* Medium Darker Sapphire Blue */
  --color-accent-secondary: #6d28d9; /* Harmonized Darker Purple */
  --color-accent-lighter: #2563eb;
  --color-white: #ffffff;

  /* Typography */
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color: var(--color-text-primary);
  background-color: var(--color-bg-base);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Decorative footer blur — toggled by footer-glass.js */
.scroll-glass-blur {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 80px;
  pointer-events: none;
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: linear-gradient(to top, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 40%, transparent 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  overflow-x: hidden;
  overscroll-behavior-x: none;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html, body {
    scroll-behavior: auto;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Common Utility Classes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 10px; /* Boxy with rounded edges */
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  gap: 0.5rem;
}

.btn-dark {
  background-color: #111111;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #222222;
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 -20px 25px -10px rgba(190, 195, 205, 0.4); /* Inner silver glow from bottom */
}

.btn-light {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.btn-light:hover {
  transform: translateY(-2px);
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  box-shadow: inset 0 -20px 25px -10px rgba(255, 255, 255, 0.35); /* Purely bottom-side white glow */
}

/* Fallback when JS is disabled */
.reveal:not(.reveal--react) {
  opacity: 1;
  transform: none;
}

.scroll-glass-blur--hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* --- Scroll reveal animations --- */
.reveal--react {
  transform: translateY(20px);
  transition:
    opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

/* Only hide off-screen reveals after JS marks in-viewport content */
html.reveal-js .reveal--react:not(.reveal--visible) {
  opacity: 0;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--fade {
  transform: none;
}

html.reveal-js .reveal--react.reveal--fade:not(.reveal--visible) {
  transform: none;
}

.reveal--scale {
  transform: translateY(16px) scale(0.98);
}

.reveal--scale.reveal--visible {
  transform: translateY(0) scale(1);
}

/* Immediate reveals skip the opacity:0 starting state entirely */
.reveal--immediate {
  opacity: 1;
  transform: none;
  transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* --- Global Responsive Media Queries --- */
@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
  }
  .container {
    padding: 0 1.25rem;
  }
}


