/* paraligm.com - Paradigm Shifts */
/* Colors: #1b2838, #c1440e, #f5e6ca, #d4a017, #2a7f62, #f0ece2, #2c2c2c */
/* Fonts: Bebas Neue (display), Libre Baskerville (body), Space Grotesk (UI) */

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Libre Baskerville', serif;
    background: #1b2838;
    color: #f5e6ca;
    overflow-x: hidden;
}

/* Shift Counter */
.shift-counter {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.counter-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #d4a017;
    text-transform: uppercase;
}

.counter-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    line-height: 1;
    color: #d4a017;
    transition: color 0.3s ease;
}

/* Panels */
.panel {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    overflow: hidden;
    scroll-snap-align: start;
}

.panel-left,
.panel-right {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.panel-content {
    max-width: 480px;
    padding: 40px;
}

/* Diagonal Lines */
.diagonal-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.diagonal-line::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    width: 3px;
    height: 120%;
    background: #d4a017;
    transform-origin: center;
}

/* Section-specific diagonal angles */
.panel-1 .diagonal-line::after { transform: translateX(-50%) rotate(30deg); }
.panel-2 .diagonal-line::after { transform: translateX(-50%) rotate(45deg); }
.panel-3 .diagonal-line::after { transform: translateX(-50%) rotate(60deg); }
.panel-4 .diagonal-line::after { transform: translateX(-50%) rotate(15deg); }
.panel-5 .diagonal-line::after { transform: translateX(-50%) rotate(40deg); }
.panel-6 .diagonal-line::after { transform: translateX(-50%) rotate(30deg); }

/* Section 1 - Hero */
.panel-1 {
    background: #1b2838;
}

.panel-1 .panel-left {
    clip-path: polygon(0 0, 65% 0, 35% 100%, 0 100%);
    background: #1b2838;
}

.panel-1 .panel-right {
    clip-path: polygon(65% 0, 100% 0, 100% 100%, 35% 100%);
    background: #f0ece2;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
}

/* Section 2 - The Crack */
.panel-2 {
    background: #c1440e;
}

.panel-2 .panel-left {
    clip-path: polygon(0 0, 55% 0, 45% 100%, 0 100%);
    background: #f5e6ca;
}

.panel-2 .panel-right {
    clip-path: polygon(55% 0, 100% 0, 100% 100%, 45% 100%);
    background: #c1440e;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
}

.panel-2 .panel-right .panel-content {
    color: #f5e6ca;
}

/* Section 3 - The Crisis */
.panel-3 {
    background: #2c2c2c;
}

.panel-3 .panel-left {
    clip-path: polygon(0 0, 70% 0, 20% 100%, 0 100%);
    background: #2c2c2c;
}

.panel-3 .panel-right {
    clip-path: polygon(70% 0, 100% 0, 100% 100%, 20% 100%);
    background: #d4a017;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
}

.panel-3 .panel-left .panel-content {
    color: #f0ece2;
}

/* Section 4 - The Shift */
.panel-4 {
    background: #2a7f62;
}

.panel-4 .panel-left {
    clip-path: polygon(0 0, 54% 0, 46% 100%, 0 100%);
    background: #f0ece2;
}

.panel-4 .panel-right {
    clip-path: polygon(54% 0, 100% 0, 100% 100%, 46% 100%);
    background: #2a7f62;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
}

.panel-4 .panel-right .panel-content {
    color: #f5e6ca;
}

/* Section 5 - The New Order */
.panel-5 {
    background: #1b2838;
}

.panel-5 .panel-left {
    clip-path: polygon(0 0, 60% 0, 35% 100%, 0 100%);
    background: #1b2838;
}

.panel-5 .panel-right {
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 35% 100%);
    background: #f5e6ca;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
}

/* Section 6 - The Loop */
.panel-6 {
    background: #f0ece2;
}

.panel-6 .panel-left {
    clip-path: polygon(0 0, 65% 0, 35% 100%, 0 100%);
    background: #f0ece2;
}

