/* namu.club — zen meditative sanctuary */

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

:root {
    --brown: #8B6F47;
    --lavender: #D5CDE5;
    --blush: #E8D5D0;
    --mint: #F0F5EC;
    --cream: #FAF6EF;
    --lilac: #F2EEF5;
    --dark: #2C2C34;
    --sage: #B8C9A3;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    color: var(--dark);
    background: var(--cream);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

.caveat {
    font-family: 'Caveat', cursive;
    font-weight: 400;
}

p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    max-width: 50ch;
}

/* Parallax sections */
.parallax-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    padding: 2rem;
}

/* Section 1: Roots */
#roots {
    background: #F5F0E8;
}

.root-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    z-index: 1;
}

.marble-texture {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(213, 205, 229, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(232, 213, 208, 0.12) 0%, transparent 50%);
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    color: var(--dark);
    position: relative;
    z-index: 3;
}

.hero-title .dot {
    color: var(--brown);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--brown);
    margin-top: 1rem;
    opacity: 0.8;
    position: relative;
    z-index: 3;
}

/* Section 2: Trunk */
#trunk {
    background: var(--cream);
}

.trunk-svg {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    height: 100%;
    width: 400px;
    opacity: 0.3;
    z-index: 1;
}

.trunk-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 111, 71, 0.15);
    border-radius: 12px;
    padding: 3rem;
    max-width: 480px;
    position: relative;
    z-index: 3;
    transition: transform 0.1s ease-out;
}

.trunk-card h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    margin-bottom: 1rem;
    color: var(--brown);
}

/* Section 3: Branches */
#branches {
    background: var(--mint);
}

.branch-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
}

.branch-cards {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.branch-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(184, 201, 163, 0.3);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 340px;
    transition: transform 0.1s ease-out;
}

.branch-card h3 {
    color: var(--brown);
    margin-bottom: 0.75rem;
}

/* Section 4: Canopy */
#canopy {
    background: linear-gradient(180deg, var(--mint) 0%, var(--lilac) 100%);
}

.leaf-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0.4;
    animation: leafFloat 8s ease-in-out infinite;
}

.leaf svg {
    width: 100%;
    height: 100%;
}

@keyframes leafFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(-5px) rotate(-3deg); }
    75% { transform: translateY(-20px) rotate(4deg); }
}

.canopy-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(213, 205, 229, 0.3);
    border-radius: 12px;
    padding: 3rem;
    max-width: 500px;
    position: relative;
    z-index: 3;
    transition: transform 0.1s ease-out;
}

.canopy-card h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    color: var(--brown);
    margin-bottom: 1rem;
}

/* Section 5: Sky */
#sky {
    background: linear-gradient(180deg, var(--lilac) 0%, var(--lavender) 50%, #d5cde5 100%);
}

.sky-circles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sky-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(139, 111, 71, 0.1);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 6s ease-in-out infinite;
}

.circle-2 {
    width: 500px;
    height: 500px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 8s ease-in-out infinite 1s;
}

.circle-3 {
    width: 700px;
    height: 700px;
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 10s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateX(-50%) scale(1.05); }
}

.sky-text {
    position: relative;
    z-index: 3;
    text-align: center;
}

.sky-text h2 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    color: var(--brown);
    margin-bottom: 1rem;
}

.sky-text p {
    margin: 0 auto;
    color: var(--dark);
    opacity: 0.7;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.5s ease;
    color: var(--brown);
    font-size: 1rem;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* SVG draw animation */
.draw-path {
    stroke-dashoffset: 1000;
    animation: drawIn 3s ease-out forwards;
}

@keyframes drawIn {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

/* Tilt card perspective */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Responsive */
@media (max-width: 768px) {
    .branch-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .trunk-card, .canopy-card, .branch-card {
        padding: 2rem;
    }
}
