/* === Custom Styles for Young Minds At Work Inc. === */

:root {
    --navy-900: #0a1628;
    --navy-800: #112240;
    --gold-500: #c8a44e;
    --gold-400: #d4b96a;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal animations - progressive enhancement, content visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--navy-900);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-500);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-400);
}

/* Selection color */
::selection {
    background: var(--gold-500);
    color: var(--navy-900);
}

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

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Service card hover glow */
.group:hover .group-hover\:bg-gold-500 {
    box-shadow: 0 0 30px rgba(200, 164, 78, 0.3);
}

/* Ensure all text is readable */
.text-white\/70,
.text-white\/75,
.text-white\/80,
.text-white\/60,
.text-white\/50,
.text-white\/40 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.25rem;
    }
}
