/* Travel-Themed Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.95) 0%, 
        rgba(6, 182, 212, 0.9) 50%,
        rgba(245, 158, 11, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Background Particles */
.bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 12s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 1s;
    animation-duration: 11s;
}

/* Globe Container */
.globe-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
}

/* Globe */
.globe {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 
        inset -20px -20px 40px rgba(0, 0, 0, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(79, 172, 254, 0.5);
    animation: globeRotate 8s linear infinite;
    overflow: hidden;
}

.globe::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

/* Globe Shadow */
.globe-shadow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: shadowPulse 4s ease-in-out infinite;
}

/* Continents */
.continents {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.continent {
    position: absolute;
    background: #2d5a27;
    border-radius: 50%;
    opacity: 0.8;
    animation: continentDrift 12s ease-in-out infinite;
}

.continent-1 {
    width: 40px;
    height: 30px;
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.continent-2 {
    width: 35px;
    height: 45px;
    top: 50%;
    right: 25%;
    border-radius: 30px;
    animation-delay: 4s;
}

.continent-3 {
    width: 25px;
    height: 25px;
    bottom: 30%;
    left: 40%;
    animation-delay: 8s;
}

/* Latitude Lines */
.latitude-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.lat-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.lat-1 { top: 25%; }
.lat-2 { top: 50%; }
.lat-3 { top: 75%; }

/* Airplane Animation */
.airplane-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.airplane {
    position: absolute;
    width: 20px;
    height: 20px;
    animation: airplaneOrbit 6s linear infinite;
    transform-origin: 100px 100px;
}

.plane-body {
    position: absolute;
    width: 12px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.plane-wing {
    position: absolute;
    width: 8px;
    height: 1px;
    background: #ffffff;
    top: 50%;
    left: 30%;
    transform: translateY(-50%);
}

.plane-tail {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffffff;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.flight-trail {
    position: absolute;
    width: 30px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    animation: trailFade 2s ease-in-out infinite;
}

/* Loading Text */
.loading-text {
    margin-bottom: 40px;
}

.brand-logo {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.loading-word {
    animation: wordGlow 2s ease-in-out infinite;
}

.loading-word:nth-child(1) { animation-delay: 0s; }
.loading-word:nth-child(2) { animation-delay: 0.3s; }
.loading-word:nth-child(3) { animation-delay: 0.6s; }

.loading-dots {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: dotBounce 1.5s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

/* Progress Container */
.progress-container {
    width: 300px;
    margin: 0 auto;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4, #45B7D1);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressShimmer 2s ease-in-out infinite;
}

.progress-plane {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    left: 0%;
    transition: left 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#progress-percentage {
    font-weight: 600;
    font-size: 16px;
}

.progress-label {
    font-style: italic;
}

/* Animations */
@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes globeRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

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

@keyframes continentDrift {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(-10px); }
}

@keyframes airplaneOrbit {
    0% { transform: rotate(0deg) translateX(120px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes trailFade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes wordGlow {
    0%, 100% { 
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    50% { 
        color: #ffffff;
        text-shadow: 0 2px 15px rgba(255, 255, 255, 0.5);
    }
}

@keyframes dotBounce {
    0%, 100% { transform: translateY(0px); opacity: 0.6; }
    50% { transform: translateY(-8px); opacity: 1; }
}

@keyframes progressShimmer {
    0% { background-position: -300px 0; }
    100% { background-position: 300px 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .globe-container {
        width: 150px;
        height: 150px;
    }
    
    .globe {
        width: 150px;
        height: 150px;
    }
    
    .airplane {
        animation: airplaneOrbit 6s linear infinite;
        transform-origin: 75px 75px;
    }
    
    .brand-logo {
        font-size: 28px;
    }
    
    .loading-message {
        font-size: 16px;
    }
    
    .progress-container {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .globe-container {
        width: 120px;
        height: 120px;
        margin-bottom: 30px;
    }
    
    .globe {
        width: 120px;
        height: 120px;
    }
    
    .airplane {
        transform-origin: 60px 60px;
    }
    
    .brand-logo {
        font-size: 24px;
    }
    
    .loading-message {
        font-size: 14px;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .progress-container {
        width: 200px;
    }
    
    .progress-text {
        font-size: 12px;
    }
}