/* quietjoon.com - Japanese Zen Portfolio */

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

:root {
    --washi-white: #F5F0EB;
    --sumi-ink: #2C2824;
    --stone-gray: #C8BFB4;
    --mist-gray: #8A8078;
    --moss-accent: #6B7F5E;
    --clay-warm: #B8926A;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--washi-white);
    color: var(--sumi-ink);
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 2.0;
    overflow-x: hidden;
}

/* SVG filters */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Paper texture */
.paper-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.02;
    filter: url(#paper-noise);
    background: white;
}

/* =====================
   NAVIGATION
   ===================== */
.nav-minimal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 40px;
    gap: 32px;
    z-index: 100;
    border-bottom: 1px solid var(--stone-gray);
}

.nav-link {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mist-gray);
    cursor: default;
}

/* =====================
   SECTION 1: THE STILLNESS
   ===================== */
.section-stillness {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.stillness-name {
    position: absolute;
    bottom: 38.2%;
    left: 38.2%;
    transform: translate(-50%, 50%);
}

.name-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--sumi-ink);
    text-transform: lowercase;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeInSlow 1.5s ease-in 2s forwards;
}

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

.name-line {
    width: 0;
    height: 1px;
    background: var(--stone-gray);
    margin: 12px auto 0;
    animation: drawLine 0.8s ease 3.5s forwards;
}

@keyframes drawLine {
    from { width: 0; }
    to { width: 120px; }
}

/* =====================
   SECTION 2: PORTFOLIO PIECES
   ===================== */
.portfolio-piece {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
}

.piece-title {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.piece-shape {
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.portfolio-piece.visible .piece-title {
    opacity: 1;
}

.portfolio-piece.visible .piece-shape {
    opacity: 1;
}

.piece-title-left {
    text-align: left;
}

.piece-title-right {
    text-align: right;
}

.portfolio-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--sumi-ink);
    text-transform: lowercase;
    margin-bottom: 8px;
}

.piece-label {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mist-gray);
}

/* Geometric shapes */
.geo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.geo-circle-sm {
    width: 40px;
    height: 40px;
}

.geo-bar {
    width: 200px;
    height: 4px;
}

.geo-rect {
    width: 80px;
    height: 48px;
}

.geo-moss {
    background-color: var(--moss-accent);
}

.geo-clay {
    background-color: var(--clay-warm);
}

.shape-left {
    margin-right: auto;
}

.shape-right {
    margin-left: auto;
}

/* =====================
   SECTION 3: ABOUT
   ===================== */
.section-about {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10%;
}

.about-text {
    max-width: 480px;
}

.about-line {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 2.0;
    color: var(--sumi-ink);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.about-line.visible {
    opacity: 1;
}

/* =====================
   SECTION 4: CONTACT
   ===================== */
.section-contact {
    min-height: 40vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 10% 10%;
    position: relative;
}

.contact-content {
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contact-content.visible {
    opacity: 1;
}

.contact-line {
    width: 0;
    height: 1px;
    background: var(--stone-gray);
    margin-bottom: 16px;
    transition: width 0.4s ease 0.2s;
}

.contact-content.visible .contact-line {
    width: 80px;
}

.contact-email {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--sumi-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--stone-gray);
    padding-bottom: 2px;
}

/* Ending empty space */
.ending-space {
    height: 40vh;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
    .portfolio-piece {
        flex-direction: column;
        justify-content: center;
        gap: 48px;
        padding: 0 8%;
    }

    .piece-title-left,
    .piece-title-right {
        text-align: center;
    }

    .shape-left,
    .shape-right {
        margin: 0 auto;
    }

    .stillness-name {
        left: 50%;
        bottom: 40%;
        text-align: center;
    }

    .section-about {
        justify-content: center;
        padding: 0 8%;
    }

    .nav-minimal {
        padding: 0 20px;
        gap: 20px;
    }
}
