/* ===================================
   Splash Screen Styles
   =================================== */

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A4D8C 0%, #00AEEF 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s ease;
}

#splash-screen.fade-out {
    opacity: 0;
}

.splash-content {
    text-align: center;
    animation: splashPulse 2s ease-in-out infinite;
}

.splash-logo {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

.splash-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
    opacity: 0.9;
}

.splash-loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto 0;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes splashPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Skeleton Loader Styles
   =================================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

.skeleton-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skeleton-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
}

.skeleton-title {
    width: 70%;
    height: 24px;
    margin-bottom: 1rem;
}

.skeleton-text {
    width: 100%;
    height: 16px;
    margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
    width: 80%;
}

/* Image Loading State */
img.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* Project Card Loading */
.project-card.loading .project-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

/* Service Card Loading */
.service-card.loading .service-icon {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

/* Content Loading State */
.content-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Fade-in animation for loaded content */
.fade-in-loaded {
    animation: fadeInContent 0.5s ease forwards;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .splash-logo {
        width: 150px;
    }
    
    .splash-text {
        font-size: 1.2rem;
    }
    
    .splash-loader {
        width: 50px;
        height: 50px;
    }
}