/* simidiots.com - Candy-Bright Avant-Garde Tutorial Platform */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Candy colors: hot pink, electric blue, acid yellow, lime green, vivid coral */

:root {
    --deep-base: #1a1a2e;
    --primary-blue: #4a90d9;
    --warm-white: #f5f0e8;
    --accent-gold: #e8b84b;
    --muted-gray: #6c757d;
    --candy-pink: #ff3b8b;
    --candy-blue: #00b4ff;
    --candy-yellow: #e8e035;
    --candy-green: #39e85b;
    --candy-coral: #ff6b6b;
    --candy-gold: #e8b84b;
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--deep-base);
    color: var(--warm-white);
    overflow-x: hidden;
}

/* ===== FULL-BLEED SECTIONS ===== */
.full-bleed {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== BLOB DECORATIONS ===== */
.blob-decoration {
    position: absolute;
    border-radius: 50% 40% 60% 45% / 55% 45% 50% 40%;
    opacity: 0.15;
    pointer-events: none;
    animation: blobFloat 12s ease-in-out infinite;
}

.blob-hero-1 {
    width: 500px;
    height: 500px;
    background: var(--candy-pink);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-hero-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-blue);
    bottom: -80px;
    left: -80px;
    animation-delay: -4s;
}

.blob-hero-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-gold);
    top: 40%;
    left: 60%;
    animation-delay: -8s;
}

.blob-demo-1 {
    width: 450px;
    height: 450px;
    background: var(--candy-blue);
    top: -120px;
    left: -120px;
    animation-delay: -2s;
}

.blob-demo-2 {
    width: 350px;
    height: 350px;
    background: var(--candy-coral);
    bottom: -80px;
    right: -80px;
    animation-delay: -6s;
}

.blob-footer-1 {
    width: 300px;
    height: 300px;
    background: var(--candy-green);
    top: -80px;
    right: 10%;
    animation-delay: -3s;
}

.blob-footer-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-gold);
    bottom: -60px;
    left: 5%;
    animation-delay: -7s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(20px, -30px) rotate(5deg) scale(1.05); }
    50% { transform: translate(-15px, 20px) rotate(-3deg) scale(0.95); }
    75% { transform: translate(25px, 10px) rotate(7deg) scale(1.02); }
}

/* ===== HERO SECTION ===== */
#hero {
    background: linear-gradient(135deg, var(--deep-base) 0%, #2a1a4e 50%, var(--deep-base) 100%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
}

.kinetic-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 24px;
}

.kinetic-letter {
    display: inline-block;
    animation: kineticBounce 3s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.15s);
    background: linear-gradient(135deg, var(--candy-pink), var(--primary-blue), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes kineticBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    20% { transform: translateY(-15px) rotate(-3deg); }
    40% { transform: translateY(0) rotate(0deg); }
}

.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--muted-gray);
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

.typewriter-box {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid var(--primary-blue);
    border-radius: 12px;
    padding: 20px 28px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--candy-green);
    text-align: left;
    max-width: 600px;
    margin: 0 auto 40px;
    min-height: 80px;
    position: relative;
    box-shadow: 0 0 30px rgba(74, 144, 217, 0.2);
}

.typewriter-cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--candy-green);
    animation: cursorBlink 0.8s steps(1) infinite;
    vertical-align: text-bottom;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cta-button {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--candy-pink), var(--primary-blue));
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 59, 139, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px rgba(255, 59, 139, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--accent-gold);
    border-bottom: 3px solid var(--accent-gold);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
    50% { transform: rotate(45deg) translateY(10px); opacity: 1; }
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 0.03em;
}

.kinetic-heading {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.kinetic-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MODULES SECTION ===== */
#modules {
    background: var(--deep-base);
    padding-top: 100px;
    padding-bottom: 100px;
}

