/* ggaji.com — Neomorphic Botanical Greenhouse */

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

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

body {
    background: #ede4da;
    color: #3d3229;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* Neomorphic Utilities */
.neo-raised {
    box-shadow: 8px 8px 16px #c4b5a3, -8px -8px 16px #f8f3ed;
    border-radius: 24px;
    transition: box-shadow 0.2s ease-in-out;
}

.neo-raised:active {
    box-shadow: inset 8px 8px 16px #c4b5a3, inset -8px -8px 16px #f8f3ed;
}

.neo-inset {
    box-shadow: inset 8px 8px 16px #c4b5a3, inset -8px -8px 16px #f8f3ed;
    border-radius: 24px;
}

/* Navigation Dots */
#nav-dots {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ede4da;
    box-shadow: 3px 3px 6px #c4b5a3, -3px -3px 6px #f8f3ed;
    cursor: pointer;
    transition: box-shadow 0.2s ease-in-out;
}

.nav-dot.active {
    box-shadow: inset 3px 3px 6px #c4b5a3, inset -3px -3px 6px #f8f3ed;
}

.nav-dot:hover {
    box-shadow: inset 2px 2px 4px #c4b5a3, inset -2px -2px 4px #f8f3ed;
}

/* Canopy Section */
.canopy {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.canopy-botanical {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 500px;
    z-index: 0;
    opacity: 0.6;
}

.botanical-hero {
    width: 100%;
    height: 100%;
}

.canopy-panel {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 90%;
    padding: 48px 40px;
    background: #ede4da;
    text-align: center;
}

.canopy-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: lowercase;
    letter-spacing: 0.06em;
    color: #3d3229;
    line-height: 1.2;
    margin-bottom: 16px;
}

.canopy-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-style: italic;
    color: #8a7b6b;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

/* Seed Dots */
.seed-cluster {
    position: absolute;
    display: flex;
    gap: 8px;
}

.seed-cluster-1 {
    bottom: 15%;
    right: 15%;
}

.seed-cluster-2 {
    top: -20px;
    right: 30px;
}

.seed-cluster-3 {
    bottom: 30px;
    left: 40px;
}

.seed-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ede4da;
}

/* Branch Connectors */
.branch-connector {
    display: block;
    width: 200px;
    height: 80px;
    margin: 0 auto;
}

.branch-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 0.8s ease-out;
}

.branch-line.grown {
    stroke-dashoffset: 0;
}

/* Narrative Sections */
.narrative-section {
    position: relative;
    padding: clamp(80px, 12vh, 160px) 20px;
}

.narrative-panel {
    background: #ede4da;
    padding: clamp(32px, 5vw, 64px);
    max-width: 640px;
    position: relative;
}

.align-left .narrative-panel {
    margin-left: 8vw;
    margin-right: auto;
}

.align-right .narrative-panel {
    margin-right: 8vw;
    margin-left: auto;
}

/* Labels */
.label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a7b6b;
    display: block;
    margin-bottom: 12px;
}

/* Headings */
h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    text-transform: lowercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: #3d3229;
    margin-bottom: 24px;
}

/* Body paragraphs */
.narrative-panel > p {
    margin-bottom: 20px;
    color: #3d3229;
}

.narrative-panel em {
    font-style: italic;
    color: #3d3229;
}

/* Links */
a {
    color: #9b6b9e;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #6a8c69;
}

/* Glass Cards */
.glass-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.glass-cards-trio {
    grid-template-columns: 1fr 1fr 1fr;
}

.glass-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 248, 240, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(255, 248, 240, 0.25);
    transform: translateY(-2px);
    box-shadow: 4px 4px 12px #c4b5a3, -4px -4px 12px #f8f3ed;
}

.glass-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: lowercase;
    letter-spacing: 0.04em;
    color: #3d3229;
    margin-bottom: 8px;
}

.glass-card p {
    font-size: 0.9rem;
    color: #8a7b6b;
    line-height: 1.6;
}

.card-botanical {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 80px;
    opacity: 0.3;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.glass-card:hover .card-botanical {
    opacity: 0.5;
}

/* Section Botanical Background */
.section-botanical {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.section-botanical svg {
    width: 100%;
    height: 100%;
}

/* Leaf Watermarks */
.narrative-panel::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(106,140,105,0.04) 0%, transparent 70%);
    border-radius: 40% 60% 50% 50%;
    pointer-events: none;
    z-index: -1;
}

/* Animation Entry */
.animate-in {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.align-left .animate-in {
    transform: translateX(-30px);
}

.align-right .animate-in {
    transform: translateX(30px);
}

.animate-in.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.animate-in.visible .glass-card:nth-child(1) { transition-delay: 0ms; }
.animate-in.visible .glass-card:nth-child(2) { transition-delay: 80ms; }
.animate-in.visible .glass-card:nth-child(3) { transition-delay: 160ms; }

/* Footer Basin */
.footer-basin {
    position: relative;
    padding: clamp(60px, 10vh, 120px) 20px;
    text-align: center;
    margin: clamp(80px, 12vh, 160px) 20px 40px;
}

.footer-botanical {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 60px;
    opacity: 0.5;
}

.footer-botanical svg {
    width: 100%;
    height: 100%;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    text-transform: lowercase;
    letter-spacing: 0.06em;
    color: #3d3229;
    margin-bottom: 8px;
}

.footer-meaning {
    font-family: 'DM Sans', sans-serif;
    font-style: italic;
    color: #8a7b6b;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer-contact {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: #9b6b9e;
}

/* Responsive */
@media (max-width: 768px) {
    .align-left .narrative-panel,
    .align-right .narrative-panel {
        margin-left: 20px;
        margin-right: 20px;
    }

    .glass-cards {
        grid-template-columns: 1fr;
    }

    .glass-cards-trio {
        grid-template-columns: 1fr;
    }

    #nav-dots {
        right: 12px;
    }

    .canopy-botanical {
        width: 350px;
        height: 300px;
    }

    .footer-basin {
        margin-left: 10px;
        margin-right: 10px;
    }
}
