/* miris.monster - Bauhaus Workshop Aesthetic */
/* Colors: #2b4fa3 (blue), #f4f1ec (warm white), #e8b631 (gold), #1e1e28 (near-black), #3d3d3d (dark gray), #d94032 (red), #e8e4df (light gray), #9b9590 (medium gray) */
/* Fonts: Space Grotesk (display), Inter (body) */

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

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #1e1e28;
    background-color: #f4f1ec;
    overflow-x: hidden;
}

/* ===================== */
/* FIXED NAVIGATION      */
/* ===================== */

#fixed-nav {
    position: fixed;
    top: 32px;
    left: 32px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#logotype {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: #1e1e28;
}

#section-dots {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #9b9590;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: #d94032;
    transform: scale(1.4);
}

/* ===================== */
/* FULLSCREEN SECTIONS   */
/* ===================== */

.fullscreen-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    padding: 80px 60px;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ===================== */
/* TYPOGRAPHY            */
/* ===================== */

.display-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 8vw, 144px);
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: #1e1e28;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #1e1e28;
    margin-bottom: 32px;
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: #3d3d3d;
    max-width: 440px;
    margin-top: 24px;
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #3d3d3d;
    margin-bottom: 16px;
}

h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: #1e1e28;
    margin-bottom: 8px;
}

/* ===================== */
/* HERO SECTION          */
/* ===================== */

#hero {
    background-color: #f4f1ec;
}

.hero-content {
    z-index: 2;
}

.hero-mascot {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.monster {
    width: 240px;
    height: auto;
    filter: drop-shadow(4px 8px 0 rgba(30, 30, 40, 0.08));
}

.monster-small {
    width: 180px;
}

/* Geometric decorative elements */
.geo-element {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.geo-circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: #e8b631;
    opacity: 0.08;
    top: -80px;
    right: -60px;
}

.geo-rect-1 {
    width: 200px;
    height: 40px;
    background-color: #2b4fa3;
    opacity: 0.1;
    bottom: 120px;
    left: -40px;
    transform: rotate(-8deg);
}

.geo-triangle-1 {
    width: 80px;
    height: 70px;
    bottom: 60px;
    right: 15%;
}

/* ===================== */
/* ABOUT SECTION         */
/* ===================== */

#about {
    background-color: #e8e4df;
}

.about-content {
    max-width: 500px;
}

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

.bauhaus-composition {
    position: relative;
    width: 320px;
    height: 320px;
}

.comp-circle {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: #d94032;
    top: 20px;
    left: 20px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.comp-square {
    position: absolute;
    width: 120px;
    height: 120px;
    background-color: #2b4fa3;
    bottom: 30px;
    right: 20px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.comp-triangle {
    position: absolute;
    width: 120px;
    height: 104px;
    bottom: 60px;
    left: 60px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.comp-line {
    position: absolute;
    width: 200px;
    height: 3px;
    background-color: #1e1e28;
    top: 50%;
    left: 10%;
    transform: rotate(-15deg);
}

.comp-line-2 {
    width: 150px;
    top: 65%;
    left: 30%;
    transform: rotate(25deg);
}

.geo-dot-grid {
    width: 160px;
    height: 160px;
    bottom: 40px;
    right: 40px;
}

/* ===================== */
/* PROJECTS SECTION      */
/* ===================== */

#projects {
    background-color: #f4f1ec;
}

.projects-grid {
    grid-template-columns: 1fr;
    max-width: 1200px;
}

.projects-header {
    margin-bottom: 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .projects-header {
        grid-column: 1 / -1;
    }
}

.project-card {
    background-color: #e8e4df;
    padding: 32px 24px;
    border-radius: 0;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 30, 40, 0.1);
    border-left-color: #d94032;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: #1e1e28;
    margin-bottom: 8px;
}

.card-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #9b9590;
}

.geo-stripe {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d94032 0%, #d94032 33%, #e8b631 33%, #e8b631 66%, #2b4fa3 66%, #2b4fa3 100%);
}

