* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}


html {
    scroll-behavior: smooth;
}


/* hero-gallery Section */
.hero-gallery {
    width: 100%;
    height: 250px; 
    background: linear-gradient(to right, #0a3d62, #1e90ff); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: white;
    margin-top: 65px;
}

.hero-gallery-title-gallery {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    animation: fadeIn 1.2s ease-in-out forwards;
}

.hero-gallery-title-gallery span {
    color: #FFD700;
}

.hero-gallery-subtitle-gallery {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 10px;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-gallery {
        height: 220px;
    }
    .hero-gallery-title-gallery {
        font-size: 2.2rem;
    }
    .hero-gallery-subtitle-gallery {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-gallery {
        height: 200px;
    }
    .hero-gallery-title-gallery {
        font-size: 2rem;
    }
    .hero-gallery-subtitle-gallery {
        font-size: 1rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .hero-gallery {
        height: 180px;
        padding: 15px;
    }
    .hero-gallery-title-gallery {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    .hero-gallery-subtitle-gallery {
        font-size: 1rem;
        max-width: 90%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---- Gallery Layout ---- */
.gallery-section {
    padding: 60px 5%;
    display: flex;
    justify-content: center;
}

.gallery-container {
    display: flex;
    width: 100%;
    gap: 30px;
}

/* ---- Left Side: Category List ---- */
.gallery-categories {
    width: 250px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-categories h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.gallery-categories ul {
    list-style: none;
    padding: 0;
}

.gallery-categories li {
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.gallery-categories li:hover,
.gallery-categories li.active {
    background: #1E3A8A;
    color: white;
}

/* ---- Right Side: Image Grid ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    flex: 1;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.text {
    position: absolute;
    bottom: 0px;
    left: 16px;
    width: 90%;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 12px 12px 0 0;
    opacity: 10;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ---- Lightbox Styles ---- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    z-index: 1001;
}

.lightbox.active {
    visibility: visible;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-container { 
        flex-direction: column;
    }
   
    .gallery-categories {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}