/* Custom styles for Angelitos Daycare Number 2 */

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

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

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

::-webkit-scrollbar-thumb {
    background: #7e22ce;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9333ea;
}

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f3e8ff;
}

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

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 500px;
    opacity: 1;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(10, 6, 18, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(126, 34, 206, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold shimmer effect on hover */
.bg-gradient-to-r.from-amber-500.to-amber-400 {
    position: relative;
    overflow: hidden;
}

.bg-gradient-to-r.from-amber-500.to-amber-400::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.bg-gradient-to-r.from-amber-500.to-amber-400:hover::after {
    left: 100%;
}

/* Input focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a0a2e 0%, #120a1e 100%);
}

/* Hero parallax-like subtle effect */
#hero {
    perspective: 1000px;
}

#hero .absolute.inset-0 img {
    will-change: transform;
}

/* Testimonial card hover */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Ensure all text is readable */
.text-plum-200,
.text-plum-300,
.text-white,
.text-amber-300,
.text-amber-400 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Form select arrow */
select.appearance-none {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4a017' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 640px) {
    nav a, nav button, .mobile-link, footer a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Print styles */
@media print {
    #navbar, #mobileMenu, .animate-bounce {
        display: none !important;
    }

    body {
        background: white;
        color: #1a0a2e;
    }

    .text-white, .text-plum-200, .text-plum-300 {
        color: #1a0a2e !important;
    }

    .text-amber-400, .text-amber-300 {
        color: #92400e !important;
    }
}
