/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --plum-950: #1a0a1e;
    --plum-900: #2d1035;
    --plum-800: #3e1548;
    --amber-400: #f59e0b;
    --amber-500: #d97706;
}

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

body {
    background-color: var(--plum-950);
    color: #e8ccf5;
    overflow-x: hidden;
}

::selection {
    background: rgba(217, 119, 6, 0.3);
    color: #f3e4fb;
}

/* ── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--plum-950);
}
::-webkit-scrollbar-thumb {
    background: var(--plum-800);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--amber-500);
}

/* ── Navbar transition ────────────────────────────── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(26, 10, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(217, 119, 6, 0.1);
    padding: 0;
}

#navbar.scrolled nav {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* ── Smooth section transitions ───────────────────── */
section {
    position: relative;
}

/* ── Button hover glow ────────────────────────────── */
button:hover,
a:hover {
    filter: brightness(1.05);
}

/* ── Input autofill override ──────────────────────── */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a0a1e inset !important;
    -webkit-text-fill-color: #f3e4fb !important;
    caret-color: #f59e0b;
}

/* ── Focus visible ────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--amber-400);
    outline-offset: 2px;
}

/* ── 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 {
    animation: slideDown 0.3s ease forwards;
}

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

/* ── Gallery image aspect ratios ──────────────────── */
#gallery img {
    aspect-ratio: auto;
}

/* ── Print styles ─────────────────────────────────── */
@media print {
    body {
        background: white;
        color: black;
    }
    #navbar, #gallery, #contact {
        display: none;
    }
}
