@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Fira+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary:    #1E40AF;
  --color-secondary:  #3B82F6;
  --color-accent:     #D97706;
  --color-background: #F8FAFC;
  --color-foreground: #1E3A8A;
  --color-muted:      #E9EEF6;
  --color-border:     #DBEAFE;
  --color-text:       #475569;
  --color-dark:       #0F172A;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Fira Sans', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}
h1, h2, h3, h4 {
  font-family: 'Fira Code', monospace;
  color: var(--color-foreground);
  line-height: 1.3;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  border-radius: 0 0 4px 0;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Focus states - amber outline */
*:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Section fade-in animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* No-JS fallback: show content if JS hasn't initialized */
html:not(.js-loaded) .fade-up { opacity: 1; transform: none; }
.fade-up { opacity: 0; transform: translateY(24px); }
.fade-up.visible { animation: fadeUp 0.6s ease-out forwards; }
.fade-up.visible.delay-1 { animation-delay: 0.1s; }
.fade-up.visible.delay-2 { animation-delay: 0.2s; }
.fade-up.visible.delay-3 { animation-delay: 0.3s; }
.fade-up.visible.delay-4 { animation-delay: 0.4s; }

/* Reduced motion override */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; animation: none; }
  .fade-up.visible { animation: none; }
  .marquee-track { animation-play-state: paused; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Nav link hover underline + active state */
.nav-link {
  position: relative;
  padding-bottom: 3px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 1px;
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.nav-active::after {
  width: 100%;
}
.nav-link.nav-active {
  color: #ffffff !important;
  font-weight: 600;
}

/* Marquee animation for tech pills on mobile */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
