/* ========================================
   MEUMOS - Hand-Drawn Doodle Style CSS
   ======================================== */

/* CSS Variables */
:root {
    --black: #1a1a1a;
    --white: #fafafa;
    --paper: #f5f3ef;
    --accent-red: #c41e3a;
    --accent-lime: #9acd32;
    --accent-yellow: #ffc107;
    
    --font-marker: 'Permanent Marker', cursive;
    --font-handwritten: 'Caveat', cursive;
    --font-sketch: 'Patrick Hand', cursive;
    --font-indie: 'Indie Flower', cursive;
    
    --border-sketch: 2.5px solid var(--black);
    --shadow-sketch: 4px 4px 0 var(--black);
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext y='18' font-size='18'%3E🌶️%3C/text%3E%3C/svg%3E"), auto;
}

body {
    font-family: var(--font-sketch);
    background-color: var(--paper);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='none'/%3E%3Cpath d='M20 20h1v1h-1zM60 40h1v1h-1zM40 70h1v1h-1zM80 80h1v1h-1z' fill='%23000' opacity='0.03'/%3E%3C/svg%3E");
}

a {
    color: inherit;
    text-decoration: none;
}

/* Paper Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    z-index: 9999;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-momo {
    position: relative;
    width: 100px;
    height: 80px;
}

.momo-bounce {
    width: 100%;
    height: 100%;
    animation: bounce 0.6s ease-in-out infinite;
}

.steam-loader {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.steam-loader span {
    width: 8px;
    height: 20px;
    background: var(--black);
    border-radius: 50%;
    animation: steam 1s ease-in-out infinite;
}

.steam-loader span:nth-child(2) { animation-delay: 0.2s; }
.steam-loader span:nth-child(3) { animation-delay: 0.4s; }

.loader-text {
    font-family: var(--font-handwritten);
    font-size: 1.5rem;
    margin-top: 20px;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes steam {
    0%, 100% { 
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    50% { 
        opacity: 0.8;
        transform: translateY(-15px) scale(1);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--paper);
    border-bottom: var(--border-sketch);
}

.nav::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        var(--black) 10px,
        var(--black) 12px
    );
    opacity: 0.1;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-marker);
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
    transition: var(--transition);
}

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

.nav-links a {
    font-family: var(--font-handwritten);
    font-size: 1.3rem;
    position: relative;
    padding: 0.5rem;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--black);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    transform: rotate(-2deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-doodles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 10 Q20 10 18 20 Q15 30 30 35 Q45 30 42 20 Q40 10 30 10' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 5 Q15 15 20 25 Q25 15 20 5' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 120px 120px, 80px 80px;
    background-position: 0 0, 60px 60px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-60px, -60px); }
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    font-family: var(--font-handwritten);
    font-size: 1rem;
    margin-bottom: 1rem;
    transform: rotate(-3deg);
}

.hero-title {
    font-family: var(--font-marker);
    font-size: clamp(4rem, 15vw, 10rem);
    letter-spacing: 0.1em;
    line-height: 1;
    margin-bottom: 0.5rem;
    position: relative;
}

.title-line {
    display: inline-block;
    animation: wobble 3s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

.hero-subtitle {
    font-family: var(--font-handwritten);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-momo-container {
    position: relative;
    margin: 2rem auto;
    width: 200px;
    height: 160px;
}

.hero-momo {
    width: 100%;
    height: 100%;
}

.steam-line {
    animation: steamRise 2s ease-in-out infinite;
    opacity: 0.7;
}

.steam-1 { animation-delay: 0s; }
.steam-2 { animation-delay: 0.3s; }
.steam-3 { animation-delay: 0.6s; }

@keyframes steamRise {
    0% {
        transform: translateY(0) scaleY(1);
        opacity: 0.7;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-20px) scaleY(1.2);
        opacity: 0;
    }
}

.sparkle {
    position: absolute;
    font-size: 1.5rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

.sparkle-1 { top: 0; left: 20px; animation-delay: 0s; }
.sparkle-2 { top: 30px; right: 10px; animation-delay: 0.5s; }
.sparkle-3 { bottom: 40px; left: 10px; animation-delay: 1s; }

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 0.5; }
}

.hero-warning {
    font-family: var(--font-handwritten);
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-handwritten);
    font-size: 1.3rem;
    border: var(--border-sketch);
    background: var(--white);
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.btn-sticker {
    transform: rotate(-1deg);
    box-shadow: var(--shadow-sketch);
}

.btn-sticker:nth-child(2) { transform: rotate(1deg); }
.btn-sticker:nth-child(3) { transform: rotate(-2deg); }

.btn:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 6px 6px 0 var(--black);
}

.btn-accent {
    background: var(--accent-yellow);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.5rem;
}

.btn-tape {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    opacity: 0.3;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 30px;
    height: 30px;
}

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

.handwritten {
    font-family: var(--font-handwritten);
}

.handwritten-lg {
    font-family: var(--font-handwritten);
    font-size: 2.5rem;
    display: block;
}

.handwritten-xl {
    font-family: var(--font-handwritten);
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.accent {
    color: var(--accent-red);
}

.accent-bg {
    background: var(--accent-red) !important;
    color: var(--white) !important;
}

.sketch-border {
    border: var(--border-sketch);
    padding: 1rem;
}

.sketch-border-wobbly {
    border: 3px solid var(--black);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    padding: 1.5rem;
}

.sketch-underline {
    position: relative;
    display: inline-block;
}

.sketch-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--black);
    transform: skewX(-12deg);
}

.sketch-box {
    position: relative;
    padding: 1rem 2rem;
}

.sketch-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--black);
    border-radius: 2px 20px 2px 20px;
    transform: rotate(-1deg);
}

.sketch-banner {
    font-family: var(--font-marker);
    font-size: clamp(2rem, 5vw, 3rem);
    padding: 0.5rem 2rem;
    background: var(--black);
    color: var(--white);
    display: inline-block;
    transform: rotate(-2deg);
    position: relative;
}

.sketch-banner::before,
.sketch-banner::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--paper);
    border: 2px solid var(--black);
}

.sketch-banner::before {
    top: -10px;
    left: -10px;
    transform: rotate(45deg);
}

.sketch-banner::after {
    bottom: -10px;
    right: -10px;
    transform: rotate(45deg);
}

.sketch-highlight {
    background: linear-gradient(transparent 60%, var(--accent-yellow) 60%);
    padding: 0 5px;
}

/* Brand Section */
.brand-section {
    padding: 6rem 0;
    position: relative;
}

