/*======================================================
   PREMIUM GALLERY
   STYLE.CSS - PART 1
=======================================================*/

/*==============================
Google Font
==============================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');


/*==============================
CSS VARIABLES
==============================*/

:root{

    --primary:#00c6ff;
    --secondary:#0072ff;

    --dark:#070b16;
    --dark2:#101623;
    --card:#161d2e;

    --white:#ffffff;
    --text:#d7d7d7;
    --gray:#9ca3af;

    --glass:rgba(255,255,255,.08);

    --radius:22px;

    --shadow:
        0 10px 40px rgba(0,0,0,.45);

    --transition:.4s ease;

}


/*==============================
RESET
==============================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    background:var(--dark);

    color:var(--white);

    overflow-x:hidden;

}


img{

    width:100%;

    display:block;

}

a{

    text-decoration:none;

    color:inherit;

}

ul{

    list-style:none;

}

button{

    font-family:inherit;

    border:none;

    cursor:pointer;

}

.container{

    width:min(1200px,90%);
    margin:auto;

}


/*==============================
SCROLLBAR
==============================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#05070d;

}

::-webkit-scrollbar-thumb{

    background:linear-gradient(
        var(--primary),
        var(--secondary)
    );

    border-radius:20px;

}



/*==============================
PRELOADER
==============================*/

.preloader{

    position:fixed;

    inset:0;

    background:#05070d;

    display:flex;

    align-items:center;

    justify-content:center;

    flex-direction:column;

    z-index:99999;

    transition:.6s;

}

.preloader.hide{

    opacity:0;

    visibility:hidden;

}

.loader-circle{

    width:75px;

    height:75px;

    border-radius:50%;

    border:4px solid rgba(255,255,255,.12);

    border-top:4px solid var(--primary);

    animation:spin 1s linear infinite;

}

.preloader h2{

    margin-top:25px;

    letter-spacing:3px;

    font-weight:500;

    color:#fff;

}



/*==============================
HEADER
==============================*/

header{

    position:fixed;

    width:100%;

    top:0;

    left:0;

    z-index:999;

    transition:.4s;

}

header.sticky{

    background:rgba(10,15,25,.78);

    backdrop-filter:blur(18px);

    box-shadow:0 10px 35px rgba(0,0,0,.4);

}

.nav-container{

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:22px 0;

}

.logo a{

    font-size:28px;

    font-weight:700;

    color:white;

}

.logo span{

    color:var(--primary);

}



/*==============================
MENU
==============================*/

nav ul{

    display:flex;

    gap:45px;

}

nav ul li a{

    color:white;

    font-weight:500;

    transition:.35s;

    position:relative;

}

nav ul li a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:linear-gradient(

        var(--primary),

        var(--secondary)

    );

    transition:.4s;

}

nav ul li a:hover{

    color:var(--primary);

}

nav ul li a:hover::after{

    width:100%;

}


/*==============================
MOBILE BUTTON
==============================*/

.menu-btn{

    display:none;

    font-size:30px;

    color:white;

    cursor:pointer;

}


/*==============================
HERO
==============================*/

.hero{

    min-height:100vh;

    background:

    url(images/hero.jpg)

    center/cover no-repeat;

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;

    overflow:hidden;

}

.hero-overlay{

    position:absolute;

    inset:0;

    background:

    linear-gradient(

        rgba(5,10,20,.65),

        rgba(8,10,20,.85)

    );

}

.hero-content{

    position:relative;

    z-index:5;

    text-align:center;

    width:min(850px,90%);

}

.hero span{

    display:inline-block;

    padding:10px 20px;

    border-radius:100px;

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(10px);

    margin-bottom:25px;

    font-size:15px;

}

.hero h1{

    font-size:68px;

    line-height:1.15;

    margin-bottom:25px;

    font-weight:800;

}

.hero p{

    color:var(--text);

    font-size:18px;

    line-height:1.8;

    margin:auto;

    max-width:720px;

}


/*==============================
BUTTON
==============================*/

.btn{

    display:inline-flex;

    margin-top:40px;

    padding:18px 42px;

    border-radius:100px;

    background:

    linear-gradient(

    135deg,

    var(--primary),

    var(--secondary)

    );

    color:white;

    font-weight:600;

    transition:.4s;

    box-shadow:

    0 10px 35px rgba(0,198,255,.35);

}

.btn:hover{

    transform:translateY(-5px);

    box-shadow:

    0 18px 40px rgba(0,198,255,.5);

}


