/* Custom styles for Allison Hall */

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

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
    }
    
    .reveal-left {
        opacity: 0;
        animation: fadeInLeft 0.8s ease-out forwards;
    }
    
    .reveal-right {
        opacity: 0;
        animation: fadeInRight 0.8s ease-out forwards;
    }
}

/* Fallback for browsers that don't support prefers-reduced-motion */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        animation: none;
    }
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(28, 38, 65, 0.1);
}

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

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

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

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

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

/* Mobile menu animation */
#mobile-menu {
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(28, 38, 65, 0.15);
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #f4f7fb 0%, #e0f9f1 50%, #f4f7fb 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Ensure all text has proper contrast */
.text-midnight-900,
.text-midnight-800,
.text-midnight-700 {
    color: #1c2641;
}

.text-midnight-600,
.text-midnight-500 {
    color: #2c446e;
}

.text-mint-600,
.text-mint-500 {
    color: #2bb886;
}

.text-mint-400,
.text-mint-300 {
    color: #87e8c7;
}

.text-white {
    color: #ffffff;
}

.text-midnight-200,
.text-midnight-300 {
    color: #b8ccdf;
}

.text-midnight-400,
.text-midnight-500 {
    color: #6b8db8;
}