.section-doodle-left {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.2;
}

.doodle-chili {
    width: 50px;
    height: 100px;
    animation: sway 3s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.brand-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.brand-quote {
    font-family: var(--font-marker);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    transform: rotate(-1deg);
}

.brand-desc {
    font-size: 1.2rem;
    line-height: 1.8;
}

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

.illustration-card {
    background: var(--white);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    transform: rotate(-1deg);
}

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

.illustration-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: var(--shadow-sketch);
}

.illustration-card svg {
    width: 100%;
    height: 80px;
    margin-bottom: 0.5rem;
}

.card-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.brand-taglines {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.tagline-item {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border: 2px dashed var(--black);
    transform: rotate(-1deg);
    transition: var(--transition);
}

.tagline-item:nth-child(2) { transform: rotate(1deg); }
.tagline-item:nth-child(3) { transform: rotate(-2deg); }

.tagline-item:hover {
    transform: rotate(0deg) scale(1.05);
    background: var(--accent-yellow);
}

/* Menu Preview Section */
.menu-preview {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
}

.menu-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        var(--black) 0,
        var(--black) 10px,
        transparent 10px,
        transparent 20px
    );
    opacity: 0.1;
}

.section-subtitle {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    margin-top: -2rem;
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.comic-panel {
    position: relative;
    background: var(--paper);
    padding: 1.5rem;
    border: 3px solid var(--black);
    transition: var(--transition);
}

.comic-panel::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--black);
    z-index: -1;
}

