:root {
    --red: #A64141;
    --rust: #BF7245;
    --gold: #D9984A;
    --yellow: #F2CA50;
    --bright-yellow: #F2D750;
    --dark: #2C1810;
    --bg-dark: #3D2314;
    --bg-darker: #1F0F08;
    --text: #F2D750;
    --text-muted: #D9984A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier Prime', monospace;
    color: var(--text);
    overflow-x: hidden;
    background: var(--dark);
    letter-spacing: 0.5px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(242, 215, 80, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242, 215, 80, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #F2D750;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 6px solid var(--red);
    box-shadow: 0 8px 0 var(--rust), 0 12px 0 var(--dark);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    filter: drop-shadow(4px 4px 0 var(--dark));
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.1) rotate(-2deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-menu a:hover {
    color: var(--red);
}

.nav-cta {
    background: var(--red);
    color: #F2D750;
    border: 3px solid var(--dark);
    padding: 0.7rem 1.5rem;
    border-radius: 0;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 4px 4px 0 var(--dark);
}

.nav-cta:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--dark);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 8rem 4rem 4rem;
    position: relative;
}

.hero-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 5rem;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    color: var(--bright-yellow);
    text-shadow: 4px 4px 0 var(--rust), 8px 8px 0 var(--red);
    letter-spacing: 3px;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-btn {
    background: var(--bright-yellow);
    color: var(--dark);
    border: 4px solid var(--rust);
    padding: 1rem 2.5rem;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 6px 6px 0 var(--rust);
}

.hero-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--rust);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 0;
    border: 8px solid var(--bright-yellow);
    box-shadow: 12px 12px 0 var(--rust), 24px 24px 0 var(--red);
    filter: saturate(1.3) contrast(1.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--primary);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(10px); }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-delay {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

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

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stats */
.ticker-section {
    background: var(--red);
    border-top: 6px solid var(--bright-yellow);
    border-bottom: 6px solid var(--rust);
    overflow: hidden;
    padding: 1.5rem 0;
}

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    color: var(--bright-yellow);
    padding: 0 3rem;
    letter-spacing: 3px;
    text-shadow: 3px 3px 0 var(--dark);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Story */
.story-section {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 0;
    border: 6px solid var(--bright-yellow);
    box-shadow: 10px 10px 0 var(--rust);
    filter: saturate(1.3) contrast(1.1);
}

.story-text h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--bright-yellow);
    text-shadow: 3px 3px 0 var(--rust);
    letter-spacing: 3px;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Cookies */
.cookies-section {
    padding: 6rem 0;
    background: var(--bg-darker);
}

.section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 4rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--bright-yellow);
    text-shadow: 4px 4px 0 var(--rust);
    letter-spacing: 4px;
}

.cookies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.cookie-card {
    background: #F2D750;
    padding: 1.5rem 1.5rem 2rem;
    transition: all 0.4s;
    border: 6px solid var(--dark);
    box-shadow: 12px 12px 0 var(--rust), 24px 24px 0 var(--red);
    transform: rotate(-1deg);
}

.cookie-card:nth-child(2) {
    transform: rotate(1deg);
}

.cookie-card:nth-child(3) {
    transform: rotate(-2deg);
}

.cookie-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 16px 16px 0 var(--rust), 32px 32px 0 var(--red);
    z-index: 10;
}

.cookie-image {
    position: relative;
    overflow: hidden;
    border: 4px solid var(--dark);
    margin-bottom: 1.5rem;
}

.cookie-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
    filter: saturate(1.4) contrast(1.2);
}

.cookie-card:hover .cookie-image img {
    transform: scale(1.15) rotate(2deg);
}



.cookie-card h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.2rem;
    margin: 0 0 0.5rem;
    color: var(--dark);
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 var(--rust);
}

.cookie-card p {
    color: var(--dark);
    margin: 0 0 1rem;
    font-weight: 700;
}

.price {
    display: inline-block;
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    background: var(--red);
    padding: 0.5rem 1.5rem;
    border: 3px solid var(--dark);
    box-shadow: 4px 4px 0 var(--dark);
    letter-spacing: 2px;
    transform: rotate(-2deg);
}

/* Ingredients */
.ingredients-section {
    padding: 6rem 0;
    background: var(--bg-dark);
    min-height: 100vh;
}

.ingredients-carousel {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
    height: 500px;
}

.carousel-item {
    position: relative;
    width: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border: 4px solid var(--bright-yellow);
    box-shadow: 6px 6px 0 var(--rust);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.85);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item.active {
    width: 600px;
    box-shadow: 10px 10px 0 var(--rust);
}

.carousel-item.active::before {
    background: rgba(26, 26, 26, 0.6);
}

.ingredient-title {
    position: relative;
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: var(--bright-yellow);
    letter-spacing: 3px;
    text-shadow: 3px 3px 0 var(--dark);
    padding: 1.5rem;
    margin: 0;
    z-index: 2;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
}

.carousel-item.active .ingredient-title {
    font-size: 3.5rem;
    writing-mode: horizontal-tb;
    padding: 2rem 2rem 1rem;
}

.ingredient-description {
    position: relative;
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
    padding: 0 2rem 2rem;
    margin: 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    z-index: 2;
}

.carousel-item.active .ingredient-description {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease-in-out 0.6s, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
}

