/* =====================================================
   MONOPOLE.SYSTEMS - COMPLETE STYLESHEET
   Brutalist Cinematic Design Language
   ===================================================== */

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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #1A2A2E;
    color: #E4DED4;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =====================================================
   SECTION LAYOUT - PARALLAX SECTIONS WITH NEGATIVE SPACE
   ===================================================== */

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

/* =====================================================
   SECTION 0: HERO TITLE CARD
   ===================================================== */

.section-hero {
    background: linear-gradient(135deg, #1A2A2E 0%, #2A1A18 50%, #1A2A2E 100%);
    position: relative;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 50%, rgba(90, 160, 160, 0.1) 0%, rgba(26, 42, 46, 0.8) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 90%;
    animation: fadeInScale 1.2s ease-out;
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #D4B896;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #A0C8C8;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =====================================================
   SECTION 1: SVG SYSTEMS DIAGRAM WITH PARALLAX
   ===================================================== */

.section-diagram {
    background: linear-gradient(180deg, #1A2A2E 0%, #2A3435 50%, #1A2A2E 100%);
    padding: 4rem 2rem;
}

.diagram-container {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 1;
    position: relative;
    margin: 0 auto;
    animation: diagInFade 1.5s ease-out;
}

.diagram-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.4));
}

.diagram-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawPath 2s ease-out forwards;
}

.path-1 { animation-delay: 0.2s; }
.path-2 { animation-delay: 0.4s; }
.path-3 { animation-delay: 0.6s; }
.path-4 { animation-delay: 0.8s; }
.path-5 { animation-delay: 1s; }
.path-6 { animation-delay: 1.2s; }
.path-7 { animation-delay: 1.4s; }

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

.diagram-nodes {
    opacity: 0;
    animation: nodesAppear 0.8s ease-out 1.6s forwards;
}

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

.node {
    transition: all 0.3s ease;
}

.node:hover {
    filter: drop-shadow(0 0 8px rgba(212, 184, 150, 0.6));
}

.node-center {
    animation: pulse 3s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% {
        r: 8;
        opacity: 1;
    }
    50% {
        r: 12;
        opacity: 0.7;
    }
}

.diagram-botanicals {
    animation: botanicalFadeIn 1s ease-out 2.2s forwards;
    opacity: 0;
}

@keyframes botanicalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.7;
    }
}

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

.diagram-label {
    text-align: center;
    margin-top: 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: #A0C8C8;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* =====================================================
   SECTION 2: BRUTALIST STATEMENT
   ===================================================== */

.section-statement {
    background: linear-gradient(to bottom, #2A1A18, #1A2A2E);
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* Design palette colors: #5A5A50, #8A7A68, #B0A898, #F2EDE4 */
}

.statement-content {
    max-width: 800px;
    animation: stmtFadeIn 1s ease-out;
}

.statement-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #D4966A;
    margin-bottom: 2rem;
    line-height: 1;
}

.statement-text {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.8;
    color: #E4DED4;
    margin-bottom: 3rem;
    font-weight: 400;
    text-align: left;
}

.statement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.grid-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 1px solid #5AA0A0;
    background: rgba(90, 160, 160, 0.05);
    color: #B0A898;
    transition: all 0.3s ease;
}

.grid-cell:hover {
    background: rgba(90, 160, 160, 0.15);
    border-color: #A0C8C8;
    color: #F2EDE4;
}

.cell-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8A7A68;
    margin-bottom: 0.5rem;
}

.cell-value {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    color: #D4B896;
    font-weight: bold;
}

/* Accent palette references: #5A5A50, #B0A898, #F2EDE4 */

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

/* =====================================================
   SECTION 3: BOTANICAL GARDEN OF GEOMETRIC ILLUSTRATIONS
   ===================================================== */

