/* Custom styles — complementing Tailwind */

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

/* Navbar transition states */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 142, 0.08);
}

.navbar-scrolled .nav-link-text {
    color: #1a0a20 !important;
}

.navbar-scrolled .nav-subtext {
    color: #7B2D8E !important;
}

.navbar-scrolled .nav-link {
    color: #5a1e63 !important;
}

.navbar-scrolled .nav-link:hover {
    color: #d97706 !important;
}

.navbar-transparent .nav-link-text {
    color: #1a0a20;
}

.navbar-transparent .nav-subtext {
    color: #7B2D8E;
}

/* Hero text colors when on transparent nav */
.hero-active .nav-link-text {
    color: #ffffff;
}

.hero-active .nav-subtext {
    color: rgba(255, 255, 255, 0.8);
}

.hero-active .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-active .nav-link:hover {
    color: #fbbf24 !important;
}

/* Mobile nav links */
.mobile-nav-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(123, 45, 142, 0.08);
}

/* Scroll reveal base state — content is always visible by default */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Progressive enhancement: hide and animate when JS is enabled */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

    .reveal.delay-100 { transition-delay: 0.1s; }
    .reveal.delay-200 { transition-delay: 0.2s; }
    .reveal.delay-300 { transition-delay: 0.3s; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

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

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

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

/* Form select arrow */
select {
    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='%237B2D8E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
    -webkit-appearance: none;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(123, 45, 142, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
