/* RESET AND GLOBAL STYLES */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #2A2A2A;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
    --color-secondary: #5A5A5A;
}

/* BACKGROUND AND CONTAINER */

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F0E8F0;
    z-index: -1;
    transition: background-color 0.3s ease;
}

.container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* HERO SECTION */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #3A3A3A;
    padding: 60px;
    margin-bottom: 80px;
    position: relative;
}

.hero-content {
    text-align: center;
    width: 100%;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #2A2A2A;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    color: #8A8A8A;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    margin-bottom: 60px;
}

.hero-svg-blob {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-svg-blob svg {
    width: 100%;
    height: 100%;
    color: #D0C8D0;
    animation: pulse-blob 4s ease-in-out infinite;
}

@keyframes pulse-blob {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* MANIFESTO SECTION */

.manifesto {
    margin-bottom: 120px;
}

.section-frame {
    border: 2px solid #3A3A3A;
    padding: 60px;
    position: relative;
}

.frame-label {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: inherit;
    padding: 0 10px;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #8A8A8A;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.manifesto-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.manifesto-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.8;
    color: #2A2A2A;
    max-width: 500px;
}

.manifesto-content .svg-organic {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.svg-organic svg {
    width: 100%;
    height: 100%;
    animation: float-blob 6s ease-in-out infinite;
}

@keyframes float-blob {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* AESTHETICS SECTION */

.aesthetics {
    margin-bottom: 120px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.grid-item {
    border: 1px solid #8A8A8A;
    padding: 40px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.3);
}

.item-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #3A3A3A;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.item-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #5A5A5A;
    margin-bottom: 30px;
}

.small-blob {
    width: 50px;
    height: 50px;
}

.small-blob svg {
    width: 100%;
    height: 100%;
    animation: hover-blob 5s ease-in-out infinite;
}

@keyframes hover-blob {
    0%, 100% {
        transform: scale(1) translateX(0);
    }
    50% {
        transform: scale(1.05) translateX(5px);
    }
}

/* STRUCTURE SECTION */

.structure {
    margin-bottom: 120px;
}

.structure-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.structure-text p {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #2A2A2A;
}

.structure-subtext {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    color: #8A8A8A !important;
}

.asymmetric-shape {
    width: 150px;
    height: 120px;
    flex-shrink: 0;
}

.asymmetric-shape svg {
    width: 100%;
    height: 100%;
    animation: shift-shape 7s ease-in-out infinite;
}

@keyframes shift-shape {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* TYPOGRAPHY SECTION */

.typography {
    margin-bottom: 120px;
}

.typography-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.type-item {
    padding: 40px;
    border-left: 3px solid #3A3A3A;
    background-color: rgba(255, 255, 255, 0.2);
}

.type-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2A2A2A;
    margin-bottom: 15px;
}

.type-sample {
    font-family: inherit;
    font-size: 0.9rem;
    color: #5A5A5A;
    margin-bottom: 15px;
    line-height: 1.6;
}

.type-usage {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #8A8A8A;
    letter-spacing: 0.05em;
}

/* PALETTE SECTION */

.palette {
    margin-bottom: 120px;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
}

.color-swatch {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.swatch {
    width: 100%;
    height: 100px;
    border: 2px solid #3A3A3A;
    display: block;
    transition: transform 0.3s ease;
}

.color-swatch:hover .swatch {
    transform: scale(1.05);
}

.swatch-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #3A3A3A;
    letter-spacing: 0.05em;
}

.swatch-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #8A8A8A;
    text-transform: capitalize;
}

/* FORMS SECTION */

.forms {
    margin-bottom: 120px;
}

.forms-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.form-item {
    border: 1px solid #8A8A8A;
    padding: 40px;
    text-align: center;
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2A2A2A;
    margin-bottom: 15px;
}

.form-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #8A8A8A;
    margin-bottom: 30px;
    line-height: 1.6;
}

.form-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    border-top: 1px solid #8A8A8A;
    padding-top: 30px;
}

.form-svg {
    width: 80px;
    height: 80px;
    max-width: 100%;
}

