/* ===================================
   Ofer Hertzen — V3 Living Zen Experience
   Ambient Movement • Breathing • Flow
   =================================== */

/* CSS Variables */
:root {
    /* Base Colors */
    --clr-bg-base: #FAF7F2;
    --clr-text-primary: #1a1a1a;
    --clr-text-secondary: #4a4a4a;
    --clr-text-muted: #7a7a7a;

    /* Section Atmospheres - REFINED */
    --clr-hero-bg: #FAF7F2;
    --clr-hero-orb: rgba(184, 149, 107, 0.12);

    --clr-story-bg: #F5F0E8;
    --clr-story-accent: #B8956B;
    --clr-story-orb: rgba(184, 149, 107, 0.15);

    --clr-meditation-bg: #E8EDE5;
    --clr-meditation-accent: #7B8B6F;
    --clr-meditation-text: #2C3E2D;
    --clr-meditation-orb: rgba(123, 139, 111, 0.15);

    /* Music - Softer warm sand instead of terracotta */
    --clr-music-bg: #F2EDE6;
    --clr-music-accent: #C4A882;
    --clr-music-text: #4A4035;
    --clr-music-orb: rgba(196, 168, 130, 0.15);

    /* Journeys - Deep forest instead of cold blue */
    --clr-journeys-bg: #E5EAE7;
    --clr-journeys-accent: #6B7B6F;
    --clr-journeys-text: #252A26;
    --clr-journeys-orb: rgba(107, 123, 111, 0.15);

    --clr-contact-bg: #FAFAFA;
    --clr-contact-orb: rgba(139, 139, 139, 0.1);

    /* Typography */
    --ff-primary: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;

    --fs-giant: clamp(3rem, 10vw, 7rem);
    --fs-display: clamp(2.5rem, 6vw, 4.5rem);
    --fs-h1: clamp(2rem, 4vw, 3rem);
    --fs-h2: clamp(1.5rem, 3vw, 2.2rem);
    --fs-body-lg: clamp(1.1rem, 2vw, 1.4rem);
    --fs-body: clamp(1rem, 1.5vw, 1.15rem);
    --fs-small: 0.9rem;

    /* Spacing */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 1.5rem;
    --sp-lg: 2.5rem;
    --sp-xl: 4rem;
    --sp-2xl: 6rem;

    /* ZEN Animation Timing - SLOW & GENTLE */
    --ease-zen: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-breath: cubic-bezier(0.37, 0, 0.63, 1);
    --duration-reveal: 1.4s;
    --duration-slow: 1s;
    --duration-breath: 15s;
    --duration-float: 20s;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: var(--ff-primary);
    font-weight: var(--fw-regular);
    color: var(--clr-text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--clr-bg-base);
}

/* ===================================
   AMBIENT ORB SYSTEM - Living Background
   =================================== */
.ambient-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    will-change: transform;
    animation: orbFloat var(--duration-float) var(--ease-breath) infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    top: -10%;
    right: -15%;
    background: rgba(184, 149, 107, 0.15);
    animation-delay: 0s;
    animation-duration: 18s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    bottom: 10%;
    left: -15%;
    background: rgba(123, 139, 111, 0.12);
    animation-delay: -5s;
    animation-duration: 22s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    top: 40%;
    left: 20%;
    background: rgba(196, 168, 130, 0.1);
    animation-delay: -10s;
    animation-duration: 16s;
}

.orb-4 {
    width: 550px;
    height: 550px;
    bottom: -15%;
    right: 10%;
    background: rgba(107, 123, 111, 0.12);
    animation-delay: -15s;
    animation-duration: 20s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(80px, -60px) scale(1.1);
    }

    50% {
        transform: translate(-50px, 40px) scale(0.9);
    }

    75% {
        transform: translate(60px, 50px) scale(1.05);
    }
}

/* Breathing background overlay */
.breathing-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(ellipse at 50% 50%, transparent 0%, var(--clr-bg-base) 70%);
    animation: breathe var(--duration-breath) var(--ease-breath) infinite;
}

