/* ================================================================
   SARAM.AI - STYLES
   A meditation on what it means to be human in the age of AI
   ================================================================ */

/* Reset & Base Styles */
html, body {
    margin: 0;
    padding: 0;
    background: #0A0A0F;
    color: #E8E8F0;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 7rem);
}

h2 {
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.02em;
}

p {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
}

/* Full-Bleed Section Layout */
.full-bleed-section {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ================================================================
   SECTION: THE QUESTION
   ================================================================ */

#question {
    background: #0A0A0F;
}

.question-container {
    text-align: center;
    width: 100%;
    padding: 0 10vw;
    z-index: 10;
}

.question-text {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.question-korean {
    font-family: 'Roboto Slab', serif;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    color: #E8E8F0;
    text-shadow: 0 0 30px rgba(255, 68, 68, 0.6),
                 0 0 60px rgba(255, 68, 68, 0.3);
    opacity: 0;
    animation: fadeInKorean 1s ease-out 0.5s forwards;
    letter-spacing: 0.05em;
}

.question-domain {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 300;
    color: #E8E8F0;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4),
                 0 0 40px rgba(0, 212, 255, 0.2);
    opacity: 0;
    animation: fadeInDomain 0.5s ease-out 2s forwards;
    letter-spacing: 0.02em;
}

@keyframes fadeInKorean {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDomain {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-subtitle {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #00D4FF;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeInSubtitle 1s ease-out 3s forwards;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes fadeInSubtitle {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.8;
    }
}

/* Shake error animation for question section */
@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ================================================================
   SECTION: THE MIRROR
   ================================================================ */

#mirror {
    background: linear-gradient(180deg, #0A0A0F 0%, #1A1A2E 100%);
}

.mirror-container {
    width: 100%;
    padding: 0 10vw;
    max-width: 100%;
}

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

.mirror-heading {
    margin-bottom: 3rem;
    color: #FF4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

.mirror-visual {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mirror-image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 68, 68, 0.3);
    box-shadow: 0 0 40px rgba(255, 68, 68, 0.2),
                inset 0 0 40px rgba(0, 212, 255, 0.1);
    background: #1A1A2E;
    animation: mirrorPulse 4s ease-in-out infinite;
}

.mirror-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes mirrorPulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(255, 68, 68, 0.2),
                    inset 0 0 40px rgba(0, 212, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 68, 68, 0.4),
                    inset 0 0 60px rgba(0, 212, 255, 0.2);
    }
}

.mirror-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #E8E8F0;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.9;
}

/* ================================================================
   SECTION: THE DIALOGUE
   ================================================================ */

#dialogue {
    background: #0A0A0F;
}

.dialogue-container {
    width: 100%;
    padding: 0 10vw;
}

.dialogue-heading {
    text-align: center;
    margin-bottom: 3rem;
    color: #00D4FF;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.dialogue-cards {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.dialogue-card {
    border-radius: 8px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dialogue-card:hover {
    transform: translateY(-5px);
}

.human-card {
    border-left: 4px solid #FF4444;
    background: rgba(255, 68, 68, 0.05);
    background-clip: padding-box;
    margin-left: 0;
}

.machine-card {
    border-left: 4px solid #00D4FF;
    background: rgba(0, 212, 255, 0.05);
    background-clip: padding-box;
    margin-left: 2rem;
    margin-right: 0;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.human-header {
    color: #FF4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}

.machine-header {
    color: #00D4FF;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.card-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.card-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #E8E8F0;
}

.card-body p {
    margin: 0;
}

/* ================================================================
   SECTION: THE STATIC
   ================================================================ */

#static {
    background: #0A0A0F;
}

.static-container {
    width: 100%;
    padding: 0 10vw;
}

.static-heading {
    text-align: center;
    margin-bottom: 3rem;
    color: #4A4A5A;
    text-shadow: 0 0 15px rgba(74, 74, 90, 0.3);
}

.static-visual {
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 0 auto 3rem;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(74, 74, 90, 0.4);
    background: #1A1A2E;
}

#static-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.static-text {
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #E8E8F0;
    line-height: 1.8;
    opacity: 0.9;
}

/* ================================================================
   SECTION: THE SILENCE
   ================================================================ */

#silence {
    background: linear-gradient(180deg, #0A0A0F 0%, #0A0A0F 100%);
}

.silence-container {
    width: 100%;
    padding: 0 10vw;
}

.silence-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.silence-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #E8E8F0;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(232, 232, 240, 0.2);
}

.silence-text {
    font-size: 1.2rem;
    color: #E8E8F0;
    line-height: 2;
    margin-bottom: 2rem;
    opacity: 0.85;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 300;
}

.silence-text-korean {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.silence-secondary {
    color: #00D4FF;
    font-size: 1.1rem;
    opacity: 0.8;
}

.silence-final {
    color: #FF4444;
    font-size: 1.3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 68, 68, 0.2);
    font-weight: 500;
}

/* ================================================================
   RESPONSIVE & UTILITY
   ================================================================ */

/* Smooth transitions */
* {
    transition-property: background-color, color, border-color;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Retro pattern effect utility */
.retro-pattern {
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(255, 68, 68, 0.03) 0px,
            rgba(255, 68, 68, 0.03) 2px,
            transparent 2px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 212, 255, 0.03) 0px,
            rgba(0, 212, 255, 0.03) 2px,
            transparent 2px,
            transparent 4px
        );
}

/* Selection styles */
::selection {
    background-color: #FF4444;
    color: #0A0A0F;
}

::-moz-selection {
    background-color: #FF4444;
    color: #0A0A0F;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0A0A0F;
}

::-webkit-scrollbar-thumb {
    background: #4A4A5A;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00D4FF;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .question-text {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dialogue-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .static-visual {
        height: 300px;
    }

    .silence-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .question-korean {
        font-size: 3rem;
    }

    .question-domain {
        font-size: 1.5rem;
    }

    .silence-heading {
        font-size: 1.5rem;
    }
}
