/* Base styles and custom properties */
:root {
    --plum-50: #f9f4f9;
    --plum-100: #f3e8f3;
    --plum-200: #e8d2e8;
    --plum-300: #d4b0d4;
    --plum-400: #b888b8;
    --plum-500: #7B4A7B;
    --plum-600: #6a3f6a;
    --plum-700: #5a345a;
    --plum-800: #4a2a4a;
    --plum-900: #3a203a;

    --amber-50: #fffbeb;
    --amber-100: #fff3cd;
    --amber-200: #ffeaa8;
    --amber-300: #ffd966;
    --amber-400: #f5c542;
    --amber-500: #e8a820;
    --amber-600: #d4900a;
    --amber-700: #b07008;
    --amber-800: #8a5806;
    --amber-900: #664004;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--plum-50);
}
::-webkit-scrollbar-thumb {
    background: var(--plum-200);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--plum-300);
}

/* Selection color */
::selection {
    background: var(--plum-200);
    color: var(--plum-800);
}

/* Body base */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(123, 74, 123, 0.08) !important;
}

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

/* Scroll reveal base - always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Only apply hidden state when JS adds the class and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* Pulse dot animation */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Gradient shift for decorative elements */
@keyframes gradient-shift {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.gradient-orb {
    animation: gradient-shift 6s ease-in-out infinite;
}

/* Card hover glow */
.card-glow:hover {
    box-shadow: 0 20px 60px -15px rgba(123, 74, 123, 0.15) !important;
}

/* Button press effect */
.btn-press {
    transition: transform 0.15s ease, box-shadow 0.3s ease !important;
}
.btn-press:active {
    transform: scale(0.97) !important;
}

/* Image hover zoom */
.img-zoom {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-zoom:hover {
    transform: scale(1.03);
}

/* Underline animation for links */
.underline-anim {
    position: relative;
}
.underline-anim::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-400);
    transition: width 0.3s ease;
}
.underline-anim:hover::after {
    width: 100%;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid var(--plum-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu animation */
.mobile-menu-enter {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Responsive tweaks */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.15;
    }
}
