/* Base styles & custom properties */
:root {
    --color-plum-800: #5B2C6F;
    --color-plum-900: #3d1a4a;
    --color-plum-950: #2a1033;
    --color-amber-400: #fbbf24;
    --color-amber-500: #f59e0b;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Navbar transitions */
.nav-text {
    transition: color 0.4s ease;
}

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

/* Hero section */
#hero {
    position: relative;
}

/* Service cards */
.service-card {
    cursor: default;
}

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

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

/* Scroll reveal animations — progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

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

/* Selection color */
::selection {
    background: #d9aedf;
    color: #2a1033;
}