@keyframes breathe {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* ===================================
   Scroll Container
   =================================== */
.scroll-container {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    position: relative;
    z-index: 2;
}

/* ===================================
   Full-Screen Sections
   =================================== */
.section {
    min-height: 100vh;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: var(--sp-xl);
    overflow: hidden;
    transition: background-color 1.5s var(--ease-zen);
}

.section-inner {
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Section-specific orb colors via CSS custom properties */
.hero {
    --section-orb: var(--clr-hero-orb);
    background: rgba(250, 247, 242, 0.75);
}

.story {
    --section-orb: var(--clr-story-orb);
    background: rgba(245, 240, 232, 0.8);
}

.meditation {
    --section-orb: var(--clr-meditation-orb);
    background: rgba(232, 237, 229, 0.8);
}

.music {
    --section-orb: var(--clr-music-orb);
    background: rgba(242, 237, 230, 0.8);
}

.journeys {
    --section-orb: var(--clr-journeys-orb);
    background: rgba(229, 234, 231, 0.8);
}

.contact {
    --section-orb: var(--clr-contact-orb);
    background: rgba(250, 250, 250, 0.85);
}

/* ===================================
   Navigation Dots
   =================================== */
.nav-dots {
    position: fixed;
    left: var(--sp-md);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--clr-text-muted);
    background: transparent;
    cursor: pointer;
    transition: all 0.5s var(--ease-zen);
    position: relative;
}

.nav-dot::before {
    content: attr(data-label);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--fs-small);
    color: var(--clr-text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s var(--ease-zen);
    pointer-events: none;
}

.nav-dot:hover::before {
    opacity: 1;
}

.nav-dot.active {
    background: var(--clr-text-primary);
    border-color: var(--clr-text-primary);
    transform: scale(1.4);
}

/* ===================================
   ZEN Text Animation Classes
   =================================== */
.split-text {
    overflow: hidden;
}

.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity var(--duration-reveal) var(--ease-zen),
        transform var(--duration-reveal) var(--ease-zen);
}

.split-text .word {
    display: inline-block;
    overflow: hidden;
    margin-inline-start: 0.25em;
}

.split-text .word:first-child {
    margin-inline-start: 0;
}

.split-text.animate .char {
    opacity: 1;
    transform: translateY(0);
}

/* Zen reveal - gentle float up */
.reveal-up {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity var(--duration-reveal) var(--ease-zen),
        transform var(--duration-reveal) var(--ease-zen);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 2s var(--ease-zen);
}

.reveal-fade.visible {
    opacity: 1;
}

/* Gentle stagger delays */
.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

.delay-4 {
    transition-delay: 0.6s;
}

.delay-5 {
    transition-delay: 0.75s;
}

.delay-6 {
    transition-delay: 0.9s;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    text-align: center;
}

.hero-title {
    font-size: var(--fs-giant);
    font-weight: var(--fw-medium);
    letter-spacing: 0.1em;
    margin-bottom: var(--sp-md);
    line-height: 1.1;
}

.hero-tagline {
    font-size: var(--fs-h2);
    font-weight: var(--fw-light);
    color: var(--clr-text-secondary);
    letter-spacing: 0.2em;
}

.hero-tagline .separator {
    display: inline-block;
    margin: 0 0.4em;
    opacity: 0.4;
}

/* Scroll Indicator with breathing animation */
.scroll-indicator {
    position: absolute;
    bottom: var(--sp-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-sm);
}

.scroll-indicator-text {
    font-size: var(--fs-small);
    color: var(--clr-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-indicator-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--clr-text-muted) 0%, transparent 100%);
    animation: breatheLine 3s var(--ease-breath) infinite;
}

@keyframes breatheLine {

    0%,
    100% {
        opacity: 0.2;
        height: 40px;
    }

    50% {
        opacity: 0.6;
        height: 60px;
    }
}

/* ===================================
   Story Section
   =================================== */
.story-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--sp-2xl);
    align-items: center;
}

.story-image-container {
    position: relative;
}

.story-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.05);
}

.story-image {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(10%);
    transition: filter 1s var(--ease-zen);
}

.story-image:hover {
    filter: grayscale(0%);
}

.story-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--clr-story-accent);
    opacity: 0.2;
    border-radius: 50%;
    z-index: -1;
    animation: pulseGlow 6s var(--ease-breath) infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.story-text {
    padding-right: var(--sp-lg);
}

.story-quote {
    font-size: var(--fs-h2);
    font-weight: var(--fw-medium);
    line-height: 1.6;
    margin-bottom: var(--sp-lg);
    color: var(--clr-text-primary);
    position: relative;
    padding-right: var(--sp-lg);
}

.story-quote::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--clr-story-accent);
    border-radius: 2px;
    opacity: 0.6;
}