.panel-6 .panel-right {
    clip-path: polygon(65% 0, 100% 0, 100% 100%, 35% 100%);
    background: #1b2838;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
}

.panel-6 .panel-right .panel-content {
    color: #f5e6ca;
}

/* Typography */
.domain-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 140px;
    letter-spacing: 0.12em;
    line-height: 0.9;
    color: #f5e6ca;
    text-transform: uppercase;
}

.subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    letter-spacing: 0.15em;
    color: #d4a017;
    margin-top: 20px;
    text-transform: uppercase;
}

.section-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 80px;
    letter-spacing: 0.12em;
    line-height: 1;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.panel-2 .section-heading { color: #f5e6ca; }
.panel-3 .section-heading { color: #f0ece2; }
.panel-4 .section-heading { color: #f5e6ca; }
.panel-5 .section-heading { color: #f5e6ca; }
.panel-6 .section-heading { color: #f5e6ca; }

.statement {
    font-family: 'Libre Baskerville', serif;
    font-size: 20px;
    line-height: 1.7;
    max-width: 400px;
}

.ui-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #d4a017;
    display: inline-block;
    margin-top: 40px;
    text-transform: uppercase;
    border-top: 1px solid #d4a017;
    padding-top: 12px;
}

/* Geometric Shapes */
.geo-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.geo-shape {
    position: absolute;
    fill: none;
    stroke-width: 2px;
}

.geo-circle {
    width: 180px;
    height: 180px;
    top: 10%;
    left: 15%;
    stroke: #1b2838;
    animation: rotateShape 20s linear infinite;
}

.geo-square {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 50%;
    stroke: #c1440e;
    animation: rotateShape 25s linear infinite reverse;
}

.geo-triangle {
    width: 150px;
    height: 150px;
    top: 5%;
    left: 55%;
    stroke: #2a7f62;
    animation: rotateShape 18s linear infinite;
}

.geo-hexagon {
    width: 160px;
    height: 160px;
    top: 20%;
    left: 20%;
    stroke: #d4a017;
    animation: rotateShape 22s linear infinite;
}

.geo-diamond {
    width: 120px;
    height: 120px;
    top: 45%;
    left: 55%;
    stroke: #c1440e;
    animation: rotateShape 15s linear infinite reverse;
}

/* Panel-specific shape colors */
.panel-2 .geo-shape { stroke: #1b2838; }
.panel-3 .geo-shape { stroke: #1b2838; }
.panel-4 .geo-shape { stroke: #1b2838; }
.panel-5 .geo-shape { stroke: #2c2c2c; }
.panel-6 .geo-shape { stroke: #1b2838; }

/* Fragmented shapes (Section 2) */
.fragmented {
    animation: fragmentShake 0.8s ease-in-out infinite alternate;
}

/* Scattered shapes (Section 3) */
.scattered {
    animation: scatterDrift 3s ease-in-out infinite alternate;
}

/* Reformed shapes (Section 5) */
.reformed {
    animation: reformPulse 4s ease-in-out infinite;
}

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

@keyframes fragmentShake {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(3px, -2px) rotate(2deg); }
    50% { transform: translate(-2px, 3px) rotate(-1deg); }
    75% { transform: translate(1px, 1px) rotate(3deg); }
    100% { transform: translate(-3px, -1px) rotate(-2deg); }
}

@keyframes scatterDrift {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(20px, -15px) scale(0.9); opacity: 0.6; }
}

@keyframes reformPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.05) rotate(5deg); opacity: 0.9; }
}

/* Scroll-triggered visibility */
.panel-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.panel.visible .panel-content {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .domain-title {
        font-size: 72px;
    }

    .section-heading {
        font-size: 48px;
    }

    .statement {
        font-size: 17px;
    }

    .geo-container {
        width: 200px;
        height: 200px;
    }

    .panel-content {
        padding: 24px;
    }

    .counter-value {
        font-size: 36px;
    }
}
