/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Fallback for older Safari versions */
    background: #1a1a3a;
    background: -webkit-linear-gradient(45deg, #0f0f23 0%, #1a1a3a 50%, #2d1b69 100%);
    background: -moz-linear-gradient(45deg, #0f0f23 0%, #1a1a3a 50%, #2d1b69 100%);
    background: linear-gradient(45deg, #0f0f23 0%, #1a1a3a 50%, #2d1b69 100%);
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Starry background layers */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}

/* Layer 1: Bright stars with varied twinkling */
.stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 17px 23px, rgba(249, 243, 233, 0.9), transparent),
        radial-gradient(1px 1px at 63px 41px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 127px 19px, rgba(249, 243, 233, 0.7), transparent),
        radial-gradient(1px 1px at 89px 73px, rgba(249, 243, 233, 0.9), transparent),
        radial-gradient(2px 2px at 173px 67px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 31px 87px, rgba(249, 243, 233, 0.8), transparent),
        radial-gradient(2px 2px at 145px 11px, rgba(249, 243, 233, 0.7), transparent),
        radial-gradient(1px 1px at 191px 43px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 47px 59px, rgba(249, 243, 233, 0.6), transparent),
        radial-gradient(1px 1px at 113px 91px, rgba(249, 243, 233, 0.8), transparent);
    background-repeat: repeat;
    background-size: 220px 110px;
    opacity: 0.8;
}

/* Layer 2: Medium stars with different timing */
.stars::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 71px 37px, rgba(249, 243, 233, 0.6), transparent),
        radial-gradient(2px 2px at 139px 83px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 23px 71px, rgba(249, 243, 233, 0.8), transparent),
        radial-gradient(3px 3px at 197px 29px, rgba(249, 243, 233, 0.4), transparent),
        radial-gradient(1px 1px at 101px 17px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 53px 97px, rgba(249, 243, 233, 0.5), transparent),
        radial-gradient(1px 1px at 167px 61px, rgba(249, 243, 233, 0.9), transparent),
        radial-gradient(2px 2px at 37px 13px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 181px 79px, rgba(249, 243, 233, 0.7), transparent),
        radial-gradient(1px 1px at 79px 53px, rgba(249, 243, 233, 0.5), transparent);
    background-size: 280px 140px;
    opacity: 0.7;
}

/* Enhanced twinkling animations */
@-webkit-keyframes twinkle1 {
    0% { opacity: 0.2; }
    25% { opacity: 0.8; }
    50% { opacity: 0.4; }
    75% { opacity: 1; }
    100% { opacity: 0.2; }
}

@-moz-keyframes twinkle1 {
    0% { opacity: 0.2; }
    25% { opacity: 0.8; }
    50% { opacity: 0.4; }
    75% { opacity: 1; }
    100% { opacity: 0.2; }
}

@keyframes twinkle1 {
    0% { opacity: 0.2; }
    25% { opacity: 0.8; }
    50% { opacity: 0.4; }
    75% { opacity: 1; }
    100% { opacity: 0.2; }
}

@-webkit-keyframes twinkle2 {
    0% { opacity: 0.1; }
    20% { opacity: 0.6; }
    40% { opacity: 0.9; }
    60% { opacity: 0.3; }
    80% { opacity: 0.7; }
    100% { opacity: 0.1; }
}

@-moz-keyframes twinkle2 {
    0% { opacity: 0.1; }
    20% { opacity: 0.6; }
    40% { opacity: 0.9; }
    60% { opacity: 0.3; }
    80% { opacity: 0.7; }
    100% { opacity: 0.1; }
}

@keyframes twinkle2 {
    0% { opacity: 0.1; }
    20% { opacity: 0.6; }
    40% { opacity: 0.9; }
    60% { opacity: 0.3; }
    80% { opacity: 0.7; }
    100% { opacity: 0.1; }
}

/* Layer 3: Dim background stars */
.dim-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    will-change: transform;
}

