/* ===========================================
   simidiot.com - Chaotic Absurdity Stylesheet
   =========================================== */

/* CSS Custom Properties */
:root {
    --electric-banana: #FFE135;
    --hot-magenta: #FF00FF;
    --acid-green: #B0FF00;
    --deep-navy: #1B1464;
    --coral-punch: #FF6F61;
    --sky-cyan: #00CFFF;
    --soft-lavender: #E6D5FF;
    --paper-white: #FFFEF2;
    --neon-orange: #FF6700;
    --bubblegum-pink: #FF85A1;
    --hot-pink: #FF69B4;
    --medium-gray: #6B6B6B;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Comic Neue', cursive;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--deep-navy);
    background-color: var(--paper-white);
    overflow-x: hidden;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(27, 20, 100, 0.03) 40px, rgba(27, 20, 100, 0.03) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(27, 20, 100, 0.03) 40px, rgba(27, 20, 100, 0.03) 41px);
}

/* Typography Classes */
.bungee-text {
    font-family: 'Bungee Shade', sans-serif;
    letter-spacing: 0.05em;
}

.comic-text {
    font-family: 'Comic Neue', cursive;
}

.fredoka-accent {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.caveat-text {
    font-family: 'Caveat', cursive;
}

/* Section Backgrounds */
.section-bg-paper { background-color: var(--paper-white); }
.section-bg-lavender { background-color: var(--soft-lavender); }
.section-bg-banana { background-color: var(--electric-banana); }
.section-bg-cyan { background-color: var(--sky-cyan); }
.section-bg-coral { background-color: var(--coral-punch); }
.section-bg-magenta { background-color: var(--hot-magenta); }
.section-bg-navy { background-color: var(--deep-navy); }

/* ============================================
   HERO ZONE
   ============================================ */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero-title {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.1em;
    z-index: 2;
    position: relative;
}

.hero-letter {
    font-family: 'Bungee Shade', sans-serif;
    font-size: clamp(4rem, 12vw, 8rem);
    display: inline-block;
    transform: rotate(var(--chaos-rotate, 0deg));
    will-change: transform;
    animation: letterBob 3s ease-in-out infinite;
    animation-delay: calc(var(--chaos-rotate, 0) * 100ms);
    text-shadow: 4px 4px 0 rgba(0,0,0,0.15);
}

.hero-letter:nth-child(1) { animation-delay: 0s; }
.hero-letter:nth-child(2) { animation-delay: 0.2s; }
.hero-letter:nth-child(3) { animation-delay: 0.4s; }
.hero-letter:nth-child(4) { animation-delay: 0.6s; }
.hero-letter:nth-child(5) { animation-delay: 0.8s; }
.hero-letter:nth-child(6) { animation-delay: 1.0s; }
.hero-letter:nth-child(7) { animation-delay: 1.2s; }
.hero-letter:nth-child(8) { animation-delay: 1.4s; }

@keyframes letterBob {
    0%, 100% { transform: rotate(var(--chaos-rotate, 0deg)) translateY(0); }
    50% { transform: rotate(var(--chaos-rotate, 0deg)) translateY(-15px); }
}

.hero-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: var(--medium-gray);
    margin-top: 1.5rem;
    z-index: 2;
    position: relative;
    text-align: center;
}

/* ============================================
   FLOATING EMOJI FIELD
   ============================================ */
.floating-emoji-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    font-size: 48px;
    will-change: transform;
    animation: emojiFloat 8s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes emojiFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(15px, -20px) rotate(90deg);
    }
    50% {
        transform: translate(-10px, -35px) rotate(180deg);
    }
    75% {
        transform: translate(20px, -15px) rotate(270deg);
    }
}

/* ============================================
   CHAOS BANDS
   ============================================ */
.chaos-band {
    width: 100%;
    overflow: hidden;
    padding: 0.8rem 0;
    position: relative;
    z-index: 5;
}

.chaos-band-content {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    animation: bandScroll 15s linear infinite;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    align-items: center;
}

