/* Custom styles — progressive enhancement only */

/* Scroll-reveal: default state is visible (no JS required) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When JS runs, add the animated class for below-fold elements */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.is-hidden {
        opacity: 0;
        transform: translateY(24px);
    }
}

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

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(250, 245, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 33, 168, 0.08);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

/* Selection color */
::selection {
    background: rgba(168, 85, 247, 0.2);
    color: #581c87;
}

/* Subtle pattern for hero background */
#hero {
    background-image: radial-gradient(ellipse at 70% 20%, rgba(251, 191, 36, 0.08) 0%, transparent 60%),
                      radial-gradient(ellipse at 20% 80%, rgba(147, 51, 234, 0.06) 0%, transparent 50%);
}

/* Section divider wave */
.section-divider {
    height: 40px;
    background: linear-gradient(135deg, #faf5ff 50%, #ffffff 50%);
}

/* Card hover lift */
.bg-plum-50:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* Mobile menu transition */
#mobileMenu {
    animation: slideDown 0.25s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        transition: none;
    }
    #mobileMenu {
        animation: none;
    }
}
