:root {
    --primary-color: #2196f3;
    --secondary-color: #1976d2;
    --text-color: #333;
    --background-color: #f5f5f5;
    --gradient-start: #1a237e;
    --gradient-end: #0d47a1;
    --glow-color: rgba(33, 150, 243, 0.6);
    --container-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --container-border: rgba(255, 255, 255, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    position: relative;
    overflow-x: hidden;
    margin: 0;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    background-image: url('images/maintenance.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pattern.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.maintenance-container {
    text-align: center;
    padding: 2.5rem;
    width: 90%;
    max-width: 600px;
    background: var(--container-bg);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--container-border);
    position: relative;
    z-index: 10;
    margin: 1rem;
    transition: all 0.3s ease;
}

.maintenance-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.47);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.25);
}

.gear-animation {
    margin-bottom: 2rem;
}

.gear-animation i {
    font-size: 3rem;
    color: var(--primary-color);
}

.gear-animation i {
    transition: color 0.3s ease;
}

.gear-animation i:first-child {
    animation: spin 4s linear infinite;
    color: var(--primary-color);
}

.gear-animation i:last-child {
    animation: spin-reverse 4s linear infinite;
    margin-left: -1rem;
    color: var(--secondary-color);
}

.gear-animation:hover i:first-child {
    color: var(--secondary-color);
}

.gear-animation:hover i:last-child {
    color: var(--primary-color);
}

.title {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 0 10px var(--glow-color);
    font-weight: 300;
    letter-spacing: 1px;
}

.message {
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s both;
    color: rgba(255, 255, 255, 0.85);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    animation: progress 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.eta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.powered-by {
    margin-top: 2rem;
    font-size: 0.85rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.powered-by a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
}

.powered-by a:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

@keyframes spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

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

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

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

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.title {
    text-shadow: 0 0 10px var(--glow-color);
}

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

.gear-animation {
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
    .maintenance-container {
        padding: 1.5rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .message p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .maintenance-container {
        padding: 1.25rem;
        width: 95%;
    }
    
    .title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .message p {
        font-size: 0.9rem;
    }
    
    .gear-animation i {
        font-size: 2.5rem;
    }
    
    .progress-bar {
        margin: 1.5rem 0;
    }
}

@media (max-height: 600px) {
    .maintenance-container {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .gear-animation {
        margin-bottom: 1rem;
    }
    
    .message {
        margin-bottom: 1rem;
    }
}
