/* ─── 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 {
    display: block;
}

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

/* ─── Hero Gradient ─── */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #832D1A 0%,
        #A1331A 20%,
        #C2411D 40%,
        #D4552B 55%,
        #E2734D 70%,
        #C89632 85%,
        #A57229 100%
    );
}

.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(0,0,0,0.08) 0%, transparent 40%);
}

/* ─── Scroll Line Animation ─── */
.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line-inner {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: #FDF8F0;
    color: #832D1A;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    border: 1px solid rgba(253,248,240,0.6);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: #FDF8F0;
    border-color: rgba(253,248,240,0.8);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: transparent;
    color: #FDF8F0;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    border: 1px solid rgba(253,248,240,0.4);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(253,248,240,0.1);
    border-color: rgba(253,248,240,0.7);
}

/* ─── Menu Item ─── */
.menu-item {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(180,160,140,0.15);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.15s; }
.menu-item:nth-child(3) { animation-delay: 0.2s; }
.menu-item:nth-child(4) { animation-delay: 0.25s; }
.menu-item:nth-child(5) { animation-delay: 0.3s; }
.menu-item:nth-child(6) { animation-delay: 0.35s; }

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

/* ─── Reveal Animation ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ─── Navbar ─── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C2411D;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ─── Mobile Menu Lines ─── */
.line {
    display: block;
}

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

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

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

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-size: 13px;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #D4A080;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C2411D;
}

/* ─── Selection ─── */
::selection {
    background: #F5C4B0;
    color: #6C2719;
}

/* ─── Focus Styles ─── */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(194,65,29,0.2);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(
            160deg,
            #6C2719 0%,
            #A1331A 30%,
            #C2411D 55%,
            #D4552B 75%,
            #A57229 100%
        );
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 28px;
        font-size: 10px;
    }
}
