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

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e1b42 0%, #2a1b42 50%, #3a2463 100%);
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Dynamic background overlays for soundscape mixing */
.soundscape-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.soundscape-overlay.wind {
    background: radial-gradient(ellipse 120% 80% at 50% 50%, rgba(135, 206, 235, 0.15) 0%, rgba(135, 206, 235, 0.05) 50%, transparent 100%);
    animation: windFlow 6s ease-in-out infinite;
}

.soundscape-overlay.water {
    background: radial-gradient(ellipse 100% 120% at 50% 50%, rgba(0, 191, 255, 0.15) 0%, rgba(0, 191, 255, 0.05) 50%, transparent 100%);
    animation: waterRipple 5s ease-in-out infinite;
}

.soundscape-overlay.noise {
    background: radial-gradient(ellipse 110% 90% at 50% 50%, rgba(147, 112, 219, 0.15) 0%, rgba(147, 112, 219, 0.05) 50%, transparent 100%);
    animation: noisePulse 3s ease-in-out infinite;
}

.soundscape-overlay.nature {
    background: radial-gradient(ellipse 90% 110% at 50% 50%, rgba(34, 139, 34, 0.15) 0%, rgba(34, 139, 34, 0.05) 50%, transparent 100%);
    animation: natureBreeze 7s ease-in-out infinite;
}

/* Animated starry background */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.stars::after, .twinkling::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    will-change: transform; /* Performance hint for the browser */
}

.stars {
    animation: sparkle 3s ease-in-out infinite alternate;
}

.stars::after {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="20" cy="20" r="0.5" fill="white" opacity="0.8"/><circle cx="80" cy="30" r="0.3" fill="white" opacity="0.6"/><circle cx="40" cy="60" r="0.4" fill="white" opacity="0.7"/><circle cx="70" cy="80" r="0.2" fill="white" opacity="0.5"/><circle cx="10" cy="90" r="0.3" fill="white" opacity="0.6"/><circle cx="90" cy="10" r="0.4" fill="white" opacity="0.8"/><circle cx="120" cy="120" r="0.5" fill="white" opacity="0.7"/><circle cx="180" cy="130" r="0.3" fill="white" opacity="0.5"/><circle cx="140" cy="160" r="0.4" fill="white" opacity="0.6"/><circle cx="170" cy="180" r="0.2" fill="white" opacity="0.4"/><circle cx="110" cy="190" r="0.3" fill="white" opacity="0.5"/><circle cx="190" cy="110" r="0.4" fill="white" opacity="0.7"/></svg>') repeat;
    animation: move-background-slowly 1500s linear infinite;
}

.twinkling {
    animation: twinkle 2s ease-in-out infinite;
}

.twinkling::after {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="25" cy="75" r="0.2" fill="white" opacity="0.4"/><circle cx="60" cy="40" r="0.3" fill="white" opacity="0.5"/><circle cx="85" cy="65" r="0.2" fill="white" opacity="0.3"/><circle cx="125" cy="175" r="0.2" fill="white" opacity="0.3"/><circle cx="160" cy="140" r="0.3" fill="white" opacity="0.4"/><circle cx="185" cy="165" r="0.2" fill="white" opacity="0.2"/></svg>') repeat;
    animation: move-background-slowly 2000s linear infinite reverse;
}

@keyframes sparkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.7; }
}

@keyframes move-background-slowly {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

header {
    padding: 1rem 1rem 0 1rem;
    position: relative;
    z-index: 10;
}

.header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.main-logo {
    height: 80px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content to top instead of center */
    padding: 0 2rem; /* Remove top/bottom padding from main */
    min-height: 80vh;
    max-width: 800px;
    margin: 0 auto;
}

.zodiac-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Main Title */
.main-title {
    font-size: 2.2rem;               /* subtle size */
    font-weight: 600;                /* lighter weight */
    text-align: center;
    margin-bottom: 2rem;
    color: #ffd54f;                  /* warm logo-yellow */
    text-shadow: 0 1px 4px rgba(0,0,0,0.25); /* gentle shadow for contrast */
    letter-spacing: -0.015em;
    position: relative;
    z-index: 15;
}

.zodiac-wheel {
    position: relative;
    width: 480px;
    height: 480px;
    margin: 0 auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
    z-index: 12;
    /* No z-index changes needed here anymore */
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.2, 1);
}