.dim-stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 41px 67px, rgba(249, 243, 233, 0.3), transparent),
        radial-gradient(1px 1px at 83px 23px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 157px 89px, rgba(249, 243, 233, 0.4), transparent),
        radial-gradient(1px 1px at 29px 45px, rgba(249, 243, 233, 0.2), transparent),
        radial-gradient(1px 1px at 193px 31px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 67px 91px, rgba(249, 243, 233, 0.2), transparent),
        radial-gradient(1px 1px at 119px 17px, rgba(249, 243, 233, 0.4), transparent),
        radial-gradient(1px 1px at 13px 73px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 177px 59px, rgba(249, 243, 233, 0.3), transparent),
        radial-gradient(1px 1px at 97px 39px, rgba(249, 243, 233, 0.2), transparent);
    background-size: 250px 120px;
    opacity: 0.5;
}

@-webkit-keyframes twinkle3 {
    0% { opacity: 0.1; }
    30% { opacity: 0.4; }
    70% { opacity: 0.2; }
    100% { opacity: 0.1; }
}

@-moz-keyframes twinkle3 {
    0% { opacity: 0.1; }
    30% { opacity: 0.4; }
    70% { opacity: 0.2; }
    100% { opacity: 0.1; }
}

@keyframes twinkle3 {
    0% { opacity: 0.1; }
    30% { opacity: 0.4; }
    70% { opacity: 0.2; }
    100% { opacity: 0.1; }
}

/* Individual twinkling stars - only 1-2 stars twinkle at a time */
.twinkling-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.twinkle-star {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 243, 233, 1) 0%, transparent 70%);
    box-shadow: 0 0 3px rgba(249, 243, 233, 0.8);
}

.twinkle-star-1 {
    width: 3px;
    height: 3px;
    top: 25%;
    left: 35%;
    -webkit-animation: individualTwinkle 6s ease-in-out infinite;
    -moz-animation: individualTwinkle 6s ease-in-out infinite;
    animation: individualTwinkle 6s ease-in-out infinite;
}

.twinkle-star-2 {
    width: 2px;
    height: 2px;
    top: 65%;
    left: 75%;
    -webkit-animation: individualTwinkle 8s ease-in-out infinite;
    -moz-animation: individualTwinkle 8s ease-in-out infinite;
    animation: individualTwinkle 8s ease-in-out infinite;
    -webkit-animation-delay: 3s;
    -moz-animation-delay: 3s;
    animation-delay: 3s;
}

.twinkle-star-3 {
    width: 2px;
    height: 2px;
    top: 40%;
    left: 15%;
    -webkit-animation: individualTwinkle 7s ease-in-out infinite;
    -moz-animation: individualTwinkle 7s ease-in-out infinite;
    animation: individualTwinkle 7s ease-in-out infinite;
    -webkit-animation-delay: 5.5s;
    -moz-animation-delay: 5.5s;
    animation-delay: 5.5s;
}

.twinkle-star-4 {
    width: 2px;
    height: 2px;
    top: 55%;
    left: 50%;
    -webkit-animation: individualTwinkle 9s ease-in-out infinite;
    -moz-animation: individualTwinkle 9s ease-in-out infinite;
    animation: individualTwinkle 9s ease-in-out infinite;
    -webkit-animation-delay: 1.5s;
    -moz-animation-delay: 1.5s;
    animation-delay: 1.5s;
}

.twinkle-star-5 {
    width: 3px;
    height: 3px;
    top: 20%;
    left: 85%;
    -webkit-animation: individualTwinkle 7.5s ease-in-out infinite;
    -moz-animation: individualTwinkle 7.5s ease-in-out infinite;
    animation: individualTwinkle 7.5s ease-in-out infinite;
    -webkit-animation-delay: 4s;
    -moz-animation-delay: 4s;
    animation-delay: 4s;
}