#modules .section-title {
    background: linear-gradient(135deg, var(--candy-blue), var(--candy-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.module-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.module-blob {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50% 40% 60% 45% / 55% 45% 50% 40%;
    opacity: 0.12;
    animation: blobFloat 15s ease-in-out infinite;
    transform: scale(1.5);
}

.module-content {
    position: relative;
    z-index: 2;
    padding: 36px 30px;
}

.module-number {
    font-size: 3.5rem;
    font-weight: 900;
    opacity: 0.15;
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
}

.module-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.module-desc {
    font-size: 0.95rem;
    color: rgba(245, 240, 232, 0.7);
    line-height: 1.6;
    margin-bottom: 16px;
}

.module-typewriter {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    min-height: 60px;
    margin-bottom: 16px;
    color: var(--candy-green);
    white-space: pre-line;
}

.module-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 1.5s ease;
}

/* Module candy colors */
[data-color="pink"] { background: linear-gradient(135deg, rgba(255, 59, 139, 0.2), rgba(255, 59, 139, 0.05)); border: 1px solid rgba(255, 59, 139, 0.3); }
[data-color="pink"] .module-blob { background: var(--candy-pink); }
[data-color="pink"] .module-number { color: var(--candy-pink); }
[data-color="pink"] .progress-bar { background: var(--candy-pink); }
[data-color="pink"]:hover { box-shadow: 0 12px 40px rgba(255, 59, 139, 0.3); }

[data-color="blue"] { background: linear-gradient(135deg, rgba(0, 180, 255, 0.2), rgba(0, 180, 255, 0.05)); border: 1px solid rgba(0, 180, 255, 0.3); }
[data-color="blue"] .module-blob { background: var(--candy-blue); }
[data-color="blue"] .module-number { color: var(--candy-blue); }
[data-color="blue"] .progress-bar { background: var(--candy-blue); }
[data-color="blue"]:hover { box-shadow: 0 12px 40px rgba(0, 180, 255, 0.3); }

[data-color="yellow"] { background: linear-gradient(135deg, rgba(232, 224, 53, 0.2), rgba(232, 224, 53, 0.05)); border: 1px solid rgba(232, 224, 53, 0.3); }
[data-color="yellow"] .module-blob { background: var(--candy-yellow); }
[data-color="yellow"] .module-number { color: var(--candy-yellow); }
[data-color="yellow"] .progress-bar { background: var(--candy-yellow); }
[data-color="yellow"]:hover { box-shadow: 0 12px 40px rgba(232, 224, 53, 0.3); }

[data-color="green"] { background: linear-gradient(135deg, rgba(57, 232, 91, 0.2), rgba(57, 232, 91, 0.05)); border: 1px solid rgba(57, 232, 91, 0.3); }
[data-color="green"] .module-blob { background: var(--candy-green); }
[data-color="green"] .module-number { color: var(--candy-green); }
[data-color="green"] .progress-bar { background: var(--candy-green); }
[data-color="green"]:hover { box-shadow: 0 12px 40px rgba(57, 232, 91, 0.3); }

[data-color="coral"] { background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.05)); border: 1px solid rgba(255, 107, 107, 0.3); }
[data-color="coral"] .module-blob { background: var(--candy-coral); }
[data-color="coral"] .module-number { color: var(--candy-coral); }
[data-color="coral"] .progress-bar { background: var(--candy-coral); }
[data-color="coral"]:hover { box-shadow: 0 12px 40px rgba(255, 107, 107, 0.3); }

[data-color="gold"] { background: linear-gradient(135deg, rgba(232, 184, 75, 0.2), rgba(232, 184, 75, 0.05)); border: 1px solid rgba(232, 184, 75, 0.3); }
[data-color="gold"] .module-blob { background: var(--accent-gold); }
[data-color="gold"] .module-number { color: var(--accent-gold); }
[data-color="gold"] .progress-bar { background: var(--accent-gold); }
[data-color="gold"]:hover { box-shadow: 0 12px 40px rgba(232, 184, 75, 0.3); }

