/* === CUSTOM STYLES === */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: rgba(14, 50, 36, 0.7);
  color: #e2f3ea;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #060e1a;
}
::-webkit-scrollbar-thumb {
  background: #2e465c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a5a74;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(6, 14, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.05);
}

/* Nav links */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #8ed1b0;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

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

/* Mobile nav links */
.mobile-nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.mobile-nav-link:hover {
  color: #a8d8c8;
}

/* Scroll reveal animations */
.reveal-text,
.reveal-image,
.reveal-card {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-text {
  transform: translateY(0);
}
.reveal-image {
  transform: translateY(0);
}
.reveal-card {
  transform: translateY(0);
}

/* Scroll-triggered reveals (applied by JS) */
.reveal-text.revealed,
.reveal-image.revealed,
.reveal-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Default hidden state for reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
  .reveal-text {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal-image {
    opacity: 0;
    transform: translateY(32px);
  }
  .reveal-card {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal-text.revealed,
  .reveal-image.revealed,
  .reveal-card.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image reveal skew */
.reveal-image.revealed img {
  transform: scale(1);
}

/* Gallery scroll animation */
@keyframes scroll-slow {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll-slow {
  animation: scroll-slow 40s linear infinite;
}

.animate-scroll-slow:hover {
  animation-play-state: paused;
}

/* Focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #8ed1b0;
  outline-offset: 2px;
}

/* Button hover glow */
.bg-mint-700:hover,
.bg-mint-600:hover,
.bg-mint-500:hover {
  box-shadow: 0 0 30px rgba(91, 184, 142, 0.15);
}

/* Parallax-like subtle hero movement */
@media (prefers-reduced-motion: no-preference) {
  #hero img {
    will-change: transform;
  }
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #1a2d42 inset !important;
  -webkit-text-fill-color: #d4dce8 !important;
  transition: background-color 0.3s ease;
}

/* Print styles */
@media print {
  #navbar,
  #mobile-menu,
  .animate-scroll-slow {
    display: none;
  }
  body {
    background: white;
    color: #1a1a1a;
  }
}
