/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content p {
    margin-top: 10px;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* --- INFO SECTION --- */
/* --- BACKGROUND SUPPORT --- */
.info-section {
    position: relative;
    padding: 50px 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #0b0b0b;
}

.info-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.info-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.55);
    /* overlay for text readability */
    z-index: 1;
}

/* Individual background options */
.info-section.bg1::before {
    background: linear-gradient(5deg, #00c8ff 10%, #242424 50%);
}

/* Content Container */
.info-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

/* Text & Image */
.info-text {
    flex: 1 1 50%;
    order: 1;
}

.info-image {
    flex: 1 1 35%;
    order: 2;
}

.info-image img {
    height: 650px;
}

.info-text h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #00c8ff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
}

.info-text h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin-top: 10px;
    background: linear-gradient(90deg, #00c8ff, #0070ff);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.7);
}

.info-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.15);
    font-weight: 300;
}

.info-text p span {
    color: #00c8ff;
    font-weight: 500;
}

/* Reverse order (IMG | TEXT) */
.info-section.reverse .info-text {
    order: 2;
}

.info-section.reverse .info-image {
    order: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .info-section {
        padding: 40px 5%;
    }

    .info-container {
        flex-direction: column;
        gap: 25px;
        align-items: center;
        text-align: center;
    }

    .info-text,
    .info-image {
        flex: 1 1 100%;
        order: unset;
        /* reset reverse */
    }

    .info-text h2 {
        font-size: 2rem;
    }

    .info-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .info-image img {
        max-width: 60%;
        height: auto;
    }

    .info-text h2::after {
        content: "";
        display: block;
        width: 60px;
        height: 4px;
        margin: 10px auto;
        background: linear-gradient(90deg, #00c8ff, #0070ff);
        border-radius: 2px;
        box-shadow: 0 0 10px rgba(0, 200, 255, 0.7);
    }
}

/* Section padding */
.quote-section {
    background-image: url('/assets/Howwestarted.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 100px 40px;

    position: relative;
    overflow: hidden;

    color: white;
    text-align: center;
}

/* Blur + dark overlay */
.quote-section::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Keep text above blur */
.quote-section * {
    position: relative;
    z-index: 2;
}

/* Quote text */
.quote-section h2 {
    font-size: 1.8rem;
    max-width: 900px;
    margin: 0 auto 60px;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

/* Author */
.quote-author {
    position: absolute;
    bottom: 25px;
    right: 40px;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .quote-section {
        padding: 70px 25px;
    }

    .quote-section h2 {
        font-size: 1.4rem;
        margin-bottom: 40px;
    }

    .quote-author {
        right: 25px;
        bottom: 20px;
        font-size: 0.9rem;
    }
}

/* ===============================
   UPDATE SECTION
================================ */
.updates-section {
    padding: 80px 20px;
    text-align: center;
}

.updates-section h2 {
    font-size: 2.4rem;
    margin-bottom: 50px;
    color: #00c8ff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

/* Carousel layout */
.updates-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}

/* Arrows (desktop only) */
.arrow {
    background: transparent;
    border: none;
    color: #00c8ff;
    font-size: 3rem;
    cursor: pointer;
    padding: 0 15px;
    transition: transform 0.2s ease, color 0.3s ease;
}

.arrow:hover {
    transform: scale(1.2);
    color: #00e1ff;
}

/* Image wrapper */
.update-wrapper {
    width: 100%;
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

/* Update images */
.update-img {
    width: 100%;
    display: none;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.6s ease;
    box-shadow: 0 0 30px rgba(0, 200, 255, 0.25);
}

.update-img.active {
    display: block;
    opacity: 1;
}

/* ===============================
   MOBILE – FULL WIDTH IMAGE
================================ */
@media (max-width: 768px) {

    .updates-section {
        padding: 60px 0;
        /* remove side padding */
    }

    .updates-section h2 {
        font-size: 1.9rem;
        margin-bottom: 30px;
        padding: 0 20px;
    }

    /* Hide arrows on mobile */
    .arrow {
        display: none;
    }

    /* Edge-to-edge image */
    .update-wrapper {
        max-width: 100%;
    }

    .update-img {
        width: 100vw;
        /* hit screen edges */
        max-width: 100vw;
        margin-left: calc(-50vw + 50%);
        border-radius: 0;
        /* remove rounding for full-bleed look */
        box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
    }
}

/* =========================================
   COMMUNITY GALLERY SECTION
========================================= */
.community-gallery {
    padding: 60px auto;
    background: rgba(0, 0, 0, 0.55);
}

/* Title (Matching Your Info Section Style) */
.community-gallery h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #00c8ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.community-gallery h2::after {
    content: "";
    display: block;
    width: 320px;
    height: 4px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, #00c8ff, #0070ff);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 200, 255, 0.7);
}

/* =========================================
   SLIDER WRAPPER
========================================= */
.gallery-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    gap: 20px;
    will-change: transform;
    /* Smooth animation hint */
}

/* =========================================
   GALLERY ITEM
========================================= */
.gallery-item {
    flex-shrink: 0;
    /* Prevent squishing */
    width: 310px;
    /* Clean card size */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* IMAGE CONTAINER */
.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Prevent distortion */
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

/* Main Image */
.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
}

/* Overlay (unchanged from your design) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* =========================================
   IMAGE TITLE
========================================= */
.event-title {
    margin-top: 10px;
    width: 100%;
    background: rgba(0, 170, 255, 0.6);
    color: #fff;
    font-size: 1rem;
    padding: 7px 0;
    text-align: center;
    border-radius: 8px;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.75);
}

/* =========================================
   POPUP VIEWER
========================================= */
#imagePopup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

#imagePopup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.5);
}

/* =========================
   CONTACT / SOCIALS
========================= */

.contact-section {
    margin-top: 80px;
    padding: 50px 20px;
    text-align: center;

    border-top: 1px solid rgba(0, 200, 255, 0.15);
}

.contact-section h2 {
    color: #00c8ff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.4);
    font-size: 2rem;
    margin-bottom: 25px;
    position: relative;
}

.contact-section h2::after {
    content: "";
    display: block;

    width: 60px;
    height: 3px;

    margin: 12px auto 0;

    background: #00c8ff;
    border-radius: 10px;

    box-shadow: 0 0 12px rgba(0, 200, 255, 0.5);
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.social-links a {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 1.3rem;

    text-decoration: none;

    border: 1px solid rgba(0, 200, 255, 0.25);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.02);

    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #00c8ff;

    border-color: #00c8ff;

    transform: translateY(-4px);

    box-shadow:
        0 0 15px rgba(0, 200, 255, 0.2),
        0 0 30px rgba(0, 200, 255, 0.1);
}