/* Animated GIF Simulations using CSS */

/* Dancing Baby Animation */
.dancing-baby {
    width: 100px;
    height: 80px;
    background: linear-gradient(45deg, #FFB6C1, #FFF8DC);
    border: 2px solid #FF00FF;
    display: inline-block;
    position: relative;
    animation: dancingBaby 1s ease-in-out infinite;
    cursor: pointer;
}

.dancing-baby::before {
    content: '👶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    animation: babyDance 0.8s ease-in-out infinite alternate;
}

@keyframes dancingBaby {
    0%, 100% { transform: rotate(-2deg) scale(1); }
    25% { transform: rotate(2deg) scale(1.05); }
    50% { transform: rotate(-1deg) scale(0.95); }
    75% { transform: rotate(1deg) scale(1.02); }
}

@keyframes babyDance {
    0% { transform: translate(-50%, -50%) skew(-5deg, 0deg); }
    100% { transform: translate(-50%, -50%) skew(5deg, 0deg); }
}

/* Under Construction Worker */
.construction-worker {
    width: 80px;
    height: 60px;
    background: repeating-linear-gradient(
        45deg,
        #FFFF00,
        #FFFF00 10px,
        #FF8C00 10px,
        #FF8C00 20px
    );
    border: 2px dashed #000000;
    display: inline-block;
    position: relative;
    animation: constructionBlink 1.5s ease-in-out infinite;
}

.construction-worker::before {
    content: '👷‍♂️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    animation: workerMove 2s ease-in-out infinite;
}

@keyframes constructionBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

@keyframes workerMove {
    0%, 100% { transform: translate(-50%, -50%) rotate(-10deg); }
    50% { transform: translate(-50%, -50%) rotate(10deg); }
}

/* Spinning Logo */
.spinning-logo {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #FF00FF, #00FFFF);
    border: 3px solid #FFFF00;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    animation: spinLogo 3s linear infinite;
}

.spinning-logo::before {
    content: '🌐';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes spinLogo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes logoGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.5) saturate(1.5); }
}

/* Fire Animation */
.fire-gif {
    width: 80px;
    height: 60px;
    background: linear-gradient(0deg, #FF4500, #FF8C00, #FFD700);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    display: inline-block;
    position: relative;
    animation: fireFlicker 0.8s ease-in-out infinite alternate;
}

.fire-gif::before {
    content: '🔥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    animation: flameMove 1s ease-in-out infinite;
}

@keyframes fireFlicker {
    0% { transform: scale(1) skew(1deg); }
    100% { transform: scale(1.1) skew(-1deg); }
}

@keyframes flameMove {
    0%, 100% { transform: translate(-50%, -50%) rotate(-5deg) scale(1); }
    25% { transform: translate(-50%, -50%) rotate(5deg) scale(1.1); }
    50% { transform: translate(-50%, -50%) rotate(-3deg) scale(0.9); }
    75% { transform: translate(-50%, -50%) rotate(3deg) scale(1.05); }
}

/* Bouncing Ball */
.bouncing-ball {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #FF00FF, #8B008B);
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.2s ease-in-out infinite;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0) scale(1, 1); 
        border-radius: 50%; 
    }
    50% { 
        transform: translateY(-30px) scale(1.1, 0.9); 
        border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; 
    }
}

/* Starfield Animation */
.starfield {
    width: 200px;
    height: 100px;
    background: #000011;
    border: 2px solid #FFFFFF;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.starfield::before,
.starfield::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 50%;
    animation: starMove 3s linear infinite;
}

.starfield::before {
    top: 20%;
    left: 10%;
    animation-delay: -1s;
}

.starfield::after {
    top: 60%;
    left: 80%;
    animation-delay: -2s;
}

@keyframes starMove {
    0% { 
        transform: translateX(-20px); 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
    }
    90% { 
        opacity: 1; 
    }
    100% { 
        transform: translateX(220px); 
        opacity: 0; 
    }
}

/* Email Icon Animation */
.email-gif {
    width: 50px;
    height: 40px;
    background: linear-gradient(45deg, #87CEEB, #4682B4);
    border: 2px solid #000080;
    display: inline-block;
    position: relative;
    animation: emailPulse 2s ease-in-out infinite;
}

.email-gif::before {
    content: '📧';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    animation: newMail 3s ease-in-out infinite;
}

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

@keyframes newMail {
    0%, 90% { filter: brightness(1); }
    95% { filter: brightness(1.5); }
    100% { filter: brightness(1); }
}

/* Rainbow Divider */
.rainbow-divider {
    height: 10px;
    background: linear-gradient(90deg, 
        #FF0000, #FF8C00, #FFD700, #00FF00, 
        #00FFFF, #0000FF, #8B00FF, #FF1493
    );
    background-size: 200% 100%;
    animation: rainbowMove 3s linear infinite;
    margin: 10px 0;
}

@keyframes rainbowMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    font-size: 20px;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.7; 
    }
    25% { 
        transform: translateY(-20px) rotate(90deg); 
        opacity: 1; 
    }
    50% { 
        transform: translateY(-10px) rotate(180deg); 
        opacity: 0.8; 
    }
    75% { 
        transform: translateY(-30px) rotate(270deg); 
        opacity: 1; 
    }
}

/* Glitter Effect */
.glitter {
    position: relative;
    overflow: hidden;
}