/*==============================
SCROLL ICON
==============================*/

.scroll-down{

    position:absolute;

    bottom:45px;

    left:50%;

    transform:translateX(-50%);

    font-size:30px;

    color:white;

    animation:float 2s infinite;

    z-index:10;

}


/*==============================
FILTER SECTION
==============================*/

.gallery-filter{

    padding:90px 0 60px;

    background:var(--dark2);

}

.gallery-filter .container{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:18px;

}

.gallery-filter button{

    padding:14px 34px;

    border-radius:100px;

    color:white;

    background:var(--glass);

    backdrop-filter:blur(12px);

    transition:.4s;

    border:1px solid rgba(255,255,255,.08);

}

.gallery-filter button:hover{

    background:

    linear-gradient(

    135deg,

    var(--primary),

    var(--secondary)

    );

}

.gallery-filter button.active{

    background:

    linear-gradient(

    135deg,

    var(--primary),

    var(--secondary)

    );

}


/*==============================
SECTION TITLE
==============================*/

.section-title{

    text-align:center;

    margin-bottom:70px;

}

.section-title h2{

    font-size:48px;

    margin-bottom:20px;

}

.section-title p{

    color:var(--gray);

    max-width:700px;

    margin:auto;

    line-height:1.8;

}


/*==============================
ANIMATIONS
==============================*/

@keyframes spin{

    100%{

        transform:rotate(360deg);

    }

}

@keyframes float{

    0%{

        transform:
        translate(-50%,0);

    }

    50%{

        transform:
        translate(-50%,12px);

    }

    100%{

        transform:
        translate(-50%,0);

    }

}
/*======================================================
   PREMIUM GALLERY
   STYLE.CSS - PART 2
=======================================================*/


/*=========================================
GALLERY SECTION
=========================================*/

#gallery{

    padding:80px 0 120px;

    background:var(--dark);

}


/*=========================================
MASONRY GRID
=========================================*/

.gallery-container{

    width:min(1400px,92%);
    margin:auto;

    columns:4 280px;
    column-gap:25px;

}


/*=========================================
GALLERY CARD
=========================================*/

.gallery-item{

    position:relative;

    margin-bottom:25px;

    overflow:hidden;

    border-radius:22px;

    cursor:pointer;

    break-inside:avoid;

    background:var(--card);

    box-shadow:var(--shadow);

    transition:all .45s ease;

}


/*=========================================
IMAGE
=========================================*/

.gallery-item img{

    width:100%;

    display:block;

    transition:1s;

}


/* Different image heights */

.gallery-item:nth-child(1) img{

    height:520px;
    object-fit:cover;

}

.gallery-item:nth-child(2) img{

    height:360px;
    object-fit:cover;

}

.gallery-item:nth-child(3) img{

    height:430px;
    object-fit:cover;

}

.gallery-item:nth-child(4) img{

    height:620px;
    object-fit:cover;

}

.gallery-item:nth-child(5) img{

    height:340px;
    object-fit:cover;

}

.gallery-item:nth-child(6) img{

    height:500px;
    object-fit:cover;

}

.gallery-item:nth-child(7) img{

    height:380px;
    object-fit:cover;

}

.gallery-item:nth-child(8) img{

    height:600px;
    object-fit:cover;

}

.gallery-item:nth-child(9) img{

    height:430px;
    object-fit:cover;

}

.gallery-item:nth-child(10) img{

    height:540px;
    object-fit:cover;

}

.gallery-item:nth-child(11) img{

    height:360px;
    object-fit:cover;

}

.gallery-item:nth-child(12) img{

    height:470px;
    object-fit:cover;

}



/*=========================================
GRADIENT OVERLAY
=========================================*/

.gallery-item::before{

    content:"";

    position:absolute;

    inset:0;

    background:

    linear-gradient(

        to top,

        rgba(0,0,0,.85),

        rgba(0,0,0,.1),

        transparent

    );

    opacity:0;

    transition:.45s;

    z-index:2;

}



/*=========================================
HOVER GLOW
=========================================*/

.gallery-item::after{

    content:"";

    position:absolute;

    inset:0;

    background:

    radial-gradient(circle at top,

    rgba(0,198,255,.25),

    transparent 70%);

    opacity:0;

    transition:.45s;

    z-index:1;

}



/*=========================================
CONTENT OVERLAY
=========================================*/

