/* Main Experience Components */

#contact{
    display:none;
}
/* Experience Container */
.experience-container {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e1c 0%, #1b2735 50%, #0a0e1c 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-in-out;
}

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

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%) translateX(100px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

body.experience-visible .floating-nav,
body.experience-visible .audio-control {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-orb {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 182, 193, 0.2));
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.nav-orb::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-orb:hover::before {
    left: 100%;
}

.nav-orb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.orb-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    transition: all 0.3s ease;
    z-index: 1;
}

.nav-orb:hover .orb-text {
    color: #ffd700;
    text-shadow: 0 0 15px #ffd700;
}

/* Hero Section - The Living Canvas */
.hero.living-canvas {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #4d5a8a 0%, #2c3454 60%, #1a1f36 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 2s ease-in-out;
}

.title-magic {
    margin-bottom: 2rem;
}

.magical-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 5.5rem);
    line-height: 1.1;
    margin: 0;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8), 
        0 0 20px rgba(230, 230, 255, 0.6), 
        0 0 35px rgba(200, 200, 255, 0.4),
        0 0 50px rgba(180, 180, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    user-select: none;
}

.magical-title .title-word {
    animation: word-float 6s ease-in-out infinite;
    user-select: none;
}

.magical-title .title-word-1 { animation-delay: 0s; }
.magical-title .title-word-2 { animation-delay: -2s; }
.magical-title .title-word-3 { animation-delay: -1s; }

.title-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1.5rem;
    letter-spacing: 1.5px;
    text-shadow: 0 0 5px rgba(230, 230, 255, 0.5);
    animation: subtitle-float 10s ease-in-out infinite;
    user-select: none;
}

@keyframes word-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes subtitle-float {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-8px); opacity: 1; }
}

.hero-interaction {
    margin-top: 3rem;
    width: 100%;
}

.user-intention {
    display: none;
}

/* Base Desktop Styles */
.persistent-intention {
    color: #ffd700;
    font-weight: 600;
    font-size: 1.2rem;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
}

.breath-text {
    position: absolute; /* Keep absolute for the cross-fade animation */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* This is crucial for centering */
    font-size: 1.6rem;
    color: #fff;
    font-weight: 300;
    letter-spacing: 0.5px;
    pointer-events: none;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    position: absolute;
    white-space: nowrap; /* Prevents text from wrapping */
    min-width: 100%; /* Ensures it has enough space */
    text-align: center;
}

.breath-text.fade-out {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-20px);
}

.breath-text.fade-in {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.breath-text-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#breathingCircleText, #breathingCircleText2 {
    position: absolute;
}

.breath-text:hover {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.breathing-circle:hover .breath-text {
    transform: scale(1.1);
}

.breath-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 50%;
    animation: breathPulse 4s ease-in-out infinite;
}

@keyframes breathPulse {
    0% { 
        transform: scale(1); 
        opacity: 0.15; 
    }
    25% { 
        transform: scale(1.1); 
        opacity: 0.25; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.35; 
    }
    75% { 
        transform: scale(1.1); 
        opacity: 0.25; 
    }
    100% { 
        transform: scale(1); 
        opacity: 0.15; 
    }
}

.breath-ripples {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple-effect 4s ease-out infinite;
}

.ripple-2 { animation-delay: 1.3s; }
.ripple-3 { animation-delay: 2.6s; }

@keyframes ripple-effect {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Audio Controls (now styled as a nav-orb) */
#audio-control svg {
    width: 24px;
    height: 24px;
    color: white;
    z-index: 1;
    transition: all 0.3s ease;
}

#audio-control:hover svg {
    color: #ffd700;
}

/* --- Adaptive Navigation Styles --- */

/* This class will be added to the body when a "light" section is visible */
body.nav-dark-theme .nav-orb {
    background: linear-gradient(135deg, rgba(50, 50, 90, 0.7), rgba(80, 80, 120, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

body.nav-dark-theme .orb-text {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: none;
}

body.nav-dark-theme .nav-orb:hover {
    background: linear-gradient(135deg, rgba(70, 70, 110, 0.9), rgba(100, 100, 140, 0.9));
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

body.nav-dark-theme .nav-orb:hover .orb-text {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

body.nav-dark-theme #audio-control svg {
    color: rgba(255, 255, 255, 0.9);
}

body.nav-dark-theme #audio-control:hover svg {
    color: #fff;
}

/* --- Active State Highlighting --- */
.nav-orb-active .orb-text {
    animation: highlight-text 1.5s ease-in-out infinite alternate;
}

@keyframes highlight-text {
    from {
        color: #fff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    to {
        color: #ffd700;
        text-shadow: 0 0 15px #ffd700, 0 0 25px rgba(255, 215, 0, 0.5);
    }
}

/* Add a special "nudge" animation for the purchase button in dark theme */
body.nav-dark-theme .nav-orb-purchase {
    animation: nudge-pulse 2.5s ease-in-out infinite !important;
}

@keyframes nudge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6); /* Warm gold pulse */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .magical-title {
        font-size: 2.5rem;
    }
    
    .floating-nav {
        right: 15px;
        gap: 15px;
    }
    
    .nav-orb {
        width: 50px;
        height: 50px;
    }
    
    .orb-text {
        font-size: 0.7rem;
    }
    
    .breathing-circle {
        width: 220px;
        height: 220px;
    }
    
    .breath-text {
        font-size: 1.4rem;
    }
    
    .breath-text-container {
        height: 2.2rem;
    }

    .persistent-intention {
        position: static;
        transform: none;
        margin-bottom: 0.5rem;
    }

    .breathing-circle {
        flex-direction: column;
    }

    .breath-text-container {
        position: relative;
        height: 2.2rem;
        width: 100%;
        top: auto;
        left: auto;
    }

    .breath-text {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none; /* JS will handle transforms for animation */
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0a0a1a 100%);
    color: #fff;
    overflow-x: hidden;
    user-select: none;
}

.breathing-circle {
    width: 280px;
    height: 280px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    /* A single, clean flexbox layout for all views */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* This controls the space between the text elements */
    cursor: crosshair;
    transition: all 1.5s ease-in-out;
    position: relative;
    animation: breatheIn 4s ease-in-out infinite;
    text-align: center;
}

.breathing-text-wrapper {
    /* This new wrapper is now the flex container for the text */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Controls spacing between intention and breath text */
}

.breath-text-container {
    position: relative;
    height: 2rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breathing-circle:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

@keyframes breatheIn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes breatheOut {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

@keyframes hold {
    0%, 100% { transform: scale(1.05); }
    50% { transform: scale(1.05); }
}

.breath-text:hover {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.breathing-circle:hover .breath-text {
    transform: scale(1.1);
}

.breath-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 50%;
    animation: breathPulse 4s ease-in-out infinite;
}

@keyframes breathPulse {
    0% { 
        transform: scale(1); 
        opacity: 0.15; 
    }
    25% { 
        transform: scale(1.1); 
        opacity: 0.25; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.35; 
    }
    75% { 
        transform: scale(1.1); 
        opacity: 0.25; 
    }
    100% { 
        transform: scale(1); 
        opacity: 0.15; 
    }
}

.breath-ripples {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple-effect 4s ease-out infinite;
}

.ripple-2 { animation-delay: 1.3s; }
.ripple-3 { animation-delay: 2.6s; }

@keyframes ripple-effect {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
} 