/* ============================================================
   mores.dev — Maximalist Developer Carnival
   Colors: #1A0A10, #3A2A30, #6A5A60, #F0A040, #E06040, #FFF8F0, #FFD0A0, #FFA0C0
   Fonts: Archivo Black, Work Sans, JetBrains Mono
   ============================================================ */

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

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

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    color: #3A2A30;
    background-color: #FFF8F0;
    overflow-x: hidden;
    line-height: 1.8;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

/* ----- PARTICLE CANVASES ----- */
#particle-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

#cursor-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
}

/* ----- SPREAD LAYOUT ----- */
.spread {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 60% 40%;
    overflow: hidden;
}

.spread-reverse {
    grid-template-columns: 40% 60%;
}

.spread-reverse .spread-feature {
    order: 2;
}

.spread-reverse .spread-support {
    order: 1;
}

.spread-feature {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem;
    position: relative;
}

.spread-support {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem;
    position: relative;
}

/* ----- HERO SECTION ----- */
#hero {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFD0A0 50%, #FFA0C0 100%);
}

#hero .spread-feature {
    align-items: center;
}

.hero-title {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    color: #1A0A10;
    letter-spacing: -0.02em;
    line-height: 1;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;
}

.hero-title-dot {
    color: #E06040;
}

.tagline {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    text-transform: uppercase;
    color: #1A0A10;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.body-text {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    color: #3A2A30;
    line-height: 1.8;
    max-width: 480px;
}

/* ----- ISOMETRIC GRID ----- */
.isometric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 360px;
    margin: 1.5rem auto;
}

#iso-grid-manifesto {
    grid-template-columns: repeat(2, 1fr);
    max-width: 320px;
    gap: 1.5rem;
}

#iso-grid-contact {
    grid-template-columns: repeat(2, 1fr);
    max-width: 280px;
    gap: 1rem;
}

.iso-icon {
    width: 100%;
    height: auto;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 8px rgba(224, 96, 64, 0.15));
}

.iso-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.iso-icon-large {
    width: 100%;
}

/* ----- CODE BLOCKS ----- */
.code-block {
    background: #1A0A10;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
    border-left: 4px solid #E06040;
    position: relative;
    overflow: hidden;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(240, 160, 64, 0.05) 100%);
    pointer-events: none;
}

.code-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.85rem;
    color: #F0A040;
    line-height: 1.7;
    display: block;
}

.code-block-large {
    padding: 2rem 2.5rem;
}

.code-block-large .code-text {
    font-size: 0.9rem;
}

/* ----- MANIFESTO SECTION ----- */
#manifesto {
    background: #FFF8F0;
    border-top: 3px solid #E06040;
}

.manifesto-block {
    max-width: 550px;
}

.manifesto-lines {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.manifesto-line {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.4rem);
    text-transform: uppercase;
    color: #1A0A10;
    padding: 0.6rem 1rem;
    border-left: 4px solid #E06040;
    background: linear-gradient(90deg, rgba(240, 160, 64, 0.08) 0%, transparent 100%);
    transform: translateX(-20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

.manifesto-line.visible {
    transform: translateX(0);
    opacity: 1;
}

.metadata-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.8rem;
    color: #6A5A60;
    line-height: 1.6;
    margin-top: 2rem;
    padding-left: 1rem;
    border-left: 2px solid #6A5A60;
}

/* ----- SECTION HEADINGS ----- */
.section-heading {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    color: #1A0A10;
    line-height: 1.05;
    margin-bottom: 2rem;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #E06040, #F0A040);
    margin-top: 0.8rem;
    border-radius: 2px;
}

.section-heading-huge {
    font-size: clamp(3rem, 8vw, 7rem);
}

.section-heading-huge::after {
    width: 120px;
    height: 6px;
}

/* ----- STACK SECTION ----- */
#stack {
    background: linear-gradient(180deg, #FFF8F0 0%, #FFD0A0 100%);
    border-top: 3px solid #F0A040;
}

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

.stack-card {
    background: rgba(255, 248, 240, 0.85);
    border: 2px solid #E06040;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stack-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(240, 160, 64, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stack-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(224, 96, 64, 0.2);
    border-color: #F0A040;
}

.stack-card:hover::before {
    opacity: 1;
}

.stack-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.8rem;
}

.stack-name {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #1A0A10;
    margin-bottom: 0.5rem;
}

.stack-detail {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 0.88rem;
    color: #3A2A30;
    line-height: 1.6;
}

.accent-stripe {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #E06040, #F0A040, #FFA0C0, #FFD0A0, #E06040);
    background-size: 200% 100%;
    border-radius: 3px;
    margin-top: 2rem;
    animation: stripeShift 4s linear infinite;
}

@keyframes stripeShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* ----- WORKS SECTION ----- */
#works {
    background: #1A0A10;
    border-top: 3px solid #E06040;
}

