/* ============================================
   EXTRA BEAUTIFUL ANIMATIONS
   Additional WOW Effects for NitroAir
   ============================================ */

/* ============================================
   FLOATING ANIMATION FOR CARDS
   ============================================ */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.glass-card {
    animation: float 3s ease-in-out infinite;
}

.glass-card:nth-child(2n) {
    animation-delay: 0.5s;
}

.glass-card:nth-child(3n) {
    animation-delay: 1s;
}

/* ============================================
   GRADIENT BORDER ANIMATION
   ============================================ */
@keyframes border-flow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.status-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4a90e2, #64b5f6, #4facfe, #00f2fe, #43e97b, #38f9d7);
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    animation: border-flow 3s ease infinite;
    transition: opacity 0.3s ease;
}

.status-card:hover::before {
    opacity: 1;
}

/* ============================================
   TEXT GRADIENT ANIMATION
   ============================================ */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text {
    background: linear-gradient(90deg, #4a90e2, #64b5f6, #4facfe, #00f2fe);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

/* ============================================
   AURORA BACKGROUND EFFECT
   ============================================ */
@keyframes aurora {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(-50%) rotate(0deg) scale(1);
    }
    33% {
        opacity: 0.5;
        transform: translateX(-40%) translateY(-60%) rotate(120deg) scale(1.1);
    }
    66% {
        opacity: 0.4;
        transform: translateX(-60%) translateY(-40%) rotate(240deg) scale(0.9);
    }
}

.space-hero-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    animation: aurora 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   HOVER GLOW EFFECT
   ============================================ */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(74, 144, 226, 0.6), 0 0 60px rgba(100, 181, 246, 0.4);
    }
}

.btn-wow:hover,
.btn-hero:hover {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* ============================================
   SHIMMER LOADING EFFECT
   ============================================ */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.status-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: translateX(-100%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

/* ============================================
   STAR TWINKLE ENHANCED
   ============================================ */
@keyframes twinkle-enhanced {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    25% {
        opacity: 1;
        transform: scale(1.2);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.star {
    animation: twinkle-enhanced 4s ease-in-out infinite;
}

.star:nth-child(2n) {
    animation-delay: 1s;
}

.star:nth-child(3n) {
    animation-delay: 2s;
}

.star:nth-child(5n) {
    animation-delay: 3s;
}

/* ============================================
   WAVE ANIMATION
   ============================================ */
@keyframes wave-motion {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(5px);
    }
}

.wave-effect svg {
    animation: wave-motion 10s linear infinite;
}

.wave-effect svg:nth-child(2) {
    animation-delay: -5s;
}

/* ============================================
   ORBIT RING ENHANCED
   ============================================ */
@keyframes orbit-enhanced {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.5;
    }
}

.orbit-ring {
    animation: orbit-enhanced 15s linear infinite;
}

.orbit-ring.ring-2 {
    animation-delay: -7.5s;
    animation-duration: 20s;
}

/* ============================================
   BUTTON PRESS EFFECT
   ============================================ */
@keyframes button-press {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.btn-wow:active,
.btn-hero:active {
    animation: button-press 0.3s ease;
}

/* ============================================
   TOOLTIP ARROW ANIMATION
   ============================================ */
@keyframes tooltip-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

[data-tooltip]:hover::before {
    animation: tooltip-bounce 0.5s ease infinite;
}

/* ============================================
   PROGRESS BAR PULSE
   ============================================ */
@keyframes progress-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(74, 144, 226, 0.8), 0 0 30px rgba(100, 181, 246, 0.6);
    }
}

.progress-bar {
    animation: progress-pulse 2s ease-in-out infinite;
}

/* ============================================
   CARD ENTRANCE ANIMATION
   ============================================ */
@keyframes card-entrance {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(-15deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.info-card,
.recommendation-card {
    animation: card-entrance 0.6s ease-out backwards;
}

.info-card:nth-child(1) {
    animation-delay: 0.1s;
}

.info-card:nth-child(2) {
    animation-delay: 0.2s;
}

.info-card:nth-child(3) {
    animation-delay: 0.3s;
}

.info-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* ============================================
   ICON GLOW EFFECT
   ============================================ */
@keyframes icon-glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(74, 144, 226, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(100, 181, 246, 0.8)) drop-shadow(0 0 25px rgba(79, 172, 254, 0.6));
    }
}

.status-icon i,
.rec-icon i {
    animation: icon-glow 3s ease-in-out infinite;
}

/* ============================================
   TYPING CURSOR BLINK
   ============================================ */
@keyframes cursor-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.typing-cursor {
    animation: cursor-blink 1s step-end infinite;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
@keyframes scroll-indicator {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-indicator 2s ease-in-out infinite;
    z-index: 100;
    color: #64b5f6;
    font-size: 2rem;
    pointer-events: none;
}

/* ============================================
   LOGO PULSE ANIMATION
   ============================================ */
@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo-icon {
    animation: logo-pulse 3s ease-in-out infinite;
}

/* ============================================
   FOOTER REVEAL
   ============================================ */
@keyframes footer-reveal {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    animation: footer-reveal 1s ease-out;
}

/* ============================================
   SECTION TITLE UNDERLINE ANIMATION
   ============================================ */
@keyframes underline-expand {
    0% {
        width: 0;
    }
    100% {
        width: 100px;
    }
}

.section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #64b5f6);
    margin: 10px auto 0;
    border-radius: 2px;
    animation: underline-expand 0.8s ease-out 0.3s forwards;
}

/* ============================================
   HERO STATS COUNTER EFFECT
   ============================================ */
@keyframes counter-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.stat-item strong {
    display: inline-block;
    animation: counter-pop 0.5s ease-out;
}

/* ============================================
   MAP CONTAINER ZOOM IN
   ============================================ */
@keyframes map-zoom-in {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#mapContainer {
    animation: map-zoom-in 0.8s ease-out;
}

/* ============================================
   CONTROL BUTTONS SLIDE IN
   ============================================ */
@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.map-controls .btn {
    animation: slide-in-left 0.5s ease-out backwards;
}

.map-controls .btn:nth-child(1) { animation-delay: 0.1s; }
.map-controls .btn:nth-child(2) { animation-delay: 0.2s; }
.map-controls .btn:nth-child(3) { animation-delay: 0.3s; }
.map-controls .btn:nth-child(4) { animation-delay: 0.4s; }
.map-controls .btn:nth-child(5) { animation-delay: 0.5s; }

/* ============================================
   PARALLAX SCROLL EFFECT
   ============================================ */
.parallax-layer {
    transition: transform 0.3s ease-out;
}

/* ============================================
   TECH ITEM HOVER LIFT
   ============================================ */
@keyframes lift-up {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

.tech-item:hover {
    animation: lift-up 0.3s ease forwards;
}

/* ============================================
   SOCIAL LINKS BOUNCE
   ============================================ */
@keyframes social-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
}

.social-link:hover {
    animation: social-bounce 0.5s ease;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .glass-card {
        animation-duration: 4s;
    }
    
    .status-card::after {
        animation-duration: 4s;
    }
    
    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-5px);
        }
    }
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
