@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #1e7e8a 0%, #2c9faf 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem;
}

/* خلفية متحركة */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.1;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

.shape:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 100%;
    max-width: calc(100vw - 2rem);
    position: relative;
    animation: slideUp 0.8s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem auto;
    background: linear-gradient(135deg, #1e7e8a, #2c9faf);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(30, 126, 138, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-icon {
    width: 100px;
    height: 100px;
    position: relative;
}


.logo-icon img {
    width: 100%;
    border-radius: 50%;
}



@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

h1 {
    color: #1e7e8a;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    color: #2c9faf;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.maintenance-message {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-right: 4px solid #1e7e8a;
}

.maintenance-title {
    color: #1e7e8a;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.maintenance-icon {
    width: 24px;
    height: 24px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.maintenance-text {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-info {
    background: rgba(30, 126, 138, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.contact-title {
    color: #1e7e8a;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 0.95rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    word-break: break-all;
    overflow-wrap: break-word;
}

.contact-item:hover {
    background: rgba(30, 126, 138, 0.1);
    transform: translateY(-2px);
}

.contact-icon {
    width: 20px;
    height: 20px;
    fill: #1e7e8a;
}

.loading-bar {
    width: 100%;
    height: 6px;
    background: rgba(30, 126, 138, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #1e7e8a, #2c9faf, #1e7e8a);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: loading 2s ease-in-out infinite, shimmer 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* عداد الوقت - محذوف */

/* إشعار التحديثات - محذوف */

/* تأثير الجسيمات - محذوف */

/* تحسين التفاعل */
.interactive-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    top: -50%;
    left: -50%;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.container:hover .interactive-bg {
    transform: scale(1.1);
}

/* تأثير النبض للأيقونات */
.pulse-icon {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

/* شريط التقدم المحسن */
.progress-container {
    position: relative;
    margin-top: 1rem;
}

.progress-text {
    text-align: center;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.progress-percentage {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e7e8a;
    animation: progressCount 6s ease-in-out infinite;
}

@keyframes progressCount {
    0% { content: "0%"; }
    33% { content: "45%"; }
    66% { content: "78%"; }
    100% { content: "95%"; }
}

.footer-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 2rem;
    opacity: 0.7;
}

/* تحسينات الاستجابة للأجهزة اللوحية */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    .container {
        max-width: calc(100vw - 1rem);
        width: calc(100vw - 1rem);
        padding: 2.5rem 1.5rem;
        margin: 0;
    }

    .logo {

        margin-bottom: 1.5rem;
    }

    .logo-icon {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .maintenance-message {
        padding: 1.5rem;
    }

    .maintenance-title {
        font-size: 1.2rem;
    }

    .countdown-display {
        gap: 0.5rem;
    }

    .time-unit {
        min-width: 50px;
        padding: 0.4rem 0.6rem;
    }

    .time-number {
        font-size: 1.3rem;
    }
}

/* تحسينات للهواتف الذكية */
@media (max-width: 480px) {
    body {
        padding: 0.25rem;
    }

    .container {
        margin: 0;
        padding: 2rem 1rem;
        border-radius: 16px;
        max-width: calc(100vw - 0.5rem);
        width: calc(100vw - 0.5rem);
    }

    .logo {

        margin-bottom: 1rem;
    }

    .logo-icon {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 1.6rem;
        margin-bottom: 0.25rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .maintenance-message {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .maintenance-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .maintenance-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .countdown {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }

    .countdown-title {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .progress-container {
        margin-top: 0.75rem;
    }

    .progress-text {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }

    .loading-bar {
        height: 5px;
    }

    .progress-percentage {
        font-size: 0.7rem;
        top: -20px;
    }

    .contact-info {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .contact-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .contact-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: right;
        gap: 0.5rem;
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        word-break: break-all;
        hyphens: auto;
    }

    .contact-item span {
        max-width: calc(100% - 30px);
        overflow-wrap: break-word;
    }

    .contact-icon {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .footer-text {
        font-size: 0.8rem;
        margin-top: 1.5rem;
    }

    /* تقليل الأشكال العائمة */
    .shape {
        opacity: 0.05;
    }

    .shape:nth-child(1) {
        width: 50px;
        height: 50px;
    }

    .shape:nth-child(2) {
        width: 70px;
        height: 70px;
    }

    .shape:nth-child(3) {
        width: 40px;
        height: 40px;
    }

    .shape:nth-child(4) {
        width: 60px;
        height: 60px;
    }
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 320px) {
    body {
        padding: 0.1rem;
    }

    .container {
        padding: 1.5rem 0.75rem;
        max-width: calc(100vw - 0.2rem);
        width: calc(100vw - 0.2rem);
    }

    h1 {
        font-size: 1.4rem;
    }

    .countdown-display {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .time-unit {
        min-width: 80px;
        width: 80px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
        word-break: break-all;
        padding: 0.5rem 0.25rem;
    }

    .contact-item span {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1200px) {
    .container {
        max-width: 600px;
        padding: 3.5rem 2.5rem;
    }

    .logo {
        width: 140px;
        height: 140px;
    }

    .logo-icon {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .maintenance-title {
        font-size: 1.5rem;
    }

    .maintenance-text {
        font-size: 1.1rem;
    }

    .countdown-display {
        gap: 1.5rem;
    }

    .time-unit {
        min-width: 80px;
        padding: 0.75rem 1rem;
    }

    .time-number {
        font-size: 1.8rem;
    }

    .contact-item {
        font-size: 1rem;
        padding: 0.75rem;
    }
}

/* تحسينات للوضع الأفقي على الهواتف */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 0.1rem;
        align-items: flex-start;
        justify-content: center;
    }

    .container {
        margin: 0.1rem;
        padding: 1rem;
        max-height: 95vh;
        overflow-y: auto;
        max-width: calc(100vw - 0.2rem);
        width: calc(100vw - 0.2rem);
    }

    .logo {

        margin-bottom: 0.5rem;
    }

    h1 {
        font-size: 1.3rem;
        margin-bottom: 0.25rem;
    }

    .subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .maintenance-message {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .countdown {
        padding: 0.5rem;
        margin: 0.5rem 0;
    }

    .countdown-display {
        gap: 0.5rem;
    }

    .time-unit {
        padding: 0.3rem 0.4rem;
    }

    .time-number {
        font-size: 1rem;
    }

    .contact-info {
        padding: 0.75rem;
        margin-top: 1rem;
    }

    .contact-item {
        padding: 0.4rem;
        margin-bottom: 0.3rem;
        font-size: 0.8rem;
    }
}