.overlay{

    position:absolute;

    left:0;

    bottom:0;

    width:100%;

    padding:35px;

    color:#fff;

    z-index:5;

    transform:translateY(50px);

    opacity:0;

    transition:.45s;

}



.overlay span{

    display:inline-block;

    padding:8px 18px;

    border-radius:50px;

    background:rgba(255,255,255,.12);

    backdrop-filter:blur(10px);

    font-size:13px;

    margin-bottom:18px;

}



.overlay h3{

    font-size:28px;

    margin-bottom:15px;

    font-weight:700;

}



.overlay a{

    display:inline-flex;

    align-items:center;

    gap:10px;

    color:var(--primary);

    font-weight:600;

    transition:.4s;

}

.overlay a:hover{

    letter-spacing:1px;

}



/*=========================================
IMAGE HOVER
=========================================*/

.gallery-item:hover{

    transform:translateY(-10px);

    box-shadow:

        0 30px 70px rgba(0,0,0,.55);

}



.gallery-item:hover img{

    transform:scale(1.12);

}



.gallery-item:hover::before{

    opacity:1;

}



.gallery-item:hover::after{

    opacity:1;

}



.gallery-item:hover .overlay{

    transform:translateY(0);

    opacity:1;

}



/*=========================================
BORDER ANIMATION
=========================================*/

.gallery-item{

    border:1px solid rgba(255,255,255,.05);

}



.gallery-item:hover{

    border-color:

    rgba(0,198,255,.45);

}



/*=========================================
FADE ANIMATION
=========================================*/

.gallery-item{

    animation:fadeUp .8s ease both;

}



/*=========================================
IMAGE SHINE
=========================================*/

.gallery-item .shine{

    position:absolute;

    top:0;

    left:-100%;

    width:50%;

    height:100%;

    background:

    linear-gradient(

    90deg,

    transparent,

    rgba(255,255,255,.35),

    transparent);

    transform:skewX(-25deg);

}



.gallery-item:hover .shine{

    animation:shine 1s;

}



/*=========================================
CATEGORY BADGE
=========================================*/

.overlay span{

    border:1px solid

    rgba(255,255,255,.2);

}



/*=========================================
GALLERY SPACING
=========================================*/

.gallery-item{

    transition:

    transform .4s,

    box-shadow .4s,

    border-color .4s;

}



/*=========================================
REVEAL EFFECT
=========================================*/

.reveal{

    opacity:0;

    transform:translateY(70px);

    transition:1s;

}



.reveal.active{

    opacity:1;

    transform:none;

}



/*=========================================
KEYFRAMES
=========================================*/

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(60px);

    }

    to{

        opacity:1;

        transform:none;

    }

}



@keyframes shine{

    100%{

        left:150%;

    }

}



/*=========================================
TABLET
=========================================*/

@media(max-width:992px){

.gallery-container{

    columns:3 250px;

}

.overlay h3{

    font-size:22px;

}

}



/*=========================================
MOBILE
=========================================*/

@media(max-width:768px){

.gallery-container{

    columns:2 180px;

    column-gap:18px;

}

.overlay{

    padding:20px;

}

.overlay h3{

    font-size:18px;

}

.gallery-item{

    border-radius:18px;

}

}



/*=========================================
SMALL MOBILE
=========================================*/

@media(max-width:480px){

.gallery-container{

    columns:1;

}

.overlay{

    padding:18px;

}

}
/*======================================================
  PREMIUM GALLERY
  STYLE.CSS - PART 3
======================================================*/


/*=========================================
LIGHTBOX
=========================================*/

.lightbox{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.95);

    display:flex;

    align-items:center;

    justify-content:center;

    flex-direction:column;

    z-index:99999;

    opacity:0;

    visibility:hidden;

    transition:.4s ease;

}

.lightbox.active{

    opacity:1;

    visibility:visible;

}

.lightbox img{

    width:min(90%,1100px);

    max-height:85vh;

    object-fit:contain;

    border-radius:18px;

    box-shadow:0 30px 70px rgba(0,0,0,.7);

}


/*=========================================
LIGHTBOX BUTTONS
=========================================*/

.lightbox-buttons{

    position:absolute;

    width:100%;

    display:flex;

    justify-content:space-between;

    padding:0 40px;

    top:50%;

    transform:translateY(-50%);

}

.lightbox-buttons button{

    width:60px;

    height:60px;

    border-radius:50%;

    background:rgba(255,255,255,.12);

    backdrop-filter:blur(12px);

    color:#fff;

    font-size:24px;

    transition:.35s;

}

