/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    /* Gradient using the requested #083355 color */
    background: linear-gradient(135deg, #083355 0%, #031526 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Container */
.maintenance-container {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    max-width: 600px;
    width: 90%;
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* Logo */
.logo-wrapper {
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
    /* Provide a fallback max-height in case logo.png has odd dimensions */
    max-height: 150px;
    object-fit: contain;
}

/* Content */
.content h1 {
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.content p {
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Loader Animation */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #3b82f6;
    border-right-color: #60a5fa;
    margin: 0 auto;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .maintenance-container {
        padding: 2.5rem 1.5rem;
        width: 95%;
    }
    .content h1 {
        font-size: 2.2rem;
    }
    .logo {
        max-width: 240px;
    }
    .content p {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .maintenance-container {
        padding: 2rem 1.2rem;
        width: 92%;
        border-radius: 20px;
    }
    .content h1 {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }
    .content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    .logo {
        max-width: 180px;
        margin-bottom: 2rem;
    }
    .logo-wrapper {
        margin-bottom: 1.5rem;
    }
}

@media (max-height: 500px) {
    .maintenance-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    .logo-wrapper {
        margin-bottom: 1rem;
    }
    .logo {
        max-width: 140px;
        max-height: 80px;
    }
    .content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .content p {
        margin-bottom: 1rem;
    }
    /* Let the content scroll if screen is too short */
    body {
        align-items: flex-start;
        overflow-y: auto;
        padding: 1rem;
    }
}