/* monopole.tech - Bauhaus Geometric Design */

/* ===== ROOT & GLOBAL STYLES ===== */
:root {
    --color-cream: #FBF7F0;
    --color-off-cream: #F4F0E8;
    --color-blush: #F0C8C0;
    --color-sage: #C8E0C0;
    --color-charcoal: #2A2830;
    --color-secondary-text: #3A3438;
    --color-taupe: #6A6468;
    --color-mushroom: #D0C8C0;
    --color-lavender: #D0C8E0;
    --color-buttercream: #F0E0A8;
    --color-oatmeal: #E8E0D8;

    --font-display: 'Poiret One', serif;
    --font-body: 'Baskerville', serif;
    --font-mono: 'Fira Code', monospace;

    --transition-smooth: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ===== SECTION 0: THE WORKSHOP ===== */
.workshop {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-cream);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.workshop-container {
    text-align: center;
    z-index: 2;
}

.domain-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-charcoal);
    letter-spacing: 0.12em;
    margin-top: 3rem;
    animation: fadeInDown 1.2s ease-out;
}

.geometric-shapes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
    height: 140px;
}

.shape-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--color-blush);
    animation: scaleInCircle 1s ease-out 0.2s both;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 90px solid var(--color-sage);
    animation: scaleInTriangle 1s ease-out 0.4s both;
}

.shape-square {
    width: 100px;
    height: 100px;
    background-color: var(--color-buttercream);
    animation: scaleInSquare 1s ease-out 0.6s both;
}

/* Hexagonal background grid (subtle) */
.workshop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M50 0 L93.3 25 L93.3 75 L50 100 L6.7 75 L6.7 25 Z' fill='none' stroke='%23E0DCD8' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0.15;
    z-index: 1;
}

/* ===== SECTION 1: HONEYCOMB COLLAGE ===== */
.honeycomb-section {
    background-color: var(--color-cream);
    padding: 6rem 2rem;
    position: relative;
}

.honeycomb-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    grid-auto-rows: minmax(240px, auto);
}

/* Alternate hex cell backgrounds */
.hex-cell {
    clip-path: polygon(
        50% 0%,
        93.3% 25%,
        93.3% 75%,
        50% 100%,
        6.7% 75%,
        6.7% 25%
    );
    background-color: var(--color-oatmeal);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(232, 224, 216, 0.5);
    transition: var(--transition-smooth);
    min-height: 240px;
}

.hex-cell:nth-child(even) {
    background-color: #E0DCD8;
}

.hex-cell:hover {
    background-color: var(--color-mushroom);
    transform: scale(1.05);
}

.hex-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hex-cell h2 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--color-charcoal);
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.hex-cell p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-secondary-text);
}

/* Technical/Monospace styling */
.mono-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #5A5458;
    letter-spacing: 0.04em;
}

/* Geometric shapes within hexagons */
.hex-shape {
    display: block;
}

.hex-shape.circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-blush);
}

.hex-shape.triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid var(--color-sage);
}

.hex-shape.square {
    width: 80px;
    height: 80px;
    background-color: var(--color-buttercream);
}

/* Staggered animation for hexagons */
.hex-1 { animation: fadeInUp 0.8s ease-out 0s; }
.hex-2 { animation: fadeInUp 0.8s ease-out 0.1s; }
.hex-3 { animation: fadeInUp 0.8s ease-out 0.2s; }
.hex-4 { animation: fadeInUp 0.8s ease-out 0.3s; }
.hex-5 { animation: fadeInUp 0.8s ease-out 0.4s; }
.hex-6 { animation: fadeInUp 0.8s ease-out 0.5s; }
.hex-7 { animation: fadeInUp 0.8s ease-out 0.6s; }
.hex-8 { animation: fadeInUp 0.8s ease-out 0.7s; }
.hex-9 { animation: fadeInUp 0.8s ease-out 0.8s; }

/* ===== SECTION 2: CONVERSATION ===== */
.conversation-section {
    background-color: var(--color-oatmeal);
    padding: 6rem 2rem;
    position: relative;
}

.conversation-container {
    max-width: 700px;
    margin: 0 auto;
}

.conversation-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-secondary-text);
    margin-bottom: 2rem;
    text-align: justify;
    animation: fadeIn 1s ease-out;
}

.conversation-text:first-of-type {
    animation: fadeIn 1s ease-out 0.2s both;
}

.conversation-text:last-of-type {
    animation: fadeIn 1s ease-out 0.4s both;
}

/* ===== SECTION 3: AURORA MANDALA ===== */
.mandala-section {
    background-color: var(--color-off-cream);
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.mandala-container {
    max-width: 500px;
    width: 100%;
    aspect-ratio: 1;
}

.aurora-mandala {
    width: 100%;
    height: 100%;
    animation: rotateGently 20s linear infinite;
}

.mandala-rings circle {
    animation: pulseRings 4s ease-in-out infinite;
}

.mandala-spokes line {
    animation: pulseSpokes 3s ease-in-out infinite;
}

/* ===== SECTION 4: CLOSING ===== */
.closing-section {
    background-color: var(--color-mushroom);
    padding: 6rem 2rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.closing-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-charcoal);
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.closing-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--color-taupe);
    letter-spacing: 0.05em;
    font-style: italic;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleInCircle {
    from {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(360deg);
    }
}

@keyframes scaleInTriangle {
    from {
        opacity: 0;
        transform: scale(0) rotate(-30deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes scaleInSquare {
    from {
        opacity: 0;
        transform: scale(0) rotate(45deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes rotateGently {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseRings {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes pulseSpokes {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .geometric-shapes {
        gap: 1.5rem;
    }

    .shape-circle,
    .shape-square {
        width: 70px;
        height: 70px;
    }

    .shape-triangle {
        border-left: 35px solid transparent;
        border-right: 35px solid transparent;
        border-bottom: 60px solid var(--color-sage);
    }

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

    .hex-cell {
        min-height: 180px;
        padding: 1.5rem;
    }

    .hex-shape.circle {
        width: 60px;
        height: 60px;
    }

    .hex-shape.triangle {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 50px solid var(--color-sage);
    }

    .hex-shape.square {
        width: 60px;
        height: 60px;
    }

    .conversation-text {
        font-size: 1rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .workshop {
        padding: 1rem;
    }

    .geometric-shapes {
        flex-direction: column;
        gap: 1rem;
        height: auto;
    }

    .domain-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-top: 2rem;
    }

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

    .hex-cell {
        min-height: 200px;
    }

    .closing-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .closing-subtitle {
        font-size: 1rem;
    }
}
