/* ==========================================
   SRV MAAVU KADAI - GALLERY PAGE
========================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:#FFFDF6;
    color:#333;
    overflow-x:hidden;
}

img{
    display:block;
    width:100%;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* ==========================
   ROOT COLORS
========================== */

:root{

    --green:#2E7D32;
    --orange:#FF9800;
    --cream:#FFFDF6;
    --white:#ffffff;
    --dark:#222;

}

/* ==========================
   HEADER
========================== */

.header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    background:rgba(255,255,255,.94);

    backdrop-filter:blur(12px);

    border-bottom:1px solid rgba(0,0,0,.05);

    z-index:999;

}

.navbar{

    height:80px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo{

    font-family:'Poppins',sans-serif;

    font-size:1.6rem;

    font-weight:700;

    color:var(--green);

}

.logo i{

    color:var(--orange);

    margin-right:8px;

}

.nav-links{

    display:flex;

    gap:35px;

}

.nav-links a{

    color:#444;

    font-weight:500;

    transition:.3s;

}

.nav-links a:hover,
.nav-links .active{

    color:var(--green);

}

.menu-btn{

    display:none;

    font-size:1.7rem;

    color:var(--green);

    cursor:pointer;

}

/* ==========================
   HERO
========================== */

.gallery-hero{

    padding:170px 0 100px;

    text-align:center;

    position:relative;

    overflow:hidden;

    background:
    linear-gradient(
        135deg,
        rgba(46,125,50,.08),
        rgba(255,152,0,.08)
    );

}

.gallery-hero::before{

    content:"";

    position:absolute;

    width:550px;
    height:550px;

    border-radius:50%;

    top:-220px;
    left:-150px;

    background:rgba(46,125,50,.08);

    filter:blur(40px);

}

.gallery-hero::after{

    content:"";

    position:absolute;

    width:450px;
    height:450px;

    border-radius:50%;

    bottom:-180px;
    right:-100px;

    background:rgba(255,152,0,.08);

    filter:blur(40px);

}

.hero-tag{

    display:inline-block;

    padding:12px 24px;

    background:#E8F5E9;

    color:var(--green);

    border-radius:50px;

    font-weight:600;

    margin-bottom:22px;

}

.gallery-hero h1{

    font-family:'Poppins',sans-serif;

    font-size:4rem;

    margin-bottom:20px;

}

.gallery-hero h1 span{

    color:var(--green);

}

.gallery-hero p{

    max-width:760px;

    margin:auto;

    line-height:1.8;

    color:#666;

}

/* ==========================
   GALLERY SECTION
========================== */

.gallery-section{

    padding:100px 0;

}

.section-title{

    text-align:center;

    margin-bottom:60px;

}

.section-title h2{

    font-family:'Poppins',sans-serif;

    font-size:2.6rem;

    color:var(--green);

    margin-bottom:15px;

}

.section-title p{

    color:#666;

    max-width:650px;

    margin:auto;

    line-height:1.7;

}

.gallery-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}
/* ==========================================
   GALLERY CARD
========================================== */

.gallery-item{

    position:relative;

    overflow:hidden;

    border-radius:22px;

    background:#fff;

    cursor:pointer;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    transition:.45s ease;

}

.gallery-item:hover{

    transform:translateY(-10px);

    box-shadow:0 25px 50px rgba(46,125,50,.18);

}


/* ==========================================
   IMAGE
========================================== */

.gallery-item img{

    width:100%;

    height:280px;

    object-fit:cover;

    transition:.6s;

}

.gallery-item:hover img{

    transform:scale(1.12);

}


/* ==========================================
   OVERLAY
========================================== */

.gallery-overlay{

    position:absolute;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:25px;

    background:linear-gradient(
        rgba(46,125,50,.92),
        rgba(255,152,0,.85)
    );

    opacity:0;

    transition:.4s ease;

}

.gallery-item:hover .gallery-overlay{

    opacity:1;

}


/* ==========================================
   OVERLAY CONTENT
========================================== */

.overlay-content{

    transform:translateY(20px);

    transition:.4s ease;

}

.gallery-item:hover .overlay-content{

    transform:translateY(0);

}

.overlay-content i{

    font-size:2.8rem;

    color:#fff;

    margin-bottom:15px;

}

.overlay-content h3{

    font-family:'Poppins',sans-serif;

    color:#fff;

    font-size:1.5rem;

    margin-bottom:12px;

}

.overlay-content p{

    color:#F8F8F8;

    line-height:1.7;

    margin-bottom:22px;

    font-size:.95rem;

}


/* ==========================================
   VIEW BUTTON
========================================== */

.view-btn{

    border:none;

    outline:none;

    cursor:pointer;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:14px 26px;

    border-radius:50px;

    background:#fff;

    color:var(--green);

    font-family:'Poppins',sans-serif;

    font-weight:600;

    transition:.35s;

}

.view-btn:hover{

    background:var(--orange);

    color:#fff;

    transform:scale(1.08);

}


/* ==========================================
   BORDER ANIMATION
========================================== */

