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

body {
  overflow-x: hidden;
}

::selection {
  background: #3dd9b8;
  color: #0a1628;
}

/* Scroll Reveal */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Navbar */
#navbar {
  background: transparent;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(10, 22, 40, 0.06);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.04);
}

/* Menu hover underline */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #3dd9b8;
  transition: width 0.3s ease;
}

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

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

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

/* Hero image subtle float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-float {
  animation: float 6s ease-in-out infinite;
}

/* Smooth section transitions */
section {
  position: relative;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #b8c8e2;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8fa8d0;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Form focus styles */
input:focus,
textarea:focus {
  outline: none;
}

/* Card hover lift */
.reveal:hover {
  transform: translateY(-2px);
}

/* Map grayscale transition */
iframe.grayscale {
  filter: grayscale(0.3);
}

/* Print styles */
@media print {
  nav, #mobile-menu, button { display: none; }
  body { color: #000; background: #fff; }
  section { page-break-inside: avoid; }
}
