/* Custom styles for Linas Littles Child Care */

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

/* Base text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reveal animation - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-12px) rotate(12deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(10px) rotate(45deg); }
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.6; }
}

.geometric-float {
    animation: float 6s ease-in-out infinite;
}

.geometric-float-reverse {
    animation: float-reverse 5s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
    background: #260d11;
}

::-webkit-scrollbar-thumb {
    background: #6d3541;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8f666e;
}

/* Selection color */
::selection {
    background: #fbbf24;
    color: #260d11;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 300px;
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(38, 13, 17, 0.92) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Card hover glow */
.group:hover .group-hover\:bg-amber-400\/25 {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.08);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

/* Image aspect ratio helpers */
.aspect-portrait {
    aspect-ratio: 4 / 5;
}

/* Gallery strip animation */
@media (prefers-reduced-motion: no-preference) {
    .gallery-strip {
        animation: gallery-scroll 40s linear infinite;
    }
    
    @keyframes gallery-scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
