﻿/* =========================================================
   PF INTERNATIONAL
   PREMIUM GALLERY PAGE
========================================================= */

.pf-gallery-page {
    position: relative;
    padding: 90px 5% 110px;
    background: radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.07), transparent 30%), radial-gradient(circle at 90% 80%, rgba(7, 56, 42, 0.07), transparent 35%), #ffffff;
    overflow: hidden;
}


/* =========================================================
   HEADER
========================================================= */

.gallery-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
    animation: galleryHeaderReveal 0.9s ease forwards;
}

.gallery-subtitle {
    display: inline-block;
    margin-bottom: 12px;
    color: #D4AF37;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
}


.gallery-header h1 {
    margin: 0;
    color: #07382A;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}


    .gallery-header h1 span {
        color: #D4AF37;
    }


.gallery-header p {
    margin: 18px auto 0;
    max-width: 620px;
    color: #66706c;
    font-size: 16px;
    line-height: 1.7;
}


.gallery-line {
    width: 70px;
    height: 3px;
    margin: 25px auto 0;
    border-radius: 50px;
    background: linear-gradient( 90deg, #07382A, #D4AF37, #07382A );
}


/* =========================================================
   GALLERY GRID
========================================================= */

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* =========================================================
   GALLERY CARD
========================================================= */

.gallery-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.10);
    opacity: 0;
    transform: translateY(35px);
    animation: galleryCardReveal 0.8s ease forwards;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}


    /* Stagger animation */

    .gallery-card:nth-child(1) {
        animation-delay: 0.15s;
    }

    .gallery-card:nth-child(2) {
        animation-delay: 0.25s;
    }

    .gallery-card:nth-child(3) {
        animation-delay: 0.35s;
    }

    .gallery-card:nth-child(4) {
        animation-delay: 0.45s;
    }

    .gallery-card:nth-child(5) {
        animation-delay: 0.55s;
    }

    .gallery-card:nth-child(6) {
        animation-delay: 0.65s;
    }


    /* =========================================================
   CARD HOVER
========================================================= */

    .gallery-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 22px 50px rgba(0, 0, 0, 0.17), 0 0 0 1px rgba(212, 175, 55, 0.25);
    }


/* =========================================================
   IMAGE
========================================================= */

.gallery-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2f4f2;
}


    .gallery-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 0.8s cubic-bezier(.2,.7,.2,1), filter 0.5s ease;
    }


.gallery-card:hover .gallery-image img {
    transform: scale(1.10);
    filter: brightness(0.78) saturate(1.08);
}


/* =========================================================
   GOLD TOP BORDER
========================================================= */

.gallery-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 5;
    background: linear-gradient( 90deg, #07382A, #D4AF37, #07382A );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}


.gallery-card:hover .gallery-image::before {
    transform: scaleX(1);
}


/* =========================================================
   DARK OVERLAY
========================================================= */

.gallery-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(3, 29, 22, 0.88), rgba(3, 29, 22, 0.10) 60%, transparent );
    opacity: 0;
    transition: opacity 0.5s ease;
}


.gallery-card:hover .gallery-image::after {
    opacity: 1;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.gallery-overlay {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 22px;
    z-index: 6;
    color: #ffffff;
    transform: translateY(15px);
    opacity: 0;
    transition: opacity 0.45s ease, transform 0.45s ease;
}


.gallery-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}


.gallery-overlay span {
    display: block;
    margin-bottom: 7px;
    color: #D4AF37;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}


.gallery-overlay h3 {
    margin: 0;
    font-size: 23px;
    font-weight: 750;
    letter-spacing: 0.2px;
}


.gallery-overlay p {
    margin: 6px 0 0;
    color: rgba(255,255,255,0.78);
    font-size: 12px;
    letter-spacing: 1px;
}


/* =========================================================
   PREMIUM SHINE
========================================================= */

.gallery-shine {
    position: absolute;
    top: -100%;
    left: -70%;
    width: 45%;
    height: 250%;
    z-index: 7;
    pointer-events: none;
    background: linear-gradient( 90deg, transparent, rgba(255,255,255,0.35), transparent );
    transform: rotate(25deg);
    opacity: 0;
}


.gallery-card:hover .gallery-shine {
    opacity: 1;
    animation: galleryShine 1.1s ease forwards;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes galleryHeaderReveal {

    from {
        opacity: 0;
        transform: translateY(-25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes galleryCardReveal {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes galleryShine {

    from {
        left: -70%;
    }

    to {
        left: 140%;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .pf-gallery-page {
        padding: 70px 4% 90px;
    }

    .gallery-header {
        margin-bottom: 45px;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .gallery-overlay h3 {
        font-size: 20px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .pf-gallery-page {
        padding: 55px 18px 70px;
    }

    .gallery-header {
        margin-bottom: 35px;
    }

    .gallery-subtitle {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .gallery-header h1 {
        font-size: 38px;
    }

    .gallery-header p {
        font-size: 14px;
        line-height: 1.6;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .gallery-card {
        border-radius: 18px;
    }

    .gallery-image {
        aspect-ratio: 4 / 3;
    }

        /* Mobile वर overlay नेहमी थोडा visible */

        .gallery-image::after {
            opacity: 0.75;
        }

    .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
        bottom: 18px;
    }

        .gallery-overlay h3 {
            font-size: 21px;
        }

        .gallery-overlay p {
            font-size: 11px;
        }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .pf-gallery-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .gallery-header h1 {
        font-size: 34px;
    }
}
