/* ============================
    HOME SECTION
============================ */
.home-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Slideshow Background */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideshow 20s infinite;
}

.slide:nth-child(1) {
    background-image: url("../media/home3.PNG");
    animation-delay: 0s;
}

.slide:nth-child(2) {
    background-image: url("../media/home4.PNG");
    animation-delay: 5s;
}

.slide:nth-child(3) {
    background-image: url("../media/home1.PNG");
    animation-delay: 10s;
}

.slide:nth-child(4) {
    background-image: url("../media/home2.JPG");
    animation-delay: 15s;
}

@keyframes slideshow {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    35% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Content Overlay */
.home-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #0f122a !important;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
}

.event-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

/* Countdown Container */
.countdown {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.count-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px 40px;
    min-width: 120px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.count-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.count-box span {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.count-box p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.count-box span,
.count-box p {
    color: #0f122a ;
}


/* KNOW MORE BUTTON */
.know-more-btn {
    position: relative;
    z-index: 2;
    background: #0f122a;
    color: white;
    padding: 15px 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.know-more-btn:hover {
    background: rgba(18, 59, 122, 1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(18, 59, 122, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.know-more-btn:active {
    transform: translateY(-1px);
}

/* POPUP OVERLAY */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* POPUP BOX */
.popup-box {
    background: #e7e0d8;
    padding: 30px;
    max-width: 450px;
    border-radius: 12px;
    text-align: center;
    color: #0a1b3d;
    animation: popupFade 0.3s ease;
}

.popup-box h2 {
    color: #6c7a89;
    margin-bottom: 15px;
}

.close-popup {
    margin-top: 20px;
    padding: 12px 30px;
    background:  #6c7a89;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.close-popup:hover {
    background: #0a1b3d;
    transform: scale(1.05);
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ============================
    RESPONSIVE DESIGN
============================ */

/* Tablets and smaller desktops */
@media screen and (max-width: 1024px) {
    .event-title {
        font-size: 2.8rem;
        margin-bottom: 40px;
    }

    .countdown {
        margin-bottom: 35px;
    }

    .count-box {
        padding: 25px 35px;
        min-width: 100px;
    }

    .count-box span {
        font-size: 3rem;
    }

    .count-box p {
        font-size: 1rem;
    }

    .know-more-btn {
        font-size: 1.1rem;
        padding: 14px 35px;
    }
}

/* Mobile devices */
@media screen and (max-width: 768px) {
    .home-section {
        min-height: 500px;
    }

    .event-title {
        font-size: 2rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .countdown {
        gap: 15px;
        margin-bottom: 30px;
    }

    .count-box {
        padding: 20px 25px;
        min-width: 80px;
    }

    .count-box span {
        font-size: 2.5rem;
    }

    .count-box p {
        font-size: 0.85rem;
    }

    .know-more-btn {
        font-size: 1rem;
        padding: 12px 30px;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .home-section {
        min-height: 450px;
    }

    .event-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .countdown {
        gap: 10px;
        margin-bottom: 25px;
    }

    .count-box {
        padding: 15px 20px;
        min-width: 70px;
    }

    .count-box span {
        font-size: 2rem;
    }

    .count-box p {
        font-size: 0.75rem;
    }

    .know-more-btn {
        font-size: 0.9rem;
        padding: 10px 25px;
    }
}

/* Very small devices */
@media screen and (max-width: 360px) {
    .event-title {
        font-size: 1.2rem;
    }

    .countdown {
        margin-bottom: 20px;
    }

    .count-box {
        padding: 12px 15px;
        min-width: 60px;
    }

    .count-box span {
        font-size: 1.5rem;
    }

    .count-box p {
        font-size: 0.7rem;
    }

    .know-more-btn {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
}