#works .section-heading {
    color: #FFF8F0;
}

#works .spread-support {
    border-left: none;
}

.works-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.work-item {
    background: rgba(58, 42, 48, 0.5);
    border: 1px solid rgba(224, 96, 64, 0.3);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
}

.work-item:hover {
    transform: translateX(8px);
    border-color: #E06040;
    background: rgba(58, 42, 48, 0.8);
}

.work-number {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: 2.5rem;
    color: #E06040;
    opacity: 0.4;
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    line-height: 1;
}

.work-title {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #FFF8F0;
    margin-bottom: 0.5rem;
}

.work-desc {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 0.88rem;
    color: #FFD0A0;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    max-width: 420px;
}

.work-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #F0A040;
    border: 1px solid rgba(240, 160, 64, 0.4);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    margin-right: 0.4rem;
    margin-bottom: 0.3rem;
}

.isometric-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.iso-showcase-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 6px 16px rgba(224, 96, 64, 0.3));
}

#works .metadata-text {
    color: #6A5A60;
    border-left-color: #6A5A60;
}

/* ----- ETHOS SECTION ----- */
#ethos {
    background: linear-gradient(135deg, #FFD0A0 0%, #FFA0C0 50%, #FFD0A0 100%);
    border-top: 3px solid #E06040;
}

.ethos-visual {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbFloat 6s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(224, 96, 64, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(240, 160, 64, 0.4) 0%, transparent 70%);
    bottom: 15%;
    right: 20%;
    animation-delay: -2s;
}

.gradient-orb-3 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 160, 192, 0.5) 0%, transparent 70%);
    top: 40%;
    left: 55%;
    animation-delay: -4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -15px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(-20px, -10px) scale(1.02); }
}

.ethos-iso-center {
    width: 200px;
    height: 200px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 20px rgba(224, 96, 64, 0.25));
    animation: ethosRotate 20s linear infinite;
}

@keyframes ethosRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ethos-statements {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ethos-statement {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: #1A0A10;
    line-height: 1.7;
    padding-left: 1.2rem;
    border-left: 3px solid #E06040;
}

.ethos-statement em {
    color: #E06040;
    font-style: italic;
    font-weight: 500;
}

/* ----- CONTACT SECTION ----- */
#contact {
    background: #1A0A10;
    border-top: 3px solid #F0A040;
}

#contact .section-heading {
    color: #FFF8F0;
}

#contact .section-heading::after {
    background: linear-gradient(90deg, #FFA0C0, #F0A040);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(224, 96, 64, 0.3);
    border-radius: 6px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.contact-link:hover {
    border-color: #E06040;
    transform: translateX(6px);
}

.contact-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #6A5A60;
    letter-spacing: 0.15em;
    margin-bottom: 0.3rem;
}

.contact-value {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #FFF8F0;
}

#contact .isometric-grid .iso-icon {
    filter: drop-shadow(0 4px 8px rgba(240, 160, 64, 0.2));
}

.closing-text {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    text-transform: uppercase;
    color: #FFA0C0;
    margin-top: 2rem;
    line-height: 1.4;
}

.copyright {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    color: #6A5A60;
    margin-top: 1.5rem;
    letter-spacing: 0.05em;
}

/* ----- SPREAD ALTERNATING ACCENTS ----- */
.spread:nth-child(odd) .spread-support {
    border-left: 3px solid rgba(224, 96, 64, 0.2);
}

.spread:nth-child(even) .spread-feature {
    border-left: 3px solid rgba(240, 160, 64, 0.2);
}

/* ----- SCROLL REVEAL ANIMATION ----- */
.spread-feature,
.spread-support {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.spread-feature.revealed,
.spread-support.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
    .spread {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .spread-reverse {
        grid-template-columns: 1fr;
    }

    .spread-reverse .spread-feature {
        order: 1;
    }

    .spread-reverse .spread-support {
        order: 2;
    }

    .spread-feature,
    .spread-support {
        padding: 3rem 2rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

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

    .section-heading-huge {
        font-size: clamp(2.5rem, 10vw, 5rem);
    }

    .isometric-grid {
        max-width: 280px;
    }

    #iso-grid-manifesto {
        max-width: 240px;
    }

    .ethos-visual {
        height: 280px;
    }

    .ethos-iso-center {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 600px) {
    .spread-feature,
    .spread-support {
        padding: 2rem 1.2rem;
    }

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

    .code-block {
        padding: 1rem 1.2rem;
    }

    .code-text {
        font-size: 0.75rem;
    }

    .work-item {
        padding: 1.2rem 1.5rem;
    }

    .work-number {
        font-size: 2rem;
    }

    .gradient-orb-1 { width: 140px; height: 140px; }
    .gradient-orb-2 { width: 110px; height: 110px; }
    .gradient-orb-3 { width: 80px; height: 80px; }
}