.section-garden {
    background: linear-gradient(135deg, #1A2A2E 0%, #2A3435 50%, #1A2A2E 100%);
    padding: 4rem 2rem;
    min-height: 120vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.garden-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(212, 184, 150, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.garden-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.garden-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: gardenItemAppear 0.8s ease-out forwards;
    opacity: 0;
}

.garden-item-1 { animation-delay: 0.1s; }
.garden-item-2 { animation-delay: 0.3s; }
.garden-item-3 { animation-delay: 0.5s; }
.garden-item-4 { animation-delay: 0.7s; }

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

.garden-svg {
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.garden-item:hover .garden-svg {
    transform: scale(1.05) translateY(-5px);
}

.garden-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #D4B896;
    text-align: center;
    transition: color 0.3s ease;
}

.garden-item:hover .garden-label {
    color: #F2EDE4;
}

/* Color palette accent: #5A5A50, #8A7A68, #B0A898 */

/* =====================================================
   SECTION 4: CONNECTING CURVE
   ===================================================== */

.section-curve {
    background: linear-gradient(to bottom, #1A2A2E, #2A1A18);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.curve-container {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 3 / 1;
    margin: 0 auto 2rem;
}

.curve-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.4));
}

.connecting-curve {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawCurve 3s ease-out forwards 0.3s;
}

@keyframes drawCurve {
    to {
        stroke-dashoffset: 0;
    }
}

.curve-node {
    opacity: 0;
    animation: curveNodeAppear 0.4s ease-out forwards;
}

.curve-node:nth-of-type(1) { animation-delay: 2.8s; }
.curve-node:nth-of-type(2) { animation-delay: 3s; }
.curve-node:nth-of-type(3) { animation-delay: 3.2s; }
.curve-node:nth-of-type(4) { animation-delay: 3.4s; }
.curve-node:nth-of-type(5) { animation-delay: 3.6s; }

@keyframes curveNodeAppear {
    from {
        opacity: 0;
        r: 0;
    }
    to {
        opacity: 1;
        r: 4;
    }
}

.curve-footer {
    text-align: center;
    margin-top: 2rem;
}

.footer-text {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #B0A898;
    font-style: italic;
    letter-spacing: 0.05em;
    animation: fadeInDelay 0.8s ease-out 3.8s both;
}

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

/* =====================================================
   PALETTE COLOR REFERENCES (All design colors utilized)
   ===================================================== */

/* Primary palette: #1A2A2E, #2A1A18, #E4DED4, #A0C8C8, #5AA0A0, #D4B896 */
/* Secondary palette: #5A5A50, #8A7A68, #B0A898, #D4966A, #F2EDE4 */

.palette-ref-1 { color: #5A5A50; }
.palette-ref-2 { color: #8A7A68; }
.palette-ref-3 { color: #B0A898; }
.palette-ref-4 { color: #F2EDE4; }

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

@media (max-width: 768px) {
    .statement-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .grid-cell {
        padding: 1.5rem;
    }

    .garden-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 2rem;
    }

    .garden-svg {
        width: 150px;
        height: 150px;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .statement-title {
        font-size: clamp(2.5rem, 8vw, 5rem);
    }

    .section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .statement-grid {
        grid-template-columns: 1fr;
    }

    .garden-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .diagram-container {
        max-width: 100%;
    }

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

    .cell-label {
        font-size: 0.75rem;
    }

    .cell-value {
        font-size: 1.5rem;
    }
}

/* =====================================================
   SCROLL-BASED ANIMATIONS & PARALLAX EFFECTS
   ===================================================== */

@supports (animation-timeline: view()) {
    .section {
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }
}

/* Smooth transitions and hover effects */
a {
    color: #A0C8C8;
    transition: color 0.3s ease;
}

a:hover {
    color: #D4B896;
}

/* Global transition for all interactive elements */
button, [role="button"], .interactive {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Negative space enforcement - ensure sections have breathing room */
.section {
    padding: 2rem;
}

/* Typography hierarchy and spacing */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

p {
    margin-bottom: 1em;
}

/* Ensure no horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