@-webkit-keyframes individualTwinkle {
    0%, 100% {
        opacity: 0.1;
        -webkit-transform: scale(0.8);
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
}

@-moz-keyframes individualTwinkle {
    0%, 100% {
        opacity: 0.1;
        -moz-transform: scale(0.8);
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        -moz-transform: scale(1.2);
        transform: scale(1.2);
    }
}

@keyframes individualTwinkle {
    0%, 100% {
        opacity: 0.1;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Shooting stars */
.shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    will-change: opacity, filter;
}

.shooting-stars::before,
.shooting-stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* Add third shooting star using a pseudo-element trick */
.shooting-stars {
    background: -webkit-radial-gradient(2px 2px, rgba(255, 255, 255, 0.9) 0%, transparent 50%);
    background: -moz-radial-gradient(2px 2px, rgba(255, 255, 255, 0.9) 0%, transparent 50%);
    background: radial-gradient(2px 2px, rgba(255, 255, 255, 0.9) 0%, transparent 50%);
    background-size: 2px 2px;
    background-position: -5% 40%;
    background-repeat: no-repeat;
    -webkit-animation: shootingStar3 15s infinite;
    -moz-animation: shootingStar3 15s infinite;
    animation: shootingStar3 15s infinite;
    -webkit-animation-delay: 10s;
    -moz-animation-delay: 10s;
    animation-delay: 10s;
}

.shooting-stars::before {
    top: 20%;
    left: -5%;
    -webkit-animation: shootingStar1 8s infinite;
    -moz-animation: shootingStar1 8s infinite;
    animation: shootingStar1 8s infinite;
    -webkit-animation-delay: 2s;
    -moz-animation-delay: 2s;
    animation-delay: 2s;
}

.shooting-stars::after {
    top: 60%;
    left: -5%;
    -webkit-animation: shootingStar2 12s infinite;
    -moz-animation: shootingStar2 12s infinite;
    animation: shootingStar2 12s infinite;
    -webkit-animation-delay: 6s;
    -moz-animation-delay: 6s;
    animation-delay: 6s;
}

@-webkit-keyframes shootingStar1 {
    0% {
        -webkit-transform: translateX(0) translateY(0);
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    5% {
        opacity: 1;
        -webkit-box-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
                    -20px 0 15px rgba(255, 255, 255, 0.3),
                    -40px 0 25px rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
                    -20px 0 15px rgba(255, 255, 255, 0.3),
                    -40px 0 25px rgba(255, 255, 255, 0.1);
    }
    15% {
        -webkit-transform: translateX(110vw) translateY(20vh);
        transform: translateX(110vw) translateY(20vh);
        opacity: 1;
        -webkit-box-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
                    -20px 0 15px rgba(255, 255, 255, 0.3),
                    -40px 0 25px rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
                    -20px 0 15px rgba(255, 255, 255, 0.3),
                    -40px 0 25px rgba(255, 255, 255, 0.1);
    }
    20% {
        opacity: 0;
    }
    100% {
        -webkit-transform: translateX(110vw) translateY(20vh);
        transform: translateX(110vw) translateY(20vh);
        opacity: 0;
    }
}

@-moz-keyframes shootingStar1 {
    0% {
        -moz-transform: translateX(0) translateY(0);
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    5% {
        opacity: 1;
        -moz-box-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
                    -20px 0 15px rgba(255, 255, 255, 0.3),
                    -40px 0 25px rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
                    -20px 0 15px rgba(255, 255, 255, 0.3),
                    -40px 0 25px rgba(255, 255, 255, 0.1);
    }
    15% {
        -moz-transform: translateX(110vw) translateY(20vh);
        transform: translateX(110vw) translateY(20vh);
        opacity: 1;
        -moz-box-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
                    -20px 0 15px rgba(255, 255, 255, 0.3),
                    -40px 0 25px rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
                    -20px 0 15px rgba(255, 255, 255, 0.3),
                    -40px 0 25px rgba(255, 255, 255, 0.1);
    }
    20% {
        opacity: 0;
    }
    100% {
        -moz-transform: translateX(110vw) translateY(20vh);
        transform: translateX(110vw) translateY(20vh);
        opacity: 0;
    }
}

@keyframes shootingStar1 {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    5% {
        opacity: 1;
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
                    -20px 0 15px rgba(255, 255, 255, 0.3),
                    -40px 0 25px rgba(255, 255, 255, 0.1);
    }
    15% {
        transform: translateX(110vw) translateY(20vh);
        opacity: 1;
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
                    -20px 0 15px rgba(255, 255, 255, 0.3),
                    -40px 0 25px rgba(255, 255, 255, 0.1);
    }
    20% {
        opacity: 0;
    }
    100% {
        transform: translateX(110vw) translateY(20vh);
        opacity: 0;
    }
}

@-webkit-keyframes shootingStar2 {
    0% {
        -webkit-transform: translateX(0) translateY(0);
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    3% {
        opacity: 1;
        -webkit-box-shadow: 0 0 8px rgba(255, 255, 255, 0.9),
                    -25px 0 20px rgba(255, 255, 255, 0.4),
                    -50px 0 35px rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.9),
                    -25px 0 20px rgba(255, 255, 255, 0.4),
                    -50px 0 35px rgba(255, 255, 255, 0.1);
    }
    12% {
        -webkit-transform: translateX(110vw) translateY(15vh);
        transform: translateX(110vw) translateY(15vh);
        opacity: 1;
        -webkit-box-shadow: 0 0 8px rgba(255, 255, 255, 0.9),
                    -25px 0 20px rgba(255, 255, 255, 0.4),
                    -50px 0 35px rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.9),
                    -25px 0 20px rgba(255, 255, 255, 0.4),
                    -50px 0 35px rgba(255, 255, 255, 0.1);
    }
    17% {
        opacity: 0;
    }
    100% {
        -webkit-transform: translateX(110vw) translateY(15vh);
        transform: translateX(110vw) translateY(15vh);
        opacity: 0;
    }
}

@-moz-keyframes shootingStar2 {
    0% {
        -moz-transform: translateX(0) translateY(0);
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    3% {
        opacity: 1;
        -moz-box-shadow: 0 0 8px rgba(255, 255, 255, 0.9),
                    -25px 0 20px rgba(255, 255, 255, 0.4),
                    -50px 0 35px rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.9),
                    -25px 0 20px rgba(255, 255, 255, 0.4),
                    -50px 0 35px rgba(255, 255, 255, 0.1);
    }
    12% {
        -moz-transform: translateX(110vw) translateY(15vh);
        transform: translateX(110vw) translateY(15vh);
        opacity: 1;
        -moz-box-shadow: 0 0 8px rgba(255, 255, 255, 0.9),
                    -25px 0 20px rgba(255, 255, 255, 0.4),
                    -50px 0 35px rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.9),
                    -25px 0 20px rgba(255, 255, 255, 0.4),
                    -50px 0 35px rgba(255, 255, 255, 0.1);
    }
    17% {
        opacity: 0;
    }
    100% {
        -moz-transform: translateX(110vw) translateY(15vh);
        transform: translateX(110vw) translateY(15vh);
        opacity: 0;
    }
}

@keyframes shootingStar2 {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    3% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.9),
                    -25px 0 20px rgba(255, 255, 255, 0.4),
                    -50px 0 35px rgba(255, 255, 255, 0.1);
    }
    12% {
        transform: translateX(110vw) translateY(15vh);
        opacity: 1;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.9),
                    -25px 0 20px rgba(255, 255, 255, 0.4),
                    -50px 0 35px rgba(255, 255, 255, 0.1);
    }
    17% {
        opacity: 0;
    }
    100% {
        transform: translateX(110vw) translateY(15vh);
        opacity: 0;
    }
}

