@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Gravitas+One&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Quicksand:wght@300..700&family=Titan+One&display=swap');
/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
}

/* Enable snap scrolling */
html {
    scroll-behavior: smooth;
}

body {
    color: #fff;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    font-family: "Inconsolata", monospace;
    font-weight: bold;
}

/* ================= HERO ================= */

.hero {
    height: 100vh;
    width: 100%;
    background: url("assets/img/6.jpg") no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 80px 60px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* ================= NAVBAR ================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: transparent;
    margin-top: 12px;
}

/* Logo Center */
.nav-logo {
    position: absolute;
    left: 50%;
    top:12px;
    transform: translateX(-50%);
}

.nav-logo img {
    height: 40px;
    width: auto;
}

/* ================= HAMBURGER ================= */

.hamburger {
    position: absolute;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

/* When page is scrolled */
.navbar.scrolled .hamburger span {
    background: #000;
    /* BLACK after hero */
}

/* Hamburger Animation */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ================= SIDE MENU ================= */

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    max-width: 400px;
    height: 100vh;
    background: #000;
    padding: 120px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 1001;
}

.side-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.side-menu.active {
    transform: translateX(0);
}

/* ================= OVERLAY ================= */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ================= CLOSE BUTTON ================= */

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s ease;
}

.close-btn:hover {
    opacity: 0.6;
}

.nav-btn:hover {
    opacity: 0.6;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .navbar {
        padding: 20px 25px;
    }

    .hamburger {
        left: 25px;
    }

}

/* ================= HERO CONTENT ================= */

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

/* HERO CONTENT */
.hero-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* MAIN TITLE */
.hero-content h1 {
    font-size: clamp(42px, 10vw, 180px);
    line-height: 0.9;
    letter-spacing: -2px;
    white-space: nowrap;
    margin-bottom: 20px;
}

/* SUBTEXT */
.hero-content p {
    font-size: clamp(16px, 2vw, 18px);
    margin-bottom: 30px;
    letter-spacing: 1px;
    font-weight: bold;
}

/* BUTTON */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.btn:hover {
    background: #000;
    color: #fff;
}
.btn:hover {
    background: #ddd;
}

.nav-logo img {
    filter: brightness(0) invert(1);
    transition: 0.3s ease;
}

.logo-black .nav-logo img {
    filter: none;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .hero {
        padding: 40px 25px;
    }

    .navbar {
        padding: 20px 25px;
    }

    .nav-left {
        display: none;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .hero-content h1 {
        white-space: normal;
    }
}

/* ================= STORE SECTION ================= */

.store {
    background: #fff;
    color: #000;
    padding: 120px 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.store-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.product {
    text-align: center;
}

.product img {
    width: 100%;
    max-width: 250px;
    margin-bottom: 20px;
}

.product h3 {
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 200;

}

.product p {
    font-size: 14px;
    font-weight: 200;
}

/* ================= PRODUCT IMAGE HOVER SWAP ================= */

.product-image {
    position: relative;
    width: 100%;
    max-width: 250px;
    margin: 0 auto 20px;
}

.product-image img {
    width: 100%;
    display: block;
    transition: opacity 0.4s ease;
}

/* Back image sits on top */
.product-image .back {
    position: absolute;
    inset: 0;
    opacity: 0;
}

/* Hover effect */
.product:hover .back {
    opacity: 1;
}

.product:hover .front {
    opacity: 0;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
    .store-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #store {
        margin-top: 250px;
    }
}

@media (max-width: 600px) {
    .store {
        padding: 80px 25px;
    }

    .store-container {
        grid-template-columns: 1fr;
    }
}

/* ================= MOBILE SCROLL FIX ================= */

@media (max-width: 768px) {

    html,
    body {
        height: auto;
        overflow-y: auto;
        scroll-snap-type: none;
    }

    section {
        min-height: auto;
    }

}

/* ================= FIX STORE HEIGHT ON MOBILE ================= */

@media (max-width: 768px) {

    #store {
        height: auto !important;
        min-height: auto !important;
        padding-bottom: 80px;
        /* optional breathing space */
    }

}
/* LOADER */
#loader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-logo {
    width: 100px; /* adjust size */
    filter: brightness(0) invert(1); /* makes logo white */
    animation: heartbeat 1.4s infinite ease-in-out;
}

/* Heartbeat Animation */
@keyframes heartbeat {
    0%   { transform: scale(1); }
    20%  { transform: scale(1.08); }
    40%  { transform: scale(1); }
    60%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Hide loader */
#loader.hidden {
    opacity: 0;
    visibility: hidden;
}