*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#0b0b0b;
    color:#fff;
    overflow-x:hidden;
}

/* Loader */

.loader{
    position:fixed;
    inset:0;
    background:#000;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;
    transition:.4s;
}

.loader.hide{
    opacity:0;
    visibility:hidden;
}

.loader-ring{
    width:60px;
    height:60px;
    border:4px solid rgba(255,255,255,.15);
    border-top:4px solid #d4af37;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/* Header */

.topbar{
    position:sticky;
    top:0;
    z-index:1000;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 25px;

    backdrop-filter:blur(18px);
    background:rgba(0,0,0,.45);
    border-bottom:1px solid rgba(255,255,255,.08);
}

.logo{
    font-size:24px;
    font-weight:700;
}

.logo span{
    color:#d4af37;
}

.search-box{
    display:flex;
    align-items:center;
    gap:10px;

    background:#1b1b1b;
    padding:10px 18px;
    border-radius:50px;

    width:340px;
}

.search-box input{
    width:100%;
    background:none;
    border:none;
    outline:none;
    color:white;
    font-size:15px;
}

/* Hero */

.hero{
    padding:70px 20px 45px;
    text-align:center;
}

.hero h1{
    font-size:42px;
    margin-bottom:12px;
}

.hero p{
    color:#aaa;
    font-size:17px;
}

/* Gallery */


.gallery-item{

    break-inside:avoid;

    margin-bottom:14px;

    overflow:hidden;

    border-radius:18px;

    cursor:pointer;

    background:#151515;

    transform:translateY(30px);

    opacity:0;

    animation:fadeUp .6s forwards;

}

.gallery-item img{

    width:100%;

    display:block;

    transition:.45s;

}

.gallery-item:hover img{

    transform:scale(1.06);

}

@keyframes fadeUp{

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* Loading */

.loading{

    text-align:center;

    padding:40px;

    color:#aaa;

}

/* Lightbox */

.lightbox{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.95);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.lightbox.active{

    display:flex;

}

.lightbox img{

    max-width:92%;

    max-height:90vh;

    border-radius:16px;

    animation:zoom .35s;

}

@keyframes zoom{

    from{

        transform:scale(.85);

        opacity:0;

    }

    to{

        transform:scale(1);

        opacity:1;

    }

}

.close-btn{

    position:absolute;

    top:20px;

    right:20px;

    width:50px;

    height:50px;

    border:none;

    border-radius:50%;

    background:#ffffff20;

    color:white;

    cursor:pointer;

    font-size:24px;

}

.nav{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    border:none;

    width:55px;

    height:55px;

    border-radius:50%;

    background:#ffffff20;

    color:white;

    font-size:28px;

    cursor:pointer;

}

.prev{

    left:25px;

}

.next{

    right:25px;

}

.caption{

    position:absolute;

    bottom:20px;

    left:50%;

    transform:translateX(-50%);

    background:#00000090;

    padding:12px 22px;

    border-radius:30px;

}

/* Scroll Button */

.scroll-top{

    position:fixed;

    right:25px;

    bottom:25px;

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:#d4af37;

    color:black;

    font-size:22px;

    cursor:pointer;

    display:none;

    box-shadow:0 10px 25px rgba(212,175,55,.3);

}

.scroll-top.show{

    display:block;

}

/* Responsive */

@media(max-width:1200px){

.gallery{

column-count:3;

}

}

@media(max-width:768px){

.topbar{

flex-direction:column;

gap:15px;

}

.search-box{

width:100%;

}

.hero h1{

font-size:32px;

}

.gallery{

column-count:2;

padding:10px;

}

}

@media(max-width:480px){

.gallery{

column-count:2;

column-gap:8px;

}

.hero{

padding:40px 15px;

}

.hero h1{

font-size:26px;

}

}


/* ===== Premium Image Effects ===== */

.gallery-item{
    position:relative;
}

.gallery-item::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        90deg,
        #1b1b1b 25%,
        #2d2d2d 37%,
        #1b1b1b 63%
    );

    background-size:400% 100%;

    animation:shimmer 1.2s infinite;

}

.gallery-item.loaded::before{

    display:none;

}

.gallery-item img{

    opacity:0;

    transition:opacity .5s ease,
               transform .4s ease;

}

.gallery-item.loaded img{

    opacity:1;

}

@keyframes shimmer{

0%{
background-position:100% 0;
}

100%{
background-position:-100% 0;
}

}

.gallery-item:hover{

transform:translateY(-6px);

transition:.35s;

box-shadow:0 15px 35px rgba(0,0,0,.4);

}


.gallery{

display:flex;

flex-direction:column;

gap:40px;

padding:20px;

}

.gallery-batch{

column-count:2;

column-gap:12px;

}

.gallery-batch .gallery-item{

break-inside:avoid;

margin-bottom:12px;

}

@media(min-width:768px){

.gallery-batch{

column-count:4;

}

}

@media(min-width:1200px){

.gallery-batch{

column-count:5;

}

}
