/* ============================================
   MODERN MAINTENANCE PAGE - COMPLETE STYLING
   ============================================ */

/* Root Variables */
:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --bg-dark: #0f172a;
    --bg-darker: #0a0f1a;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --accent-cyan: #06b6d4;
    --accent-purple: #a855f7;
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(148, 163, 184, 0.1);
    --glow-purple: rgba(99, 102, 241, 0.2);
    --glow-cyan: rgba(6, 182, 212, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   BACKGROUND & VISUAL EFFECTS
   ============================================ */

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        var(--bg-darker) 0%, 
        #1a1f3a 25%, 
        #0f172a 50%, 
        #1a1f35 75%, 
        var(--bg-darker) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .gradient-bg {
        animation: none;
        background-position: 0% 50%;
    }
}

/* Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

/* Blob Effects */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    mix-blend-mode: screen;
    will-change: transform;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -200px;
    right: -150px;
    animation: float1 20s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    bottom: -150px;
    left: -100px;
    animation: float2 25s ease-in-out infinite;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-purple);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float3 22s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 40px) scale(0.95); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    .blob-1, .blob-2, .blob-3 {
        animation: none;
    }
}

/* ============================================
   CONTENT LAYOUT
   ============================================ */

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 700px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    will-change: opacity, transform;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(0, 30px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .content-wrapper {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   STATUS BADGE
   ============================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    animation: slideInDown 0.6s ease-out 0.1s both;
}

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

@media (prefers-reduced-motion: reduce) {
    .status-badge {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .status-dot {
        animation: none;
    }
}

.status-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.main-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    background: linear-gradient(135deg, 
        var(--text-primary) 0%, 
        var(--primary-light) 50%, 
        var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 0 0 30px var(--glow-purple);
    filter: drop-shadow(0 0 30px var(--glow-purple));
}

@media (prefers-reduced-motion: reduce) {
    .main-title {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 550px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    font-weight: 400;
    letter-spacing: 0.3px;
}

@media (prefers-reduced-motion: reduce) {
    .subtitle {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   LOADER
   ============================================ */

.loader-container {
    width: 100%;
    max-width: 300px;
    margin: 1.5rem 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@media (prefers-reduced-motion: reduce) {
    .loader-container {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.loader {
    position: relative;
    width: 100%;
    height: 4px;
    background: var(--glass-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.1);
}

.loader-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--accent-cyan) 50%, 
        var(--accent-purple) 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: loaderFlow 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
}

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

@media (prefers-reduced-motion: reduce) {
    .loader-bar {
        animation: none;
        width: 30%;
        opacity: 0.6;
    }
}

/* ============================================
   FOOTER TEXT
   ============================================ */

.footer-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.5s both;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (prefers-reduced-motion: reduce) {
    .footer-text {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .blob-1 {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -100px;
    }

    .blob-2 {
        width: 250px;
        height: 250px;
        bottom: -100px;
        left: -50px;
    }

    .blob-3 {
        width: 200px;
        height: 200px;
        filter: blur(60px);
        opacity: 0.1;
    }

    .container {
        padding: 1.5rem;
    }

    .content-wrapper {
        gap: 1.5rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .footer-text {
        font-size: 1rem;
    }

    .status-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .loader-container {
        max-width: 250px;
        margin: 1rem 0;
    }

    .loader {
        height: 3px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .footer-text {
        font-size: 0.95rem;
    }

    .container {
        padding: 1rem;
    }

    .content-wrapper {
        gap: 1rem;
    }

    .status-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .loader-container {
        max-width: 200px;
    }

    .blob-1, .blob-2, .blob-3 {
        opacity: 0.08;
        filter: blur(70px);
    }
}

/* ============================================
   DESKTOP INTERACTIVITY
   ============================================ */

@media (hover: hover) and (pointer: fine) {
    body {
        cursor: default;
    }

    .content-wrapper {
        perspective: 1000px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-color-scheme: light) {
    :root {
        --bg-dark: #f8fafc;
        --bg-darker: #f1f5f9;
        --text-primary: #0f172a;
        --text-secondary: #475569;
        --glass-bg: rgba(241, 245, 249, 0.5);
        --glass-border: rgba(148, 163, 184, 0.2);
    }

    .gradient-bg {
        background: linear-gradient(135deg, 
            #f8fafc 0%, 
            #e2e8f0 25%, 
            #f1f5f9 50%, 
            #e2e8f0 75%, 
            #f8fafc 100%);
    }

    .blob {
        opacity: 0.08;
        mix-blend-mode: multiply;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Smooth scrolling for all supported browsers */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}
