/* ============================================================
   MONOPOLE.STYLE — CSS
   Pixel-Art Retro Meets Scandinavian Minimalism
   ============================================================ */

:root {
    --color-near-black: #0A0A0E;
    --color-neon-magenta: #FF3366;
    --color-pixel-green: #00FF88;
    --color-off-white: #F4F2EE;
    --color-warm-beige: #E8E2D8;
    --color-neutral-taupe: #C8C4BE;
    --color-dark-gray: #2A2A30;
    --color-medium-gray: #3A3A40;
    --color-light-gray: #6A6A70;
    --color-very-light: #E0DCD6;

    --font-sans: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Lora", Georgia, serif;

    --grid-cell: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-off-white);
    color: var(--color-medium-gray);
    line-height: 1.75;
    overflow-x: hidden;
}

/* ============================================================
   SECTIONS & LAYOUTS
   ============================================================ */

.section {
    width: 100%;
    display: flex;
    min-height: 100vh;
}

.section.split-screen {
    flex-direction: row;
}

.section.split-screen .split-left {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.section.split-screen .split-right {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.section.broken-grid {
    display: block;
    padding: 6rem 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* ============================================================
   HEADER SECTION
   ============================================================ */

#header-section .split-left {
    background-color: var(--color-near-black);
}

#header-section .split-right {
    background-color: var(--color-off-white);
}

.header-content {
    animation: fadeInUp 800ms ease-out;
}

.domain-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-off-white);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.header-tagline {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--color-neutral-taupe);
    font-weight: 300;
    max-width: 90%;
}

.pixel-grid-intro {
    width: 200px;
    height: 200px;
    border: 2px solid var(--color-medium-gray);
    background: linear-gradient(135deg, var(--color-very-light) 25%, transparent 25%) -10px 0,
                linear-gradient(225deg, var(--color-very-light) 25%, transparent 25%) -10px 0,
                linear-gradient(315deg, var(--color-very-light) 25%, transparent 25%),
                linear-gradient(45deg, var(--color-very-light) 25%, transparent 25%);
    background-size: 20px 20px;
    background-color: var(--color-near-black);
    animation: pulse 3s ease-in-out infinite;
}

/* ============================================================
   PALETTE SECTION
   ============================================================ */

#palette-section .split-left {
    background-color: var(--color-near-black);
}

#palette-section .split-right {
    background-color: var(--color-off-white);
}

.palette-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-off-white);
}

#palette-section .split-right .palette-content h2 {
    color: var(--color-near-black);
}

.color-swatch {
    width: 100%;
    height: 120px;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
    border: 2px solid transparent;
    color: var(--color-off-white);
    font-weight: 600;
    text-align: center;
    font-size: 0.85rem;
}

.color-swatch:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.color-swatch.light {
    color: var(--color-near-black);
    border-color: var(--color-light-gray);
}

/* ============================================================
   AESTHETICS SECTION
   ============================================================ */

#aesthetics-section {
    background-color: var(--color-off-white);
}

.broken-grid .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    background-color: white;
    padding: 2rem;
    border: 1px solid var(--color-very-light);
    border-radius: 2px;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.grid-item h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-near-black);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.grid-item p {
    font-size: clamp(0.95rem, 1vw, 1rem);
    color: var(--color-dark-gray);
    line-height: 1.8;
}

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

#typography-section {
    background-color: var(--color-warm-beige);
}

.typography-sample {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-left: 4px solid var(--color-pixel-green);
}

.display-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-neon-magenta);
}

.body-text {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-medium-gray);
}

.accent-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-near-black);
}

.typography-desc {
    font-size: 0.8rem;
    color: var(--color-light-gray);
    font-weight: 300;
}

/* ============================================================
   PIXEL ART SECTION
   ============================================================ */

#pixel-art-section .split-left {
    background-color: var(--color-near-black);
}

#pixel-art-section .split-right {
    background-color: var(--color-off-white);
}

.pixel-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

#pixel-art-section .split-left .pixel-container h2 {
    color: var(--color-off-white);
}

#pixel-art-section .split-right .pixel-container h2 {
    color: var(--color-near-black);
}

.pixel-char {
    display: inline-grid;
    grid-template-columns: repeat(8, 12px);
    grid-template-rows: repeat(10, 12px);
    gap: 1px;
    background-color: var(--color-light-gray);
    padding: 10px;
    border-radius: 2px;
}

.pixel-char div {
    width: 12px;
    height: 12px;
    background-color: transparent;
}

.pixel-char div.filled {
    background-color: var(--color-pixel-green);
}

.pixel-diagram {
    width: 100%;
    max-width: 300px;
    height: 300px;
    position: relative;
    border: 2px solid var(--color-medium-gray);
    background: radial-gradient(circle at 50% 50%,
                    rgba(255, 51, 102, 0.1) 0%,
                    rgba(255, 51, 102, 0.05) 50%,
                    transparent 100%);
}

.pixel-diagram::before,
.pixel-diagram::after {
    content: '';
    position: absolute;
    border: 1px solid var(--color-medium-gray);
}

.pixel-diagram::before {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.pixel-diagram::after {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-style: dotted;
}

/* ============================================================
   INTERACTIONS SECTION
   ============================================================ */

#interactions-section {
    background-color: var(--color-off-white);
}

.interaction-block-1,
.interaction-block-2,
.interaction-block-3 {
    position: relative;
    overflow: hidden;
}

.interaction-block-1::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-pixel-green), transparent);
    opacity: 0;
    transition: opacity 300ms ease;
}

.interaction-block-1:hover::before {
    opacity: 0.1;
}

/* ============================================================
   CLOSING SECTION
   ============================================================ */

#closing-section .split-left {
    background-color: var(--color-near-black);
}

#closing-section .split-right {
    background-color: var(--color-off-white);
}

.closing-content h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

#closing-section .split-left .closing-content h2 {
    color: var(--color-neon-magenta);
}

#closing-section .split-right .closing-content h2 {
    color: var(--color-near-black);
}

#closing-section .split-left .closing-content p {
    color: var(--color-off-white);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

#closing-section .split-right .closing-content p {
    color: var(--color-medium-gray);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

.footer-credit {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--color-light-gray);
    font-weight: 300;
}

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

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

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

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

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

/* ============================================================
   MAGNETISM EFFECT (Cursor Tracking)
   ============================================================ */

.magnetic-element {
    position: relative;
    transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    .section.split-screen {
        flex-direction: column;
    }

    .section.split-screen .split-left,
    .section.split-screen .split-right {
        width: 100%;
        min-height: 50vh;
    }

    .section.broken-grid {
        padding: 3rem 1.5rem;
    }

    .broken-grid .grid-container {
        grid-template-columns: 1fr;
    }

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

    .grid-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .domain-title {
        font-size: 1.5rem;
    }

    .grid-item h2 {
        font-size: 1.2rem;
    }

    .section.broken-grid {
        padding: 2rem 1rem;
    }

    .pixel-char {
        grid-template-columns: repeat(6, 10px);
        grid-template-rows: repeat(8, 10px);
    }

    .pixel-char div {
        width: 10px;
        height: 10px;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-neon {
    color: var(--color-neon-magenta);
}

.text-green {
    color: var(--color-pixel-green);
}

.text-dark {
    color: var(--color-near-black);
}

.text-light {
    color: var(--color-off-white);
}

.bg-dark {
    background-color: var(--color-near-black);
}

.bg-light {
    background-color: var(--color-off-white);
}
