/* ========== 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: rgba(72, 208, 154, 0.3);
  color: #fff;
}

/* ========== NAVIGATION ========== */
#site-header {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#site-header.scrolled {
  background: rgba(6, 14, 26, 0.92);
  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: 1.5px;
  background: #48D09A;
  transition: width 0.3s ease;
}

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

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

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

#mobile-menu:not(.open) {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  position: relative;
}

/* ========== SCROLL REVEAL ========== */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered delays */
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.2s; }
.reveal-up:nth-child(4) { transition-delay: 0.3s; }

/* ========== HERO ========== */
#hero img {
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

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

::-webkit-scrollbar-track {
  background: #060E1A;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #25406B;
}

/* ========== FORM INPUTS ========== */
input:focus,
textarea:focus {
  border-color: rgba(72, 208, 154, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(72, 208, 154, 0.1) !important;
}

/* ========== BUTTONS ========== */
button, a[type="submit"] {
  position: relative;
  overflow: hidden;
}

button::before,
a[type="submit"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

button:hover::before,
a[type="submit"]::before {
  opacity: 1;
}

/* ========== IMAGE HOVER ========== */
.group:hover img {
  transform: scale(1.05);
}

/* ========== DIVIDER ACCENT ========== */
.w-12.h-px.bg-mint-400 {
  flex-shrink: 0;
}

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

  #hero h1 br {
    display: none;
  }

  .font-serif.text-4xl {
    font-size: 2.25rem;
  }

  .font-serif.text-5xl {
    font-size: 2.5rem;
  }

  .font-serif.text-6xl {
    font-size: 2.75rem;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  #hero h1 {
    font-size: 4rem;
  }
}

/* ========== SMOOTH SECTION TRANSITIONS ========== */
section {
  position: relative;
}

/* ========== PRINT ========== */
@media print {
  #site-header,
  #mobile-menu {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
