/* simidiot.net - Deconstructed Academic Museum */

:root {
    --near-black: #0C0C0C;
    --marble-warm: #EDE8E0;
    --neon-lime: #ADFF2F;
    --deep-charcoal: #3A3A3A;
    --pale-parchment: #D8D4CC;
    --electric-blue: #4169E1;
    --veined-beige: #C4BEB4;
    --deep-navy: #0A0E1E;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--near-black);
    color: var(--pale-parchment);
    font-family: 'Libre Baskerville', serif;
    overflow-x: hidden;
}

/* Diagonal sections */
.section {
    position: relative;
    z-index: calc(10 + var(--section-index));
}

/* Section 1: Hero */
.section-hero {
    min-height: 100vh;
    background: var(--near-black);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    padding: 60px 5vw;
}

.hero-content {
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.hero-svg-text {
    width: 100%;
    max-width: 900px;
    overflow: visible;
}

.svg-domain {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 60px;
    letter-spacing: 0.35em;
    fill: transparent;
    stroke: var(--neon-lime);
    stroke-width: 1.5;
    paint-order: stroke;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: draw-text 2s ease forwards;
}

@keyframes draw-text {
    to { stroke-dashoffset: 0; }
}

@keyframes fill-text {
    to { fill: var(--neon-lime); }
}

.hero-subtitle {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    color: var(--pale-parchment);
    margin-top: 2rem;
    opacity: 0;
    animation: fade-in 0.8s ease 2.3s forwards;
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* Section 2: Literature Review */
.section-litreview {
    background: var(--marble-warm);
    color: var(--deep-charcoal);
    min-height: 120vh;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 85%);
    margin-top: -15vh;
    padding: 20vh 5vw 15vh;
}

.litreview-grid {
    display: grid;
    grid-template-columns: 1fr 30px 1fr;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 2rem;
    color: var(--deep-charcoal);
}

.litreview-body {
    padding-right: 3vw;
}

.litreview-body p {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--deep-charcoal);
}

.litreview-separator {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.ionic-pattern {
    width: 20px;
    height: 100%;
}

.litreview-refs {
    padding-left: 3vw;
}

.refs-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--deep-charcoal);
}

.ref-entry {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--deep-charcoal);
    margin-bottom: 1.2rem;
    padding-left: 2em;
    text-indent: -2em;
}

/* Section 3: The Experiment */
.section-experiment {
    background: var(--deep-navy);
    min-height: 100vh;
    clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%);
    margin-top: -15vh;
    padding: 20vh 5vw 15vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experiment-content {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.experiment-title {
    color: var(--neon-lime);
    margin-bottom: 3rem;
}

.icon-network {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.icon-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.icon-item {
    position: absolute;
    left: var(--ix);
    top: var(--iy);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.geo-icon {
    width: 60px;
    height: 60px;
    transition: filter 0.3s ease;
}

.geo-icon:hover {
    filter: drop-shadow(0 0 8px rgba(173, 255, 47, 0.5));
}

.geo-icon circle,
.geo-icon polygon,
.geo-icon rect {
    transition: stroke-dashoffset 0.8s ease-in-out;
}

/* Section 4: The Conclusion */
.section-conclusion {
    background: linear-gradient(135deg, var(--near-black) 50%, var(--marble-warm) 50%);
    min-height: 65vh;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 80%);
    margin-top: -15vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15vh 5vw;
}

.conclusion-content {
    max-width: 800px;
    text-align: center;
}

.conclusion-text {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.9;
    color: var(--neon-lime);
    text-shadow: 0 0 40px rgba(173, 255, 47, 0.1);
}

/* Section 5: The Appendix */
.section-appendix {
    background: var(--near-black);
    min-height: 40vh;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
    margin-top: -15vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15vh 5vw 5vh;
}

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

.marble-dots {
    height: 2px;
    width: 200px;
    margin: 0 auto 2rem;
    background-image: radial-gradient(circle, var(--veined-beige) 1px, transparent 1px);
    background-size: 8px 2px;
    opacity: 0.5;
}

.appendix-domain {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--neon-lime);
}

.appendix-meta {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--pale-parchment);
    margin-top: 1rem;
    opacity: 0.6;
}
