html {
    scroll-behavior: smooth;
}

/* ================= GOOGLE FONT ================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ================= GLOBAL STYLING ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0f172a;
    color: white;
    overflow-x: hidden;
}

/* ================= HERO SECTION ================= */

.hero {
    min-height: 100vh;
    background:
        linear-gradient(rgba(15, 23, 42, 0.8),
            rgba(15, 23, 42, 0.8)),
        url('images/image3.jpg');

    background-size: cover;
    background-position: center;

    padding: 30px 8%;
}

/* ================= NAVBAR ================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
}

.logo span {
    color: #38bdf8;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: white;
    transition: 0.3s;
    font-weight: 500;
}

.nav-links a::after {
    content: '';

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 0%;
    height: 2px;

    background: #38bdf8;

    transition: 0.4s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #38bdf8;
}

/* ================= HERO CONTENT ================= */
.hero-content {
    animation: fadeUp 1.5s ease;
    text-align: center;
    margin-top: 180px;
}

.hero-content h2 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-content p {
    max-width: 700px;
    margin: auto;
    line-height: 1.8;
    color: #cbd5e1;
    font-size: 1.1rem;
}

/* ================= FILTER BUTTONS ================= */

.filter-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;

    padding: 50px 20px;
}

.filter-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;

    background: rgba(255, 255, 255, 0.08);

    color: white;

    cursor: pointer;

    transition: 0.3s;

    backdrop-filter: blur(10px);

    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #38bdf8;
    transform: translateY(-3px);
}

/* ================= GALLERY ================= */

.gallery-container {
    width: 90%;
    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));

    gap: 25px;

    padding-bottom: 80px;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= GALLERY CARD ================= */

.gallery-item {
    border: 1px solid rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(10px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;

    overflow: hidden;

    border-radius: 20px;

    cursor: pointer;

    height: 350px;

    background: #1e293b;
}

/* ================= IMAGE ================= */

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: 0.5s;
}

/* ================= OVERLAY ================= */

.overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(transparent,
            rgba(0, 0, 0, 0.8));

    display: flex;
    flex-direction: column;
    justify-content: end;

    padding: 25px;

    opacity: 0;

    transition: 0.5s;
    pointer-events: none;
}

.overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.overlay p {
    color: #cbd5e1;
}

/* ================= HOVER EFFECT ================= */

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* ================= LIGHTBOX ================= */

.lightbox {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.95);

    display: none;

    justify-content: center;
    align-items: center;

    flex-direction: column;

    z-index: 9999;
}

/* ================= LIGHTBOX IMAGE ================= */

.lightbox-image {
    max-width: 80%;
    max-height: 80%;

    border-radius: 20px;

    object-fit: cover;

    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    animation: zoomIn 0.4s ease;
}

/* ================= CLOSE BUTTON ================= */

.close-btn {
    position: absolute;

    top: 30px;
    right: 40px;

    font-size: 3rem;

    cursor: pointer;
}

/* ================= NEXT PREV BUTTONS ================= */

.prev-btn,
.next-btn {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    background: rgba(255, 255, 255, 0.15);

    border: none;

    color: white;

    width: 60px;
    height: 60px;

    font-size: 2rem;

    cursor: pointer;

    border-radius: 50%;

    transition: 0.3s;

    z-index: 10000;
}

/* ================= FOOTER ================= */

footer {
    text-align: center;
    padding: 30px;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    color: #94a3b8;
}

/* ================= RESPONSIVE DESIGN ================= */

@media(max-width:768px) {

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .lightbox-image {
        max-width: 95%;
    }
}

/* ================= COLLECTIONS ================= */

.collections {
    padding: 80px 10%;
    text-align: center;
}

.collections h2 {
    font-size: 3rem;
    margin-bottom: 50px;
}

.collection-cards {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 30px;
}

.collection-card {
    background: rgba(255, 255, 255, 0.05);

    padding: 40px 25px;

    border-radius: 20px;

    transition: 0.4s;

    border: 1px solid rgba(255, 255, 255, 0.1);
}

.collection-card:hover {
    transform: translateY(-10px);

    background: rgba(56, 189, 248, 0.1);
}

.collection-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.collection-card p {
    color: #cbd5e1;
    line-height: 1.7;

    @keyframes zoomIn {

        from {
            transform: scale(0.7);
            opacity: 0;
        }

        to {
            transform: scale(1);
            opacity: 1;
        }
    }

    /* ================= CUSTOM SCROLLBAR ================= */

    ::-webkit-scrollbar {
        width: 10px;
    }

    ::-webkit-scrollbar-track {
        background: #0f172a;
    }

    ::-webkit-scrollbar-thumb {
        background: #38bdf8;
        border-radius: 20px;
    }

    .image-counter {
        margin-top: 20px;

        font-size: 1.1rem;

        color: white;

        letter-spacing: 2px;
    }

    /* ================= LOADER ================= */

    .loader-wrapper {
        position: fixed;

        top: 0;
        left: 0;

        width: 100%;
        height: 100%;

        background: #0f172a;

        display: flex;
        justify-content: center;
        align-items: center;

        z-index: 99999;

        transition: 0.8s;
    }

    .loader {
        width: 70px;
        height: 70px;

        border: 6px solid rgba(255, 255, 255, 0.2);

        border-top-color: #38bdf8;

        border-radius: 50%;

        animation: spin 1s linear infinite;
    }

    /* SPIN ANIMATION */

    @keyframes spin {

        to {
            transform: rotate(360deg);
        }
    }
}