.gallery-item::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:0%;

    height:5px;

    background:linear-gradient(
        90deg,
        var(--green),
        var(--orange)
    );

    transition:.45s;

    z-index:5;

}

.gallery-item:hover::before{

    width:100%;

}


/* ==========================================
   FLOAT EFFECT
========================================== */

@keyframes floatGallery{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-6px);
    }

    100%{
        transform:translateY(0);
    }

}

.gallery-item{

    animation:floatGallery 5s ease-in-out infinite;

}

.gallery-item:nth-child(2){

    animation-delay:.3s;

}

.gallery-item:nth-child(3){

    animation-delay:.6s;

}

.gallery-item:nth-child(4){

    animation-delay:.9s;

}

.gallery-item:nth-child(5){

    animation-delay:1.2s;

}

.gallery-item:nth-child(6){

    animation-delay:1.5s;

}


/* ==========================================
   GLOW EFFECT
========================================== */

.gallery-item::after{

    content:"";

    position:absolute;

    width:220px;

    height:220px;

    right:-120px;

    top:-120px;

    background:radial-gradient(
        rgba(255,255,255,.28),
        transparent
    );

    opacity:0;

    transition:.4s;

}

.gallery-item:hover::after{

    opacity:1;

}
/* ==========================================
   LIGHTBOX
========================================== */

.lightbox{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.92);

    display:flex;
    justify-content:center;
    align-items:center;

    opacity:0;
    visibility:hidden;

    transition:.35s;

    z-index:9999;

}

.lightbox.active{

    opacity:1;
    visibility:visible;

}

#lightbox-image{

    max-width:90%;
    max-height:85vh;

    border-radius:18px;

    box-shadow:0 25px 60px rgba(0,0,0,.45);

}

.close-lightbox{

    position:absolute;

    top:25px;
    right:35px;

    font-size:3rem;

    color:#fff;

    cursor:pointer;

    transition:.3s;

}

.close-lightbox:hover{

    color:var(--orange);
    transform:rotate(90deg);

}

.lightbox-prev,
.lightbox-next{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:60px;
    height:60px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    background:rgba(255,255,255,.15);

    color:#fff;

    font-size:1.5rem;

    transition:.3s;

}

.lightbox-prev{

    left:30px;

}

.lightbox-next{

    right:30px;

}

.lightbox-prev:hover,
.lightbox-next:hover{

    background:var(--orange);

}


/* ==========================================
   FOOTER
========================================== */

.footer{

    background:#17351B;

    color:#fff;

}

.footer-container{

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:50px;

    padding:70px 0;

}

.footer h2,
.footer h3{

    font-family:'Poppins',sans-serif;

    margin-bottom:18px;

}

.footer p{

    color:#ddd;

    line-height:1.8;

}

.footer ul li{

    margin-bottom:12px;

}

.footer ul li a{

    color:#ddd;

    transition:.3s;

}

.footer ul li a:hover{

    color:var(--orange);

    padding-left:6px;

}

.footer-bottom{

    border-top:1px solid rgba(255,255,255,.1);

    text-align:center;

    padding:20px;

    color:#ddd;

}


/* ==========================================
   FLOATING WHATSAPP
========================================== */

.floating-whatsapp{

    position:fixed;

    right:25px;
    bottom:25px;

    width:65px;
    height:65px;

    border-radius:50%;

    background:#25D366;

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:2rem;

    box-shadow:0 15px 35px rgba(37,211,102,.35);

    z-index:999;

    transition:.35s;

    animation:floatWhatsapp 2.5s infinite;

}

.floating-whatsapp:hover{

    transform:scale(1.1);

}

@keyframes floatWhatsapp{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-8px);
    }

    100%{
        transform:translateY(0);
    }

}


/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:992px){

    .gallery-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .footer-container{

        grid-template-columns:1fr;

        text-align:center;

    }

}

@media(max-width:768px){

    .menu-btn{

        display:block;

    }

    .nav-links{

        position:absolute;

        top:80px;
        left:-100%;

        width:100%;

        background:#fff;

        flex-direction:column;

        align-items:center;

        gap:25px;

        padding:35px 0;

        transition:.4s;

    }

    .nav-links.active{

        left:0;

    }

    .gallery-grid{

        grid-template-columns:1fr;

    }

    .gallery-hero h1{

        font-size:2.5rem;

    }

    .lightbox-prev,
    .lightbox-next{

        width:48px;
        height:48px;

        font-size:1.2rem;

    }

}

@media(max-width:480px){

    .container{

        width:92%;

    }

    .gallery-item img{

        height:240px;

    }

    .overlay-content h3{

        font-size:1.2rem;

    }

    .overlay-content p{

        font-size:.9rem;

    }

    .view-btn{

        padding:12px 20px;

        font-size:.9rem;

    }

    .gallery-hero h1{

        font-size:2rem;

    }

}


/* ==========================================
   SCROLLBAR
========================================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#f3f3f3;

}

::-webkit-scrollbar-thumb{

    background:linear-gradient(
        var(--green),
        var(--orange)
    );

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--green);

}