/* 
  RIVA - High-End Fashion Design E-Commerce
  Identity: Minimal, Bold, Black & White
*/

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #000000;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-slow: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Base Layout */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Typography Utilities */
.text-huge {
    font-size: clamp(4rem, 15vw, 12rem);
}

.text-large {
    font-size: clamp(2.5rem, 8vw, 5rem);
}

.text-medium {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.text-bold {
    font-weight: 800;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    mix-blend-mode: difference;
    color: white;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: var(--transition-slow);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('assets/4.png') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for readability */
    z-index: 1;
}

.hero .hero-content {
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, white 100%);
    z-index: 1;
}

.hero-content {
    z-index: 2;
}

.hero h1 {
    margin-bottom: var(--spacing-sm);
}

.hero p {
    font-size: 1.25rem;
    font-weight: 500;
    opacity: 0.8;
    letter-spacing: 0.5em;
    text-transform: uppercase;
}

/* Products Grid */
.products-section {
    background: #000;
    color: #fff;
}

.section-header {
    margin-bottom: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1px;
    background: #333;
    /* For thin separators */
    border: 1px solid #333;
}

.product-card {
    background: #000;
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-slow);
}

.product-card:hover {
    background: #111;
}

.product-image {
    width: 100%;
    height: 80%;
    object-fit: cover;
    margin-bottom: var(--spacing-md);
    transition: var(--transition-slow);
    filter: grayscale(100%) contrast(1.1);
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #222;
}


.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
}

/* Remove the block that was hiding images */
.product-image img {
    opacity: 1;
}

.product-info {
    text-align: center;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.product-price {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.7;
}

/* Brand Story */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.story-content {
    padding: var(--spacing-xl) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-image {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-right: 1px solid #111;
}


.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 2px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    transition: var(--transition-slow);
    cursor: pointer;
    margin-top: var(--spacing-md);
}

.btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-white {
    border-color: #fff;
    color: #fff;
}

.btn-white:hover {
    background: #fff;
    color: #000;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), transform 1s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add a hamburger menu later if needed */
    }

    .story-section {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: var(--spacing-lg) 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}