.chaos-band-1 {
    background-color: var(--hot-magenta);
    color: var(--electric-banana);
    transform: rotate(-1deg);
}

.chaos-band-2 {
    background-color: var(--acid-green);
    color: var(--deep-navy);
    transform: rotate(0.5deg);
}

.chaos-band-3 {
    background-color: var(--neon-orange);
    color: var(--paper-white);
    transform: rotate(-0.8deg);
}

.chaos-band-4 {
    background-color: var(--deep-navy);
    color: var(--acid-green);
    transform: rotate(0.3deg);
}

.chaos-band-5 {
    background-color: var(--bubblegum-pink);
    color: var(--deep-navy);
    transform: rotate(-0.5deg);
}

.band-emoji {
    font-size: 2rem;
}

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

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
    position: relative;
    padding: 4rem 2rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */
.content-block {
    border: 4px dashed var(--bubblegum-pink);
    border-radius: 8px;
    padding: 2rem 2.5rem;
    max-width: 700px;
    width: 90%;
    position: relative;
    transform: rotate(var(--chaos-rotate, 0deg)) translate(var(--chaos-offset-x, 0), var(--chaos-offset-y, 0));
    z-index: 3;
    transition: transform 0.3s ease;
}

.content-block:hover {
    z-index: 10;
}

.block-coral {
    background-color: var(--coral-punch);
    border-color: var(--electric-banana);
}

.block-cyan {
    background-color: var(--sky-cyan);
    border-color: var(--hot-magenta);
}

.block-lavender {
    background-color: var(--soft-lavender);
    border-color: var(--acid-green);
}

.block-pink {
    background-color: var(--bubblegum-pink);
    border-color: var(--sky-cyan);
}

.block-banana {
    background-color: var(--electric-banana);
    border-color: var(--hot-magenta);
}

.block-paper {
    background-color: var(--paper-white);
    border-color: var(--coral-punch);
}

.block-green {
    background-color: var(--acid-green);
    border-color: var(--neon-orange);
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.squiggly-underline {
    margin-bottom: 1.5rem;
    display: block;
}

/* ============================================
   TEXT STYLES
   ============================================ */
.big-text {
    font-size: 1.5em;
    font-weight: 700;
    display: inline;
}

.aside-text {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--hot-pink);
    margin-top: 1rem;
}

.comic-text p, .comic-text {
    margin-bottom: 1rem;
}

/* ============================================
   STAMPS / STICKERS
   ============================================ */
