/*Splash Screen CSS*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,body {
    height: 100%;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: white;
    overflow: hidden;
    min-height: 100vh;
}

.splash-container {
    background: url("Images/splash.jpg") no-repeat center center/cover;
    filter:brightness(70%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    animation: fadeIn 1s ease-in-out;
    position: relative;
}
.main-title{
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    margin-bottom: 0;
    animation: slideDown 1.5s ease-in-out;
}
.title{
    font-size: 4rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 1.5s ease-in-out;
}
.footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: rgb(255, 255, 255);
    animation: fadeIn 2s;
    padding: 0 10px;
}

.web-mission {
    margin-top: 15px;
    font-size: 2rem;
    max-width: 80%;
    animation: fadeIn 2s ease-in-out;
    word-break: break-word;
}

/* Animated progress bar */
.progress-container {
    width: 80%;
    max-width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 30px;
}  
.progress-bar {
    height: 100%;
    width: 0%;
    background: white;
    border-radius: 3px;
    animation: load 4s linear forwards;
}



.loader {
    display: flex;
    gap: 10px;
    margin-top: 50px;
    animation: fadeIn 2.5s ease-in-out;
}

.loader div {
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.loader div:nth-child(1) { animation-delay: -0.32s; }
.loader div:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes load {
    0% { width: 0%; }
    20% { width: 20%; }
    40% { width: 45%; }
    60% { width: 70%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

/* Responsive Design */
@media (max-width: 900px) {
    .title {
        font-size: 2.5rem;
    }
    .main-title {
        font-size: 1.3rem;
    }
    .web-mission {
        font-size: 1.2rem;
    }
    .footer {
        font-size: 1rem;
    }
    .progress-container {
        max-width: 200px;
    }
    .loader div {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 600px) {
    .splash-container {
        padding: 10px;
        background-position: top center !important;
        background-size: cover !important;
        min-height: 100vh;
    }
    .title {
        font-size: 1.5rem;
    }
    .main-title {
        font-size: 1rem;
    }
    .web-mission {
        font-size: 1rem;
        max-width: 95%;
    }
    .footer {
        font-size: 0.8rem;
        padding: 0 2px;
    }
    .progress-container {
        max-width: 120px;
    }
    .loader {
        gap: 6px;
        margin-top: 30px;
    }
    .loader div {
        width: 8px;
        height: 8px;
    }
}
