/* Base & Utilities */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #0d9488;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #14b8a6;
}

/* Navbar Scroll State */
#navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  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: #5eead4;
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #5eead4;
  transition: width 0.25s ease;
}
.mobile-link:hover::after {
  width: 100%;
}

/* Hero */
.hero-bg {
  will-change: transform;
}

/* Menu Tabs */
.menu-tab {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid #e2e8f0;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}
.menu-tab:hover {
  border-color: #0d9488;
  color: #0d9488;
}
.menu-tab.active {
  background: #0d9488;
  border-color: #0d9488;
  color: #ffffff;
}

/* Menu Content Transitions */
.menu-content {
  animation: fadeUp 0.4s ease forwards;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Geometric Shape Animations */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-16px) rotate(12deg); }
}
@keyframes float-reverse {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(-12px) rotate(45deg); }
}
.geo-float {
  animation: float 6s ease-in-out infinite;
}
.geo-float-reverse {
  animation: float-reverse 8s ease-in-out infinite;
}

/* Pulse dot */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.animate-pulse {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Gallery hover */
.gallery-strip img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
}

/* Reduced motion */
@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;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .hero-bg img {
    object-position: center 30%;
  }
}

/* Large screens */
@media (min-width: 1024px) {
  .menu-tab {
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
  }
}
