/* ===== BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #f5c518;
  color: #1a0828;
}

/* ===== NAVBAR ===== */
.header {
  height: 4.5rem;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #f5c518;
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

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

/* ===== MOBILE NAV ===== */
.mobile-nav-link {
  position: relative;
}

/* ===== HERO ===== */
#hero {
  position: relative;
}

/* ===== CARD BRUTALIST ===== */
.card-brutalist {
  position: relative;
}

.card-brutalist::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  background: transparent;
  border: 2px solid rgba(168, 85, 247, 0.2);
  border-radius: 1rem;
  z-index: -1;
  transition: all 0.3s ease;
}

.card-brutalist:hover::after {
  top: 4px;
  left: 4px;
  right: -4px;
  bottom: -4px;
  border-color: rgba(245, 197, 24, 0.3);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a0828;
}

::-webkit-scrollbar-thumb {
  background: #4a1a6b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1023px) {
  #mobileNav {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  #mobileNav.active {
    opacity: 1;
    pointer-events: all;
  }
}

@media (min-width: 1024px) {
  #mobileNav {
    display: none !important;
  }
}
