/* === Base === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #5B2C6F;
    color: #faf5fb;
}

/* === Navbar === */
.nav-text {
    transition: color 0.3s ease;
}

.nav-subtext {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: #1d0e24;
}

#navbar.scrolled .nav-subtext {
    color: #5B2C6F;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #f59e0b;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#navbar.scrolled .nav-link {
    color: #1d0e24;
}

#navbar.scrolled .nav-link:hover {
    color: #5B2C6F;
}

/* === Mobile Menu === */
.mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* === Scroll Reveal === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* === Scroll Indicator Animation === */
@keyframes scrollLine {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

.animate-scrollLine {
    animation: scrollLine 1.5s ease-in-out infinite;
}

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

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

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

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

/* === 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='%235B2C6F' 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;
}

/* === Focus visible === */
:focus-visible {
    outline: 2px solid #5B2C6F;
    outline-offset: 2px;
}

/* === Print styles === */
@media print {
    nav, #contactForm, .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
