/* =====================================================
   BASIC RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family: "Poppins", sans-serif;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(0, 234, 255, 0.10),
            transparent 40%
        ),
        #070a18;

    color: white;

    min-height: 100vh;

    overflow-x: hidden;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 75px;

    padding: 0 6%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: rgba(5, 8, 20, 0.92);

    backdrop-filter: blur(15px);

    border-bottom:
        1px solid rgba(0, 234, 255, 0.15);

    z-index: 1000;
}


.logo {

    font-family: 'Orbitron', sans-serif;
    font-size: 1.4em;
    font-weight: 900;
    color: #d11313;
    letter-spacing: 2px;
    text-shadow: var(--glow-cyan);
    animation: logoPulse 3s ease-in-out infinite;
    cursor: default;
    user-select: none;
}

@keyframes logoPulse {
    0%, 100% { text-shadow: 0 0 10px #d11313, 0 0 20px #d11313; }
    50%       { text-shadow: 0 0 20px #d11313, 0 0 40px #d11313, 0 0 60px #00eaff; }
}


.navbar nav {

    display: flex;

    gap: 35px;
}


.navbar nav a {

    color: white;

    text-decoration: none;

    font-size: 14px;

    transition: 0.3s;
}


.navbar nav a:hover,
.navbar nav a.active {

    color: #00eaff;
}


.menu-btn {

    display: none;

    border: none;

    background: none;

    color: white;

    font-size: 28px;

    cursor: pointer;
}


/* =====================================================
   EVENTS SECTION
===================================================== */

.events-section {

    min-height: 100vh;

    padding:
        140px 6% 100px;
}


/* =====================================================
   HEADING
===================================================== */

.page-heading {

    text-align: center;

    margin-bottom: 60px;
}


.page-heading span {

    color: #00eaff;

    font-size: 12px;

    letter-spacing: 4px;
}


.page-heading h1 {

    margin-top: 12px;

    font-family: "Orbitron", sans-serif;

    font-size:
        clamp(35px, 5vw, 65px);

    letter-spacing: 3px;

    color: #ff4f4f;

    text-shadow:
        0 0 15px rgba(255, 60, 60, 0.35);
}


.page-heading p {

    margin-top: 15px;

    color: #9aa9c3;

    font-size: 14px;
}


/* =====================================================
   EVENT GRID
===================================================== */

.event-grid {

    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 35px;
}


/* =====================================================
   EVENT CARD
===================================================== */

.event-card {

    position: relative;

    min-height: 520px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: space-between;

    text-align: center;

    border:
        1px solid rgba(0, 234, 255, 0.40);

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(20, 29, 58, 0.95),
            rgba(7, 12, 30, 0.98)
        );

    box-shadow:
        0 0 20px rgba(0, 234, 255, 0.05);

    transition:
        transform 0.4s,
        box-shadow 0.4s,
        border-color 0.4s;
}


.event-card:hover {

    transform:
        translateY(-10px);

    border-color:
        #00eaff;

    box-shadow:
        0 15px 45px
        rgba(0, 234, 255, 0.15);
}


/* =====================================================
   EVENT IMAGE
===================================================== */

.event-image {

    width: 100%;

    height: 300px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border-radius: 15px;
}


.event-image img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    transition: 0.5s;
}


.event-card:hover
.event-image img {

    transform: scale(1.04);
}


/* =====================================================
   EVENT CONTENT
===================================================== */

.event-details {

    width: 100%;

    text-align: center;
}


.event-number {

    color: #00eaff;

    font-family: "Orbitron", sans-serif;

    font-size: 13px;

    margin-bottom: 8px;
}


.event-details h2 {

    font-family: "Orbitron", sans-serif;

    font-size: 22px;

    letter-spacing: 2px;

    text-shadow:
        0 0 12px
        rgba(255, 255, 255, 0.25);
}


.event-details p {

    margin-top: 10px;

    color: #929fba;

    font-size: 13px;

    line-height: 1.6;
}


/* =====================================================
   VIEW DETAILS BUTTON
===================================================== */

