/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1A375B; /* Gorgeous blue from tube section */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

/* Very subtle golden texture overlay on background */
.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 179, 52, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 179, 52, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 179, 52, 0.02) 0%, transparent 60%);
    pointer-events: none;
    animation: subtleShift 8s ease-in-out infinite;
}

@keyframes subtleShift {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo {
    width: 300px; /* Increased by 20px (was 280px) */
    height: auto;
    position: relative;
    z-index: 1;
}

.loading-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Pulsating animation - only applied when gif-complete class is added */
.loading-logo.gif-complete img {
    animation: pulsate 1.5s ease-in-out infinite;
}

@keyframes pulsate {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .loading-logo {
        width: 200px; /* Increased by 20px (was 180px) */
    }
}

/* Tablet adjustments */
@media (max-width: 1199px) and (min-width: 768px) {
    .loading-logo {
        width: 240px; /* Increased by 20px (was 220px) */
    }
}