/* ========================================
   GALLERY PAGE STYLES
   ======================================== */

/* Page Header with Hero Image */
.page-header {
    background-image: url('../images/beach-fun.JPG');
    background-size: cover;
    background-position: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.page-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Featured Video Section */
.featured-video {
    padding: 100px 0;
    background: #ffffff;
}

.featured-video h2 {
    text-align: center;
    font-size: 3rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
    position: relative;
}

.featured-video h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(44, 90, 160, 0.2);
}

.video-container video {
    width: 100%;
    display: block;
}

/* Gallery Filter */
.gallery-filter {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: #ffffff;
    color: #2c5aa0;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.1), rgba(52, 152, 219, 0.1));
    border-color: #2c5aa0;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #2c5aa0, #3498db);
    color: #ffffff;
    border-color: #2c5aa0;
    box-shadow: 0 5px 20px rgba(44, 90, 160, 0.3);
}

/* Photo Gallery */
.photo-gallery {
    padding: 60px 0 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(44, 90, 160, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(44, 90, 160, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(44, 90, 160, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

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

.overlay-content {
    color: #ffffff;
    width: 100%;
}

.overlay-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.view-btn {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
}

/* Video Gallery Section */
.video-gallery {
    padding: 100px 0;
    background: #ffffff;
}

.video-gallery h2 {
    text-align: center;
    font-size: 3rem;
    color: #2c5aa0;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.video-gallery h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    border-radius: 2px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.video-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(44, 90, 160, 0.15);
    transition: all 0.4s ease;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(44, 90, 160, 0.25);
}

.video-item video {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.video-item h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    color: #2c5aa0;
}

.video-item p {
    padding: 0 1.5rem 1.5rem;
    font-size: 1rem;
    color: #666;
}

/* Customer Photos Section */
.customer-photos {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.customer-photos h2 {
    text-align: center;
    font-size: 3rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.customer-photos h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    border-radius: 2px;
}

.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.customer-photo {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(44, 90, 160, 0.15);
    transition: all 0.4s ease;
}

.customer-photo:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(44, 90, 160, 0.25);
}

.customer-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.customer-info {
    padding: 1.5rem;
}

.customer-info p {
    font-size: 1.1rem;
    color: #2c5aa0;
    font-style: italic;
    margin-bottom: 0.8rem;
}

.customer-info span {
    font-size: 0.95rem;
    color: #f39c12;
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 3rem;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: #f39c12;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.lightbox-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-nav button:hover {
    background: rgba(243, 156, 18, 0.8);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .featured-video h2,
    .video-gallery h2,
    .customer-photos h2 {
        font-size: 2.2rem;
    }

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

    .filter-buttons {
        gap: 0.8rem;
    }

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

    .videos-grid,
    .customer-grid {
        grid-template-columns: 1fr;
    }

    .featured-video,
    .photo-gallery,
    .video-gallery,
    .customer-photos {
        padding: 60px 0;
    }

    .gallery-filter {
        padding: 60px 0 30px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .gallery-item img {
        height: 250px;
    }
}