@-webkit-keyframes shootingStar3 {
    0% {
        background-position: -5% 40%;
        opacity: 0;
    }
    4% {
        opacity: 1;
        -webkit-filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8))
                drop-shadow(-20px 0 15px rgba(255, 255, 255, 0.3));
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8))
                drop-shadow(-20px 0 15px rgba(255, 255, 255, 0.3));
    }
    14% {
        background-position: 105% 50%;
        opacity: 1;
        -webkit-filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8))
                drop-shadow(-20px 0 15px rgba(255, 255, 255, 0.3));
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8))
                drop-shadow(-20px 0 15px rgba(255, 255, 255, 0.3));
    }
    20% {
        opacity: 0;
    }
    100% {
        background-position: 105% 50%;
        opacity: 0;
    }
}

@-moz-keyframes shootingStar3 {
    0% {
        background-position: -5% 40%;
        opacity: 0;
    }
    4% {
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8))
                drop-shadow(-20px 0 15px rgba(255, 255, 255, 0.3));
    }
    14% {
        background-position: 105% 50%;
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8))
                drop-shadow(-20px 0 15px rgba(255, 255, 255, 0.3));
    }
    20% {
        opacity: 0;
    }
    100% {
        background-position: 105% 50%;
        opacity: 0;
    }
}

