/* mosoon.org - Contradiction Design System */

/* CSS Variables */
:root {
    --color-dark-primary: #0E1118;
    --color-dark-secondary: #121212;
    --color-dark-alternate: #12161F;
    --color-dark-tertiary: #1A1820;
    --color-warm: #E8784A;
    --color-cool: #4A8AE8;
    --color-text-light: #E0DDD8;
    --color-accent-dark: #4A6A8A;
    --color-accent-purple: #8A6ACA;
    --color-marble-dark: #2A2830;

    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Cormorant Garamond', serif;
    --font-mono: 'Share Tech Mono', monospace;

    --spacing-unit: 1rem;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-magnetic: 0.2s ease-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-dark-primary);
    color: var(--color-text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: var(--spacing-unit);
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

h3 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    font-weight: 400;
}

/* Sections */
.section {
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.section:nth-child(odd) {
    background-color: var(--color-dark-primary);
    background-image:
        linear-gradient(135deg, rgba(42, 40, 48, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 50%, rgba(26, 24, 32, 0.1) 100%);
}

.section:nth-child(even) {
    background-color: var(--color-dark-secondary);
    background-image:
        linear-gradient(135deg, rgba(42, 40, 48, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, transparent 50%, rgba(26, 24, 32, 0.08) 100%);
}

/* Opening Section */
.opening {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opening-container {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.4s;
}

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

.domain-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    color: var(--color-text-light);
    text-shadow: 0 0 40px rgba(232, 120, 74, 0.3);
}

.contradiction-word {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.4em;
    margin-bottom: 2rem;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--color-warm) 50%, var(--color-cool) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.contradiction-warm {
    color: var(--color-warm);
}

.contradiction-cool {
    color: var(--color-cool);
}

.opening-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(224, 221, 216, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Content */
.section-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Marble Panels */
.marble-panel {
    background: linear-gradient(135deg, rgba(42, 40, 48, 0.4) 0%, rgba(26, 24, 32, 0.3) 100%);
    border: 1px solid rgba(224, 221, 216, 0.1);
    padding: 3rem;
    border-radius: 2px;
    backdrop-filter: blur(10px);
    position: relative;
}

.marble-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, transparent 48%, rgba(42, 40, 48, 0.1) 49%, rgba(42, 40, 48, 0.1) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(26, 24, 32, 0.1) 49%, rgba(26, 24, 32, 0.1) 51%, transparent 52%);
    background-size: 100px 100px;
    border-radius: 2px;
    pointer-events: none;
}

.marble-panel h2 {
    position: relative;
    z-index: 2;
}

.marble-panel p {
    position: relative;
    z-index: 2;
}

/* Definition Section */
.definition-section {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.definition-section .section-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.definition-section .marble-panel {
    flex: 1;
}

.color-split-demo {
    flex: 1;
    display: flex;
    height: 300px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.color-left {
    flex: 1;
    background-color: var(--color-warm);
    animation: pulseWarm 4s ease-in-out infinite;
}

.color-right {
    flex: 1;
    background-color: var(--color-cool);
    animation: pulseCool 4s ease-in-out infinite;
}

@keyframes pulseWarm {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes pulseCool {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Examples Section */
.examples-section {
    background-color: var(--color-dark-primary);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.example-card {
    background: linear-gradient(135deg, rgba(42, 40, 48, 0.3) 0%, rgba(26, 24, 32, 0.2) 100%);
    border: 1px solid rgba(224, 221, 216, 0.1);
    padding: 2rem;
    border-radius: 2px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.example-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-warm) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.example-card.cool-card::before {
    background: linear-gradient(90deg, var(--color-cool) 0%, transparent 100%);
}

.example-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(42, 40, 48, 0.5) 0%, rgba(26, 24, 32, 0.3) 100%);
}

.example-card:hover::before {
    opacity: 1;
}

.example-card h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}

.example-card p {
    position: relative;
    z-index: 2;
    font-size: 1rem;
}

.warm-card {
    border-left: 3px solid var(--color-warm);
}

.cool-card {
    border-left: 3px solid var(--color-cool);
}

/* Philosophy Section */
.philosophy-section {
    background-color: var(--color-dark-secondary);
}

.philosophy-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.philosophy-column {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(42, 40, 48, 0.3) 0%, rgba(26, 24, 32, 0.2) 100%);
    border-radius: 2px;
    border: 1px solid rgba(224, 221, 216, 0.1);
}

.warm-accent {
    border-left: 4px solid var(--color-warm);
}

.cool-accent {
    border-left: 4px solid var(--color-cool);
}

.philosophy-column h3 {
    margin-bottom: 1.5rem;
}

.philosophy-column p {
    font-size: 1.05rem;
}

.philosophy-bridge {
    background: linear-gradient(135deg, rgba(74, 106, 138, 0.2) 0%, rgba(138, 106, 202, 0.2) 100%);
    padding: 2.5rem;
    border-radius: 2px;
    border: 1px solid rgba(224, 221, 216, 0.1);
    text-align: center;
}

.philosophy-bridge p {
    font-style: italic;
    font-size: 1.15rem;
    margin: 0;
}

/* Applications Section */
.applications-section {
    background-color: var(--color-dark-primary);
}

.applications-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.app-item {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(42, 40, 48, 0.3) 0%, rgba(26, 24, 32, 0.2) 100%);
    border: 1px solid rgba(224, 221, 216, 0.08);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.app-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-warm), var(--color-cool));
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.app-item:hover {
    background: linear-gradient(135deg, rgba(42, 40, 48, 0.5) 0%, rgba(26, 24, 32, 0.3) 100%);
    transform: translateX(10px);
}

.app-item:hover::before {
    opacity: 1;
}

.app-label {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-warm);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.app-item:nth-child(even) .app-label {
    color: var(--color-cool);
}

.app-item h3 {
    display: none;
}

.app-item p {
    margin-bottom: 0;
}

/* Interactive Section */
.interactive-section {
    background-color: var(--color-dark-secondary);
    position: relative;
}

.magnetic-field {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    margin: 2rem auto;
    background: radial-gradient(circle at center, rgba(42, 40, 48, 0.3) 0%, transparent 70%);
    border: 1px solid rgba(224, 221, 216, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contradiction-sphere {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    transition: all var(--transition-magnetic);
}

.warm-sphere {
    background: radial-gradient(circle at 30% 30%, rgba(232, 120, 74, 0.8), rgba(232, 120, 74, 0.4));
    left: 10%;
    top: 25%;
}

.cool-sphere {
    background: radial-gradient(circle at 70% 70%, rgba(74, 168, 232, 0.8), rgba(74, 168, 232, 0.4));
    right: 10%;
    bottom: 25%;
}

.interactive-hint {
    text-align: center;
    font-size: 0.95rem;
    color: rgba(224, 221, 216, 0.7);
    margin-top: 2rem;
}

/* Closing Section */
.closing-section {
    background-color: var(--color-dark-primary);
    text-align: center;
}

.closing-text {
    max-width: 800px;
    margin: 0 auto;
}

.closing-text p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.closing-byline {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: var(--color-warm);
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        min-height: 60vh;
        padding: 2rem 1.5rem;
    }

    .definition-section .section-content {
        flex-direction: column;
        gap: 2rem;
    }

    .marble-panel {
        padding: 2rem;
    }

    .color-split-demo {
        height: 250px;
    }

    .philosophy-text {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    h1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.4rem, 4vw, 2rem);
    }

    .contradiction-word {
        font-size: clamp(1rem, 3vw, 1.5rem);
    }

    .domain-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        letter-spacing: 0.1em;
    }
}

/* Utility Classes */
.glow-text {
    text-shadow: 0 0 20px rgba(232, 120, 74, 0.3);
}

.glow-cool {
    text-shadow: 0 0 20px rgba(74, 168, 232, 0.3);
}

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

::-webkit-scrollbar-track {
    background: var(--color-dark-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-purple);
}
