/*═══════════════════════════════════════════════════════════════════════
  GALLERY PAGE STYLES
═══════════════════════════════════════════════════════════════════════*/

/*─────────────────────────────────────────────────────────────────────
  GALLERY HERO SECTION
─────────────────────────────────────────────────────────────────────*/
.gallery-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-navy) 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 184, 212, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.gallery-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.gallery-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 300;
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 4rem 1.5rem;
    }

    .gallery-hero h1 {
        font-size: 2.5rem;
    }

    .gallery-hero p {
        font-size: 1rem;
    }
}

/*─────────────────────────────────────────────────────────────────────
  GALLERY SECTION
─────────────────────────────────────────────────────────────────────*/
.gallery-section {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 3.5rem;
}

.gallery-intro h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.gallery-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/*─────────────────────────────────────────────────────────────────────
  FILTER BUTTONS
─────────────────────────────────────────────────────────────────────*/
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--primary-blue);
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
    background: rgba(91, 127, 219, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(91, 127, 219, 0.3);
}

@media (max-width: 768px) {
    .gallery-filters {
        gap: 0.75rem;
    }

    .filter-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
}

/*─────────────────────────────────────────────────────────────────────
  GALLERY GRID
─────────────────────────────────────────────────────────────────────*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

.gallery-item.hidden {
    display: none !important;
}

.gallery-item.hidden-item {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*─────────────────────────────────────────────────────────────────────
  GALLERY ITEM INNER
─────────────────────────────────────────────────────────────────────*/
.gallery-item-inner {
    position: relative;
    width: 100%;
    padding-bottom: 95%;
    overflow: hidden;
}

.gallery-item-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/*─────────────────────────────────────────────────────────────────────
  GALLERY OVERLAY
─────────────────────────────────────────────────────────────────────*/
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.8) 0%, rgba(91, 127, 219, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.overlay-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.overlay-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.gallery-btn {
    padding: 0.75rem 2rem;
    background: var(--accent-cyan);
    color: var(--dark-navy);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.gallery-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 212, 0.3);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .overlay-content h3 {
        font-size: 1.25rem;
    }

    .overlay-content p {
        font-size: 0.85rem;
    }

    .gallery-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/*─────────────────────────────────────────────────────────────────────
  VIEW MORE BUTTON
─────────────────────────────────────────────────────────────────────*/
.view-more-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0 2rem;
}

.view-more-btn {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 144, 255, 0.4);
}

.view-more-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .view-more-container {
        margin: 2rem 0 1.5rem;
    }

    .view-more-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/*─────────────────────────────────────────────────────────────────────
  LIGHTBOX MODAL
─────────────────────────────────────────────────────────────────────*/
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: fadeInLightbox 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

@keyframes fadeInLightbox {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

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

.lightbox-image-container {
    position: relative;
    width: 100%;
    max-height: 70vh;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: visible;
}

.lightbox-image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 70vh;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.lightbox-title h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

.lightbox-nav {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(91, 127, 219, 0.3);
    border: 2px solid var(--primary-blue);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-blue);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-close {
        right: 20px;
        font-size: 2.5rem;
    }

    .lightbox-title h3 {
        font-size: 1.25rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        gap: 1rem;
    }
}

/*─────────────────────────────────────────────────────────────────────
  GALLERY CTA SECTION
─────────────────────────────────────────────────────────────────────*/
.gallery-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-navy) 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: var(--white);
}

.gallery-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.gallery-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.gallery-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.gallery-cta .cta-button {
    display: inline-block;
}

@media (max-width: 768px) {
    .gallery-cta {
        padding: 3rem 1.5rem;
    }

    .gallery-cta h2 {
        font-size: 1.8rem;
    }

    .gallery-cta p {
        font-size: 1rem;
    }
}

/*─────────────────────────────────────────────────────────────────────
  RESPONSIVE DESIGN
─────────────────────────────────────────────────────────────────────*/
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .gallery-section {
        padding: 3rem 1rem;
    }

    .gallery-intro h2 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