/* ===================== */
/* PROCESS SECTION       */
/* ===================== */

#process {
    background-color: #1e1e28;
}

#process .section-heading {
    color: #f4f1ec;
}

#process .body-text {
    color: #9b9590;
}

#process h4 {
    color: #f4f1ec;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1;
    color: #e8b631;
    min-width: 72px;
}

.step-text {
    flex: 1;
}

.process-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.workshop-assembly {
    position: relative;
    width: 280px;
    height: 280px;
}

.assembly-piece {
    position: absolute;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.piece-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #e8b631;
    top: 20px;
    left: 90px;
}

.piece-rect {
    width: 80px;
    height: 120px;
    background-color: #2b4fa3;
    bottom: 20px;
    left: 30px;
}

.piece-triangle {
    width: 100px;
    height: 87px;
    bottom: 30px;
    right: 20px;
}

.piece-triangle svg {
    width: 100%;
    height: 100%;
}

.assembly-connector {
    position: absolute;
    width: 2px;
    height: 0;
    background-color: #f4f1ec;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: height 0.6s ease;
    opacity: 0.3;
}

.workshop-assembly.assembled .assembly-connector {
    height: 200px;
}

/* ===================== */
/* CONTACT SECTION       */
/* ===================== */

#contact {
    background-color: #f4f1ec;
}

.contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #1e1e28;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #d94032;
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.contact-mascot {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===================== */
/* FOOTER                */
/* ===================== */

.site-footer {
    position: absolute;
    bottom: 24px;
    left: 60px;
    right: 60px;
}

.footer-line {
    width: 100%;
    height: 1px;
    background-color: #e8e4df;
    margin-bottom: 16px;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #9b9590;
}

/* ===================== */
/* ANIMATIONS            */
/* ===================== */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes blink {
    0%, 90%, 100% { height: 0; }
    95% { height: 22px; }
}

.monster-eyelid {
    animation: blink 4s ease-in-out infinite;
}

.monster-ear {
    transform-origin: center bottom;
    animation: earWiggle 6s ease-in-out infinite;
}

.monster-ear-right {
    animation-delay: -3s;
}

@keyframes earWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}

.monster-foot-left {
    animation: footTap 2s ease-in-out infinite;
}

.monster-foot-right {
    animation: footTap 2s ease-in-out infinite 1s;
}

@keyframes footTap {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.monster-arm {
    transform-origin: left center;
    animation: wave 2.5s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(-30deg); }
    50% { transform: rotate(-50deg); }
}

/* Scroll reveal animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== */
/* RESPONSIVE            */
/* ===================== */

@media (max-width: 900px) {
    .fullscreen-section {
        padding: 60px 32px;
    }

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

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

    .display-heading {
        font-size: clamp(36px, 10vw, 72px);
    }

    .hero-mascot {
        order: -1;
    }

    .monster {
        width: 180px;
    }

    .monster-small {
        width: 140px;
    }

    .bauhaus-composition {
        width: 240px;
        height: 240px;
    }

    .comp-circle {
        width: 120px;
        height: 120px;
    }

    .comp-square {
        width: 90px;
        height: 90px;
    }

    .comp-triangle {
        width: 90px;
        height: 78px;
    }

    .workshop-assembly {
        width: 200px;
        height: 200px;
    }

    .piece-circle {
        width: 70px;
        height: 70px;
        left: 65px;
    }

    .piece-rect {
        width: 60px;
        height: 90px;
    }

    .piece-triangle {
        width: 70px;
        height: 61px;
    }

    #fixed-nav {
        top: 20px;
        left: 20px;
    }

    .site-footer {
        left: 32px;
        right: 32px;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fullscreen-section {
        padding: 48px 20px;
    }

    .step {
        flex-direction: column;
        gap: 8px;
    }

    .step-number {
        font-size: 36px;
    }
}