/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* App Styles */
.App {
    text-align: center;
}

.main-header {
    font-size: 48px;
    font-weight: bold;
    color: white;
    font-family: "Nexa", Sans-serif;  
    height: 150px;
    padding: 30px 0;
    background: linear-gradient(145deg, #5AD2B9, #3F4592);
    box-shadow: 0 8px 20px rgba(2, 15, 32, 0.25);
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgb(200, 200, 200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center; 
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: shimmerParticles 8s infinite linear;
    z-index: 1;
    opacity: 0.8;
    pointer-events: none;
}

@keyframes shimmerParticles {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 100px 100px, -100px -100px, 50px 50px, -50px -50px;
    }
}

.main-header:hover {
    transform: scale(1.0);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    background: linear-gradient(145deg, #3F4592, #5AD2B9);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5),
                0 0 10px #ffffff,
                0 0 20px #ffffff,
                0 0 30px #5AD2B9,
                0 0 40px #5AD2B9;
}

.header-logo {
    width: 180px;
    height: auto;
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.main-footer {
    background-color: #3F4592;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    font-family: "Nexa", Sans-serif;
}

/* Gallery Styles */
.gallery-container {
    padding: 20px;
}

.category-section {
    margin-bottom: 90px;
    margin-top: 70px;
    padding: 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
    radial-gradient(circle at 10% 10%, rgba(0,0,0,0.03) 1px, transparent 1px),
    radial-gradient(circle at 90% 90%, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    border-radius: 16px;
    pointer-events: none;
}

.category-section[data-category="academiaQuiz"] {
    background: linear-gradient(135deg, #FEF8EC 0%, #FDF0D8 100%);
    border-left: 4px solid #FBAA19;
}

.category-section[data-category="culturalEvent"] {
    background: linear-gradient(135deg, #FFFDE6 0%, #FFFBD0 100%);
    border-left: 4px solid #FDE000;
}

.category-section[data-category="inaugration"] {
    background: linear-gradient(135deg, #F0F8F1 0%, #E8F4EA 100%);
    border-left: 4px solid #8BCB90;
}

.category-section[data-category="panelDiscussion"] {
    background: linear-gradient(135deg, #FDF0ED 0%, #FBE8E4 100%);
    border-left: 4px solid #F04A23;
}

.category-section[data-category="stallsManagement"] {
    background: linear-gradient(135deg, #EFF9F5 0%, #E7F5EF 100%);
    border-left: 4px solid #5BBE95;
}

.category-section[data-category="workshops"] {
    background: linear-gradient(135deg, #FCF8F2 0%, #F9F2E8 100%);
    border-left: 4px solid #D4C1A5;
}

.category-heading {
    text-align: center;
    color: #323B89;
    font-family: "Nexa", Sans-serif;
    transition: all 0.4s ease;
    cursor: pointer;
    display: inline-block;
    padding: 15px 30px;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8f8f8, #ffffff);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-bottom: none !important;
    margin: 20px 0 30px 0;
    position: relative;
    left: auto;
    transform: none;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: max-content;
    max-width: 90%;
    z-index: 2;
}

.category-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #5AD2B9, #3F4592);
    border-radius: 2px;
    transition: all 0.4s ease;
}

.category-heading:hover {
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(63, 69, 146, 0.3);
    background: linear-gradient(145deg, #F04A23,#FCBA12);
}

.category-heading:hover::after {
    width: 120px;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
}


.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px; 
    padding: 0;
    margin: 0 -2px; 
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
    border-radius: 0; 
}

.gallery img:hover {
    transform: scale(1.03);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-header {
        font-size: 32px;
        height: 110px;
        padding: 20px 0;
    }
    
    .header-logo {
        width: 40px;
        height: 40px;
        left: 15px;
    }
    
    .category-heading {
        font-size: 28px;
        margin: 25px 0 15px 0;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .main-header {
        font-size: 24px;
        height: 90px;
        padding: 15px 0;
    }
    
    .header-logo {
        width: 30px;
        height: 30px;
        left: 10px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}



/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    transition: 0.3s;
    z-index: 1001;
}

.nav-btn.prev {
    left: 30px;
}

.nav-btn.next {
    right: 30px;
}

.nav-btn:hover,
.nav-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


.gallery img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.03);
}

    .nav-btn {
        font-size: 30px;
        padding: 10px;
    }
    
    .nav-btn.prev {
        left: 10px;
    }
    
    .nav-btn.next {
        right: 10px;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
    max-height: 90vh; /
}

#lightbox-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    animation: zoom 0.3s;
    max-height: 80vh;
    object-fit: contain; 
}

/* Add responsive adjustments */
@media (max-width: 768px) {
    .lightbox-content {
        width: 95%;
        padding: 10px;
        max-height: 95vh; /* Adjusted for mobile */
    }
    
    #lightbox-image {
        max-height: 85vh; /* Adjusted for mobile */
    }
}