@keyframes shootingStar3 {
    0% {
        background-position: -5% 40%;
        opacity: 0;
    }
    4% {
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8))
                drop-shadow(-20px 0 15px rgba(255, 255, 255, 0.3));
    }
    14% {
        background-position: 105% 50%;
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8))
                drop-shadow(-20px 0 15px rgba(255, 255, 255, 0.3));
    }
    20% {
        opacity: 0;
    }
    100% {
        background-position: 105% 50%;
        opacity: 0;
    }
}

/* Light clouds */
.clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}

.clouds::before,
.clouds::after {
    content: '';
    position: absolute;
    background: rgba(200, 200, 220, 0.15);
    border-radius: 50px;
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    filter: blur(5px);
}

.clouds::before {
    width: 180px;
    height: 70px;
    top: 20%;
    left: -200px;
    -webkit-animation: driftCloud1 45s infinite linear;
    -moz-animation: driftCloud1 45s infinite linear;
    animation: driftCloud1 45s infinite linear;
}

.clouds::after {
    width: 250px;
    height: 80px;
    top: 10%;
    left: -250px;
    -webkit-animation: driftCloud2 60s infinite linear;
    -moz-animation: driftCloud2 60s infinite linear;
    animation: driftCloud2 60s infinite linear;
    -webkit-animation-delay: 25s;
    -moz-animation-delay: 25s;
    animation-delay: 25s;
}

@-webkit-keyframes driftCloud1 {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        -webkit-transform: translateX(calc(100vw + 200px));
        transform: translateX(calc(100vw + 200px));
        opacity: 0;
    }
}

@-moz-keyframes driftCloud1 {
    0% {
        -moz-transform: translateX(0);
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        -moz-transform: translateX(calc(100vw + 200px));
        transform: translateX(calc(100vw + 200px));
        opacity: 0;
    }
}

@keyframes driftCloud1 {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 200px));
        opacity: 0;
    }
}

@-webkit-keyframes driftCloud2 {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        -webkit-transform: translateX(calc(100vw + 250px));
        transform: translateX(calc(100vw + 250px));
        opacity: 0;
    }
}

@-moz-keyframes driftCloud2 {
    0% {
        -moz-transform: translateX(0);
        transform: translateX(0);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        -moz-transform: translateX(calc(100vw + 250px));
        transform: translateX(calc(100vw + 250px));
        opacity: 0;
    }
}

@keyframes driftCloud2 {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 250px));
        opacity: 0;
    }
}

/* Dense fog layer */
.fog {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    pointer-events: none;
    z-index: -1;
    background: -webkit-linear-gradient(to top,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(200, 200, 220, 0.2) 30%,
        rgba(150, 150, 180, 0.1) 60%,
        transparent 100%);
    background: -moz-linear-gradient(to top,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(200, 200, 220, 0.2) 30%,
        rgba(150, 150, 180, 0.1) 60%,
        transparent 100%);
    background: linear-gradient(to top,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(200, 200, 220, 0.2) 30%,
        rgba(150, 150, 180, 0.1) 60%,
        transparent 100%);
    -webkit-filter: blur(8px);
    -moz-filter: blur(8px);
    filter: blur(8px);
    -webkit-animation: fogDrift 120s infinite ease-in-out;
    -moz-animation: fogDrift 120s infinite ease-in-out;
    animation: fogDrift 120s infinite ease-in-out;
}

@-webkit-keyframes fogDrift {
    0%, 100% {
        -webkit-transform: translateX(-10px) scale(1);
        transform: translateX(-10px) scale(1);
        opacity: 0.8;
    }
    50% {
        -webkit-transform: translateX(10px) scale(1.05);
        transform: translateX(10px) scale(1.05);
        opacity: 1;
    }
}

@-moz-keyframes fogDrift {
    0%, 100% {
        -moz-transform: translateX(-10px) scale(1);
        transform: translateX(-10px) scale(1);
        opacity: 0.8;
    }
    50% {
        -moz-transform: translateX(10px) scale(1.05);
        transform: translateX(10px) scale(1.05);
        opacity: 1;
    }
}