.glitter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, transparent 1px, transparent 1px),
        radial-gradient(circle, #FFD700 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    animation: glitterMove 4s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes glitterMove {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Text Effects */
.rainbow-text {
    background: linear-gradient(45deg, 
        #FF0000, #FF8C00, #FFD700, #00FF00, 
        #00FFFF, #0000FF, #8B00FF
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowText 2s linear infinite;
    font-weight: bold;
}

@keyframes rainbowText {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.glow-text {
    color: #FFFFFF;
    text-shadow: 
        0 0 5px #00FFFF,
        0 0 10px #00FFFF,
        0 0 15px #00FFFF,
        0 0 20px #00FFFF;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { 
        text-shadow: 
            0 0 5px #00FFFF,
            0 0 10px #00FFFF,
            0 0 15px #00FFFF,
            0 0 20px #00FFFF;
    }
    to { 
        text-shadow: 
            0 0 10px #FF00FF,
            0 0 20px #FF00FF,
            0 0 30px #FF00FF,
            0 0 40px #FF00FF;
    }
}

/* Additional 90s Elements */

/* Spinning @ Symbol */
.spinning-at {
    display: inline-block;
    font-size: 24px;
    color: #FF00FF;
    animation: spinningAt 2s linear infinite;
    text-shadow: 0 0 10px #FF00FF;
    margin: 0 5px;
}

@keyframes spinningAt {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.2); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Flame Divider */
.flame-divider {
    width: 100%;
    height: 30px;
    background: repeating-linear-gradient(
        90deg,
        #FF4500 0px,
        #FF6347 10px,
        #FFD700 20px,
        #FF4500 30px
    );
    background-size: 30px 30px;
    animation: flameDividerMove 1s linear infinite;
    border-top: 2px solid #FF0000;
    border-bottom: 2px solid #FF0000;
    margin: 10px 0;
    position: relative;
}

.flame-divider::before {
    content: '🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    transform: translateY(-50%);
    animation: flameFlicker 0.5s ease-in-out infinite alternate;
    font-size: 12px;
}

@keyframes flameDividerMove {
    0% { background-position: 0px 0px; }
    100% { background-position: 30px 0px; }
}

@keyframes flameFlicker {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Blinking NEW Badge */
.new-badge {
    display: inline-block;
    background: linear-gradient(45deg, #FF0000, #FFFF00);
    color: #000000;
    font-weight: bold;
    font-size: 10px;
    padding: 2px 6px;
    border: 2px outset #C0C0C0;
    animation: newBadgeBlink 1s ease-in-out infinite;
    margin: 0 3px;
    text-shadow: 1px 1px 0px #FFFFFF;
}

@keyframes newBadgeBlink {
    0%, 50% { 
        background: linear-gradient(45deg, #FF0000, #FFFF00);
        transform: scale(1);
    }
    51%, 100% { 
        background: linear-gradient(45deg, #FFFF00, #FF0000);
        transform: scale(1.1);
    }
}

/* Rotating Skull */
.rotating-skull {
    display: inline-block;
    font-size: 20px;
    animation: rotateSkull 3s linear infinite;
    margin: 0 10px;
    filter: drop-shadow(0 0 5px #FF0000);
}

@keyframes rotateSkull {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(90deg) scale(1.2); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg) scale(1.2); }
    100% { transform: rotate(360deg); }
}

/* Walking Stick Figure */
.walking-figure {
    display: inline-block;
    font-size: 16px;
    animation: walkingFigure 2s ease-in-out infinite;
    margin: 0 5px;
}

@keyframes walkingFigure {
    0%, 100% { 
        transform: translateX(0) scaleX(1);
        content: '🚶‍♂️';
    }
    25% { 
        transform: translateX(20px) scaleX(1);
    }
    50% { 
        transform: translateX(40px) scaleX(-1);
    }
    75% { 
        transform: translateX(20px) scaleX(-1);
    }
}

/* Spinning Earth */
.spinning-earth {
    display: inline-block;
    font-size: 24px;
    animation: spinEarth 4s linear infinite;
    margin: 0 8px;
    filter: drop-shadow(0 0 8px #00FF00);
}

@keyframes spinEarth {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulsing Heart */
.pulsing-heart {
    display: inline-block;
    font-size: 20px;
    color: #FF1493;
    animation: pulseHeart 1s ease-in-out infinite;
    margin: 0 5px;
}

@keyframes pulseHeart {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.3);
        filter: brightness(1.5);
    }
}

/* Animated Warning Sign */
.warning-sign {
    display: inline-block;
    background: repeating-linear-gradient(
        45deg,
        #FFFF00 0px,
        #FFFF00 10px,
        #FF0000 10px,
        #FF0000 20px
    );
    color: #000000;
    font-weight: bold;
    padding: 5px 10px;
    border: 3px solid #000000;
    animation: warningBlink 0.8s ease-in-out infinite;
    font-family: Arial, sans-serif;
    text-shadow: 1px 1px 0px #FFFFFF;
}

@keyframes warningBlink {
    0%, 50% { 
        background-position: 0px 0px;
        transform: scale(1);
    }
    51%, 100% { 
        background-position: 20px 0px;
        transform: scale(1.05);
    }
}

/* Scrolling Banner */
.scrolling-banner {
    width: 100%;
    background: #000080;
    color: #FFFF00;
    padding: 5px 0;
    overflow: hidden;
    border-top: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 15s linear infinite;
    padding-left: 100%;
}

@keyframes scroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* Glowing Button */
.glow-button {
    background: linear-gradient(45deg, #FF00FF, #00FFFF);
    border: 2px outset #C0C0C0;
    color: #000000;
    font-weight: bold;
    padding: 5px 15px;
    cursor: pointer;
    animation: buttonGlow 2s ease-in-out infinite alternate;
    font-family: Arial, sans-serif;
    box-shadow: 0 0 10px #FF00FF;
}

@keyframes buttonGlow {
    0% { 
        box-shadow: 0 0 10px #FF00FF;
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 20px #00FFFF, 0 0 30px #FF00FF;
        transform: scale(1.05);
    }
}