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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background: rgba(10, 20, 16, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(212, 168, 75, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Smooth Scroll ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

::-webkit-scrollbar-track {
    background: #0a1410;
}

::-webkit-scrollbar-thumb {
    background: #1f3d2b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a5238;
}

/* ===== Input Autofill ===== */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0a1410 inset !important;
    -webkit-text-fill-color: #f8f6f0 !important;
    caret-color: #f8f6f0;
}

/* ===== Gold Accent Line ===== */
.gold-accent {
    position: relative;
}

.gold-accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #d4a84b, transparent);
    border-radius: 1px;
}

/* ===== Mobile Menu Transitions ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ===== Subtle Glow on Hover ===== */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(212, 168, 75, 0.1);
}

/* ===== Responsive Typography ===== */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.2;
    }
}
