/* paraoligm.com - Evolved-minimal, high-contrast manifesto design */

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pure-white: #FAFAFA;
    --true-black: #0A0A0A;
    --optimist-coral: #F06850;
    --bright-teal: #20C0A0;
    --sunshine-yellow: #F0C020;
    --soft-gray: #E0E0E0;
    --warm-charcoal: #303030;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.8;
    color: var(--true-black);
    background-color: var(--pure-white);
    overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
.domain-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(32px, 8vw, 96px);
    line-height: 1.1;
    color: var(--true-black);
    letter-spacing: -0.02em;
}

.manifesto-heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2.5vw, 36px);
    line-height: 1.4;
}

.label {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
}

.body-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.8;
    max-width: 600px;
}

/* ========== CONTENT COLUMN ========== */
.content-column {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* ========== NAVIGATION (Hidden/Minimal) ========== */
.nav-hidden {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--true-black);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: var(--true-black);
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: right 0.4s ease;
}

.nav-links.open {
    right: 0;
}

.nav-links li {
    margin-bottom: 24px;
}

.nav-links a {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--pure-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--optimist-coral);
}

/* Dark section nav toggle color */
body.nav-dark .nav-toggle span {
    background-color: var(--pure-white);
}

/* ========== DECLARATION SECTION (HERO) ========== */
.section-declaration {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--pure-white);
    overflow: hidden;
}

.declaration-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.declaration-content .label {
    color: var(--warm-charcoal);
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInUp 600ms 200ms forwards;
}

.declaration-content .domain-title {
    opacity: 0;
    transform: scale(1.2);
    animation: scaleIn 600ms 0ms forwards;
}

.declaration-content .declaration-text {
    color: var(--warm-charcoal);
    margin-top: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 600ms 400ms forwards;
}

/* Hero flowing curves */
.hero-curves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Vector art illustrations */
.vector-art {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0;
    z-index: 1;
    animation: fadeIn 800ms 800ms forwards;
}

.vector-art-left {
    left: 5%;
    top: 20%;
}

.vector-art-right {
    right: 5%;
    bottom: 20%;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 600ms 1200ms forwards;
}

.scroll-indicator .label {
    color: var(--soft-gray);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--soft-gray), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ========== COLOR BURSTS ========== */
.color-burst {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    pointer-events: none;
}

.color-burst.visible {
    animation: burstIn 300ms forwards;
}

.color-burst.burst-hover {
    animation: burstGrow 300ms forwards;
}

.burst-1 {
    width: 12px;
    height: 12px;
    background-color: var(--optimist-coral);
    top: -30px;
    right: -40px;
}

.burst-2 {
    width: 8px;
    height: 8px;
    background-color: var(--bright-teal);
    bottom: -20px;
    left: -30px;
}

.burst-3 {
    width: 16px;
    height: 16px;
    background-color: var(--sunshine-yellow);
    top: 10px;
    left: -50px;
}

.burst-4 {
    width: 10px;
    height: 10px;
    background-color: var(--sunshine-yellow);
    top: -20px;
    right: 0;
}

.burst-5 {
    width: 14px;
    height: 14px;
    background-color: var(--optimist-coral);
    bottom: 0;
    right: -30px;
}

.burst-6 {
    width: 8px;
    height: 8px;
    background-color: var(--bright-teal);
    top: -15px;
    left: -20px;
}

.burst-7 {
    width: 12px;
    height: 12px;
    background-color: var(--sunshine-yellow);
    bottom: -10px;
    left: 50px;
}

/* ========== MANIFESTO SECTIONS ========== */
.section-manifesto {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 0;
    overflow: hidden;
    transition: background-color 400ms ease;
}

.section-dark {
    background-color: var(--true-black);
    color: var(--pure-white);
}

.section-dark .label {
    color: var(--soft-gray);
}

.section-dark .body-text {
    color: var(--soft-gray);
}

.section-dark .manifesto-heading {
    color: var(--pure-white);
}

.section-light {
    background-color: var(--pure-white);
    color: var(--true-black);
}

.section-light .label {
    color: var(--warm-charcoal);
}

.section-light .body-text {
    color: var(--warm-charcoal);
}

.section-light .manifesto-heading {
    color: var(--true-black);
}