@keyframes fogDrift {
    0%, 100% {
        transform: translateX(-10px) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateX(10px) scale(1.05);
        opacity: 1;
    }
}

/* Additional mist layers */
.mist {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}

.mist::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 60%;
    top: 30%;
    left: -10%;
    background: -webkit-radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(200, 200, 220, 0.05) 40%,
        transparent 70%);
    background: -moz-radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(200, 200, 220, 0.05) 40%,
        transparent 70%);
    background: radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(200, 200, 220, 0.05) 40%,
        transparent 70%);
    -webkit-filter: blur(12px);
    -moz-filter: blur(12px);
    filter: blur(12px);
    -webkit-animation: mistFloat 90s infinite ease-in-out;
    -moz-animation: mistFloat 90s infinite ease-in-out;
    animation: mistFloat 90s infinite ease-in-out;
}

.mist::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 40%;
    top: 50%;
    left: 0;
    background: -webkit-radial-gradient(ellipse at 30% 70%,
        rgba(220, 220, 240, 0.06) 0%,
        rgba(180, 180, 200, 0.04) 50%,
        transparent 80%);
    background: -moz-radial-gradient(ellipse at 30% 70%,
        rgba(220, 220, 240, 0.06) 0%,
        rgba(180, 180, 200, 0.04) 50%,
        transparent 80%);
    background: radial-gradient(ellipse at 30% 70%,
        rgba(220, 220, 240, 0.06) 0%,
        rgba(180, 180, 200, 0.04) 50%,
        transparent 80%);
    -webkit-filter: blur(15px);
    -moz-filter: blur(15px);
    filter: blur(15px);
    -webkit-animation: mistFloat2 110s infinite ease-in-out reverse;
    -moz-animation: mistFloat2 110s infinite ease-in-out reverse;
    animation: mistFloat2 110s infinite ease-in-out reverse;
    -webkit-animation-delay: 45s;
    -moz-animation-delay: 45s;
    animation-delay: 45s;
}

@-webkit-keyframes mistFloat {
    0%, 100% {
        -webkit-transform: translateX(-5%) translateY(0) scale(1);
        transform: translateX(-5%) translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        -webkit-transform: translateX(5%) translateY(-2%) scale(1.1);
        transform: translateX(5%) translateY(-2%) scale(1.1);
        opacity: 0.9;
    }
}

@-moz-keyframes mistFloat {
    0%, 100% {
        -moz-transform: translateX(-5%) translateY(0) scale(1);
        transform: translateX(-5%) translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        -moz-transform: translateX(5%) translateY(-2%) scale(1.1);
        transform: translateX(5%) translateY(-2%) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes mistFloat {
    0%, 100% {
        transform: translateX(-5%) translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateX(5%) translateY(-2%) scale(1.1);
        opacity: 0.9;
    }
}

@-webkit-keyframes mistFloat2 {
    0%, 100% {
        -webkit-transform: translateX(0) translateY(0) scale(1);
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        -webkit-transform: translateX(-3%) translateY(1%) scale(0.95);
        transform: translateX(-3%) translateY(1%) scale(0.95);
        opacity: 1;
    }
}

@-moz-keyframes mistFloat2 {
    0%, 100% {
        -moz-transform: translateX(0) translateY(0) scale(1);
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        -moz-transform: translateX(-3%) translateY(1%) scale(0.95);
        transform: translateX(-3%) translateY(1%) scale(0.95);
        opacity: 1;
    }
}

@keyframes mistFloat2 {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-3%) translateY(1%) scale(0.95);
        opacity: 1;
    }
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgb(249, 243, 233);
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5),
                 0 0 10px rgba(249, 243, 233, 0.8),
                 0 0 20px rgba(249, 243, 233, 0.6),
                 0 0 30px rgba(249, 243, 233, 0.4);
}

p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgb(249, 243, 233);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4),
                 0 0 8px rgba(249, 243, 233, 0.6),
                 0 0 16px rgba(249, 243, 233, 0.4);
}

