﻿/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #000000;
    --primary-dark: #000000;
    --text-dark: #000000;
    --light-bg: #f8fafc;
    --divider-color: #cbd5e1;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: clip;
}

body {
    overflow-y: auto;
}

.home-wrapper {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    width: 100%;
    overflow-x: clip;
    background-color: #fff;
    padding-bottom: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* =========================================
   2. HERO SLIDER SECTION
   ========================================= */
.hero-slider {
    position: relative;
    height: 100dvh;
    background: #000;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    visibility: hidden;
}

    .slide.active {
        opacity: 1;
        visibility: visible;
    }

.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    transition: transform 6s ease;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    width: 90%;
    color: white;
    z-index: 10;
    text-align: center;
}

/* --- GLASSMORPHISM BADGE --- */
.badge {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #000000;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    color: white;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- GLASSMORPHISM BUTTON --- */
.btn-primary {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #000000;
    padding: 14px 35px;
    font-weight: 700;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        background: #ffffff;
        box-shadow: 0 12px 30px rgba(255,255,255,0.3);
        color: #000000;
        border-color: #ffffff;
    }

/* ----------------------------------------------------
   SHARED SLIDER CONTROLS
---------------------------------------------------- */
.slider-pill-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    padding: 8px 24px;
    border-radius: 50px;
    width: fit-content;
}

.hero-controls-pos {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
}

.content-controls-pos {
    margin: 30px auto 0 auto;
    border: 1px solid rgba(0,0,0,0.08);
}

.slider-arrow {
    background: transparent;
    border: none;
    color: #111827;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: transform 0.3s ease, color 0.3s;
    opacity: 0.7;
}

    .slider-arrow:hover {
        color: #000000;
        transform: scale(1.2);
        opacity: 1;
    }

    .slider-arrow:active {
        transform: scale(0.9);
    }

.slider-dots {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .slider-dots button {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        background: rgba(0, 0, 0, 0.3);
        cursor: pointer;
        padding: 0;
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }

        .slider-dots button.active {
            background: #000000;
            width: 24px;
            border-radius: 10px;
            transform: scale(1.05);
        }

/* =========================================
   3. SCROLL ANIMATIONS
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

    .animate-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* =========================================
   4. STATS BAR SECTION
   ========================================= */
.stats-bar {
    background: transparent !important;
    padding: 60px 0;
    color: var(--text-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.stat-item {
    text-align: center;
    padding: 50px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    position: relative;
}

    .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 25%;
        height: 50%;
        width: 1px;
        background: rgba(0,0,0,0.15);
    }

    .stat-item.is-visible {
        opacity: 1;
        transform: scale(1);
    }

    .stat-item strong {
        font-size: 2.8rem;
        line-height: 1;
        color: #000000;
        font-weight: 900;
        display: inline-block;
        min-height: 1.2em;
    }

    .stat-item span {
        font-size: 0.85rem;
        color: #000000;
        text-transform: uppercase;
        font-weight: 700;
        margin-top: 8px;
        letter-spacing: 1px;
    }

/* =========================================
   5. DIGITAL CAMPUS (PORTALS)
   ========================================= */
.portals-section {
    padding: 80px 0;
    background: transparent !important;
}

/* FIXED: REMOVED #videoSectionTitle AND #videoSectionDesc FROM THIS LIST */
#portalsHeader h2,
#portalsHeader p,
#portalsHeader .accent-text,
#donorSectionTitle,
#donorSectionDesc {
    color: #000000 !important;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

    .section-header h2 {
        font-size: 2.2rem;
        color: #000000;
        margin: 0;
        font-weight: 800;
    }

.header-line {
    width: 60px;
    height: 4px;
    background: #000000;
    margin: 10px auto 0;
    border-radius: 2px;
}

.square-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    justify-content: center;
}

.square-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    color: #000000 !important;
}

    .square-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 40%;
        background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
        pointer-events: none;
    }

    .square-card:hover {
        transform: translateY(-10px) scale(1.02);
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        border-color: rgba(0, 0, 0, 0.1);
    }

.card-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 15px;
    color: #000000 !important;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.square-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
}

.square-card h3 {
    margin: 0;
    font-size: 1rem;
    color: #000000 !important;
    font-weight: 700;
    line-height: 1.3;
}

/* =========================================
   6. VIDEO HERO SECTION
   ========================================= */
.video-hero {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #000;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 2;
    pointer-events: none;
}

.ticker-bottom-anchor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    margin: 0;
    padding: 0;
}

/* =========================================
   7. DONORS CAROUSEL SECTION
   ========================================= */
.donors-section {
    padding: 80px 0;
    background: transparent !important;
    overflow: hidden;
}

    .donors-section .section-header h2 {
        font-size: 2.2rem;
        font-weight: 900;
        color: #000000 !important;
        text-transform: uppercase;
    }

    .donors-section .section-header p {
        color: #000000 !important;
        font-weight: 600;
    }

.donor-track-wrapper {
    width: 100%;
    overflow: visible;
    padding: 20px 0;
}

.donor-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    gap: 20px;
    align-items: stretch;
    will-change: transform;
}

.donor-card {
    flex: 0 0 calc(25% - 15px);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

    .donor-card h3,
    .donor-card .donor-contribution,
    .donor-card .donor-message {
        color: #000000 !important;
    }

    .donor-card:hover, .donor-card.active-donor {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    }

.donor-image-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
}

    .donor-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* RESPONSIVE GRID */
@media (max-width: 1024px) {
    .donor-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 900px) {
    .donor-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .donor-card {
        flex: 0 0 100%;
    }
}

/* =========================================
   8. RESPONSIVE DESIGN
   ========================================= */
@media (min-width: 901px) {
    .square-grid {
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .slide-content h1 {
        font-size: 2.2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(1), .stat-item:nth-child(2) {
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

        .stat-item:nth-child(2)::after, .stat-item:nth-child(4)::after {
            display: none;
        }

    .square-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .square-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .square-card {
        padding: 15px;
        border-radius: 15px;
    }
}

@media (max-width: 768px) {
    .donor-card {
        flex: 0 0 280px;
    }

    .donor-track-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .donor-card {
        scroll-snap-align: center;
    }
}

/* =========================================
   9. GLOBAL OVERLAYS
   ========================================= */
.home-wrapper, .portals-section, .donors-section, .stats-bar {
    background-color: transparent !important;
}

#tsparticles {
    pointer-events: none;
    z-index: -1;
}
