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

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

body {
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ===== Scroll Reveal ===== */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-fade-in-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
    img, .reveal-on-scroll img {
        transition: none;
    }
}

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

#navbar.scrolled {
    background: rgba(50, 18, 40, 0.95);
    backdrop-blur-md;
    border-bottom: 1px solid rgba(107, 47, 91, 0.3);
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7d2a45;
}

/* ===== Selection ===== */
::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #f3dce6;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a84b;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===== Menu Item Hover Line ===== */
#menu li::before {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #d4a84b;
    transition: width 0.3s ease;
    margin-top: 4px;
}

#menu li:hover::before {
    width: 100%;
}

/* ===== Image Hover Wrapper ===== */
.aspect-\[4\/5\] .hover\:scale-105,
.aspect-square .hover\:scale-105 {
    will-change: transform;
}

/* ===== Button Press Effect ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}
