/* ============================================
   simidiots.net - Bauhaus + Dopamine Neon
   Colors: #1a1a2e, #4a90d9, #f5f0e8, #e8b84b, #6c757d
   Neon: #ff2d6b, #00e5ff, #76ff03, #e8b84b
   Font: Inter
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* --- Gradient Mesh Background --- */
#gradient-mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 45, 107, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(0, 229, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 70%, rgba(118, 255, 3, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 80%, rgba(74, 144, 217, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(232, 184, 75, 0.12) 0%, transparent 50%),
        #1a1a2e;
    animation: meshPulse 12s ease-in-out infinite alternate;
}

@keyframes meshPulse {
    0% {
        background:
            radial-gradient(ellipse at 20% 20%, rgba(255, 45, 107, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 30%, rgba(0, 229, 255, 0.12) 0%, transparent 50%),
            radial-gradient(ellipse at 50% 70%, rgba(118, 255, 3, 0.1) 0%, transparent 50%),
            radial-gradient(ellipse at 10% 80%, rgba(74, 144, 217, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 90% 80%, rgba(232, 184, 75, 0.12) 0%, transparent 50%),
            #1a1a2e;
    }
    100% {
        background:
            radial-gradient(ellipse at 40% 40%, rgba(255, 45, 107, 0.2) 0%, transparent 50%),
            radial-gradient(ellipse at 60% 10%, rgba(0, 229, 255, 0.18) 0%, transparent 50%),
            radial-gradient(ellipse at 30% 60%, rgba(118, 255, 3, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 70%, rgba(74, 144, 217, 0.2) 0%, transparent 50%),
            radial-gradient(ellipse at 20% 90%, rgba(232, 184, 75, 0.18) 0%, transparent 50%),
            #1a1a2e;
    }
}

/* --- Geometric Overlay Shapes --- */
#geometric-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    opacity: 0.08;
    animation: geoFloat 20s ease-in-out infinite;
}

.geo-triangle {
    width: 300px;
    height: 300px;
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.geo-circle {
    width: 250px;
    height: 250px;
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.geo-square {
    width: 200px;
    height: 200px;
    top: 30%;
    right: 25%;
    animation-delay: -10s;
}

.geo-diamond {
    width: 180px;
    height: 180px;
    bottom: 10%;
    left: 15%;
    animation-delay: -15s;
}

@keyframes geoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(30px) rotate(-5deg); }
}

/* --- Header --- */
#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
}

.site-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 0.15em;
    color: #f5f0e8;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #e8b84b;
    text-shadow: 0 0 20px rgba(232, 184, 75, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #e8b84b;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-divider {
    line-height: 0;
}

.header-divider svg {
    width: 100%;
    height: 20px;
    display: block;
}

/* --- Hero Section --- */
#hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 5rem;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #f5f0e8;
    margin-bottom: 1.5rem;
}

.hero-accent {
    background: linear-gradient(90deg, #ff2d6b, #e8b84b, #00e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
}

/* --- Buttons --- */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    padding: 1rem 2.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, #ff2d6b, #e8b84b);
    color: #1a1a2e;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
}

.btn-primary:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(255, 45, 107, 0.5), 0 0 60px rgba(232, 184, 75, 0.3);
}

.btn-outline {
    background: transparent;
    color: #4a90d9;
    border: 2px solid #4a90d9;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
}

.btn-outline:hover {
    background: rgba(74, 144, 217, 0.1);
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(74, 144, 217, 0.4);
}

.btn-sim {
    background: rgba(245, 240, 232, 0.1);
    color: #f5f0e8;
    border: 1px solid #6c757d;
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
}

.btn-sim:hover {
    background: rgba(232, 184, 75, 0.2);
    border-color: #e8b84b;
    color: #e8b84b;
    transform: scale(1.08);
}

/* --- Hero Grid Visual --- */
.hero-grid-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.hgv-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: cellPulse 3s ease-in-out infinite;
}

.hgv-cell:hover {
    transform: scale(1.15) rotate(3deg);
    z-index: 2;
}

