:root {
    --bg-color: #fdfbf7;
    /* Rice paper */
    --text-color: #2b2b2b;
    /* Sumi ink */
    --accent-color: #8a9a5b;
    /* Moss green */
    --secondary-color: #b56c60;
    /* Clay */
    --font-serif: 'Noto Serif SC', serif;
    --font-art: 'Ma Shan Zheng', cursive;
}

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

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-serif);
    line-height: 1.8;
    overflow-x: hidden;
    height: 100%;
}

/* Background Texture */
.background-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* Typography Utilities */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.5em;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}



.hero-content {
    display: flex;
    flex-direction: row-reverse;
    /* For vertical text right-to-left reading */
    gap: 4rem;
    align-items: flex-start;
}

.main-title {
    font-family: var(--font-art);
    font-size: 6rem;
    font-weight: normal;
    color: var(--text-color);
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 2rem;
    opacity: 0;
    animation: fadeIn 2s ease-out 1s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.5;
}

/* Sections */
.zen-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 4rem;
}

.reverse .content-wrapper {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
    display: flex;
    gap: 2rem;
}

.section-title {
    font-family: var(--font-art);
    font-size: 4rem;
    color: var(--secondary-color);
    height: 300px;
    /* Fixed height for alignment */
}

.description {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.description h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--accent-color);
}

.description p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #555;
}

.visual-element {
    flex: 1;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 50% 50% 0 0;
    /* Arch shape */
    box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s ease;
    transform: translateY(20px);
}

.circle-mask {
    /* Specific styling for images if needed */
    filter: sepia(20%) contrast(90%);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.will-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 2rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        gap: 2rem;
    }

    .main-title {
        font-size: 4rem;
    }

    .content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .reverse .content-wrapper {
        flex-direction: column;
    }

    .text-content {
        flex-direction: column;
        align-items: center;
    }

    .vertical-text {
        writing-mode: horizontal-tb;
        letter-spacing: 0.2em;
        height: auto;
    }

    .section-title {
        margin-bottom: 1rem;
    }

    .visual-element {
        width: 100%;
        height: 300px;
    }
}