/* ============================================
   مكتبة الجذور - صفحة الصيانة
   ============================================ */

:root {
    --gold: #D4A574;
    --gold-light: #E8C9A0;
    --gold-dark: #B8864E;
    --brown: #4A3728;
    --brown-light: #6B5344;
    --cream: #FDF8F0;
    --dark-bg: #1a1220;
    --dark-surface: #261e30;
    --dark-card: rgba(42, 32, 55, 0.7);
    --text-light: #f0e6d8;
    --text-muted: #a89bb0;
    --accent-gradient: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold-dark));
    --glow-gold: rgba(212, 165, 116, 0.3);
}

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

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ============ Particles Background ============ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* ============ Floating Shapes ============ */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--gold);
    top: -100px;
    right: -100px;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--gold-dark);
    bottom: -50px;
    left: -50px;
    animation: floatShape 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--gold-light);
    top: 50%;
    left: 10%;
    animation: floatShape 18s ease-in-out infinite 2s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: var(--gold);
    top: 20%;
    right: 20%;
    animation: floatShape 22s ease-in-out infinite 5s;
}

.shape-5 {
    width: 250px;
    height: 250px;
    background: var(--gold-dark);
    bottom: 20%;
    right: -50px;
    animation: floatShape 15s ease-in-out infinite 3s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-3deg); }
    75% { transform: translate(15px, 10px) rotate(2deg); }
}

/* ============ Main Container ============ */
.maintenance-container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

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

/* ============ Logo ============ */
.logo-wrapper {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 24px;
    padding: 10px;
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 165, 116, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px var(--glow-gold);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.logo:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 60px var(--glow-gold);
}

/* ============ Gear Animation ============ */
.gear-container {
    position: relative;
    height: 80px;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.gear {
    position: absolute;
    left: 50%;
    color: var(--gold);
    opacity: 0.6;
}

.gear-large {
    font-size: 55px;
    transform: translateX(-70%);
    animation: spinGear 8s linear infinite;
}

.gear-small {
    font-size: 35px;
    transform: translateX(10%);
    top: 20px;
    animation: spinGearReverse 6s linear infinite;
    color: var(--gold-light);
}

@keyframes spinGear {
    from { transform: translateX(-70%) rotate(0deg); }
    to { transform: translateX(-70%) rotate(360deg); }
}

@keyframes spinGearReverse {
    from { transform: translateX(10%) rotate(0deg); }
    to { transform: translateX(10%) rotate(-360deg); }
}

/* ============ Typography ============ */
.main-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.title-line {
    display: block;
    color: var(--text-light);
}

.title-highlight {
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.5rem;
    filter: drop-shadow(0 0 20px var(--glow-gold));
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 35px;
    line-height: 1.8;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* ============ Progress Bar ============ */
.progress-section {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.progress-bar {
    width: 280px;
    height: 6px;
    background: rgba(212, 165, 116, 0.15);
    border-radius: 3px;
    margin: 0 auto 12px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    width: 60%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    animation: progressPulse 3s ease-in-out infinite;
    position: relative;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.5), transparent);
    animation: progressSweep 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { width: 55%; }
    50% { width: 75%; }
}

@keyframes progressSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.progress-text {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 1px;
}

/* ============ Info Cards ============ */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.info-card {
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 165, 116, 0.1);
    border-radius: 16px;
    padding: 24px 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.info-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 165, 116, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--glow-gold);
}

.card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(212, 165, 116, 0.05));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
    border: 1px solid rgba(212, 165, 116, 0.15);
    transition: all 0.3s ease;
}

.info-card:hover .card-icon {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.3), rgba(212, 165, 116, 0.1));
    transform: scale(1.1);
}

.info-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 6px;
}

.info-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============ Contact Section ============ */
.contact-section {
    margin-bottom: 28px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.contact-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 165, 116, 0.12);
    border-radius: 12px;
    color: var(--gold-light);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: var(--gold);
    background: rgba(212, 165, 116, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.15);
}

.contact-link i {
    font-size: 1rem;
    color: var(--gold);
}

/* ============ Social Links ============ */
.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 1s both;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--dark-card);
    border: 1px solid rgba(212, 165, 116, 0.12);
    color: var(--text-muted);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 4px 20px var(--glow-gold);
}

/* ============ Footer ============ */
.footer {
    animation: fadeInUp 1s ease-out 1.1s both;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }

    .title-highlight {
        font-size: 2.6rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        gap: 12px;
    }

    .info-card {
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: right;
        padding: 16px 18px;
    }

    .card-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .info-card h3 {
        margin-bottom: 2px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .gear-container {
        height: 60px;
    }

    .gear-large {
        font-size: 40px;
    }

    .gear-small {
        font-size: 26px;
    }

    .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .maintenance-container {
        padding: 30px 15px;
    }

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

    .title-highlight {
        font-size: 2.1rem;
    }
}