/* ===== DEMO SECTION ===== */
#demo {
    background: linear-gradient(180deg, var(--deep-base) 0%, #1a2a3e 100%);
    padding-top: 100px;
    padding-bottom: 100px;
}

#demo .section-title {
    background: linear-gradient(135deg, var(--accent-gold), var(--candy-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1000px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.demo-editor {
    background: #0d1117;
}

.editor-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.editor-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.editor-dot.red { background: #ff5f57; }
.editor-dot.yellow { background: #febc2e; }
.editor-dot.green { background: #28c840; }

.editor-filename {
    font-size: 0.8rem;
    color: var(--muted-gray);
    margin-left: 8px;
    font-family: var(--font-main);
}

.editor-body {
    display: flex;
    padding: 16px 0;
    min-height: 300px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
}

.editor-line-numbers {
    padding: 0 12px 0 16px;
    color: #484f58;
    text-align: right;
    user-select: none;
    border-right: 1px solid #21262d;
}

.editor-code {
    padding: 0 16px;
    color: #c9d1d9;
    flex: 1;
    overflow-x: auto;
}

.editor-code .keyword { color: #ff7b72; }
.editor-code .string { color: #a5d6ff; }
.editor-code .function { color: #d2a8ff; }
.editor-code .comment { color: #8b949e; }
.editor-code .number { color: #79c0ff; }
.editor-code .variable { color: #ffa657; }

.demo-output {
    background: #161b22;
    display: flex;
    flex-direction: column;
}

.output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #1c2128;
    border-bottom: 1px solid #30363d;
}

.output-label {
    font-size: 0.8rem;
    color: var(--muted-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.run-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--candy-green);
    color: var(--deep-base);
    border: none;
    border-radius: 6px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.run-button:hover {
    background: #2fd64d;
    transform: scale(1.05);
}

.run-button.running {
    background: var(--accent-gold);
    pointer-events: none;
}

.output-body {
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    flex: 1;
    color: var(--warm-white);
    min-height: 260px;
}

.output-prompt { color: var(--candy-green); }
.output-waiting { color: var(--muted-gray); }
.output-success { color: var(--candy-green); }
.output-info { color: var(--candy-blue); }
.output-warn { color: var(--accent-gold); }

/* ===== COMMUNITY SECTION ===== */
#community {
    background: var(--deep-base);
    padding-top: 100px;
    padding-bottom: 100px;
}

#community .section-title {
    background: linear-gradient(135deg, var(--candy-pink), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cultural-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    width: 100%;
    margin-bottom: 60px;
}

.cultural-card {
    background: rgba(245, 240, 232, 0.03);
    border: 1px solid rgba(245, 240, 232, 0.08);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.cultural-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-blue);
    box-shadow: 0 12px 40px rgba(74, 144, 217, 0.15);
}

.cultural-motif {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
}

.motif-svg {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.cultural-card:hover .motif-svg {
    transform: rotate(15deg) scale(1.1);
}

.cultural-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--warm-white);
}

.cultural-card p {
    font-size: 0.9rem;
    color: var(--muted-gray);
    line-height: 1.6;
}

.community-stats {
    display: flex;
    gap: 80px;
    justify-content: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted-gray);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

/* ===== FOOTER ===== */
#footer {
    position: relative;
    overflow: hidden;
    padding: 60px 40px 40px;
    background: linear-gradient(180deg, var(--deep-base), #0f0f1e);
}

.footer-blobs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--candy-pink), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--muted-gray);
    font-size: 0.85rem;
    margin-top: 6px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--muted-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    letter-spacing: 0.03em;
}

.footer-links a:hover {
    color: var(--warm-white);
}

.footer-copy {
    width: 100%;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(245, 240, 232, 0.06);
    color: var(--muted-gray);
    font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .full-bleed {
        padding: 60px 20px;
    }

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

    .demo-container {
        grid-template-columns: 1fr;
    }

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

    .community-stats {
        flex-direction: column;
        gap: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}