.section-manifesto .content-column {
    position: relative;
    z-index: 2;
}

.section-manifesto .label {
    display: block;
    margin-bottom: 24px;
}

.section-manifesto .manifesto-heading {
    margin-bottom: 32px;
}

/* Section curves */
.section-curves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ========== FLOWING CURVES (SVG Stroke Animation) ========== */
.flow-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

.flow-path.animate {
    animation: drawPath 1200ms ease-out forwards;
}

/* ========== UNDERLINE-DRAW ANIMATION ========== */
.underline-draw {
    position: relative;
    display: inline;
}

.underline-draw::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 3px;
    background-color: var(--optimist-coral);
    transition: width 400ms ease;
}

.underline-draw.drawn::after {
    width: 100%;
}

/* Alternate underline colors */
.section-manifesto:nth-of-type(3) .underline-draw::after {
    background-color: var(--bright-teal);
}

.section-manifesto:nth-of-type(4) .underline-draw::after {
    background-color: var(--sunshine-yellow);
}

.section-manifesto:nth-of-type(5) .underline-draw::after {
    background-color: var(--optimist-coral);
}

/* ========== HOVER INTERACTIONS ========== */
.section-manifesto .content-column {
    border-left: 4px solid transparent;
    padding-left: 28px;
    transition: border-color 0.3s ease;
}

.section-manifesto .content-column:hover {
    border-left-color: var(--optimist-coral);
}

.section-dark .content-column:hover {
    border-left-color: var(--bright-teal);
}

.underline-draw:hover {
    text-shadow: 0 0 20px rgba(240, 104, 80, 0.2);
}

/* ========== CONCEPT GALLERY ========== */
.section-concepts {
    padding: 96px 0;
    position: relative;
}

.section-concepts .content-column {
    margin-bottom: 64px;
}

.gallery-title {
    margin-top: 16px;
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.concept-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
    background-color: rgba(250, 250, 250, 0.05);
    border: 1px solid rgba(250, 250, 250, 0.08);
    border-radius: 4px;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.concept-card.visible {
    transform: scale(1);
    opacity: 1;
}

.concept-card:hover {
    border-color: rgba(250, 250, 250, 0.2);
}

.concept-card:hover .concept-svg {
    transform: rotate(2deg) scale(1.03);
}

.concept-svg {
    width: 120px;
    height: 120px;
    transition: transform 0.3s ease;
}

.concept-card .label {
    color: var(--soft-gray);
}

/* ========== FOOTER / HORIZON ========== */
.section-horizon {
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 96px 24px;
    overflow: hidden;
    background: linear-gradient(180deg,
        var(--true-black) 0%,
        #1a0f0a 40%,
        #2a1510 60%,
        #3d2015 80%,
        #4a2818 100%
    );
    color: var(--pure-white);
}

.footer-curves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.horizon-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
}

.horizon-content .label {
    color: var(--soft-gray);
    margin-bottom: 24px;
    display: block;
}

.horizon-content .manifesto-heading {
    color: var(--pure-white);
    margin-bottom: 24px;
}

.horizon-content .body-text {
    color: var(--soft-gray);
    margin: 0 auto;
}

.horizon-content .underline-draw::after {
    background-color: var(--sunshine-yellow);
}

.horizon-point {
    width: 8px;
    height: 8px;
    background-color: var(--sunshine-yellow);
    border-radius: 50%;
    margin: 48px auto 0;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.horizon-point.visible {
    opacity: 1;
    transform: scale(1);
}

.footer-bottom {
    position: absolute;
    bottom: 32px;
    z-index: 2;
}

.footer-bottom .label {
    color: var(--warm-charcoal);
}

/* ========== ANIMATIONS ========== */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(1.2);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

@keyframes burstIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes burstGrow {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.2);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .concept-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .vector-art {
        width: 100px;
        height: 100px;
    }

    .vector-art-left {
        left: 2%;
    }

    .vector-art-right {
        right: 2%;
    }

    .section-manifesto {
        padding: 64px 0;
    }

    .section-manifesto .content-column {
        padding-left: 24px;
    }
}

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

    .vector-art {
        display: none;
    }

    .domain-title {
        font-size: clamp(28px, 10vw, 56px);
    }
}
