/* Base styles and custom utilities */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #102a43;
  color: #d9e2ec;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #102a43;
}
::-webkit-scrollbar-thumb {
  background: #334e68;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #486581;
}

/* Selection color */
::selection {
  background: #33cfA3;
  color: #102a43;
}

/* Smooth image loading */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

/* Nav scroll state */
.navbar-scrolled {
  background: rgba(10, 30, 48, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51, 78, 104, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s 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; }
}

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