/* ===== CSS Custom Properties ===== */
:root {
    --plum-950: #500724;
    --plum-900: #831443;
    --plum-800: #9d174d;
    --plum-700: #be185d;
    --plum-200: #fbcfe8;
    --plum-100: #fce7f3;
    --plum-50: #fdf4f8;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-300: #fcd34d;
    --amber-200: #fde68a;
    --amber-100: #fef3c7;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--plum-50);
}
::-webkit-scrollbar-thumb {
    background: var(--plum-200);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--plum-400);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Hero Lines Animation ===== */
.hero-line {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}
.hero-line:nth-child(1) { animation-delay: 1.2s; }
.hero-line:nth-child(2) { animation-delay: 1.4s; }
.hero-line:nth-child(3) { animation-delay: 1.6s; }
.hero-line:nth-child(4) { animation-delay: 1.8s; }

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Service Cards ===== */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ===== Navigation ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(157, 23, 77, 0.08);
}

#navbar.scrolled .nav-link {
    color: rgba(80, 7, 36, 0.7) !important;
}

#navbar.scrolled .nav-link:hover {
    color: rgba(80, 7, 36, 1) !important;
}

#navbar.scrolled .font-serif {
    color: #500724 !important;
}

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

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ===== 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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