.lightbox-buttons button:hover{

    background:linear-gradient(135deg,var(--primary),var(--secondary));

    transform:scale(1.1);

}


/*=========================================
CLOSE BUTTON
=========================================*/

.close-lightbox{

    position:absolute;

    top:35px;

    right:40px;

    width:55px;

    height:55px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:rgba(255,255,255,.12);

    backdrop-filter:blur(10px);

    font-size:24px;

    color:#fff;

    cursor:pointer;

    transition:.35s;

}

.close-lightbox:hover{

    background:#ff3b30;

    transform:rotate(90deg);

}


/*=========================================
BACK TO TOP
=========================================*/

.top-btn{

    position:fixed;

    right:30px;

    bottom:30px;

    width:55px;

    height:55px;

    border-radius:50%;

    background:linear-gradient(135deg,var(--primary),var(--secondary));

    color:#fff;

    font-size:20px;

    box-shadow:0 10px 30px rgba(0,198,255,.35);

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:999;

}

.top-btn.show{

    opacity:1;

    visibility:visible;

}

.top-btn:hover{

    transform:translateY(-6px);

}


/*=========================================
FOOTER
=========================================*/

footer{

    background:var(--dark2);

    padding:80px 0 35px;

    text-align:center;

    border-top:1px solid rgba(255,255,255,.08);

}

footer h2{

    font-size:34px;

    margin-bottom:18px;

}

footer p{

    color:var(--gray);

    max-width:650px;

    margin:0 auto 30px;

    line-height:1.8;

}


/*=========================================
SOCIAL ICONS
=========================================*/

.social{

    display:flex;

    justify-content:center;

    gap:18px;

    margin-bottom:35px;

}

.social a{

    width:50px;

    height:50px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    color:#fff;

    transition:.35s;

}

.social a:hover{

    background:linear-gradient(135deg,var(--primary),var(--secondary));

    transform:translateY(-5px);

}

footer .copyright{

    margin-top:20px;

    font-size:14px;

    color:#7b7b7b;

}


/*=========================================
MOBILE MENU
=========================================*/

@media(max-width:992px){

.menu-btn{

    display:block;

    z-index:1001;

}

nav{

    position:fixed;

    top:0;

    right:-100%;

    width:300px;

    height:100vh;

    background:#0b1220;

    transition:.4s;

    padding-top:120px;

    box-shadow:-15px 0 40px rgba(0,0,0,.4);

}

nav.active{

    right:0;

}

nav ul{

    flex-direction:column;

    align-items:center;

    gap:35px;

}

nav ul li a{

    font-size:20px;

}

}


/*=========================================
TABLET HERO
=========================================*/

@media(max-width:992px){

.hero h1{

    font-size:52px;

}

.hero p{

    font-size:17px;

}

}


/*=========================================
MOBILE HERO
=========================================*/

@media(max-width:768px){

.hero{

    padding:120px 20px;

    text-align:center;

}

.hero h1{

    font-size:40px;

}

.hero p{

    font-size:16px;

}

.btn{

    padding:16px 30px;

}

.logo a{

    font-size:22px;

}

}


/*=========================================
SMALL MOBILE
=========================================*/

@media(max-width:480px){

.hero h1{

    font-size:32px;

}

.hero span{

    font-size:13px;

}

.gallery-filter button{

    padding:12px 22px;

    font-size:14px;

}

.lightbox-buttons{

    padding:0 15px;

}

.lightbox-buttons button{

    width:48px;

    height:48px;

}

.close-lightbox{

    width:48px;

    height:48px;

    right:15px;

    top:15px;

}

}


/*=========================================
UTILITY CLASSES
=========================================*/

.hide{

    display:none !important;

}

.text-center{

    text-align:center;

}

.mt-50{

    margin-top:50px;

}

.mb-50{

    margin-bottom:50px;

}


/*=========================================
SELECTION
=========================================*/

::selection{

    background:var(--primary);

    color:#fff;

}


/*=========================================
FOCUS STATES
=========================================*/

button:focus,
a:focus{

    outline:2px solid var(--primary);

    outline-offset:4px;

}


/*=========================================
SMOOTH IMAGE TRANSITION
=========================================*/

.gallery-item img,
.lightbox img{

    transition:transform .5s ease, opacity .4s ease;

}


/*=========================================
END OF FILE
=========================================*/