.view-btn {

    margin-top: 20px;

    padding:
        13px 30px;

    border: none;

    border-radius: 30px;

    background:
        #27dff0;

    color: #06101b;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}


.view-btn:hover {

    transform:
        translateY(-3px);

    background:
        #ffffff;

    box-shadow:
        0 0 25px
        rgba(0, 234, 255, 0.45);
}


/* =====================================================
   MODAL / LAYER
===================================================== */

.event-modal {

    position: fixed;

    inset: 0;

    width: 100%;

    height: 100%;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 25px;

    background:
        rgba(0, 0, 0, 0.82);

    backdrop-filter:
        blur(12px);

    z-index: 5000;
}


/* JS ADDS THIS */

.event-modal.show {

    display: flex;

    animation:
        modalFade 0.25s ease;
}


/* =====================================================
   MODAL BOX
===================================================== */

.modal-box {

    position: relative;

    width: 100%;

    max-width: 850px;

    max-height: 88vh;

    overflow-y: auto;

    padding: 45px;

    border:
        1px solid
        rgba(0, 234, 255, 0.45);

    border-radius: 20px;

    background:

        linear-gradient(
            145deg,
            #101a35,
            #070b19
        );

    box-shadow:

        0 0 50px
        rgba(0, 234, 255, 0.18);

    animation:
        modalSlide 0.3s ease;
}


/* =====================================================
   CLOSE BUTTON
===================================================== */

.modal-close {

    position: absolute;

    top: 18px;

    right: 20px;

    width: 42px;

    height: 42px;

    border:
        1px solid
        rgba(255, 255, 255, 0.2);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.06);

    color: white;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    transition: 0.3s;
}


.modal-close:hover {

    background: #00eaff;

    color: #05101a;

    transform:
        rotate(90deg);
}


/* =====================================================
   MODAL HEADER
===================================================== */

.modal-header {

    padding-right: 45px;

    padding-bottom: 25px;

    border-bottom:
        1px solid
        rgba(0, 234, 255, 0.12);
}


.modal-header span {

    color: #00eaff;

    font-family: "Orbitron", sans-serif;

    font-size: 11px;

    letter-spacing: 3px;
}


.modal-header h2 {

    margin-top: 10px;

    font-family: "Orbitron", sans-serif;

    font-size: 32px;

    color: white;
}


.modal-header p {

    margin-top: 7px;

    color: #8898b5;

    font-size: 14px;
}


/* =====================================================
   MODAL BODY
===================================================== */

.modal-body {

    padding-top: 10px;
}


.modal-section {

    margin-top: 28px;

    padding: 22px;

    border-left:
        2px solid #00eaff;

    background:
        rgba(0, 234, 255, 0.035);

    border-radius:
        0 10px 10px 0;
}


.modal-section h3 {

    margin-bottom: 12px;

    color: #00eaff;

    font-size: 16px;
}


.modal-section p {

    color: #b2bfd2;

    font-size: 14px;

    line-height: 1.8;
}


.modal-section ul,
.modal-section ol {

    padding-left: 22px;
}


.modal-section li {

    margin-bottom: 10px;

    color: #b2bfd2;

    font-size: 14px;

    line-height: 1.7;
}


/* =====================================================
   MODAL SCROLLBAR
===================================================== */

.modal-box::-webkit-scrollbar {

    width: 7px;
}


.modal-box::-webkit-scrollbar-track {

    background:
        #080d1c;
}


.modal-box::-webkit-scrollbar-thumb {

    background:
        #00bcd4;

    border-radius: 10px;
}


/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes modalFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


@keyframes modalSlide {

    from {

        opacity: 0;

        transform:
            translateY(30px)
            scale(0.97);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .event-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .navbar {

        padding:
            0 5%;

    }


    .menu-btn {

        display: block;

    }


    .navbar nav {

        position: absolute;

        top: 75px;

        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        background:
            #070b18;

    }


    .navbar nav.show {

        display: flex;

    }


    .navbar nav a {

        padding: 17px 25px;

        border-bottom:
            1px solid
            rgba(255,255,255,0.05);

    }


    .events-section {

        padding:
            120px 5% 70px;

    }


    .event-grid {

        grid-template-columns:
            1fr;

    }


    .event-card {

        min-height: 500px;

    }


    .modal-box {

        padding:
            35px 20px;

        max-height:
            90vh;

    }


    .modal-header h2 {

        font-size: 25px;

    }


    .modal-section {

        padding:
            18px;

    }

}

.next-page-container {
    margin-top: 20px;
    text-align: center;
}

.next-btn {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0,234,255,0.15), rgba(0,234,255,0.05));
    color: var(--cyan);
    padding: 14px 36px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(0,234,255,0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.next-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,234,255,0.2), transparent);
    transition: left 0.5s ease;
}

.next-btn:hover::before { left: 100%; }
.next-btn:hover {
    background: linear-gradient(135deg, rgba(0,234,255,0.25), rgba(0,234,255,0.1));
    box-shadow: 0 0 30px rgba(0,234,255,0.3);
    transform: translateX(5px);
    border-color: var(--cyan);
}