.stamp {
    position: absolute;
    top: -15px;
    right: -10px;
    padding: 0.4rem 1rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    border: 3px solid;
    border-radius: 4px;
    transform: rotate(12deg);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stamp-certified {
    background-color: var(--electric-banana);
    color: var(--deep-navy);
    border-color: var(--deep-navy);
    transform: rotate(12deg);
}

.stamp-organic {
    background-color: var(--acid-green);
    color: var(--deep-navy);
    border-color: var(--hot-magenta);
    transform: rotate(-8deg);
}

.stamp-absurdity {
    background-color: var(--neon-orange);
    color: var(--paper-white);
    border-color: var(--paper-white);
    transform: rotate(6deg);
}

/* ============================================
   NONSENSE LIST
   ============================================ */
.nonsense-list {
    list-style: none;
    padding: 0;
}

.nonsense-list li {
    font-family: 'Comic Neue', cursive;
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.list-bullet {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ============================================
   EXPERIMENT SECTION
   ============================================ */
.experiment-display {
    text-align: center;
    margin: 2rem 0 1rem;
    cursor: pointer;
}

.experiment-emoji {
    font-size: 80px;
    display: block;
    transition: transform 0.3s ease;
    animation: bananaWobble 4s ease-in-out infinite;
}

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

.experiment-display:hover .experiment-emoji {
    animation: wobbleHover 0.2s ease-in-out infinite alternate;
}

.experiment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.experiment-card {
    background-color: rgba(255, 255, 255, 0.4);
    border: 3px dashed var(--neon-orange);
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experiment-card:hover {
    animation: wobbleHover 0.2s ease-in-out infinite alternate;
    box-shadow: 4px 4px 0 var(--deep-navy);
}

.experiment-card-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 0.5rem;
}

/* ============================================
   THOUGHT BUBBLE
   ============================================ */
.thought-bubble {
    background: var(--soft-lavender);
    border: 3px dashed var(--hot-magenta);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    position: relative;
    margin: 1.5rem 0;
    text-align: center;
}

.thought-bubble::before,
.thought-bubble::after {
    content: '';
    position: absolute;
    background: var(--soft-lavender);
    border: 3px dashed var(--hot-magenta);
    border-radius: 50%;
}

.thought-bubble::before {
    width: 20px;
    height: 20px;
    bottom: -25px;
    left: 40px;
}

.thought-bubble::after {
    width: 12px;
    height: 12px;
    bottom: -38px;
    left: 30px;
}

.thought-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 0.5rem;
}

/* ============================================
   ABSURD QUOTE
   ============================================ */
.absurd-quote {
    font-style: italic;
    font-size: 1.3rem;
    color: var(--deep-navy);
    border-left: 5px solid var(--hot-magenta);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 0 8px 8px 0;
}

/* ============================================
   BIG SURPRISE BUTTON
   ============================================ */
.big-surprise {
    text-align: center;
    margin: 2rem 0;
    cursor: pointer;
}

.big-button-emoji {
    font-size: 80px;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.big-surprise:hover .big-button-emoji {
    animation: wobbleHover 0.2s ease-in-out infinite alternate;
}

/* ============================================
   STAT NONSENSE
   ============================================ */
.stat-nonsense {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-emoji {
    font-size: 32px;
}

/* ============================================
   TYPEWRITER
   ============================================ */
.typewriter-container {
    margin: 1.5rem 0;
    min-height: 2rem;
}

.typewriter-text {
    border-right: 3px solid var(--deep-navy);
    padding-right: 4px;
    animation: blink-caret 0.75s step-end infinite;
    display: inline;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--deep-navy); }
}

/* ============================================
   DOODLE ARROWS
   ============================================ */
.doodle-arrow {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    margin-top: 1rem;
}

.doodle-arrow-hero {
    position: absolute;
    bottom: 20%;
    right: 15%;
}

.doodle-label {
    font-size: 1.1rem;
    color: var(--hot-pink);
    font-style: italic;
}

/* ============================================
   STICK FIGURES (SVG via CSS)
   ============================================ */
.stick-figure {
    position: absolute;
    width: 50px;
    height: 70px;
    z-index: 5;
    opacity: 0.6;
}

.stick-figure-thinking {
    bottom: 10px;
    right: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 70'%3E%3Ccircle cx='25' cy='10' r='8' stroke='%231B1464' stroke-width='2' fill='none'/%3E%3Cline x1='25' y1='18' x2='25' y2='42' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='25' y1='25' x2='10' y2='35' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='25' y1='25' x2='40' y2='20' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='25' y1='42' x2='15' y2='60' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='25' y1='42' x2='35' y2='60' stroke='%231B1464' stroke-width='2'/%3E%3Ctext x='36' y='8' font-size='10' fill='%23FF69B4'%3E%3F%3C/text%3E%3C/svg%3E") no-repeat center/contain;
}

.stick-figure-dancing {
    bottom: 10px;
    left: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 70'%3E%3Ccircle cx='25' cy='10' r='8' stroke='%231B1464' stroke-width='2' fill='none'/%3E%3Cline x1='25' y1='18' x2='25' y2='42' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='25' y1='25' x2='40' y2='18' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='25' y1='25' x2='8' y2='30' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='25' y1='42' x2='38' y2='58' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='25' y1='42' x2='12' y2='58' stroke='%231B1464' stroke-width='2'/%3E%3Cpolygon points='20,2 30,2 28,0 22,0' fill='%23FF00FF' stroke='%23FF00FF' stroke-width='1'/%3E%3C/svg%3E") no-repeat center/contain;
    animation: stickDance 1s ease-in-out infinite alternate;
}

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

.stick-figure-facepalm {
    bottom: 10px;
    right: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 70'%3E%3Ccircle cx='25' cy='10' r='8' stroke='%231B1464' stroke-width='2' fill='none'/%3E%3Cline x1='25' y1='18' x2='25' y2='42' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='25' y1='25' x2='30' y2='12' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='25' y1='25' x2='10' y2='35' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='25' y1='42' x2='15' y2='60' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='25' y1='42' x2='35' y2='60' stroke='%231B1464' stroke-width='2'/%3E%3C/svg%3E") no-repeat center/contain;
}

.stick-figure-shrug {
    bottom: 10px;
    left: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 70'%3E%3Ccircle cx='25' cy='10' r='8' stroke='%231B1464' stroke-width='2' fill='none'/%3E%3Cline x1='25' y1='18' x2='25' y2='42' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='25' y1='25' x2='8' y2='20' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='25' y1='25' x2='42' y2='20' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='8' y1='20' x2='5' y2='15' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='42' y1='20' x2='45' y2='15' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='25' y1='42' x2='15' y2='60' stroke='%231B1464' stroke-width='2'/%3E%3Cline x1='25' y1='42' x2='35' y2='60' stroke='%231B1464' stroke-width='2'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* ============================================
   WOBBLE HOVER ANIMATION
   ============================================ */
@keyframes wobbleHover {
    0% { transform: rotate(-3deg); }
    100% { transform: rotate(3deg); }
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.footer-duck {
    margin-bottom: 2rem;
}

.spinning-duck {
    font-size: 100px;
    display: inline-block;
    animation: spinDuck 10s linear infinite;
}

@keyframes spinDuck {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.footer-text {
    color: var(--electric-banana);
    font-size: 1.3rem;
    font-style: italic;
}

.footer-aside {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ============================================
   SCROLL TO TOP DUCK
   ============================================ */
.scroll-top-duck {
    position: fixed;
    bottom: 24px;
    right: 24px;
    font-size: 40px;
    background: var(--electric-banana);
    border: 3px solid var(--deep-navy);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 3px 3px 0 var(--deep-navy);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-top-duck.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-duck:hover {
    animation: wobbleHover 0.2s ease-in-out infinite alternate;
    box-shadow: 5px 5px 0 var(--deep-navy);
}

/* ============================================
   EMOJI RAIN
   ============================================ */
#emoji-rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.rain-emoji {
    position: absolute;
    top: -60px;
    font-size: 36px;
    will-change: transform;
    animation: emojiRainFall var(--fall-duration, 2.5s) ease-in forwards;
    left: var(--rain-x, 50%);
}

@keyframes emojiRainFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   SURPRISE POPUP
   ============================================ */
.surprise-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background-color: var(--electric-banana);
    border: 4px solid var(--deep-navy);
    border-radius: 12px;
    padding: 1.5rem 2.5rem;
    z-index: 2000;
    text-align: center;
    box-shadow: 6px 6px 0 var(--deep-navy);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 400px;
}

.surprise-popup.visible {
    transform: translate(-50%, -50%) scale(1);
}

.surprise-popup.hidden {
    transform: translate(-50%, -50%) scale(0);
}

.surprise-popup p {
    color: var(--deep-navy);
    font-size: 1.2rem;
}

/* ============================================
   SURPRISE CLICK CURSORS
   ============================================ */
.surprise-click {
    cursor: pointer;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-letter {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .content-block {
        padding: 1.5rem;
        width: 95%;
        --chaos-offset-x: 0px !important;
    }

    .experiment-grid {
        grid-template-columns: 1fr;
    }

    .stat-nonsense {
        grid-template-columns: 1fr;
    }

    .doodle-arrow-hero {
        position: relative;
        bottom: auto;
        right: auto;
    }

    .section-heading {
        font-size: clamp(1.5rem, 8vw, 3rem);
    }
}

@media (max-width: 480px) {
    .chaos-band-content {
        font-size: 1.2rem;
    }

    .hero-letter {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }

    .stamp {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}