.story-paragraph {
    font-size: var(--fs-body-lg);
    color: var(--clr-text-secondary);
    margin-bottom: var(--sp-md);
    line-height: 2;
}

/* ===================================
   Service Sections (Shared)
   =================================== */
.service-section {
    text-align: center;
}

.service-label {
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: var(--sp-md);
    opacity: 0.5;
}

.service-title {
    font-size: var(--fs-display);
    font-weight: var(--fw-medium);
    margin-bottom: var(--sp-lg);
    letter-spacing: 0.05em;
}

.service-keywords {
    font-size: var(--fs-h2);
    font-weight: var(--fw-light);
    margin-bottom: var(--sp-xl);
    opacity: 0.6;
    letter-spacing: 0.15em;
}

.service-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: var(--fs-body-lg);
    line-height: 2.1;
    color: inherit;
    opacity: 0.8;
}

/* Meditation Section */
.meditation {
    color: var(--clr-meditation-text);
}

.meditation .service-label {
    color: var(--clr-meditation-accent);
}

/* Music Section - NEW WARM COLORS */
.music {
    color: var(--clr-music-text);
}

.music .service-label {
    color: var(--clr-music-accent);
}

/* Journeys Section - NEW FOREST COLORS */
.journeys {
    color: var(--clr-journeys-text);
}

.journeys .service-label {
    color: var(--clr-journeys-accent);
}

/* ===================================
   Contact Section
   =================================== */
.contact-inner {
    max-width: 600px;
    text-align: center;
}

.contact-title {
    font-size: var(--fs-h1);
    font-weight: var(--fw-medium);
    margin-bottom: var(--sp-md);
}

.contact-subtitle {
    font-size: var(--fs-body-lg);
    color: var(--clr-text-secondary);
    margin-bottom: var(--sp-xl);
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: var(--sp-xl);
    margin-bottom: var(--sp-xl);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    color: var(--clr-text-primary);
    text-decoration: none;
    font-size: var(--fs-body);
    padding: var(--sp-sm) var(--sp-md);
    border-radius: 8px;
    transition: all 0.5s var(--ease-zen);
}

.contact-method:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.contact-method svg {
    color: var(--clr-text-muted);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: var(--sp-xl);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
}

.form-group {
    margin-bottom: var(--sp-md);
    text-align: right;
}

.form-label {
    display: block;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--clr-text-secondary);
    margin-bottom: var(--sp-xs);
}

.form-input {
    width: 100%;
    padding: var(--sp-sm) var(--sp-md);
    font-family: var(--ff-primary);
    font-size: var(--fs-body);
    color: var(--clr-text-primary);
    background: #F8F8F8;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.5s var(--ease-zen);
}

.form-input:focus {
    outline: none;
    background: white;
    border-color: rgba(0, 0, 0, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-button {
    width: 100%;
    padding: var(--sp-md);
    font-family: var(--ff-primary);
    font-size: var(--fs-body);
    font-weight: var(--fw-medium);
    color: white;
    background: var(--clr-text-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.5s var(--ease-zen);
    margin-top: var(--sp-sm);
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Footer */
.footer {
    margin-top: var(--sp-xl);
    padding-top: var(--sp-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: var(--fs-small);
    color: var(--clr-text-muted);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 900px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: var(--sp-xl);
        text-align: center;
    }

    .story-image-container {
        max-width: 350px;
        margin: 0 auto;
    }

    .story-text {
        padding-right: 0;
    }

    .story-quote {
        padding-right: 0;
    }

    .story-quote::before {
        display: none;
    }

    .nav-dots {
        display: none;
    }

    .orb-1,
    .orb-2,
    .orb-3,
    .orb-4 {
        filter: blur(200px);
        opacity: 0.4;
    }
}

@media (max-width: 600px) {
    :root {
        --sp-xl: 2.5rem;
    }

    .section {
        padding: var(--sp-lg);
    }

    .hero-tagline .separator {
        display: none;
    }

    .hero-tagline {
        display: flex;
        flex-direction: column;
        gap: var(--sp-xs);
    }

    .contact-methods {
        flex-direction: column;
        gap: var(--sp-sm);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.2s !important;
    }

    .scroll-container {
        scroll-snap-type: none;
    }

    .orb,
    .breathing-bg {
        animation: none !important;
    }
}

/* Grain Texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.02;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 10000;
}