/* ============================================
   Maintenance Page Stylesheet
   Modern, clean "Under Maintenance" design
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --accent: #6c5ce7;
    --accent-glow: rgba(108, 92, 231, 0.35);
    --accent-light: #a29bfe;
    --text-primary: #f0f0f5;
    --text-secondary: #9898b0;
    --text-muted: #606078;
    --card-bg: rgba(22, 22, 36, 0.65);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    --progress-bg: rgba(255, 255, 255, 0.06);
    --radius: 20px;
    --radius-sm: 10px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(108, 92, 231, 0.12), transparent),
        radial-gradient(ellipse 60% 50% at 90% 90%, rgba(108, 92, 231, 0.06), transparent),
        radial-gradient(ellipse 60% 50% at 10% 90%, rgba(162, 155, 254, 0.04), transparent);
}

/* --- Animated Background Particles --- */
.bg-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--accent-light);
    border-radius: 50%;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(0.4);
        opacity: 0;
    }
}

/* --- Floating Shapes --- */
.floating-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-glow);
    filter: blur(80px);
    animation: floatShape 12s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -10%;
    right: -5%;
    animation-delay: -4s;
    background: rgba(162, 155, 254, 0.2);
}

.shape-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    animation-delay: -8s;
    background: rgba(108, 92, 231, 0.15);
}

.shape-4 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    animation-delay: -2s;
}

.shape-5 {
    width: 180px;
    height: 180px;
    bottom: 20%;
    left: 15%;
    animation-delay: -6s;
}

.shape-6 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 30%;
    animation-delay: -10s;
    background: rgba(253, 121, 168, 0.12);
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -40px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(-30px, -15px) scale(1.05);
    }
}

/* --- Main Container --- */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    max-width: 640px;
    width: 100%;
}

/* --- Animated Gear Icon --- */
.icon-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 32px;
}

.gear-icon {
    position: absolute;
    color: var(--accent-light);
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

.gear-large {
    width: 140px;
    height: 140px;
    top: 10px;
    left: 10px;
    animation: spinGear 8s linear infinite;
}

.gear-small {
    width: 80px;
    height: 80px;
    top: 5px;
    left: 5px;
    animation: spinGearReverse 6s linear infinite;
    opacity: 0.6;
}

@keyframes spinGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinGearReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* --- Card --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 48px 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Badge --- */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: rgba(108, 92, 231, 0.12);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(108, 92, 231, 0.2);
    margin-bottom: 24px;
    animation: pulseBadge 2.5s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.3);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(108, 92, 231, 0);
    }
}

/* --- Typography --- */
h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.15;
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Progress Section --- */
.progress-section {
    margin-bottom: 28px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--progress-bg);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), #fd79a8);
    background-size: 200% 100%;
    border-radius: 100px;
    animation: progressGlow 3s ease-in-out infinite, progressShift 6s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes progressShift {
    0%, 100% {
        width: 35%;
    }
    50% {
        width: 75%;
    }
}

.progress-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* --- ETA --- */
.eta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.clock-icon {
    color: var(--accent-light);
    flex-shrink: 0;
}

.eta strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- Contact --- */
.contact {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.contact a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.contact a:hover {
    color: #d6d0ff;
}

.contact a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Footer --- */
.footer {
    margin-top: 40px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer p {
    opacity: 0.6;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .icon-wrapper {
        width: 120px;
        height: 120px;
        margin-bottom: 24px;
    }

    .gear-large {
        width: 105px;
        height: 105px;
        top: 8px;
        left: 8px;
    }

    .gear-small {
        width: 60px;
        height: 60px;
        top: 3px;
        left: 3px;
    }

    .badge {
        font-size: 0.65rem;
        padding: 5px 14px;
    }

    .subtitle {
        font-size: 0.95rem;
    }
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .gear-large,
    .gear-small,
    .particle,
    .shape,
    .progress-fill,
    .badge {
        animation: none !important;
    }
}