.comic-panel:hover {
    transform: rotate(-1deg) translateY(-5px);
}

.panel-featured {
    background: var(--accent-yellow);
    transform: rotate(1deg);
}

.panel-featured:hover {
    transform: rotate(0deg) translateY(-5px) scale(1.02);
}

.fire-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 2rem;
    animation: pulse 1s ease-in-out infinite;
}

.panel-content {
    text-align: center;
}

.panel-icon {
    width: 80px;
    height: 70px;
    margin-bottom: 1rem;
}

.panel-title {
    font-family: var(--font-marker);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.panel-price {
    font-family: var(--font-handwritten);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.panel-desc {
    font-family: var(--font-indie);
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.panel-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 20px;
}

/* Popup Section */
.popup-section {
    padding: 6rem 0;
    background: var(--black);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.popup-content {
    text-align: center;
}

.popup-illustration {
    margin: 3rem 0;
}

.stall-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.stall-svg path, 
.stall-svg rect, 
.stall-svg circle {
    stroke: var(--white);
}

.stall-svg text {
    fill: var(--white);
}

.cart-group {
    animation: cartMove 4s ease-in-out infinite;
}

@keyframes cartMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

.cart-steam path {
    animation: steamRise 2s ease-in-out infinite;
}

.popup-desc {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.popup-section .btn {
    background: var(--white);
    color: var(--black);
}

.popup-section .btn:hover {
    background: var(--accent-yellow);
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background: var(--paper);
}

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

.speech-bubble {
    position: relative;
    background: var(--white);
    padding: 2rem;
    border: 3px solid var(--black);
    border-radius: 20px;
    margin-bottom: 20px;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid var(--black);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 33px;
    width: 0;
    height: 0;
    border-left: 17px solid transparent;
    border-right: 17px solid transparent;
    border-top: 17px solid var(--white);
    z-index: 1;
}

.bubble-right::after {
    left: auto;
    right: 30px;
}

.bubble-right::before {
    left: auto;
    right: 33px;
}

.speech-bubble p {
    font-family: var(--font-handwritten);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bubble-author {
    font-family: var(--font-sketch);
    font-size: 1rem;
    opacity: 0.7;
}

.bubble-stars {
    color: var(--accent-yellow);
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.bubble-flame,
.bubble-chili {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    animation: bounce 1s ease-in-out infinite;
}

.testimonial-cta {
    text-align: center;
}

.testimonial-cta p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-torn-edge {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--paper);
    clip-path: polygon(
        0% 100%, 5% 60%, 10% 100%, 15% 50%, 20% 100%, 25% 70%, 
        30% 100%, 35% 40%, 40% 100%, 45% 60%, 50% 100%, 55% 50%, 
        60% 100%, 65% 70%, 70% 100%, 75% 40%, 80% 100%, 85% 60%, 
        90% 100%, 95% 50%, 100% 100%
    );
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-marker);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-momo {
    margin-top: 1rem;
    opacity: 0.5;
}

.footer-momo svg {
    width: 60px;
    height: 50px;
}

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

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
    text-decoration-style: wavy;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px dashed rgba(255,255,255,0.2);
}

.footer-joke {
    font-size: 1.2rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--paper);
        padding: 1rem;
        border-bottom: var(--border-sketch);
        gap: 0;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .brand-content {
        grid-template-columns: 1fr;
    }
    
    .brand-illustrations {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .section-doodle-left {
        display: none;
    }
}

@media (max-width: 480px) {
    .brand-illustrations {
        grid-template-columns: 1fr;
    }
    
    .hero-momo-container {
        transform: scale(0.8);
    }
}

/* Animation classes for scroll */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Hover wobble effect */
.wobble:hover {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}
