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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #F4726B;
  color: #1A1A1A;
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #F4726B;
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #FB8B68 !important;
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:last-of-type {
  border-bottom: none;
}

/* ===== HERO ANIMATIONS ===== */
.hero-eyebrow {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-headline {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.hero-sub {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.hero-ctas {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SCROLL REVEAL ===== */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-card {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-card {
  transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed,
  .reveal-card.revealed {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* ===== MENU TABS ===== */
.menu-tab {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}

.menu-tab.active {
  background: #F4726B;
  color: #1A1A1A !important;
  font-weight: 700;
}

.menu-tab:not(.active):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.menu-panel {
  animation: menuPanelIn 0.4s ease forwards;
}

@keyframes menuPanelIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FORM ===== */
#contact-form input:focus,
#contact-form textarea:focus {
  border-color: rgba(244, 114, 107, 0.5) !important;
  box-shadow: 0 0 0 4px rgba(244, 114, 107, 0.1);
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
  animation: mobileMenuIn 0.3s ease forwards;
}

@keyframes mobileMenuIn {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

#mobile-menu.closing {
  animation: mobileMenuOut 0.3s ease forwards;
}

@keyframes mobileMenuOut {
  from {
    opacity: 1;
    max-height: 500px;
  }
  to {
    opacity: 0;
    max-height: 0;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 3.5rem !important;
  }

  #about .aspect-\[4\/5\] {
    aspect-ratio: 3/4 !important;
  }

  .floating-card {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    margin-top: 1rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-card {
    opacity: 1;
    transform: none;
  }
}

/* ===== FOCUS VISIBLE ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #F4726B;
  outline-offset: 2px;
  border-radius: 4px;
}
