/* Custom styles for Todd Mikey Hatch Memorial */

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

/* Navigation transition */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: #72222e;
}

#navbar.scrolled .nav-link {
    color: #8c2a3a;
}

/* Mobile menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

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

/* Mobile links */
.mobile-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: #d46b7a;
    padding-left: 0.5rem;
}

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

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

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #ffa3b8;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c44d5e;
    border-radius: 5px;
}

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

/* Form focus states */
input:focus,
textarea:focus {
    border-color: #a83646 !important;
    box-shadow: 0 0 0 3px rgba(168, 54, 70, 0.1);
}

/* Button hover effects */
button:hover {
    cursor: pointer;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fce7eb 0%, #faf0f2 100%);
}
