/* Base styles & custom properties */
:root {
    --color-plum-50: #faf5ff;
    --color-plum-100: #f3e8ff;
    --color-plum-200: #e9d5ff;
    --color-plum-300: #d8b4fe;
    --color-plum-400: #c084fc;
    --color-plum-500: #a855f7;
    --color-plum-600: #9333ea;
    --color-plum-700: #7e22ce;
    --color-plum-800: #6b21a8;
    --color-plum-900: #581c87;
    --color-plum-950: #3b0764;
    --color-amber-400: #fbbf24;
    --color-amber-600: #d97706;
}

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

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: #e9d5ff;
    color: #3b0764;
}

/* Navbar styles */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(126, 34, 206, 0.08);
}

.nav-transparent {
    background: transparent !important;
}

.nav-transparent .font-display,
.nav-transparent a:not([class*="bg-"]) {
    color: #3b0764;
}

/* Float animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5ff;
}
::-webkit-scrollbar-thumb {
    background: #d8b4fe;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c084fc;
}

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

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

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' 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 12px center;
    padding-right: 40px;
}