/* GRID SYSTEM SECTION */

.grid-section {
    margin-bottom: 120px;
}

.grid-visual {
    position: relative;
    min-height: 300px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid #3A3A3A;
    overflow: hidden;
}

.grid-line {
    position: absolute;
    background-color: #8A8A8A;
    opacity: 0.3;
}

.grid-line.horizontal {
    width: 100%;
    height: 1px;
    top: 33.33%;
}

.grid-line.horizontal:nth-child(2) {
    top: 66.66%;
}

.grid-line.vertical {
    width: 1px;
    height: 100%;
    left: 33.33%;
}

.grid-line.vertical:nth-child(5) {
    left: 66.66%;
}

.grid-note {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border: 1px solid #3A3A3A;
}

.grid-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #3A3A3A;
    line-height: 1.6;
}

/* BRUTALISM SECTION */

.brutalism {
    margin-bottom: 120px;
}

.brutalism-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.principle {
    border: 2px solid #3A3A3A;
    padding: 30px;
    position: relative;
}

.principle-label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #8A8A8A;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.principle-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #3A3A3A;
    line-height: 1.6;
}

/* ORGANIC SECTION */

.organic {
    margin-bottom: 120px;
}

.organic-content {
    padding: 60px;
    border: 2px solid #3A3A3A;
    background-color: rgba(255, 255, 255, 0.3);
}

.organic-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.8;
    color: #2A2A2A;
    margin-bottom: 50px;
    max-width: 600px;
}

.organic-shapes {
    display: flex;
    align-items: center;
    justify-content: center;
}

.organic-svg {
    width: 200px;
    height: auto;
    max-width: 100%;
    animation: organic-float 8s ease-in-out infinite;
}

@keyframes organic-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(3deg);
    }
    66% {
        transform: translateY(10px) rotate(-3deg);
    }
}

/* INTERACTIONS SECTION */

.interactions {
    margin-bottom: 120px;
}

.interactions-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.interaction-item {
    border-left: 3px solid #D0C8D0;
    padding-left: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.interaction-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2A2A2A;
    margin-bottom: 15px;
}

.interaction-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #5A5A5A;
    line-height: 1.7;
}

/* MEDITATION SECTION */

.meditation {
    margin-bottom: 80px;
}

.meditation-frame {
    border: 3px solid #3A3A3A;
    padding: 80px 60px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
}

.meditation-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2A2A2A;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.meditation-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 2;
    color: #3A3A3A;
    max-width: 600px;
    margin: 0 auto 60px;
    letter-spacing: 0.02em;
}

.meditation-blobs {
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-svg {
    width: 200px;
    height: auto;
    max-width: 100%;
    animation: final-float 6s ease-in-out infinite;
}

@keyframes final-float {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.05) translateY(-10px);
    }
}

/* RESPONSIVE DESIGN */

@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    .hero {
        min-height: 60vh;
        padding: 30px;
        margin-bottom: 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .manifesto-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .structure-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-frame {
        padding: 40px 20px;
    }

    .meditation-frame {
        padding: 40px 20px;
    }

    .meditation-title {
        font-size: 1.5rem;
    }

    .meditation-text {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .hero-svg-blob {
        width: 80px;
        height: 80px;
    }

    .manifesto-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

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

    .meditation-text {
        font-size: 0.95rem;
    }

    .form-display {
        min-height: 120px;
    }
}

/* SCROLL-LINKED BACKGROUND TRANSITIONS */

body.scroll-0 #background {
    background-color: #F0E8F0;
}

body.scroll-1 #background {
    background-color: #E8F0E8;
}

body.scroll-2 #background {
    background-color: #E0E8F0;
}

body.scroll-3 #background {
    background-color: #F0E8E0;
}

body.scroll-4 #background {
    background-color: #D0C8D0;
}

/* UTILITY CLASSES */

.text-center {
    text-align: center;
}

.mt-large {
    margin-top: 80px;
}

.mb-large {
    margin-bottom: 80px;
}

.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.hidden {
    opacity: 0;
    transform: translateY(20px);
}