/* The interaction scaling is handled in the segment styles */

/* Move controls down when wheel is active */
.zodiac-wheel.is-interacting + .unified-controls-container {
    /* Keep panel visible - subtle lift only */
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;

}


/* Large screens - even bigger wheel */
@media (min-width: 1200px) {
    .zodiac-wheel {
        width: 520px;
        height: 520px;
    }
    
    .unified-controls-container {
        max-width: 400px;
        margin: 2rem auto 0 auto;
    }
}

.wheel-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* --- High-End Segment Styling & Animation --- */
g.zodiac-segment {
    cursor: pointer;
    transform-origin: 200px 200px;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.2, 1);
}

.segment-path {
    stroke: none; /* Completely remove stroke */
    stroke-width: 0; /* No stroke width */
    transition: all 0.5s cubic-bezier(0.2, 1, 0.2, 1);
}

/* Show outline ONLY on hover or active */
g.zodiac-segment.segment-hover .segment-path,
g.zodiac-segment.active .segment-path {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 1.5; /* Add stroke width back only on hover/active */
}

.segment-text {
    font-size: 28px;
    font-weight: 400;
    fill: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.2, 1);
}

/* --- THE EXPLODING HOVER & ACTIVE EFFECT --- */

/* 1. When interacting, all segments shrink by default */
.zodiac-wheel.is-interacting g.zodiac-segment {
    transform: scale(0.85);
    filter: brightness(0.4);
    opacity: 0.4;
}

/* 2. The hovered or active segment then "explodes" out */
.zodiac-wheel.is-interacting g.zodiac-segment:hover,
g.zodiac-segment.active {
    transform: translate(var(--tx), var(--ty)) scale(1.15);
    filter: brightness(1.2) drop-shadow(0 0 30px rgba(255, 255, 255, 0.4));
    opacity: 1;
    z-index: 100; /* Ensure hovered segment appears above control panel */
}

g.zodiac-segment:hover .segment-text,
g.zodiac-segment.active .segment-text {
    fill: white;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 210px; /* Just enough to close gap */
    height: 210px;
    border-radius: 50%;
    background: #1e153b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 20;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6);
    pointer-events: none;
}

.center-logo {
    max-width: 120px; /* Larger since it's standalone */
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    opacity: 0.95;
}

.center-logo:hover {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.center-text {
    text-align: center;
}

.center-text h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    max-width: 140px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.center-text p {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    margin: 0.2rem 0 0 0;
    text-align: center;
    max-width: 140px;
    font-size: clamp(0.6rem, 2.5vw, 0.7rem);
}

/* --- Unified Control Dashboard --- */
/* Prevent flash of unstyled content */
.unified-controls-container:not(.show) {
    display: none !important; /* Ensure it's hidden until explicitly shown */
}

.unified-controls-container {
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    padding: 1.2rem 1.8rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    max-width: 380px;
    margin: 0.5rem auto 0 auto; /* Back to normal margin flow */
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(0) scale(0.95); /* No initial Y offset - will unfold in place */
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                max-height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 12;
    max-height: 0; /* Use max-height for smooth unfolding */
    overflow: hidden;
    transform-origin: top; /* Unfold from the top */
}

.unified-controls-container.show {
    opacity: 1;
    transform: translateY(0) scale(1); /* Scale to full size */
    visibility: visible;
    max-height: 800px; /* Large enough to contain all content - unfolds gradually */
    overflow: visible;
    animation: gentleGlow 2s ease-in-out;
}

/* Staggered animation for internal elements */
.unified-controls-container.show .current-track-info {
    animation: gentleSlideIn 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.unified-controls-container.show .audio-controls {
    animation: gentleSlideIn 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
}

.unified-controls-container.show .soundscape-mixer {
    animation: gentleSlideIn 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s both;
}

.unified-controls-container.show .sleep-timer {
    animation: gentleSlideIn 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s both;
}

.unified-controls-container:not(.show) .sleep-timer-string {
    opacity: 0;
    visibility: hidden;
}

/* Gentle slide-in keyframe animation */
@keyframes gentleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gentle glow animation */
@keyframes gentleGlow {
    0% {
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    }
    50% {
        box-shadow: 0 15px 35px rgba(0,0,0,0.2), 0 0 30px rgba(255,255,255,0.1);
    }
    100% {
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    }
}

.current-track-info {
    margin-bottom: 1.5rem;
    text-align: center;
    min-height: 50px;
    position: relative;
    border-radius: 12px;
    padding: 1rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.2, 1);
    overflow: hidden;
    --track-img: none;
    background: transparent;
}

.current-track-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--track-img);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: 0;
    transition: all 0.6s ease;
    filter: blur(40px) brightness(0.4) saturate(1.5);
    border-radius: inherit;
}