/* Instagram */
.instagram-section {
    padding: 6rem 0;
    background: var(--bg-darker);
    overflow: hidden;
}

.instagram-carousel {
    display: flex;
    gap: 2rem;
    animation: scrollCarousel 30s linear infinite;
    width: max-content;
}

.polaroid {
    background: #F2D750;
    padding: 1rem 1rem 2.5rem;
    box-shadow: 8px 8px 0 var(--rust), 16px 16px 0 var(--dark);
    transform: rotate(-2deg);
    transition: transform 0.3s;
    flex-shrink: 0;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.polaroid:nth-child(even) {
    transform: rotate(2deg);
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

.polaroid img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    display: block;
}

.polaroid p {
    font-family: 'Courier Prime', monospace;
    color: var(--dark);
    text-align: center;
    margin-top: 1rem;
    font-size: 1rem;
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* CTA */
.cta-section {
    padding: 6rem 0;
    background: var(--red);
    text-align: center;
    border-top: 6px solid var(--bright-yellow);
    border-bottom: 6px solid var(--rust);
}

.cta-content h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 4rem;
    color: var(--bright-yellow);
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0 var(--dark);
    letter-spacing: 4px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--yellow);
    margin-bottom: 2rem;
    font-weight: 700;
}

.cta-button {
    background: var(--bright-yellow);
    color: var(--dark);
    border: 4px solid var(--dark);
    padding: 1.2rem 3rem;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 6px 6px 0 var(--dark);
}

.cta-button:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--dark);
}

/* Footer */
footer {
    background: var(--bg-darker);
    color: white;
    padding: 4rem 0 2rem;
    border-top: 4px solid var(--bright-yellow);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 35px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    font-family: 'Bebas Neue', cursive;
    margin-bottom: 1rem;
    color: var(--bright-yellow);
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.footer-col a, .footer-col p {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.flying-superhero {
    position: fixed;
    width: 150px;
    height: 150px;
    pointer-events: none;
    z-index: 9999;
    animation: flyAround 20s infinite linear;
}

.flying-superhero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.3));
}

@keyframes flyAround {
    0% { left: -200px; top: 20%; transform: rotate(-10deg); }
    15% { left: 30%; top: 10%; transform: rotate(5deg); }
    30% { left: 70%; top: 30%; transform: rotate(-5deg); }
    45% { left: 90%; top: 50%; transform: rotate(10deg); }
    60% { left: 60%; top: 70%; transform: rotate(-8deg); }
    75% { left: 20%; top: 60%; transform: rotate(3deg); }
    90% { left: 10%; top: 40%; transform: rotate(-5deg); }
    100% { left: -200px; top: 20%; transform: rotate(-10deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo img {
        height: 50px;
    }

    .nav-menu {
        display: none;
    }

    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        display: block;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 8rem 1rem 2rem;
        gap: 2rem;
        margin-top: 0;
    }

    .hero-title {
        font-size: 2.5rem;
        text-shadow: 2px 2px 0 var(--rust), 4px 4px 0 var(--red);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        box-shadow: 4px 4px 0 var(--rust);
    }

    .hero-image img {
        height: 300px;
        border: 4px solid var(--bright-yellow);
        box-shadow: 6px 6px 0 var(--rust), 12px 12px 0 var(--red);
    }

    .ticker-item {
        font-size: 1.5rem;
        padding: 0 1.5rem;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-image img {
        height: 300px;
        border: 4px solid var(--bright-yellow);
        box-shadow: 6px 6px 0 var(--rust);
    }

    .story-text h2 {
        font-size: 2.5rem;
        text-shadow: 2px 2px 0 var(--rust);
    }

    .story-text p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.5rem;
        text-shadow: 2px 2px 0 var(--rust);
    }

    .cookies-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cookie-card {
        padding: 1rem 1rem 1.5rem;
        box-shadow: 6px 6px 0 var(--rust), 12px 12px 0 var(--red);
    }

    .cookie-card:hover {
        box-shadow: 8px 8px 0 var(--rust), 16px 16px 0 var(--red);
    }

    .cookie-image img {
        height: 250px;
    }

    .cookie-card h3 {
        font-size: 1.8rem;
    }

    .price {
        font-size: 1.5rem;
        padding: 0.4rem 1rem;
    }

    .ingredients-carousel {
        flex-direction: column;
        height: auto;
        gap: 1rem;
    }

    .carousel-item {
        width: 100%;
        height: 120px;
        box-shadow: 4px 4px 0 var(--rust);
    }

    .carousel-item.active {
        width: 100%;
        height: 400px;
    }

    .ingredient-title {
        font-size: 1.5rem;
        padding: 1rem;
    }

    .carousel-item.active .ingredient-title {
        font-size: 2rem;
        padding: 1.5rem 1.5rem 1rem;
    }

    .ingredient-description {
        font-size: 1rem;
        padding: 0 1.5rem 1.5rem;
    }

    .polaroid {
        box-shadow: 4px 4px 0 var(--rust), 8px 8px 0 var(--dark);
    }

    .polaroid img {
        width: 250px;
        height: 250px;
    }

    .cta-content h2 {
        font-size: 2.5rem;
        text-shadow: 2px 2px 0 var(--dark);
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        box-shadow: 4px 4px 0 var(--dark);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .flying-superhero {
        width: 80px;
        height: 80px;
    }
}
