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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea, select {
  font: inherit;
}

/* ===== NAVBAR ===== */
.nav-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 18, 77, 0.06);
  transition: box-shadow 0.3s ease;
}

.nav-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 18, 77, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* ===== MOBILE MENU ===== */
#mobile-menu {
  transition: opacity 0.3s ease;
}

#mobile-menu.hidden {
  pointer-events: none;
  opacity: 0;
}

#mobile-menu:not(.hidden) {
  opacity: 1;
}

.mobile-overlay {
  transition: opacity 0.3s ease;
}

.mobile-link {
  border-radius: 0.5rem;
}

/* ===== HERO SHAPES ===== */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: #26b295;
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: #003aff;
  bottom: 5%;
  left: -3%;
  animation-delay: -3s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: #8ee0ca;
  top: 40%;
  left: 15%;
  animation-delay: -5s;
}

.shape-4 {
  width: 150px;
  height: 150px;
  background: #bcd3ff;
  bottom: 25%;
  right: 15%;
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Fallback: always show content if JS is disabled or reduced motion preferred */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== GALLERY HOVER ===== */
.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #26b295;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* ===== SELECTION ===== */
::selection {
  background: #26b295;
  color: #00124d;
}

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

::-webkit-scrollbar-track {
  background: #f2fdf9;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #4ec9af;
}
