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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

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

#navbar.scrolled {
    background: rgba(44, 30, 22, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding-top: 0;
    padding-bottom: 0;
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

#navbar.scrolled .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* === Buttons === */
.btn-primary {
    background: #C0603A;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(192, 96, 58, 0.4);
    display: inline-flex;
    align-items: center;
}

.btn-primary:hover {
    background: #a84e2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(192, 96, 58, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* === Scroll Indicator === */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: scrollBounce 2s ease-in-out infinite;
    transition: border-color 0.3s;
}

.scroll-indicator:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* === Hero Animations === */
.hero-bg {
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.hero-subtitle {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.hero-title {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.hero-desc {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.7s;
}

.hero-ctas {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.9s;
}

.hero-scroll {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 1.2s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Reveal Animations === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal.visible:nth-child(2) {
    transition-delay: 0.15s;
}

.reveal.visible:nth-child(3) {
    transition-delay: 0.3s;
}

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

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

/* === Menu Cards Hover === */
#menu .rounded-3xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#menu .rounded-3xl:hover {
    transform: translateY(-4px);
}

/* === Gallery Images === */
#gallery .rounded-2xl img {
    transition: transform 0.6s ease;
}

#gallery .rounded-2xl:hover img {
    transform: scale(1.05);
}

/* === Form Styles === */
#contact-form input:focus,
#contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.15);
}

#contact-form button:hover {
    box-shadow: 0 8px 30px rgba(192, 96, 58, 0.4);
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-title span {
        display: block;
    }

    #about .rounded-3xl img,
    #about > div > div:first-child > div {
        width: 100%;
    }

    #about .absolute {
        display: none;
    }

    .scroll-indicator {
        bottom: 24px;
    }
}

/* === Selection === */
::selection {
    background: #C0603A;
    color: #fff;
}

/* === Focus Visible === */
:focus-visible {
    outline: 2px solid #C0603A;
    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;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
