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

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  --bg-primary: #fffefb;          /* Soft Cream */
  --bg-surface: #fff9f2;          /* Warm Peach Tint */
  --bg-surface-hover: #ffeacc;    /* Hover Warm Tint */
  
  --text-primary: #2d2722;        /* Dark Espresso */
  --text-secondary: #5c534c;      /* Muted Espresso */
  --text-muted: #968a80;          /* Light Muted Espresso */
  
  --accent-color: #f39c12;        /* Warm Amber / Orange */
  --accent-secondary: #ff6b6b;    /* Soft Coral / Rose */
  --accent-light: rgba(243, 156, 18, 0.08);
  
  --border-color: #3d352e;        /* Dark Cocoa Outline */
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Quicksand', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  
  --flat-shadow: 4px 4px 0px var(--border-color);
  --flat-shadow-hover: 2px 2px 0px var(--border-color);
  
  --transition-normal: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Playful bouncy feel */
  --transition-fast: all 0.15s ease-out;
  
  --max-width: 1100px;
}

/* --- RESET & PLAYFUL BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-hover);
  border: 2px solid var(--bg-primary);
  border-radius: 10px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

p {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Playful utility marks */
.highlight-amber {
  position: relative;
  display: inline-block;
}

.highlight-amber::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(243, 156, 18, 0.2);
  z-index: -1;
  border-radius: 4px;
}

.highlight-coral {
  position: relative;
  display: inline-block;
}

.highlight-coral::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(255, 107, 107, 0.2);
  z-index: -1;
  border-radius: 4px;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  font-weight: 600;
  background-color: rgba(255, 107, 107, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 107, 0.15);
}

.num-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent-color);
  font-weight: 700;
}

/* --- PLAYFUL NAVIGATION BAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  background-color: rgba(255, 254, 251, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  height: 72px;
}

.navbar-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Wordmark brand */
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--accent-color);
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

/* Menu links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 800;
  border-bottom: 3px solid var(--accent-color);
  border-radius: 2px;
}

/* Bouncy CTA */
.nav-cta {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--border-color);
  background-color: var(--accent-color);
  color: var(--text-primary);
  border-radius: 30px;
  box-shadow: 2px 2px 0px var(--border-color);
  transition: var(--transition-normal);
}

.nav-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--border-color);
  background-color: var(--accent-secondary);
}

/* Hamburger (Mobile) */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
  padding: 0.5rem;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 3px;
  margin: 4px 0;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-normal);
}

/* --- FOOTER --- */
footer {
  margin-top: auto;
  border-top: 2px solid var(--border-color);
  background-color: var(--bg-surface);
  padding: 6rem 2rem 3rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 5rem;
}

.footer-brand h3 {
  font-size: 1.65rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(4px);
  display: inline-block;
}

.footer-contact p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.footer-contact a {
  color: var(--text-primary);
  font-weight: 700;
}

.footer-contact a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 5rem auto 0;
  padding-top: 2.5rem;
  border-top: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-socials {
  display: flex;
  gap: 2rem;
}

.footer-socials a {
  color: var(--text-secondary);
}

.footer-socials a:hover {
  color: var(--accent-secondary);
  transform: translateY(-2px);
  display: inline-block;
}

/* --- ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Focus outline */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-secondary);
  outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- RESPONSIVE STYLE --- */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 992px) {
  .navbar {
    height: 72px !important;
  }
  
  .navbar-container {
    padding: 0 1.5rem;
  }
  
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background-color: var(--bg-primary);
    border-top: 2px solid var(--border-color);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
    z-index: 999;
  }
  
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-menu .nav-link {
    font-size: 1.25rem;
  }
  
  .hamburger.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
}
