/* ================= GLOBAL SAFETY ================= */

html, body {
    overflow-x: hidden;
}

/* ================= HERO ================= */

.hero {
    position: relative;
    min-height: 100svh; /* better than 100vh for mobile */
    background-color: black;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    overflow: hidden;
}

/* Zoom image layer */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background: url("../assets/hero.png") center center no-repeat;
    background-size: contain;

    animation: heroZoom 20s ease-in-out infinite alternate;
    transform-origin: center;
    will-change: transform;
    

    z-index: 0;
}

/* Gradient overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.7) 60%,
        rgba(0, 0, 0, 1) 100%
    );
}

/* Content layer */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

/* Typography */
.hero-content h1 {
    font-size: clamp(36px, 6vw, 72px);
    letter-spacing: 6px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

/* Glow pulse */
.hero-content h1.glow {
    animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse {
    from {
        text-shadow:
            0 0 10px var(--primary),
            0 0 20px var(--primary);
    }
    to {
        text-shadow:
            0 0 20px var(--primary),
            0 0 40px var(--primary),
            0 0 60px var(--primary);
    }
}

/* Zoom animation */
@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.05); }
}

/* ================= CATEGORIES ================= */

.categories {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.category {
    border: 1px solid var(--primary);
    padding: 10px 25px;
    transition: 0.3s ease;
}

.category:hover {
    background: var(--primary);
    color: black;
    box-shadow: 0 0 20px var(--primary);
}

/* ================= PRODUCT GRID ================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

/* Tablet */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 50px auto;
    }
}

/* Product Card */
.product-card {
    border: 1px solid rgba(0, 255, 0, 0.3);
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    text-align: center;
    transition: 0.4s ease;
    backdrop-filter: blur(6px);
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow:
        0 0 15px var(--primary),
        0 0 30px rgba(0, 255, 0, 0.3);
    transform: translateY(-6px);
}

/* Image wrapper */
.product-image-wrapper {
    overflow: hidden;
    margin-bottom: 20px;
}

.product-image-wrapper img,
.product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.08);
}

/* Product details */
.product-details h3 {
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.product-details .price {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 16px;
}

/* ================= PDP ================= */

.pdp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 100px auto;
    padding: 0 20px;
}

/* PDP responsive */
@media (max-width: 900px) {
    .pdp {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

.product-image img {
    border: 1px solid rgba(0, 255, 0, 0.3);
    padding: 10px;
    transition: 0.4s ease;
}

.product-image img:hover {
    box-shadow:
        0 0 20px var(--primary),
        0 0 40px rgba(0, 255, 0, 0.3);
}

.product-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.product-info .price {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 20px;
}
yo
.product-info .description {
    opacity: 0.8;
    margin-bottom: 30px;
}

/* ================= FEATURES ================= */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

/* ================= SCROLL INDICATOR ================= */

.scroll-indicator {
    margin: 40px auto 0;
    width: 20px;
    height: 35px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator::after {
    content: "";
    width: 4px;
    height: 6px;
    background: var(--primary);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0%   { opacity: 0; transform: translate(-50%, 0); }
    50%  { opacity: 1; transform: translate(-50%, 10px); }
    100% { opacity: 0; transform: translate(-50%, 18px); }
}

/* ================= MOBILE TWEAKS ================= */

@media (max-width: 768px) {

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 14px;
    }

    .features {
        gap: 20px;
    }
}