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

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

body {
  background-color: #040a14;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
}

::selection {
  background: rgba(52, 212, 168, 0.3);
  color: #ffffff;
}

/* === NAVBAR === */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(4, 10, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(52, 212, 168, 0.08);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* === MOBILE MENU === */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* === HERO ANIMATIONS === */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(12deg); }
  50% { transform: translateY(-10px) rotate(12deg); }
}

.floating-accent {
  animation: float 4s ease-in-out infinite;
}

/* === MENU CARDS === */
.menu-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease;
}

.menu-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.menu-card:nth-child(2) { transition-delay: 0.12s; }
.menu-card:nth-child(3) { transition-delay: 0.24s; }

/* === SECTION REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* === EXPERIENCE ITEMS === */
#experience .flex {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#experience .flex.visible {
  opacity: 1;
  transform: translateX(0);
}

#experience .flex:nth-child(1) { transition-delay: 0s; }
#experience .flex:nth-child(2) { transition-delay: 0.1s; }
#experience .flex:nth-child(3) { transition-delay: 0.2s; }
#experience .flex:nth-child(4) { transition-delay: 0.3s; }

/* === IMAGE HOVER === */
.relative.z-10.rounded-3xl.overflow-hidden {
  transition: transform 0.5s ease;
}

.relative.z-10.rounded-3xl.overflow-hidden:hover {
  transform: scale(1.01);
}

/* === INPUT FOCUS === */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(52, 212, 168, 0.1);
}

/* === BUTTON RIPPLE EFFECT === */
button, a {
  position: relative;
  overflow: visible;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.75rem;
  }

  #hero .absolute.bottom-8 {
    display: none;
  }

  .menu-card {
    padding: 1.5rem;
  }

  #about, #experience, #visit {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.25rem;
  }

  .font-display.text-4xl {
    font-size: 2rem;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .menu-card, .reveal, #experience .flex {
    opacity: 1;
    transform: none;
  }
}
