@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Premium Color Palette */
    --clr-bg: #1A1A1A;
    /* Deep Charcoal */
    --clr-bg-alt: #222222;
    /* Slightly lighter charcoal */
    --clr-text-primary: #F8F8F8;
    /* Soft White */
    --clr-text-secondary: #B0B0B0;
    /* Light Gray */
    --clr-accent: #C5A059;
    /* Muted Gold */
    --clr-border: #333333;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-ui: 'Outfit', sans-serif;

    /* Spacing / Negative Space */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Layout Constants */
    --max-width: 1200px;
    --max-text-width: 65ch;
    /* Optimal line length for readability */
}

/* --- Base Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.title-main {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--clr-accent);
}

.title-section {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.subtitle {
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    color: var(--clr-text-secondary);
    display: block;
    margin-bottom: var(--space-xs);
}

p {
    max-width: var(--max-text-width);
    color: var(--clr-text-secondary);
    margin-bottom: var(--space-md);
    font-size: 1.05rem;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-padding {
    padding: var(--space-xl) 0;
}

.split-screen {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .split-screen {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* --- Components --- */

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-ui);
    background-color: var(--clr-accent);
    color: #000;
    padding: 1rem 2rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    border: 1px solid var(--clr-accent);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--clr-accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-text-primary);
    border-color: var(--clr-border);
}

.btn-outline:hover {
    border-color: var(--clr-text-primary);
    color: var(--clr-text-primary);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: var(--space-sm) 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0;
    border-bottom-color: var(--clr-border);
    background-color: var(--clr-bg);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--clr-text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-links {
    list-style: none;
    gap: var(--space-md);
}

@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: var(--space-sm) 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-family: var(--font-ui);
    color: var(--clr-text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--clr-accent);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--space-xl) + 80px);
    /* Account for header */
    padding-bottom: var(--space-lg);
    background-color: var(--clr-bg);
}

.hero p {
    font-size: 1.2rem;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image .main-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

/* Product Collection (Grid) */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.product-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: var(--clr-bg-alt);
    margin-bottom: var(--space-sm);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Hover Reveal Effect */
.product-image.has-hover .base-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
}

.product-image.has-hover .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card:hover .product-image.has-hover .base-img {
    opacity: 0;
}

.product-card:hover .product-image.has-hover .hover-img {
    opacity: 1;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-ui);
    padding-top: var(--space-sm);
    padding-bottom: var(--space-xs);
}



.product-price {
    font-size: 1.1rem;
    color: var(--clr-text-primary);
    margin-bottom: 0;
    font-weight: 500;
}

.btn-buy-wa {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #25D366;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-buy-wa:hover {
    background-color: #1ebc59;
    transform: translateY(-2px);
}

/* Features (Scannable Lists) */
.features {
    background-color: var(--clr-bg-alt);
}

.features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    counter-reset: feature-counter;
}

@media (min-width: 768px) {
    .features-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-item {
    position: relative;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--clr-border);
}

.feature-number {
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--clr-accent);
    line-height: 1;
    transform: translateY(-50%);
    background-color: var(--clr-bg-alt);
    padding-right: var(--space-sm);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-xs);
}

/* Footer */
footer {
    background-color: #111;
    padding: var(--space-lg) 0 var(--space-sm);
    border-top: 1px solid var(--clr-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--clr-text-secondary);
    text-decoration: none;
    font-family: var(--font-ui);
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--clr-accent);
}

/* --- Animations --- */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-down {
    opacity: 0;
    transform: translateY(-50px);
    transition: all 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-up.active,
.reveal-down.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Reset product image base styles without tilt */
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: var(--clr-bg-alt);
    margin-bottom: var(--space-sm);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Hover Reveal Effect */
.product-image.has-hover .base-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
}

.product-image.has-hover .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Fade images on pure CSS hover, Tilt handles the rotation */
.product-card:hover .product-image.has-hover .base-img {
    opacity: 0;
}

.product-card:hover .product-image.has-hover .hover-img {
    opacity: 1;
}