/* assets/css/style.css */
:root {
  /* -- Colors -- */
  --color-primary: #3B82F6; /* Tailwind Blue 500 */
  --color-primary-light: #60A5FA; /* Tailwind Blue 400 */
  --color-primary-dark: #2563EB; /* Tailwind Blue 600 */
  --color-accent: #10B981; /* Tailwind Green 500 (for secondary states like success) */

  --color-bg: #FFFFFF; /* Pure White */
  --color-bg-alt: #F3F4F6; /* Light Gray */
  --color-text: #1F2937; /* Dark Charcoal (almost black) */
  --color-text-muted: #6B7280; /* Medium Gray */
  --color-border: #D1D5DB; /* Light Gray */

  /* -- Typography -- */
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* -- Layout -- */
  --max-width: 1280px;

  /* -- Standard Tokens (auto-injected) -- */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --radius-default: 4px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

}

html {
  scroll-behavior: smooth;
}

/* -- Base Styles -- */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.15;
  font-weight: 700;
}

.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }
.text-color-primary { color: var(--color-primary); }
.bg-color-primary { background-color: var(--color-primary); }
.hover\:bg-color-primary-dark:hover { background-color: var(--color-primary-dark); }
.bg-color-bg { background-color: var(--color-bg); }
.bg-color-bg-alt { background-color: var(--color-bg-alt); }
.text-color-text { color: var(--color-text); }
.text-color-text-muted { color: var(--color-text-muted); }
.border-color-border { border-color: var(--color-border); }

/* -- Animations -- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float { animation: float 3s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}
.pulse { animation: pulse 2s ease-in-out infinite; }

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animated-gradient {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* Scroll reveal transitions */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 100ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 200ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 300ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 400ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 500ms; }
[data-reveal-stagger].is-visible > * { opacity: 1; transform: translateY(0); }

/* -- Header & Navigation -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Icon sizing for Lucide */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.15em;
  flex-shrink: 0;
  stroke-width: 2; /* Default Lucide stroke width */
}
.icon.hidden { display: none; }
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 2em; height: 2em; }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background-color: var(--color-bg); /* Use theme background */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-100%); /* Slide from top */
  transition: opacity 0.5s cubic-bezier(0.7, 0, 0.84, 0),
              transform 0.5s cubic-bezier(0.7, 0, 0.84, 0),
              visibility 0.5s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.5s;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: color 0.3s ease;
}

/* -- Reduced Motion -- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}body { margin: 0; }

.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
  padding: 0.5rem;
  line-height: 1;
  z-index: 1;
}