.track-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255,255,255,1);
    margin-bottom: 0.3rem;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    text-shadow: 
        0 2px 8px rgba(0,0,0,0.8),
        0 1px 4px rgba(0,0,0,1);
}

.track-album {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    font-style: italic;
    line-height: 1.1;
    position: relative;
    z-index: 2;
    text-shadow: 
        0 2px 6px rgba(0,0,0,0.8),
        0 1px 3px rgba(0,0,0,1);
}

.main-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0 2rem;
    max-width: 240px; /* narrower to stay inside panel */
    margin-left: auto;
    margin-right: auto;
}

.soundscape-mixer {
    display: flex;
    justify-content: space-around;
    align-items: flex-start; /* Align to top */
    gap: 1.5rem;
    margin: 0 0 3rem 0;
    padding: 0;
    width: 100%;
    min-height: auto;
}

.slider-group {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.slider-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
    order: 2; /* Put label below slider */
}

.vertical-slider {
    transform: rotate(-90deg);
    width: 100px;
    height: 6px;
    transform-origin: center;
    order: 1; /* Put slider above label */
    margin: 40px 0; /* Vertical spacing */
}

/* Audio Controls */
.audio-controls {
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
    text-align: center;
    padding: 1rem 0 2rem 0;
    min-height: 120px; /* Reserve space to prevent layout shift */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.audio-controls.show {
    opacity: 1;
    visibility: visible;
}

.controls-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.control-btn {
    background: none;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.control-btn:hover {
    border-color: rgba(255,255,255,1);
    color: rgba(255,255,255,1);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn.disabled,
.control-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}


.main-controls svg {
    display:block;
}

.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem; /* Adjusted for vertical symmetry */
    padding: 0 2rem 2rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    max-width: 240px; /* match main-controls width */
    margin-left: auto;
    margin-right: auto;
}

.volume-slider {
    width: 160px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: rgba(255,255,255,1);
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

/* ===== MYSTICAL SLEEP TIMER STRING V2 ===== */
.sleep-timer-string {
    position: absolute;
    top: 0;
    right: -60px; /* Move it further out */
    width: 55px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(-4px 2px 8px rgba(0,0,0,0.2)); /* Softer, more realistic shadow */
}

.string-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.time-markers { display: none; }

.string-cord {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 10px; /* Thicker track for a grooved look */
    height: 100%;
    pointer-events: all;
    background: linear-gradient(90deg, #120f26, #211c42, #120f26); /* Darker, inset groove */
    border-radius: 5px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
}

.string-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px; /* A fine, bright string */
    height: 0px; /* Dynamic height */
    background: linear-gradient(180deg, #FF6B6B, #C0392B); /* Rich red rope */
    border-radius: 2px;
    box-shadow: 
        0 0 6px rgba(255, 80, 80, 0.6),
        inset 0 0 1px rgba(255,255,255,0.7);
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.string-tassel {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    cursor: grab;
    transition: top 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tassel-time {
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 0 4px rgba(0,0,0,0.6);
    pointer-events: none;
    white-space: nowrap;
}

.string-tassel:active {
    cursor: grabbing;
}

.tassel-top {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 65% 35%, #FFF8E1, #FFD700 50%, #B8860B 110%);
    border-radius: 50%;
    margin: 0 auto 2px;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.3),
        inset 0 2px 2px rgba(255, 248, 225, 0.8), /* Brighter highlight */
        inset 0 -2px 3px rgba(184, 134, 11, 0.6); /* Inner shadow */
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.tassel-threads {
    display: flex;
    justify-content: center;
    gap: 1.5px;
    padding-top: 2px;
}

.thread {
    width: 2px;
    height: 22px;
    background: linear-gradient(180deg, #B8860B, #8B4513);
    border-radius: 0 0 2px 2px;
    transform-origin: top center;
    animation: sway 5s ease-in-out infinite;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.thread:nth-child(2) { animation-delay: -0.8s; animation-duration: 4s; }
.thread:nth-child(3) { animation-delay: -0.5s; animation-duration: 5s; }
.thread:nth-child(4) { animation-delay: -0.2s; animation-duration: 4.5s; }
.thread:nth-child(5) { animation-delay: -1.2s; animation-duration: 5.2s; }

@keyframes sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(3deg) translateX(1px); }
}

.string-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
}

/* Active timer state */
.sleep-timer-string.active .string-line {
    background: linear-gradient(180deg, #FF6B6B, #C0392B);
    box-shadow: 
        0 0 8px rgba(255, 90, 90, 0.7),
        inset 0 0 1px rgba(255,255,255,0.5);
}

.sleep-timer-string.active .tassel-top {
    background: radial-gradient(circle at 65% 35%, #FFF8E1, #FFD700 50%, #B8860B 110%);
    box-shadow: 
        0 2px 10px rgba(0,0,0,0.3),
        inset 0 2px 2px rgba(255, 248, 225, 0.8),
        inset 0 -2px 3px rgba(184, 134, 11, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.sleep-timer-string.active .thread {
    background: linear-gradient(180deg, #B8860B, #8B4513);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sleep-timer-string {
        right: -30px;
    }
}

/* Large screen adjustments */
@media (min-width: 1200px) {
    .sleep-timer-string {
        right: -65px; 
    }
}

.timer-display {
    margin-top: 1.2rem;
    text-align: center;
    background: rgba(255,255,255,0.04);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.timer-countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

#timerCountdown {
    color: rgba(255,255,255,0.95);
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
}

.timer-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-track {
    color: rgba(255,255,255,0.9);
    font-weight: 400;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Pause icon state */
.control-btn.playing svg {
    display: none;
}

.control-btn.playing::after {
    content: '';
    width: 6px;
    height: 20px;
    background: currentColor;
    position: relative;
    box-shadow: 10px 0 0 currentColor;
}

/* Mobile responsive for audio controls */
@media (max-width: 768px) {
    .controls-container {
        gap: 1.5rem;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
    }
    
    .volume-slider {
        width: 80px;
    }
    
    .current-track-info {
        background-size: cover;
        padding: 0.8rem;
    }
    
    .current-track-info::before {
        opacity: 0.25;
        filter: blur(20px) brightness(0.6);
    }
}

footer {
    text-align: center;
    padding: 3rem 1rem 8rem;
    position: relative;
    z-index: 10;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.7;
    font-weight: 300;
}

/* SVG styles */
.wheel-svg {
    width: 100%;
    height: 100%;
    overflow: visible; /* Allows segments to scale outside the box */
}

/* --- High-End Segment Styling & Animation --- */

g.zodiac-segment {
    cursor: pointer;
    /* This transition is key for the professional feel */
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), 
                opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: 200px 200px; /* Center of the SVG */
}

.segment-path {
    fill: none;
    stroke: rgba(255,255,255,0.1);
    stroke-width: 1;
}

.segment-text {
    fill: rgba(255,255,255,0.8);
}

.segment-bg {
    stroke: none;
}

/* keep image stacking context */
.wheel-svg g.zodiac-segment {
    pointer-events: auto;
}


/* --- Working hover effect for segment images --- */
.wheel-svg g.zodiac-segment.segment-hover .segment-img,
.wheel-svg g.zodiac-segment.active .segment-img {
    opacity: 0.9 !important;
    transition: opacity 0.3s ease;
}

/* Explosion effect on hover */
.zodiac-wheel.is-interacting g.zodiac-segment {
    transform: scale(0.85);
    filter: brightness(0.4);
    opacity: 0.4;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.2, 1);
}

.zodiac-wheel.is-interacting g.zodiac-segment.segment-hover,
.zodiac-wheel.is-interacting g.zodiac-segment.active {
    transform: translate(var(--tx), var(--ty)) scale(1.35) !important;
    filter: brightness(1.2) drop-shadow(0 0 30px rgba(255, 255, 255, 0.4)) !important;
    opacity: 1 !important;
}

/* --- THE ACTIVE (CLICKED) STATE --- */
g.zodiac-segment.active {
    transform: scale(1.1) !important; /* Use important to override hover shrink */
    opacity: 1 !important;
    filter: drop-shadow(0 0 30px rgba(255, 107, 107, 0.6));
}

g.zodiac-segment.active .segment-path {
    stroke: rgba(255, 107, 107, 0.8);
    stroke-width: 1.5; /* Ensure active segments have stroke width */
    fill: rgba(255, 107, 107, 0.1);
}

g.zodiac-segment.active .segment-text {
    fill: white;
    transform: scale(1.1);
    transform-origin: inherit;
}

/* Hide images by default */
.wheel-svg g.zodiac-segment .segment-img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Reveal image on hover or active */
.wheel-svg g.zodiac-segment.segment-hover .segment-img,
.wheel-svg g.zodiac-segment.active .segment-img {
    opacity: 0.9; /* or 1 for full visibility */
}

/* Base image behavior during interaction */
.base-image {
    transition: all 0.5s cubic-bezier(0.2, 1, 0.2, 1);
    transform-origin: center;
}

/* When wheel is being interacted with, make base image behave exactly like segments */
.zodiac-wheel.is-interacting .base-image {
    transform: scale(0.85);
    filter: brightness(0.4);
    opacity: 0.4;
}


/* Mobile optimizations */
@media (max-width: 768px) {
    .main-logo {
        height: 70px;
        max-width: 250px;
    }
    
    .main-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .zodiac-wheel {
        width: min(440px, 90vw);
        height: min(440px, 90vw);
    }
    
    .unified-controls-container {
        max-width: 350px;
        margin: 0.5rem 1rem 0 1rem; /* Add side margins for mobile */
    }
    
    .center-logo {
        max-width: 100px; /* Larger on mobile since it's standalone */
        max-height: 100px;
    }
    
    .zodiac-segment {
        width: 200px;
        height: 200px;
        transform-origin: 0 200px;
    }
    
    .segment-content {
        width: 65px;
        height: 65px;
    }
    
    .zodiac-symbol {
        font-size: 1.8rem;
    }
    
    .zodiac-segment:hover .zodiac-symbol {
        font-size: 2rem;
    }
    
    .sign-name {
        font-size: 0.6rem;
    }
    
    .wheel-center {
        width: 190px; /* Close gap on mobile */
        height: 190px;
    }
    
    .center-content h2 {
        font-size: 1rem;
    }
    
    .center-content p {
        font-size: 0.8rem;
    }
    
    .audio-controls {
        bottom: 1rem;
        padding: 0.8rem 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .zodiac-wheel {
        width: min(320px, 80vw);
        height: min(320px, 80vw);
    }
    
    .zodiac-segment {
        width: 160px;
        height: 160px;
        transform-origin: 0 160px;
    }
    
    .segment-content {
        width: 55px;
        height: 55px;
    }
    
    .zodiac-symbol {
        font-size: 1.5rem;
    }
    
    .zodiac-segment:hover .zodiac-symbol {
        font-size: 1.7rem;
    }
    
    .sign-name {
        font-size: 0.55rem;
    }
    
    .wheel-center {
        width: 170px; /* Close gap on small mobile */
        height: 170px;
    }
    
    .center-content h2 {
        font-size: 0.9rem;
    }
    
    .center-content p {
        font-size: 0.7rem;
    }
    
    .audio-controls {
        left: 1rem;
        right: 1rem;
        transform: none;
    }
} 

/* --- High priority segment rules --- */
.wheel-svg g.zodiac-segment .segment-path {
    fill: none;
    stroke: rgba(255,255,255,0.15);
    stroke-width: 1.5;
}

.wheel-svg g.zodiac-segment .segment-text {
    font-size: 24px;
    fill: rgba(255,255,255,0.85);
    pointer-events:none;
}

/* hide per-segment images by default */
.wheel-svg g.zodiac-segment .segment-img {
    opacity:0;
    transition: opacity 0.4s ease;
    pointer-events:none;
}

/* reveal on hover or active */
.wheel-svg g.zodiac-segment:hover .segment-img,
.wheel-svg g.zodiac-segment.active .segment-img {
    opacity:0.9;
} 

/* Invisible hit paths */
.segment-hit {
    fill: transparent;
    stroke: none;
    pointer-events: all;
} 

/* Add transition to existing center text for smooth changes */
.wheel-center h2, .wheel-center p {
    transition: all 0.3s ease;
} 

/* SEO Blog Section in Footer */
.seo-blog {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.seo-blog h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-post {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.blog-post:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.blog-post h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.read-more:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.read-more.coming-soon {
    color: #888;
    cursor: default;
    opacity: 0.6;
}

.read-more.coming-soon:hover {
    color: #888;
    border-bottom-color: transparent;
}

.seo-keywords {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    text-align: center;
}

.seo-keywords p {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    margin: 0;
}

/* Mobile responsive for blog grid */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .seo-blog h3 {
        font-size: 1.5rem;
    }
    
    .blog-post {
        padding: 1rem;
    }
} 

/* Streaming Platforms Section */
.streaming-platforms {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(25, 30, 56, 0.9) 0%, rgba(42, 39, 78, 0.9) 100%);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.streaming-platforms::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.streaming-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.streaming-platforms h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.streaming-platforms p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.platform-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.2, 1, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.platform-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s;
}

.platform-link:hover::before {
    left: 100%;
}

.platform-link:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.platform-link img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    filter: brightness(0.9);
}

.platform-link:hover img {
    filter: brightness(1.1);
    transform: scale(1.1);
}

.platform-link span {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.platform-link:hover span {
    opacity: 1;
}

/* Platform-specific hover colors */
.platform-link[data-platform="spotify"]:hover {
    border-color: #1DB954;
    box-shadow: 0 20px 40px rgba(29, 185, 84, 0.2);
}

.platform-link[data-platform="apple"]:hover {
    border-color: #FF375F;
    box-shadow: 0 20px 40px rgba(255, 55, 95, 0.2);
}

.platform-link[data-platform="youtube"]:hover {
    border-color: #FF0000;
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.2);
}

.platform-link[data-platform="amazon"]:hover {
    border-color: #00D4FF;
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.platform-link[data-platform="deezer"]:hover {
    border-color: #FEAA2D;
    box-shadow: 0 20px 40px rgba(254, 170, 45, 0.2);
}

.platform-link[data-platform="soundcloud"]:hover {
    border-color: #FF5500;
    box-shadow: 0 20px 40px rgba(255, 85, 0, 0.2);
}

.coming-soon {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.coming-soon p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .streaming-platforms {
        padding: 2rem 0;
    }
    
    .streaming-container {
        padding: 0 1rem;
    }
    
    .streaming-platforms h2 {
        font-size: 2rem;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .platform-link {
        padding: 1.5rem 0.5rem;
    }
    
    .platform-link img {
        width: 50px;
        height: 50px;
    }
} 

/* Blog Header Logo */
.blog-header-logo {
    position: absolute;
    top: 2rem;
    left: 3rem;
    z-index: 20;
}

.blog-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.blog-logo:hover {
    transform: scale(1.05);
}

/* Blog Article Styling */
.blog-article {
    max-width: 800px;
    margin: 8rem auto 2rem auto;
    padding: 0 2rem;
}

.blog-article article {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.blog-article h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.article-meta span {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.blog-article h2 {
    font-size: 1.8rem;
    color: #fff;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.blog-article p {
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.article-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.article-cta h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-cta p {
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Mobile responsive for blog articles */
@media (max-width: 768px) {
    .blog-header-logo {
        top: 1rem;
        left: 1.5rem;
    }
    
    .blog-logo {
        height: 40px;
        max-width: 120px;
    }
    
    .blog-article {
        padding: 0 1rem;
        margin: 6rem auto 1rem auto;
    }
    
    .blog-article article {
        padding: 2rem 1.5rem;
    }
    
    .blog-article h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
} 

/* Soundscape Mixer */
.soundscape-mixer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    margin: 4rem auto 1.5rem auto;
    padding: 0;
    max-width: 400px;
    width: 100%;
    min-height: 140px; /* Reduce overall height */
}

.slider-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
    height: 140px; /* Smaller container */
    position: relative;
}

.slider-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    line-height: 1;
    position: absolute;
    bottom: 10px;
}

.vertical-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transform-origin: center;
    transform: rotate(-90deg);
    position: absolute;
    top: 10px;
    left: 50%;
    transform-origin: center;
    transform: translateX(-50%) rotate(-90deg);
    transition: background 0.3s ease;
}

/* Wind slider - blue gradient */
#wind-slider {
    background: linear-gradient(to right, 
        rgba(135, 206, 235, 0.8) 0%, 
        rgba(135, 206, 235, 0.8) var(--fill-percent, 0%), 
        rgba(255,255,255,0.15) var(--fill-percent, 0%), 
        rgba(255,255,255,0.15) 100%);
}

/* Nature slider - green gradient */
#nature-slider {
    background: linear-gradient(to right, 
        rgba(34, 139, 34, 0.8) 0%, 
        rgba(34, 139, 34, 0.8) var(--fill-percent, 0%), 
        rgba(255,255,255,0.15) var(--fill-percent, 0%), 
        rgba(255,255,255,0.15) 100%);
}

/* Water slider - cyan gradient */
#wasser-slider {
    background: linear-gradient(to right, 
        rgba(0, 191, 255, 0.8) 0%, 
        rgba(0, 191, 255, 0.8) var(--fill-percent, 0%), 
        rgba(255,255,255,0.15) var(--fill-percent, 0%), 
        rgba(255,255,255,0.15) 100%);
}

/* Noise slider - purple gradient */
#noise-slider {
    background: linear-gradient(to right, 
        rgba(147, 112, 219, 0.8) 0%, 
        rgba(147, 112, 219, 0.8) var(--fill-percent, 0%), 
        rgba(255,255,255,0.15) var(--fill-percent, 0%), 
        rgba(255,255,255,0.15) 100%);
}

.vertical-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.vertical-slider::-webkit-slider-thumb:hover {
    background: rgba(255,255,255,1);
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.1);
}

.vertical-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.3);
} 

/* --- Collapsible Blog Preview --- */
.extra-blog { display: none; }
.seo-blog.expanded .extra-blog { display: block; }

.toggle-blogs {
    margin: 2rem auto 0 auto;
    display: inline-block;
    background: none;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-blogs:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
} 

/* Soundscape animations */
@keyframes windFlow {
    0% { 
        transform: translateX(-3%) translateY(-2%) scale(1.03) rotate(-0.5deg); 
        filter: blur(0px) brightness(1);
    }
    25% { 
        transform: translateX(1%) translateY(2%) scale(0.97) rotate(0.3deg); 
        filter: blur(1px) brightness(1.1);
    }
    50% { 
        transform: translateX(3%) translateY(-1%) scale(1.02) rotate(-0.2deg); 
        filter: blur(0.5px) brightness(0.9);
    }
    75% { 
        transform: translateX(-1%) translateY(3%) scale(0.98) rotate(0.4deg); 
        filter: blur(1.5px) brightness(1.05);
    }
    100% { 
        transform: translateX(-3%) translateY(-2%) scale(1.03) rotate(-0.5deg); 
        filter: blur(0px) brightness(1);
    }
}

@keyframes waterRipple {
    0% { 
        transform: scale(1) rotate(0deg) translateX(0%) translateY(0%); 
        filter: blur(0px) hue-rotate(0deg);
    }
    20% { 
        transform: scale(1.08) rotate(0.8deg) translateX(-2%) translateY(1%); 
        filter: blur(1px) hue-rotate(5deg);
    }
    40% { 
        transform: scale(0.92) rotate(-0.5deg) translateX(3%) translateY(-2%); 
        filter: blur(0.5px) hue-rotate(-3deg);
    }
    60% { 
        transform: scale(1.06) rotate(1.2deg) translateX(-1%) translateY(2%); 
        filter: blur(1.5px) hue-rotate(8deg);
    }
    80% { 
        transform: scale(0.94) rotate(-0.8deg) translateX(2%) translateY(-1%); 
        filter: blur(0.8px) hue-rotate(-5deg);
    }
    100% { 
        transform: scale(1) rotate(0deg) translateX(0%) translateY(0%); 
        filter: blur(0px) hue-rotate(0deg);
    }
}

@keyframes noisePulse {
    0% { 
        transform: scale(1) rotate(0deg); 
        filter: blur(0px) contrast(1) saturate(1);
    }
    15% { 
        transform: scale(1.05) rotate(2deg); 
        filter: blur(2px) contrast(1.2) saturate(1.3);
    }
    30% { 
        transform: scale(0.96) rotate(-1deg); 
        filter: blur(1px) contrast(0.8) saturate(0.7);
    }
    45% { 
        transform: scale(1.08) rotate(1.5deg); 
        filter: blur(3px) contrast(1.4) saturate(1.5);
    }
    60% { 
        transform: scale(0.92) rotate(-2deg); 
        filter: blur(0.5px) contrast(0.9) saturate(0.8);
    }
    75% { 
        transform: scale(1.04) rotate(0.8deg); 
        filter: blur(2.5px) contrast(1.1) saturate(1.2);
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        filter: blur(0px) contrast(1) saturate(1);
    }
}

@keyframes natureBreeze {
    0% { 
        transform: translateY(-2%) translateX(-1%) scale(1.02) rotate(-0.3deg); 
        filter: brightness(1) saturate(1);
    }
    25% { 
        transform: translateY(1%) translateX(2%) scale(0.98) rotate(0.8deg); 
        filter: brightness(1.1) saturate(1.2);
    }
    50% { 
        transform: translateY(2%) translateX(-0.5%) scale(1.01) rotate(-0.5deg); 
        filter: brightness(0.9) saturate(0.8);
    }
    75% { 
        transform: translateY(-1%) translateX(1.5%) scale(0.99) rotate(0.6deg); 
        filter: brightness(1.05) saturate(1.1);
    }
    100% { 
        transform: translateY(-2%) translateX(-1%) scale(1.02) rotate(-0.3deg); 
        filter: brightness(1) saturate(1);
    }
} 

/* Disable CSS animations when audio-reactive */
.audio-reactive .soundscape-overlay {
    animation: none !important;
}

/* Force browser refresh timestamp: 200159 */

/* Legal Pages Styles */
.legal-nav {
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: white;
}

.legal-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.legal-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-container > p {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.7;
    font-style: italic;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4ecdc4;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    opacity: 0.9;
}

.legal-footer {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Enhanced Footer Styles */
.footer-main {
    text-align: center;
    padding: 2rem 0;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
    opacity: 0.9;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.footer-logo-img:hover {
    opacity: 1;
}

.sweet-dreams {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-legal-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.footer-email {
    margin: 1rem 0;
    opacity: 0.8;
    font-weight: 400;
}

.footer-email a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-email a:hover {
    color: #667eea;
    text-decoration: underline;
}

.copyright {
    margin-top: 1rem;
    opacity: 0.7;
    font-weight: 300;
}

@media (max-width: 768px) {
    .legal-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .legal-container h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-links,
    .footer-legal-links {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .legal-links a,
    .footer-legal-links a {
        width: 200px;
        text-align: center;
    }
    
    .sweet-dreams {
        font-size: 1.3rem;
    }
}

/* Zodiac Hero Section for Blog Articles */
.zodiac-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.zodiac-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.zodiac-hero-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.zodiac-hero-image:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 2px rgba(255, 255, 255, 0.2);
}

.zodiac-hero-content {
    position: relative;
    z-index: 2;
}

.zodiac-hero-content h1 {
    margin-bottom: 1.5rem;
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.zodiac-hero-content .article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.zodiac-hero-content .article-meta span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .zodiac-hero {
        padding: 2rem 1.5rem;
    }
    
    .zodiac-hero-image {
        width: 120px;
        height: 120px;
    }
    
    .zodiac-hero-content h1 {
        font-size: 2rem;
    }
    
    .zodiac-hero-content .article-meta {
        gap: 1rem;
    }
    
    .zodiac-hero-content .article-meta span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}