/* ========== RESET & VARIABLES ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --color-brown-dark: #1A0F0A;
    --color-brown-mid: #2C1810;
    --color-brown-light: #D4A373;
    --color-brown-warm: #BC6C25;
    --color-cream: #E8D5C4;
    --color-cream-light: #F5EBE0;
    --color-teal: #2EC4B6;
    --color-amber: #FF9F1C;

    /* Typography */
    --font-display: 'Monoton', cursive;
    --font-heading: 'Secular One', sans-serif;
    --font-body: 'Crimson Text', serif;

    /* Spacing */
    --scroll-y: 0;
}

/* ========== BASE STYLES ========== */

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-brown-dark);
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 400;
    text-transform: uppercase;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 9rem);
    letter-spacing: 0.06em;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 0.06em;
}

h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    letter-spacing: 0.02em;
}

p {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

a {
    color: var(--color-amber);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-teal);
}

/* ========== PARALLAX STRUCTURE ========== */

.parallax-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(calc(var(--scroll-y) * var(--speed)));
}

.bg-layer {
    z-index: 1;
    --speed: 0.3;
}

.mid-layer {
    z-index: 2;
    --speed: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fg-layer {
    z-index: 3;
    --speed: 1.0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* ========== SECTION 1: ENTRANCE ========== */

#entrance {
    background: linear-gradient(to bottom, #1A0F0A 0%, #2C1810 100%);
    position: relative;
}

#entrance-bg {
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.03) 1px,
            transparent 1px,
            transparent 2px
        ),
        linear-gradient(135deg, rgba(212, 163, 115, 0.1) 0%, rgba(188, 108, 37, 0.1) 100%);
    position: absolute;
    filter: contrast(1.1) brightness(0.9);
}

.market-title {
    color: var(--color-cream);
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 159, 28, 0.2);
    text-align: center;
    line-height: 0.95;
    letter-spacing: 0.08em;
    z-index: 4;
    max-width: 90vw;
}

.market-tagline {
    font-family: var(--font-body);
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    letter-spacing: 0.08em;
    color: var(--color-amber);
    text-shadow: 0 2px 10px rgba(255, 159, 28, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 4;
}

/* ========== ORGANIC BLOBS ========== */

.organic-blob {
    position: absolute;
    opacity: 0.15;
    filter: blur(40px);
    pointer-events: none;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--color-teal);
    border-radius: 45% 55% 52% 48% / 48% 45% 55% 52%;
    bottom: 10%;
    left: 5%;
    animation: blob-move-1 8s ease-in-out infinite;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: var(--color-amber);
    border-radius: 38% 62% 58% 42% / 58% 38% 62% 42%;
    top: 20%;
    right: 10%;
    animation: blob-move-2 10s ease-in-out infinite;
}

.blob-footer {
    width: 400px;
    height: 400px;
    background: var(--color-brown-light);
    border-radius: 40% 60% 54% 46% / 50% 40% 60% 50%;
    position: absolute;
    bottom: -100px;
    right: -100px;
    animation: blob-move-1 12s ease-in-out infinite;
}

@keyframes blob-move-1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -50px); }
    66% { transform: translate(-20px, 40px); }
}

@keyframes blob-move-2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-40px, 30px); }
    66% { transform: translate(50px, -20px); }
}

/* ========== SECTION 2: GRID ========== */

#grid-section {
    background: linear-gradient(to bottom, #2C1810 0%, #1A0F0A 100%);
}

.grid-container {
    width: 100%;
    max-width: 1200px;
    padding: 60px 40px;
    z-index: 4;
    text-align: center;
}

.section-title {
    margin-bottom: 60px;
    color: var(--color-amber);
    text-shadow: 0 0 30px rgba(255, 159, 28, 0.3);
}

.grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.grid-item {
    background: rgba(44, 24, 16, 0.6);
    border: 2px solid var(--color-brown-warm);
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.grid-item:hover {
    transform: scale(1.08);
    border-color: var(--color-teal);
    background: rgba(44, 24, 16, 0.9);
    box-shadow: 
        0 0 20px rgba(46, 196, 182, 0.3),
        inset 0 0 20px rgba(46, 196, 182, 0.05);
}

.item-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 4px;
    filter: contrast(1.1) brightness(0.95);
}

.item-title {
    color: var(--color-cream-light);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.item-description {
    color: var(--color-cream);
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ========== SECTION 3: FEATURED ========== */

#featured-section {
    background: linear-gradient(to bottom, #1A0F0A 0%, #2C1810 100%);
}

.featured-container {
    width: 100%;
    max-width: 1000px;
    padding: 60px 40px;
    z-index: 4;
}

.featured-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.featured-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    filter: contrast(1.2) brightness(0.95);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 159, 28, 0.15);
    transition: transform 0.6s ease;
}

.featured-item:hover .featured-image {
    transform: scale(1.05);
}

.featured-content {
    text-align: left;
}

.featured-title {
    color: var(--color-amber);
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.featured-description {
    color: var(--color-cream);
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
}

.featured-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.detail-tag {
    background: rgba(255, 159, 28, 0.15);
    border: 1px solid var(--color-amber);
    color: var(--color-amber);
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.detail-tag:hover {
    background: rgba(46, 196, 182, 0.15);
    border-color: var(--color-teal);
    color: var(--color-teal);
}

/* ========== SECTION 4: FOOTER ========== */

#footer-section {
    background: linear-gradient(to bottom, #2C1810 0%, #1A0F0A 100%);
}

.footer-bg {
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            rgba(212, 163, 115, 0.05) 0px,
            transparent 1px,
            transparent 2px
        ),
        linear-gradient(180deg, rgba(46, 196, 182, 0.05) 0%, rgba(255, 159, 28, 0.05) 100%);
    position: absolute;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    padding: 60px 40px;
    z-index: 4;
    text-align: center;
    position: relative;
}

.footer-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-cream);
    margin-bottom: 10px;
    letter-spacing: 0.08em;
}

.footer-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    color: var(--color-teal);
    margin-bottom: 40px;
    letter-spacing: 0.03em;
}

.footer-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-link {
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: var(--color-amber);
    letter-spacing: 0.05em;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--color-teal);
    border-bottom-color: var(--color-teal);
}

.footer-credit {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-cream);
    opacity: 0.6;
    letter-spacing: 0.02em;
}

/* ========== SECTION BACKGROUNDS ========== */

.section-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.02) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(212, 163, 115, 0.03) 1px,
            transparent 1px,
            transparent 4px
        );
    filter: contrast(1.05) brightness(0.95);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .featured-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .grid-items {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links {
        gap: 20px;
    }

    .organic-blob {
        width: 150px;
        height: 150px;
    }

    .blob-1 {
        width: 150px;
        height: 150px;
        bottom: 5%;
        left: 2%;
    }

    .blob-2 {
        width: 120px;
        height: 120px;
        top: 10%;
        right: 5%;
    }

    .blob-footer {
        width: 250px;
        height: 250px;
        bottom: -50px;
        right: -50px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .grid-container,
    .featured-container,
    .footer-content {
        padding: 40px 20px;
    }

    .grid-items {
        gap: 20px;
    }

    .featured-details {
        gap: 10px;
    }

    .detail-tag {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}