.hgv-pink { background: #ff2d6b; animation-delay: 0s; box-shadow: 0 0 20px rgba(255, 45, 107, 0.5); }
.hgv-yellow { background: #e8b84b; animation-delay: 0.3s; box-shadow: 0 0 20px rgba(232, 184, 75, 0.5); }
.hgv-cyan { background: #00e5ff; animation-delay: 0.6s; box-shadow: 0 0 20px rgba(0, 229, 255, 0.5); }
.hgv-green { background: #76ff03; animation-delay: 0.9s; box-shadow: 0 0 20px rgba(118, 255, 3, 0.5); }
.hgv-blue { background: #4a90d9; animation-delay: 1.2s; box-shadow: 0 0 20px rgba(74, 144, 217, 0.5); }
.hgv-gold { background: #e8b84b; animation-delay: 1.5s; box-shadow: 0 0 20px rgba(232, 184, 75, 0.5); }
.hgv-pink2 { background: #ff2d6b; animation-delay: 1.8s; box-shadow: 0 0 20px rgba(255, 45, 107, 0.5); opacity: 0.7; }
.hgv-cyan2 { background: #00e5ff; animation-delay: 2.1s; box-shadow: 0 0 20px rgba(0, 229, 255, 0.5); opacity: 0.7; }
.hgv-green2 { background: #76ff03; animation-delay: 2.4s; box-shadow: 0 0 20px rgba(118, 255, 3, 0.5); opacity: 0.7; }

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

/* --- Section Dividers --- */
.section-divider {
    line-height: 0;
    margin: 0;
}

.section-divider svg {
    width: 100%;
    height: 40px;
    display: block;
}

/* --- Section Titles --- */
.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 3rem;
    color: #f5f0e8;
    text-transform: uppercase;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff2d6b, #e8b84b);
    margin: 1rem auto 0;
}

/* --- Card Grid --- */
#explore {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

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

.sim-card {
    background: rgba(245, 240, 232, 0.05);
    border: 1px solid rgba(245, 240, 232, 0.1);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    clip-path: polygon(0% 0%, 95% 0%, 100% 5%, 100% 100%, 5% 100%, 0% 95%);
}

.sim-card:hover {
    transform: scale(1.08);
}

.sim-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: width 0.3s ease;
}

.sim-card:hover::before {
    width: 8px;
}

/* Card Neon Color Variants */
.card-neon-pink::before { background: #ff2d6b; }
.card-neon-pink:hover { box-shadow: 0 0 40px rgba(255, 45, 107, 0.3), inset 0 0 60px rgba(255, 45, 107, 0.05); }
.card-neon-pink .card-number { color: #ff2d6b; }
.card-neon-pink .card-tag { background: rgba(255, 45, 107, 0.2); color: #ff2d6b; border: 1px solid #ff2d6b; }

.card-neon-cyan::before { background: #00e5ff; }
.card-neon-cyan:hover { box-shadow: 0 0 40px rgba(0, 229, 255, 0.3), inset 0 0 60px rgba(0, 229, 255, 0.05); }
.card-neon-cyan .card-number { color: #00e5ff; }
.card-neon-cyan .card-tag { background: rgba(0, 229, 255, 0.2); color: #00e5ff; border: 1px solid #00e5ff; }

.card-neon-yellow::before { background: #e8b84b; }
.card-neon-yellow:hover { box-shadow: 0 0 40px rgba(232, 184, 75, 0.3), inset 0 0 60px rgba(232, 184, 75, 0.05); }
.card-neon-yellow .card-number { color: #e8b84b; }
.card-neon-yellow .card-tag { background: rgba(232, 184, 75, 0.2); color: #e8b84b; border: 1px solid #e8b84b; }

.card-neon-green::before { background: #76ff03; }
.card-neon-green:hover { box-shadow: 0 0 40px rgba(118, 255, 3, 0.3), inset 0 0 60px rgba(118, 255, 3, 0.05); }
.card-neon-green .card-number { color: #76ff03; }
.card-neon-green .card-tag { background: rgba(118, 255, 3, 0.2); color: #76ff03; border: 1px solid #76ff03; }

.card-neon-blue::before { background: #4a90d9; }
.card-neon-blue:hover { box-shadow: 0 0 40px rgba(74, 144, 217, 0.3), inset 0 0 60px rgba(74, 144, 217, 0.05); }
.card-neon-blue .card-number { color: #4a90d9; }
.card-neon-blue .card-tag { background: rgba(74, 144, 217, 0.2); color: #4a90d9; border: 1px solid #4a90d9; }

.card-neon-gold::before { background: #e8b84b; }
.card-neon-gold:hover { box-shadow: 0 0 40px rgba(232, 184, 75, 0.3), inset 0 0 60px rgba(232, 184, 75, 0.05); }
.card-neon-gold .card-number { color: #e8b84b; }
.card-neon-gold .card-tag { background: rgba(232, 184, 75, 0.2); color: #e8b84b; border: 1px solid #e8b84b; }

.card-number {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    opacity: 0.3;
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    line-height: 1;
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    color: #f5f0e8;
}

.card-desc {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- Simulation Canvas --- */
#simulate {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.sim-canvas-container {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(74, 144, 217, 0.3);
    padding: 1.5rem;
    position: relative;
}

#sim-canvas {
    width: 100%;
    height: 500px;
    display: block;
    background: #0a0a1a;
    border: 1px solid rgba(245, 240, 232, 0.1);
}

.sim-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.sim-speed {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.sim-speed label {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: #6c757d;
}

#speed-slider {
    width: 120px;
    accent-color: #e8b84b;
}

/* --- Archive Grid --- */
#archive {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.archive-item {
    background: rgba(245, 240, 232, 0.05);
    border: 1px solid rgba(245, 240, 232, 0.08);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.archive-item:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(232, 184, 75, 0.2);
}

.archive-thumb {
    width: 100%;
    height: 200px;
}

.archive-thumb-1 {
    background: linear-gradient(135deg, #ff2d6b 0%, #1a1a2e 50%, #00e5ff 100%);
}

.archive-thumb-2 {
    background: linear-gradient(135deg, #4a90d9 0%, #1a1a2e 50%, #76ff03 100%);
}

.archive-thumb-3 {
    background: linear-gradient(135deg, #e8b84b 0%, #1a1a2e 50%, #ff2d6b 100%);
}

.archive-thumb-4 {
    background: linear-gradient(135deg, #00e5ff 0%, #1a1a2e 50%, #e8b84b 100%);
}

.archive-meta {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.archive-date {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.archive-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #f5f0e8;
}

/* --- About Section --- */
#about {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

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

.about-desc {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
}

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

.stat-number {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    color: #e8b84b;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #6c757d;
}

/* --- Bauhaus Composition --- */
.bauhaus-composition {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
}

.bc-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #ff2d6b;
    top: 20px;
    left: 50px;
    opacity: 0.8;
    animation: bauhausFloat 6s ease-in-out infinite;
}

.bc-rect-h {
    position: absolute;
    width: 300px;
    height: 60px;
    background: #4a90d9;
    top: 170px;
    left: 30px;
    opacity: 0.7;
    animation: bauhausFloat 6s ease-in-out infinite 1s;
}

.bc-rect-v {
    position: absolute;
    width: 60px;
    height: 250px;
    background: #e8b84b;
    top: 80px;
    right: 40px;
    opacity: 0.7;
    animation: bauhausFloat 6s ease-in-out infinite 2s;
}

.bc-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #76ff03;
    bottom: 20px;
    left: 40px;
    opacity: 0.6;
    animation: bauhausFloat 6s ease-in-out infinite 3s;
}

.bc-square {
    position: absolute;
    width: 100px;
    height: 100px;
    background: #00e5ff;
    bottom: 40px;
    right: 60px;
    opacity: 0.6;
    transform: rotate(15deg);
    animation: bauhausFloat 6s ease-in-out infinite 4s;
}

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

.bc-triangle {
    animation-name: bauhausFloatTriangle;
}

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

/* --- Footer --- */
#site-footer {
    background: rgba(26, 26, 46, 0.95);
    border-top: 2px solid rgba(232, 184, 75, 0.3);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 0.15em;
    color: #e8b84b;
}

.footer-tagline {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.3rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4a90d9;
}

.footer-copy {
    font-size: 0.8rem;
    color: #6c757d;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    #hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

    .stats-row {
        flex-direction: column;
        gap: 1.5rem;
    }

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