/* Discord section styling */
.discord-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1.5rem;
    padding: 15px 25px;
    background: rgba(249, 243, 233, 0.05);
    border: 1px solid rgba(249, 243, 233, 0.15);
    border-radius: 25px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.discord-section:hover {
    background: rgba(249, 243, 233, 0.08);
    border-color: rgba(249, 243, 233, 0.25);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 4px 20px rgba(249, 243, 233, 0.1);
    -moz-box-shadow: 0 4px 20px rgba(249, 243, 233, 0.1);
    box-shadow: 0 4px 20px rgba(249, 243, 233, 0.1);
}

.discord-logo {
    color: rgba(249, 243, 233, 0.8);
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.discord-section:hover .discord-logo {
    color: rgb(249, 243, 233);
}

.discord-text {
    font-size: 1rem;
    color: rgba(249, 243, 233, 0.8);
    font-weight: 500;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3),
                 0 0 6px rgba(249, 243, 233, 0.3);
}

.discord-section:hover .discord-text {
    color: rgb(249, 243, 233);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4),
                 0 0 8px rgba(249, 243, 233, 0.5);
}

.cta-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
    -moz-box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.cta-button:hover {
    background-color: #2980b9;
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
    -moz-box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
}

.cta-button:active {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .logo {
        max-width: 250px;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .discord-section {
        padding: 12px 20px;
        gap: 10px;
    }

    .discord-logo {
        width: 28px;
        height: 28px;
    }

    .discord-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 200px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .discord-section {
        padding: 10px 18px;
        gap: 8px;
    }

    .discord-logo {
        width: 24px;
        height: 24px;
    }

    .discord-text {
        font-size: 0.9rem;
    }
}

/* Raccoon corner element */
.raccoon-corner {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    z-index: 10;
    pointer-events: auto;
    opacity: 0.8;
    -webkit-filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    -webkit-animation: raccoonFloat 6s ease-in-out infinite;
    -moz-animation: raccoonFloat 6s ease-in-out infinite;
    animation: raccoonFloat 6s ease-in-out infinite;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-size: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.raccoon-corner:hover {
    opacity: 1;
}

/* Raccoon tooltip - comic book speech bubble */
.raccoon-tooltip {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #000;
    border-radius: 15px;
    padding: 10px 15px;
    max-width: 200px;
    min-width: 120px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 20;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 14px;
    color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.raccoon-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #000;
}

.raccoon-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid rgba(255, 255, 255, 0.95);
    margin-top: 3px;
}

.raccoon-corner:hover .raccoon-tooltip {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateX(-50%) translateY(-5px);
    -moz-transform: translateX(-50%) translateY(-5px);
    transform: translateX(-50%) translateY(-5px);
}

@-webkit-keyframes raccoonFloat {
    0%, 100% {
        -webkit-transform: translateY(0px);
        transform: translateY(0px);
    }
    50% {
        -webkit-transform: translateY(-5px);
        transform: translateY(-5px);
    }
}

@-moz-keyframes raccoonFloat {
    0%, 100% {
        -moz-transform: translateY(0px);
        transform: translateY(0px);
    }
    50% {
        -moz-transform: translateY(-5px);
        transform: translateY(-5px);
    }
}

@keyframes raccoonFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@-webkit-keyframes bubbleFloat {
    0%, 100% {
        -webkit-transform: translateX(-50%) translateY(0px);
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        -webkit-transform: translateX(-50%) translateY(-3px);
        transform: translateX(-50%) translateY(-3px);
    }
}

@-moz-keyframes bubbleFloat {
    0%, 100% {
        -moz-transform: translateX(-50%) translateY(0px);
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        -moz-transform: translateX(-50%) translateY(-3px);
        transform: translateX(-50%) translateY(-3px);
    }
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-3px);
    }
}

/* Responsive adjustments for raccoon */
@media (max-width: 768px) {
    .raccoon-corner {
        width: 80px;
        height: 80px;
        bottom: 40px;
        font-size: 80px;
    }

    .raccoon-tooltip {
        bottom: 100px;
        max-width: 180px;
        min-width: 100px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .raccoon-corner {
        width: 70px;
        height: 70px;
        bottom: 30px;
        font-size: 70px;
    }

    .raccoon-tooltip {
        bottom: 85px;
        max-width: 160px;
        min-width: 90px;
        padding: 6px 10px;
        font-size: 11px;
    }
}