/* ===== CUSTOM STYLES FOR MOONSTRUCK ===== */

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

/* Base transitions */
.nav-link {
    position: relative;
}

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

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

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: #A8E6CF !important;
}

/* Fade-in animation for hero */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Scroll reveal animations */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

/* Navbar scroll states */
.nav-scrolled {
    background-color: rgba(13, 27, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-scrolled .nav-logo-color {
    color: #ffffff !important;
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-scrolled .nav-icon-color {
    color: #ffffff !important;
}

/* Default nav states (transparent over hero) */
.nav-logo-color {
    color: #0D1B2A;
}

.nav-link {
    color: #0D1B2A;
}

.nav-icon-color {
    color: #0D1B2A;
}

/* Mobile menu animation */
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

#mobile-menu.closed {
    max-height: 0;
    opacity: 0;
}

/* Mobile menu button animation */
#mobile-menu-btn.active #menu-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active #menu-line-2 {
    opacity: 0;
}

#mobile-menu-btn.active #menu-line-3 {
    width: 6px;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

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

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

/* Date input styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.6);
    cursor: pointer;
}

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

/* Image loading placeholder */
img {
    background-color: #1C2D45;
}

/* Selection color */
::selection {
    background-color: #A8E6CF;
    color: #0D1B2A;
}
