/* ── Base & Utilities ── */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(13, 148, 136, 0.3);
  color: white;
}

/* ── Marquee Animation ── */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 20s linear infinite;
}

/* ── Scroll Reveal ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .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; }
}

/* ── Navbar Scroll State ── */
.nav-scrolled {
  background: rgba(2, 6, 23, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(13, 148, 136, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ── Form Focus Styles ── */
input:focus, textarea:focus {
  outline: none;
}

/* ── Button Hover Effects ── */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* ── Image Hover Container ── */
.rounded-2xl.overflow-hidden {
  position: relative;
}

.rounded-2xl.overflow-hidden::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.2) 0%, transparent 40%);
  pointer-events: none;
  border-radius: inherit;
}

/* ── Hero Image Glow ── */
.shadow-teal-900\/30 {
  box-shadow: 0 25px 50px -12px rgba(13, 148, 136, 0.25);
}

/* ── Responsive Typography ── */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.1;
  }
}

/* ── 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;
  }
}
