/* Clouds for light mode and fog for dark mode */
.clouds-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Cloud styles for light mode */
[data-theme="light"] .cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    opacity: 0;
    filter: blur(2px);
    animation-name: cloudFloat;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .cloud:before {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 50px;
    top: -10px;
    left: 10px;
    width: 40px;
    height: 40px;
    filter: blur(1px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .cloud:after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    top: -5px;
    right: 15px;
    width: 25px;
    height: 25px;
    filter: blur(1px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.10);
}

/* Fog styles for dark mode */
[data-theme="dark"] .cloud {
    position: absolute;
    background: rgba(120, 120, 140, 0.15);
    border-radius: 100px;
    opacity: 0;
    filter: blur(8px);
    animation-name: fogDrift;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

[data-theme="dark"] .cloud:before {
    content: '';
    position: absolute;
    background: rgba(100, 100, 120, 0.12);
    border-radius: 80px;
    top: -20px;
    left: 20px;
    width: 80px;
    height: 60px;
    filter: blur(12px);
}

[data-theme="dark"] .cloud:after {
    content: '';
    position: absolute;
    background: rgba(110, 110, 130, 0.10);
    border-radius: 60px;
    top: -10px;
    right: 30px;
    width: 50px;
    height: 40px;
    filter: blur(10px);
}

/* Cloud animation for light mode */
@keyframes cloudFloat {
    0% {
        transform: translateX(var(--start-x, -100px)) translateY(var(--start-y, 0px)) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    25% {
        transform: translateX(var(--mid1-x, 100px)) translateY(var(--mid1-y, -20px)) rotate(var(--rotation1, 2deg));
        opacity: 0.75;
    }
    50% {
        opacity: 0.8;
        transform: translateX(var(--mid2-x, 200px)) translateY(var(--mid2-y, 10px)) rotate(var(--rotation2, -1deg));
    }
    75% {
        transform: translateX(var(--mid3-x, 300px)) translateY(var(--mid3-y, -15px)) rotate(var(--rotation3, 1deg));
        opacity: 0.65;
    }
    100% {
        transform: translateX(var(--end-x, 500px)) translateY(var(--end-y, -30px)) rotate(0deg);
        opacity: 0;
    }
}

/* Fog animation for dark mode */
@keyframes fogDrift {
    0% {
        transform: translateX(var(--fog-start-x, -150px)) translateY(var(--fog-start-y, 20px)) scale(0.8) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.5;
    }
    30% {
        transform: translateX(var(--fog-mid1-x, 150px)) translateY(var(--fog-mid1-y, -10px)) scale(1.0) rotate(var(--fog-rotation1, 1deg));
        opacity: 0.6;
    }
    50% {
        opacity: 0.7;
        transform: translateX(var(--fog-mid2-x, 300px)) translateY(var(--fog-mid2-y, 15px)) scale(1.1) rotate(var(--fog-rotation2, -2deg));
    }
    70% {
        transform: translateX(var(--fog-mid3-x, 450px)) translateY(var(--fog-mid3-y, -5px)) scale(1.0) rotate(var(--fog-rotation3, 1deg));
        opacity: 0.5;
    }
    100% {
        transform: translateX(var(--fog-end-x, 600px)) translateY(var(--fog-end-y, 0px)) scale(0.9) rotate(0deg);
        opacity: 0;
    }
}

/* Individual cloud variations */
.cloud:nth-child(1) { 
    top: 8%; 
    width: 60px; 
    height: 30px; 
    animation-duration: 120s; 
    animation-delay: -20s; 
    /* Cloud path - starts from right, goes left */
    --start-x: 100vw; --start-y: -20px;
    --mid1-x: 70vw; --mid1-y: 40px; --rotation1: 3deg;
    --mid2-x: 40vw; --mid2-y: -10px; --rotation2: -2deg;
    --mid3-x: 20vw; --mid3-y: 30px; --rotation3: 1deg;
    --end-x: -150px; --end-y: -15px;
    /* Fog path */
    --fog-start-x: 100vw; --fog-start-y: 10px;
    --fog-mid1-x: 75vw; --fog-mid1-y: -30px; --fog-rotation1: 2deg;
    --fog-mid2-x: 50vw; --fog-mid2-y: 25px; --fog-rotation2: -3deg;
    --fog-mid3-x: 25vw; --fog-mid3-y: -10px; --fog-rotation3: 1deg;
    --fog-end-x: -200px; --fog-end-y: 20px;
}

.cloud:nth-child(2) { 
    top: 28%; 
    width: 80px; 
    height: 40px; 
    animation-duration: 135s; 
    animation-delay: -45s; 
    /* Cloud path - starts from left, goes right */
    --start-x: -100px; --start-y: 30px;
    --mid1-x: 25vw; --mid1-y: -20px; --rotation1: -2deg;
    --mid2-x: 50vw; --mid2-y: 40px; --rotation2: 4deg;
    --mid3-x: 75vw; --mid3-y: -15px; --rotation3: -1deg;
    --end-x: 100vw; --end-y: 25px;
    /* Fog path */
    --fog-start-x: -150px; --fog-start-y: -5px;
    --fog-mid1-x: 20vw; --fog-mid1-y: 35px; --fog-rotation1: -3deg;
    --fog-mid2-x: 60vw; --fog-mid2-y: -25px; --fog-rotation2: 2deg;
    --fog-mid3-x: 80vw; --fog-mid3-y: 20px; --fog-rotation3: -1deg;
    --fog-end-x: 100vw; --fog-end-y: -10px;
}

.cloud:nth-child(3) { 
    top: 72%; 
    width: 70px; 
    height: 35px; 
    animation-duration: 128s; 
    animation-delay: -60s; 
    /* Cloud path - starts from top, goes bottom */
    --start-x: 60vw; --start-y: -100px;
    --mid1-x: 40vw; --mid1-y: 25vh; --rotation1: 1deg;
    --mid2-x: 70vw; --mid2-y: 50vh; --rotation2: -3deg;
    --mid3-x: 30vw; --mid3-y: 75vh; --rotation3: 2deg;
    --end-x: 80vw; --end-y: 100vh;
    /* Fog path */
    --fog-start-x: 50vw; --fog-start-y: -120px;
    --fog-mid1-x: 70vw; --fog-mid1-y: 30vh; --fog-rotation1: 4deg;
    --fog-mid2-x: 20vw; --fog-mid2-y: 60vh; --fog-rotation2: -2deg;
    --fog-mid3-x: 60vw; --fog-mid3-y: 80vh; --fog-rotation3: 3deg;
    --fog-end-x: 40vw; --fog-end-y: 100vh;
}

.cloud:nth-child(4) { 
    top: 88%; 
    width: 90px; 
    height: 45px; 
    animation-duration: 142s; 
    animation-delay: -15s; 
    /* Cloud path - starts from bottom, goes top */
    --start-x: 30vw; --start-y: 100vh;
    --mid1-x: 60vw; --mid1-y: 70vh; --rotation1: -4deg;
    --mid2-x: 20vw; --mid2-y: 40vh; --rotation2: 2deg;
    --mid3-x: 80vw; --mid3-y: 20vh; --rotation3: -1deg;
    --end-x: 50vw; --end-y: -100px;
    /* Fog path */
    --fog-start-x: 40vw; --fog-start-y: 100vh;
    --fog-mid1-x: 10vw; --fog-mid1-y: 65vh; --fog-rotation1: -2deg;
    --fog-mid2-x: 70vw; --fog-mid2-y: 35vh; --fog-rotation2: 3deg;
    --fog-mid3-x: 30vw; --fog-mid3-y: 15vh; --fog-rotation3: -4deg;
    --fog-end-x: 90vw; --fog-end-y: -120px;
}

.cloud:nth-child(5) { 
    top: 18%; 
    width: 50px; 
    height: 25px; 
    animation-duration: 112s; 
    animation-delay: -35s; 
    /* Cloud path - diagonal from top-right to bottom-left */
    --start-x: 100vw; --start-y: -80px;
    --mid1-x: 75vw; --mid1-y: 20vh; --rotation1: 3deg;
    --mid2-x: 45vw; --mid2-y: 50vh; --rotation2: -1deg;
    --mid3-x: 25vw; --mid3-y: 80vh; --rotation3: 2deg;
    --end-x: -100px; --end-y: 100vh;
    /* Fog path */
    --fog-start-x: 100vw; --fog-start-y: -60px;
    --fog-mid1-x: 80vw; --fog-mid1-y: 25vh; --fog-rotation1: 1deg;
    --fog-mid2-x: 50vw; --fog-mid2-y: 55vh; --fog-rotation2: -3deg;
    --fog-mid3-x: 20vw; --fog-mid3-y: 75vh; --fog-rotation3: 2deg;
    --fog-end-x: -120px; --fog-end-y: 100vh;
}

.cloud:nth-child(6) { 
    top: 52%; 
    width: 65px; 
    height: 32px; 
    animation-duration: 132s; 
    animation-delay: -70s; 
    /* Cloud path - diagonal from bottom-left to top-right */
    --start-x: -80px; --start-y: 100vh;
    --mid1-x: 20vw; --mid1-y: 70vh; --rotation1: -2deg;
    --mid2-x: 55vw; --mid2-y: 40vh; --rotation2: 3deg;
    --mid3-x: 80vw; --mid3-y: 15vh; --rotation3: -1deg;
    --end-x: 100vw; --end-y: -80px;
    /* Fog path */
    --fog-start-x: -100px; --fog-start-y: 100vh;
    --fog-mid1-x: 25vw; --fog-mid1-y: 75vh; --fog-rotation1: 3deg;
    --fog-mid2-x: 60vw; --fog-mid2-y: 45vh; --fog-rotation2: -2deg;
    --fog-mid3-x: 85vw; --fog-mid3-y: 20vh; --fog-rotation3: 1deg;
    --fog-end-x: 100vw; --fog-end-y: -100px;
}

.cloud:nth-child(7) { 
    top: 82%; 
    width: 75px; 
    height: 38px; 
    animation-duration: 138s; 
    animation-delay: -25s; 
    /* Cloud path - starts from top-left, goes bottom-right */
    --start-x: -90px; --start-y: -70px;
    --mid1-x: 30vw; --mid1-y: 30vh; --rotation1: 2deg;
    --mid2-x: 60vw; --mid2-y: 60vh; --rotation2: -3deg;
    --mid3-x: 85vw; --mid3-y: 85vh; --rotation3: 1deg;
    --end-x: 100vw; --end-y: 100vh;
    /* Fog path */
    --fog-start-x: -110px; --fog-start-y: -90px;
    --fog-mid1-x: 25vw; --fog-mid1-y: 25vh; --fog-rotation1: -1deg;
    --fog-mid2-x: 65vw; --fog-mid2-y: 65vh; --fog-rotation2: 4deg;
    --fog-mid3-x: 90vw; --fog-mid3-y: 90vh; --fog-rotation3: -2deg;
    --fog-end-x: 100vw; --fog-end-y: 100vh;
}

.cloud:nth-child(8) { 
    top: 95%; 
    width: 85px; 
    height: 42px; 
    animation-duration: 150s; 
    animation-delay: -50s; 
    /* Cloud path - circular motion from center */
    --start-x: 50vw; --start-y: 50vh;
    --mid1-x: 80vw; --mid1-y: 30vh; --rotation1: -3deg;
    --mid2-x: 70vw; --mid2-y: 80vh; --rotation2: 2deg;
    --mid3-x: 20vw; --mid3-y: 70vh; --rotation3: -1deg;
    --end-x: 30vw; --end-y: 20vh;
    /* Fog path */
    --fog-start-x: 45vw; --fog-start-y: 45vh;
    --fog-mid1-x: 75vw; --fog-mid1-y: 25vh; --fog-rotation1: 2deg;
    --fog-mid2-x: 85vw; --fog-mid2-y: 75vh; --fog-rotation2: -3deg;
    --fog-mid3-x: 25vw; --fog-mid3-y: 85vh; --fog-rotation3: 1deg;
    --fog-end-x: 15vw; --fog-end-y: 15vh;
}

.cloud:nth-child(9) { 
    top: 3%; 
    width: 55px; 
    height: 28px; 
    animation-duration: 123s; 
    animation-delay: -40s; 
    /* Cloud path - starts from center, goes left */
    --start-x: 50vw; --start-y: 20vh;
    --mid1-x: 30vw; --mid1-y: 10vh; --rotation1: 2deg;
    --mid2-x: 15vw; --mid2-y: 30vh; --rotation2: -3deg;
    --mid3-x: 5vw; --mid3-y: 15vh; --rotation3: 1deg;
    --end-x: -120px; --end-y: 25vh;
    /* Fog path */
    --fog-start-x: 55vw; --fog-start-y: 25vh;
    --fog-mid1-x: 35vw; --fog-mid1-y: 15vh; --fog-rotation1: 3deg;
    --fog-mid2-x: 20vw; --fog-mid2-y: 35vh; --fog-rotation2: -1deg;
    --fog-mid3-x: 10vw; --fog-mid3-y: 20vh; --fog-rotation3: 2deg;
    --fog-end-x: -100px; --fog-end-y: 30vh;
}

.cloud:nth-child(10) { 
    top: 98%; 
    width: 45px; 
    height: 22px; 
    animation-duration: 117s; 
    animation-delay: -65s; 
    /* Cloud path - starts from right bottom, goes center */
    --start-x: 100vw; --start-y: 90vh;
    --mid1-x: 80vw; --mid1-y: 75vh; --rotation1: -2deg;
    --mid2-x: 60vw; --mid2-y: 85vh; --rotation2: 3deg;
    --mid3-x: 40vw; --mid3-y: 70vh; --rotation3: -1deg;
    --end-x: 20vw; --end-y: 80vh;
    /* Fog path */
    --fog-start-x: 100vw; --fog-start-y: 85vh;
    --fog-mid1-x: 75vw; --fog-mid1-y: 70vh; --fog-rotation1: -3deg;
    --fog-mid2-x: 55vw; --fog-mid2-y: 90vh; --fog-rotation2: 2deg;
    --fog-mid3-x: 35vw; --fog-mid3-y: 75vh; --fog-rotation3: -2deg;
    --fog-end-x: 15vw; --fog-end-y: 85vh;
}

.cloud:nth-child(11) { 
    top: 38%; 
    width: 95px; 
    height: 48px; 
    animation-duration: 158s; 
    animation-delay: -30s; 
    /* Cloud path - wavy horizontal movement */
    --start-x: -150px; --start-y: 40vh;
    --mid1-x: 20vw; --mid1-y: 30vh; --rotation1: 4deg;
    --mid2-x: 50vw; --mid2-y: 50vh; --rotation2: -2deg;
    --mid3-x: 80vw; --mid3-y: 35vh; --rotation3: 3deg;
    --end-x: 100vw; --end-y: 45vh;
    /* Fog path */
    --fog-start-x: -180px; --fog-start-y: 35vh;
    --fog-mid1-x: 15vw; --fog-mid1-y: 25vh; --fog-rotation1: 5deg;
    --fog-mid2-x: 45vw; --fog-mid2-y: 55vh; --fog-rotation2: -3deg;
    --fog-mid3-x: 75vw; --fog-mid3-y: 30vh; --fog-rotation3: 4deg;
    --fog-end-x: 100vw; --fog-end-y: 40vh;
}

.cloud:nth-child(12) { 
    top: 62%; 
    width: 40px; 
    height: 20px; 
    animation-duration: 108s; 
    animation-delay: -55s; 
    /* Cloud path - vertical zig-zag */
    --start-x: 80vw; --start-y: -80px;
    --mid1-x: 70vw; --mid1-y: 20vh; --rotation1: -3deg;
    --mid2-x: 90vw; --mid2-y: 50vh; --rotation2: 2deg;
    --mid3-x: 75vw; --mid3-y: 80vh; --rotation3: -1deg;
    --end-x: 85vw; --end-y: 100vh;
    /* Fog path */
    --fog-start-x: 75vw; --fog-start-y: -100px;
    --fog-mid1-x: 65vw; --fog-mid1-y: 25vh; --fog-rotation1: -4deg;
    --fog-mid2-x: 85vw; --fog-mid2-y: 55vh; --fog-rotation2: 3deg;
    --fog-mid3-x: 70vw; --fog-mid3-y: 85vh; --fog-rotation3: -2deg;
    --fog-end-x: 80vw; --fog-end-y: 100vh;
}

.cloud:nth-child(13) { 
    top: 12%; 
    width: 68px; 
    height: 34px; 
    animation-duration: 132s; 
    animation-delay: -10s; 
    /* Cloud path - spiral motion */
    --start-x: 10vw; --start-y: 10vh;
    --mid1-x: 70vw; --mid1-y: 25vh; --rotation1: 5deg;
    --mid2-x: 60vw; --mid2-y: 70vh; --rotation2: -4deg;
    --mid3-x: 20vw; --mid3-y: 60vh; --rotation3: 3deg;
    --end-x: 30vw; --end-y: 20vh;
    /* Fog path */
    --fog-start-x: 15vw; --fog-start-y: 15vh;
    --fog-mid1-x: 75vw; --fog-mid1-y: 30vh; --fog-rotation1: 6deg;
    --fog-mid2-x: 65vw; --fog-mid2-y: 75vh; --fog-rotation2: -5deg;
    --fog-mid3-x: 25vw; --fog-mid3-y: 65vh; --fog-rotation3: 4deg;
    --fog-end-x: 35vw; --fog-end-y: 25vh;
}

.cloud:nth-child(14) { 
    top: 78%; 
    width: 52px; 
    height: 26px; 
    animation-duration: 144s; 
    animation-delay: -75s; 
    /* Cloud path - diagonal bounce */
    --start-x: 100vw; --start-y: 100vh;
    --mid1-x: 75vw; --mid1-y: 60vh; --rotation1: -2deg;
    --mid2-x: 50vw; --mid2-y: 90vh; --rotation2: 3deg;
    --mid3-x: 25vw; --mid3-y: 50vh; --rotation3: -4deg;
    --end-x: -100px; --end-y: 80vh;
    /* Fog path */
    --fog-start-x: 100vw; --fog-start-y: 95vh;
    --fog-mid1-x: 70vw; --fog-mid1-y: 55vh; --fog-rotation1: -3deg;
    --fog-mid2-x: 45vw; --fog-mid2-y: 85vh; --fog-rotation2: 4deg;
    --fog-mid3-x: 20vw; --fog-mid3-y: 45vh; --fog-rotation3: -5deg;
    --fog-end-x: -120px; --fog-end-y: 75vh;
}

.cloud:nth-child(15) { 
    top: 6%; 
    width: 38px; 
    height: 19px; 
    animation-duration: 102s; 
    animation-delay: -45s; 
    /* Cloud path - gentle arc */
    --start-x: 40vw; --start-y: -60px;
    --mid1-x: 20vw; --mid1-y: 20vh; --rotation1: 1deg;
    --mid2-x: 60vw; --mid2-y: 35vh; --rotation2: -2deg;
    --mid3-x: 30vw; --mid3-y: 50vh; --rotation3: 2deg;
    --end-x: 70vw; --end-y: 100vh;
    /* Fog path */
    --fog-start-x: 35vw; --fog-start-y: -80px;
    --fog-mid1-x: 15vw; --fog-mid1-y: 25vh; --fog-rotation1: 2deg;
    --fog-mid2-x: 55vw; --fog-mid2-y: 40vh; --fog-rotation2: -3deg;
    --fog-mid3-x: 25vw; --fog-mid3-y: 55vh; --fog-rotation3: 3deg;
    --fog-end-x: 65vw; --fog-end-y: 100vh;
}