/* ═══════════════════════════════════════════════════════════════
   USA Kummooyeh Federation — Main Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
    --gold:    #c9a84c;
    --crimson: #8b1a1a;
    --bg:      #0a0a0a;
}

/* ── Base ────────────────────────────────────────────────────── */
body {
    background-color: var(--bg);
    color: #f5f5f0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ── Glassmorphism Nav ───────────────────────────────────────── */
nav {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
    background: rgba(0, 0, 0, 0);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

nav.scrolled {
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 10, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* ── Nav Logos — large on load, compact on scroll ────────────── */
.nav-logo {
    height: 4.5rem;      /* mobile default ~72px */
    width: auto;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease;
}

nav.scrolled .nav-logo {
    height: 2.25rem;     /* mobile scrolled ~36px */
}

@media (min-width: 768px) {
    .nav-logo              { height: 6rem; }   /* tablet default */
    nav.scrolled .nav-logo { height: 2.75rem; }
}

@media (min-width: 1024px) {
    .nav-logo              { height: 7.5rem; }  /* desktop default */
    nav.scrolled .nav-logo { height: 3.25rem; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.8) 100%);
}

#hero-video {
    /* Ensure video covers like object-cover, prevent white flash on load */
    object-fit: cover;
    background-color: #0a0a0a;
}

@keyframes scrollPulse {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50%  { opacity: 1; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* ── Scroll-triggered Reveal Animation ──────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Custom Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar              { width: 8px; }
::-webkit-scrollbar-track        { background: #0a0a0a; }
::-webkit-scrollbar-thumb        { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover  { background: var(--gold); }

/* ── Curriculum Carousel: hide scrollbar ────────────────────── */
.scroll-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scroll-hide::-webkit-scrollbar {
    display: none;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-gold {
    background: var(--gold);
    color: black;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-gold:hover {
    background: #d4b96a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 168, 76, 0.2);
}

.btn-outline {
    border: 1px solid var(--gold);
    color: var(--gold);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-outline:hover {
    background: rgba(201, 168, 76, 0.1);
    transform: translateY(-2px);
}

/* ── Curriculum Cards ────────────────────────────────────────── */
.curr-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
}
.curr-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.curr-card:hover img {
    transform: scale(1.1);
}
.curr-card-overlay {
    position: absolute;
    inset: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 100%);
    transition: all 0.4s ease;
}
.curr-card:hover .curr-card-overlay {
    background: linear-gradient(to top, rgba(139, 26, 26, 0.75) 0%, rgba(0, 0, 0, 0.4) 100%);
}
.curr-card-desc {
    font-size: 0.75rem;
    color: #f5f5f0;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}
.curr-card:hover .curr-card-desc {
    opacity: 1;
    transform: translateY(0);
}

/* ── Curriculum Cards: always-on overlay for touch devices ───── */
@media (hover: none) {
    .curr-card img {
        transform: scale(1.05);
    }
    .curr-card-overlay {
        background: linear-gradient(to top, rgba(139, 26, 26, 0.75) 0%, rgba(0, 0, 0, 0.4) 100%);
    }
    .curr-card-desc {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Section Heading Decorators ─────────────────────────────── */
.gold-rule::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto 0;
}
.gold-rule-left::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1rem 0 0;
}

/* ── Mobile Menu ─────────────────────────────────────────────── */
#mobile-menu {
    transition: transform 0.4s ease-in-out;
    transform: translateX(100%);
}
#mobile-menu.open {
    transform: translateX(0);
}

/* ── Map Marker Animation ────────────────────────────────────── */
.map-dot {
    fill: var(--gold);
    filter: drop-shadow(0 0 4px var(--gold));
}

@keyframes pulse-map {
    0%, 100% { r: 4; opacity: 1; }
    50%       { r: 7; opacity: 0.5; }
}

/* ── Form Inputs ─────────────────────────────────────────────── */
input,
textarea {
    transition: border-color 0.2s ease;
    color: #f5f5f0;
}
input::placeholder,
textarea::placeholder {
    color: #5a5a56;
}

/* ── Section Accent Backgrounds ─────────────────────────────── */
.bg-curriculum {
    background:
        radial-gradient(ellipse at 85% 5%,  rgba(190, 35, 20, 0.16) 0%, transparent 50%),
        radial-gradient(ellipse at 15% 95%, rgba(201, 168, 76, 0.10) 0%, transparent 50%),
        #0e0b0b;
}

.bg-pillars {
    background:
        radial-gradient(ellipse at 10% 90%, rgba(25, 60, 140, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 5%,  rgba(201, 168, 76, 0.10) 0%, transparent 50%),
        #0b0c10;
}

.bg-events {
    background:
        radial-gradient(ellipse at 5%  10%,  rgba(201, 168, 76, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 95% 90%, rgba(190, 35, 20, 0.14)  0%, transparent 50%),
        #0d0b0c;
}

/* ── Gallery Grid ────────────────────────────────────────────── */
.gallery-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.gallery-item:hover {
    border-color: var(--gold);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
