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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(128, 0, 32, 0.08);
    padding: 0;
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

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

/* ========== HERO ========== */
.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background-image: linear-gradient(
        to bottom,
        rgba(61, 0, 14, 0.65) 0%,
        rgba(128, 0, 32, 0.55) 50%,
        rgba(84, 0, 20, 0.80) 100%
    );
}

/* ========== PARTICLES ========== */
.particle {
    position: absolute;
    display: block;
    color: rgba(255, 255, 255, 0.5);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .particle {
        animation: none;
        opacity: 0.3;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ========== MOBILE ========== */
@media (max-width: 767px) {
    #hero h1 {
        font-size: 2.25rem;
    }
}

/* ========== FOCUS STYLES ========== */
:focus-visible {
    outline: 2px solid #800020;
    outline-offset: 2px;
}

/* ========== SELECTION ========== */
::selection {
    background: rgba(128, 0, 32, 0.15);
    color: #540014;
}
