/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: #0a0a0a;
    color: #fff;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 3rem;
    color: #00d4ff;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.navbar a {
    font-size: 1.8rem;
    color: #fff;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: #00d4ff;
    border-bottom: 3px solid #00d4ff;
}

#menu {
    font-size: 3.6rem;
    color: #00d4ff;
    display: none;
}

/* Gallery Section */
.gallery {
    padding: 10rem 9% 5rem;
    min-height: 100vh;
}

.heading {
    font-size: 4rem;
    margin-bottom: 3rem;
    text-align: center;
}

.heading span {
    color: #00d4ff;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.button-group .btn {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.05));
    border: 2px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    padding: 1.2rem 2.5rem;
    border-radius: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.button-group .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.button-group .btn:hover::before {
    left: 100%;
}

.button-group .btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.1));
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.button-group .btn.is-checked {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #0a0a0a;
    border-color: #00d4ff;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 5rem;
    padding: 0 2rem;
}

.gallery-item {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-height: 300px;
}

.gallery-item:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 2rem 4rem rgba(0, 212, 255, 0.4);
    border-color: rgba(0, 212, 255, 0.6);
}

.gallery-images {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.gallery-images img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 212, 255, 0.05));
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 1rem 2rem rgba(0, 212, 255, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-details {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-details h3 {
    color: #00d4ff;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.gallery-details p {
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.event-meta span {
    color: #00d4ff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievements {
    background: rgba(0, 212, 255, 0.1);
    padding: 1rem;
    border-radius: 0.8rem;
    border-left: 4px solid #00d4ff;
}

.achievements strong {
    color: #00d4ff;
    display: block;
    margin-bottom: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 85%;
    max-width: 800px;
    max-height: 70%;
    object-fit: contain;
    animation: zoom 0.6s;
    border-radius: 1rem;
    box-shadow: 0 2rem 4rem rgba(0, 212, 255, 0.3);
}

@keyframes zoom {
    from { transform: scale(0) }
    to { transform: scale(1) }
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #00d4ff;
}

.caption {
    margin: auto;
    display: block;
    width: 85%;
    max-width: 800px;
    text-align: center;
    color: #fff;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 1rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.backbtn {
    text-align: center;
    margin-top: 4rem;
}

.backbtn .btn {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #fff;
    padding: 1.5rem 3rem;
    border-radius: 3rem;
    font-size: 1.8rem;
    font-weight: 500;
    transition: 0.3s ease;
}

.backbtn .btn:hover {
    transform: translateY(-0.3rem);
    box-shadow: 0 1rem 2rem rgba(0, 212, 255, 0.3);
}

/* Scroll Top Button */
#scroll-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    z-index: 100;
    display: none;
    place-items: center;
    height: 4.5rem;
    width: 4.5rem;
    border-radius: 50%;
    background: #00d4ff;
    color: #0a0a0a;
    cursor: pointer;
    transition: 0.3s ease;
}

#scroll-top.active {
    display: grid;
}

#scroll-top:hover {
    background: #0099cc;
}

/* Loading Animation */
.gallery-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.gallery-container.loading::before {
    display: block;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive */
@media (max-width: 991px) {
    header {
        padding: 2rem 3%;
    }
    
    .gallery {
        padding: 10rem 3% 5rem;
    }
    
    .gallery-container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    #menu {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        border-left: 3px solid #00d4ff;
        border-bottom: 3px solid #00d4ff;
        border-bottom-left-radius: 2rem;
        padding: 1rem 3%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .heading {
        font-size: 3rem;
    }

    .gallery-item {
        flex-direction: column;
        min-height: auto;
    }

    .gallery-images {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-details {
        padding: 1.5rem;
    }

    .gallery-details h3 {
        font-size: 2rem;
    }

    .modal-content {
        width: 95%;
    }
}