/* ============================================
   MUJUN.STUDY - SURREALIST ACADEMIC DESIGN
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Crimson Text', serif;
    font-weight: 400;
    line-height: 1.85;
    background: #F5EDE0;
    color: #4A2A30;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: clamp(2.6rem, 7.5vw, 5.5rem);
}

h2 {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    letter-spacing: 0em;
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
}

p {
    font-size: clamp(1rem, 1.7vw, 1.12rem);
}

/* Labels */
.label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #8A6A70;
}

/* ============================================
   SECTIONS - FULL BLEED BASE
   ============================================ */

.section {
    width: 100vw;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   SECTION I: THE FLOATING LECTURE HALL
   ============================================ */

.section-1 {
    background: linear-gradient(180deg, #5C1A2A 0%, #5C1A2A 60%, #F5EDE0 100%);
    position: relative;
}

.section-1 .section-title {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: #F5EDE0;
    text-align: center;
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

/* Geometric shapes for Section 1 */
.shape {
    position: absolute;
    box-shadow: var(--shadow-x) var(--shadow-y) 30px rgba(74, 16, 32, 0.3);
    animation: springIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

/* Triangle 1 */
.shape-tri-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #D4A0A8;
    top: 35%;
    left: 15%;
    animation-delay: 0s;
}

/* Circle 1 */
.shape-circle-1 {
    width: 120px;
    height: 120px;
    background: none;
    border: 2px solid #C8707A;
    border-radius: 50%;
    top: 50%;
    right: 20%;
    animation-delay: 0.08s;
}

/* Rectangle 1 */
.shape-rect-1 {
    width: 140px;
    height: 80px;
    background: linear-gradient(135deg, #5C1A2A, #F5EDE0);
    top: 25%;
    right: 25%;
    transform: rotate(15deg);
    animation-delay: 0.16s;
}

/* Triangle 2 */
.shape-tri-2 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-top: 85px solid #D4A0A8;
    bottom: 20%;
    left: 25%;
    animation-delay: 0.24s;
}

/* Parallelogram 1 */
.shape-para-1 {
    width: 110px;
    height: 90px;
    background: #D4A0A8;
    transform: skewX(-20deg);
    bottom: 30%;
    right: 15%;
    animation-delay: 0.32s;
}

/* Circle 2 */
.shape-circle-2 {
    width: 90px;
    height: 90px;
    background: #D4A0A8;
    border-radius: 50%;
    top: 15%;
    left: 50%;
    animation-delay: 0.40s;
}

/* ============================================
   SECTION II: THE PARADOX CURRICULUM
   ============================================ */

.section-2 {
    background: #F5EDE0;
    position: relative;
}

.section-2 .section-title {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    color: #3A1A20;
    text-align: center;
    z-index: 1;
}

/* Center point for constellation */
.constellation-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #8A6A70;
    border-radius: 50%;
    z-index: 1;
}

/* Topic cards in spiral */
.topic-card {
    position: absolute;
    width: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: springIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.topic-card[style*="--angle: 0deg"] {
    --cos: 1;
    --sin: 0;
    left: calc(50% + 150px);
}

.topic-card[style*="--angle: 45deg"] {
    --cos: 0.707;
    --sin: 0.707;
    left: calc(50% + 180px * 0.707);
    top: calc(50% + 180px * 0.707);
}

.topic-card[style*="--angle: 90deg"] {
    --cos: 0;
    --sin: 1;
    top: calc(50% + 160px);
}

.topic-card[style*="--angle: 135deg"] {
    --cos: -0.707;
    --sin: 0.707;
    left: calc(50% - 175px * 0.707);
    top: calc(50% + 175px * 0.707);
}

.topic-card[style*="--angle: 180deg"] {
    --cos: -1;
    --sin: 0;
    left: calc(50% - 170px);
}

.topic-card[style*="--angle: 225deg"] {
    --cos: -0.707;
    --sin: -0.707;
    left: calc(50% - 165px * 0.707);
    top: calc(50% - 165px * 0.707);
}

.topic-card[style*="--angle: 270deg"] {
    --cos: 0;
    --sin: -1;
    top: calc(50% - 185px);
}

.topic-card[style*="--angle: 315deg"] {
    --cos: 0.707;
    --sin: -0.707;
    left: calc(50% + 168px * 0.707);
    top: calc(50% - 168px * 0.707);
}

.card-inner {
    padding: 20px;
    text-align: center;
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    color: #3A1A20;
    background: rgba(245, 237, 224, 0.95);
    border: none;
    box-shadow: -8px -6px 20px rgba(74, 16, 32, 0.15);
    border-radius: 2px;
}

.card-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    pointer-events: none;
}

/* ============================================
   SECTION III: THE EXAMINATION OF OPPOSITES
   ============================================ */

.section-3 {
    background: linear-gradient(90deg, #5C1A2A 50%, #F5EDE0 50%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 900px;
}

.split-text {
    background: linear-gradient(90deg, #D8C8C0 48%, #3A1A20 52%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.1rem, 1.9vw, 1.3rem);
    line-height: 1.85;
    text-align: center;
}

/* Split section shapes */
.shape-split-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(90deg, #D4A0A8 50%, #D8C8C0 50%);
    position: absolute;
    top: 20%;
    left: 10%;
    transform: rotate(25deg);
    animation: springIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 0.1s;
}

.shape-split-2 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 90px solid #D4A0A8;
    position: absolute;
    bottom: 15%;
    right: 15%;
    animation: springIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 0.2s;
}

.shape-split-3 {
    width: 100px;
    height: 100px;
    background: none;
    border: 3px solid #C8707A;
    position: absolute;
    bottom: 25%;
    left: 20%;
    transform: rotate(45deg);
    animation: springIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 0.3s;
}

/* ============================================
   SECTION IV: THE GRADUATION PARADOX
   ============================================ */

.section-4 {
    background: linear-gradient(135deg, #5C1A2A 0%, #F5EDE0 100%);
    position: relative;
}

.final-statement {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #3A1A20;
    max-width: 80%;
    font-style: italic;
    z-index: 3;
    animation: fadeIn 1.2s ease-out 0.4s both;
}

/* Gradient shapes for Section 4 */
.shape-grad-1 {
    width: 130px;
    height: 130px;
    background: #D4A0A8;
    border-radius: 50%;
    top: 15%;
    left: 15%;
    animation: driftIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 0s;
}

.shape-grad-2 {
    width: 0;
    height: 0;
    border-left: 55px solid transparent;
    border-right: 55px solid transparent;
    border-bottom: 95px solid #D4A0A8;
    top: 25%;
    right: 20%;
    animation: driftIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 0.1s;
}

.shape-grad-3 {
    width: 110px;
    height: 110px;
    background: none;
    border: 2px solid #C8707A;
    bottom: 20%;
    left: 25%;
    transform: rotate(30deg);
    animation: driftIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 0.2s;
}

.shape-grad-4 {
    width: 100px;
    height: 60px;
    background: #D4A0A8;
    transform: skewX(-15deg);
    bottom: 30%;
    right: 15%;
    animation: driftIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 0.3s;
}

.shape-grad-5 {
    width: 95px;
    height: 95px;
    background: #D4A0A8;
    top: 45%;
    left: 8%;
    transform: rotate(20deg);
    animation: driftIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 0.4s;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes springIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes driftIn {
    from {
        opacity: 0;
        transform: translate(0, 30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE & MISC
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    h2 {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }

    .topic-card {
        width: 160px;
    }

    .card-inner {
        padding: 15px;
        font-size: 0.85rem;
    }

    .split-text {
        font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    }

    .final-statement {
        font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    }
}
