/* Custom styles that complement Tailwind */

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

/* Selection color */
::selection {
  background: rgba(168, 230, 207, 0.3);
  color: #0A1628;
}

/* Navbar transition */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

/* Navbar brand text color on scroll */
#navbar.scrolled .nav-brand-text {
  color: #0A1628;
}

/* Mobile menu button animation */
.menu-line:nth-child(1) {
  transform-origin: center;
}
.menu-line:nth-child(2) {
  transform-origin: center;
}
.menu-line:nth-child(3) {
  transform-origin: center;
}

.menu-open .menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  width: 24px;
}

/* Image hover zoom */
img {
  max-width: 100%;
  height: auto;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f8f8f8;
}
::-webkit-scrollbar-thumb {
  background: #0A1628;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1a2d4a;
}

/* Subtle entrance for hero (no JS needed) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Only apply if JS is not available or prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-fade-in {
    animation: fadeInUp 0.8s ease forwards;
  }
  .hero-fade-in-delay-1 {
    animation-delay: 0.15s;
    opacity: 0;
  }
  .hero-fade-in-delay-2 {
    animation-delay: 0.3s;
    opacity: 0;
  }
  .hero-fade-in-delay-3 {
    animation-delay: 0.45s;
    opacity: 0;
  }
}
