/* ===========================
   FIGHTING FOUNDATION
   Global Styles
   =========================== */

* {
    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;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0c10;
}
::-webkit-scrollbar-thumb {
    background: #464a50;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e8a839;
}

/* ---- Hero Image ---- */
.hero-image {
    filter: grayscale(100%) contrast(1.2);
    transform: scale(1.05);
}

/* ---- All images grayscale ---- */
img {
    filter: grayscale(100%);
}

/* ---- 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);
}

/* ---- Hero Reveal Items ---- */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--delay) * 0.15s);
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Navbar Scroll State ---- */
#navbar.scrolled {
    background: rgba(10, 12, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.5);
}

/* ---- Donation Amount Selected ---- */
.amount-btn.selected {
    border-color: #e8a839 !important;
    border-width: 2px;
    background: rgba(232, 168, 57, 0.03);
}

.amount-btn.selected span:first-child {
    color: #e8a839;
}

.amount-btn.selected span:last-child {
    color: rgba(232, 168, 57, 0.7);
}

/* ---- Toggle Slider ---- */
#toggleSlider.at-monthly {
    transform: translateX(100%);
}

/* ---- Counter Animation ---- */
.counter {
    display: inline-block;
}

/* ---- Impact Message Transitions ---- */
#impactMessage {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Donation Toast ---- */
#donationToast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ---- Video Modal ---- */
#videoModal.active {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Mobile Menu ---- */
#mobileMenu.active {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Focus Styles ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #e8a839;
    outline-offset: 2px;
}

/* ---- Selection ---- */
::selection {
    background: #e8a839;
    color: #0a0c10;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 640px) {
    .scroll-reveal {
        transform: translateY(30px);
    }
    
    #presetAmounts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Premium Link Underlines ---- */
@media (min-width: 1024px) {
    .nav-link {
        position: relative;
    }
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1px;
        background: #e8a839;
        transition: width 0.3s ease;
    }
    .nav-link:hover::after {
        width: 100%;
    }
}

/* ---- Smooth hover lift for cards ---- */
@media (min-width: 768px) {
    .scroll-reveal.group:hover {
        transform: translateY(-2px);
    }
}