:root {
    --primary-bg: #0a0e17;
    --accent-glow: rgba(0, 102, 255, 0.15);
    --text-main: #ffffff;
    --text-secondary: #a0aec0;
    --primary-blue: #0066ff;
    --primary-blue-hover: #0052cc;
    --card-bg: rgba(20, 26, 40, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem;
    overflow-x: hidden;
    position: relative;
}


/* Ambient Background Animation */

body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 50%);
    animation: rotateBg 20s linear infinite;
    z-index: -1;
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.container {
    max-width: 600px;
    width: 90%;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 102, 255, 0.1);
    animation: fadeIn 0.8s ease-out;
    z-index: 1;
    position: relative;
    overflow: visible;
    margin-top: 80px;
    margin-bottom: 2rem;
}

.container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(0, 102, 255, 0.2), transparent);
    z-index: -1;
    border-radius: 26px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Simple Header Styles */

.simple-header {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.header-logo {
    max-width: 40px;
    height: auto;
}

.welcome-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: var(--text-main);
    margin: 0;
    flex-grow: 1;
    text-align: center;
    padding: 0 1rem;
}

.language-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-1px);
}

.logo-section {
    margin-bottom: 2.5rem;
    padding: 1rem 0;
}

.logo-image {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
    animation: softPulse 4s ease-in-out infinite;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(0, 102, 255, 0.3));
}

@keyframes softPulse {
    0%,
    100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.logo-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #fff, #a0aec0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 0.9rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    font-weight: 600;
    opacity: 0.8;
    font-family: 'Inter', sans-serif;
}

.icon-wrapper {
    margin: 2rem 0;
    position: relative;
    display: inline-block;
    padding: 1rem 0;
}

.main-icon {
    width: 80px;
    height: 80px;
    fill: var(--primary-blue);
    filter: drop-shadow(0 0 15px rgba(0, 102, 255, 0.4));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin: 1.5rem 0;
    line-height: 1.3;
    text-align: center;
    padding: 0.5rem 0;
}

.content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    text-align: center;
    padding: 0 1rem;
}

.arabic-text {
    border-top: 1px solid var(--card-border);
    padding: 2rem 1.5rem;
    margin: 2rem 0;
    direction: rtl;
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.8;
    line-height: 1.8;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}


/* Animated Loader */

.loader {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 2.5rem 0;
    padding: 1rem 0;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-msg {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    margin: 2rem 0;
    text-align: center;
    padding: 0.5rem 0;
}

.retry-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.retry-btn:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

.retry-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.5s ease;
}

.action-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.action-btn:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

.contact-info {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid transparent;
}

.contact-link:hover {
    color: var(--primary-blue);
    background: rgba(0, 102, 255, 0.05);
    border-color: rgba(0, 102, 255, 0.2);
    transform: translateY(-2px);
}

.contact-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

footer {
    margin-top: 1.5rem;
    width: 100%;
    text-align: center;
    padding: 0.8rem 1rem;
    background: rgba(15, 20, 30, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(3px);
    border-radius: 8px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-logo {
    margin-bottom: 0;
    flex-shrink: 0;
}

.footer-logo-img {
    max-width: 40px;
    height: auto;
    opacity: 0.7;
}

.footer-info p {
    font-size: 0.7rem;
    color: rgba(160, 174, 192, 0.5);
    margin: 0;
    white-space: nowrap;
}

.footer-contact {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.footer-contact span {
    font-size: 0.7rem;
    color: rgba(160, 174, 192, 0.4);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-contact a {
    color: var(--primary-blue);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}


/* Enhanced Responsive Design */

@media (max-width: 768px) {
    .container {
        padding: 2.5rem 1.5rem;
        width: 95%;
        margin-bottom: 1.5rem;
    }
    .content h1 {
        font-size: 1.7rem;
    }
    .logo-image {
        max-width: 100px;
    }
    .header-content {
        padding: 0 1rem;
    }
    .welcome-text {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 2rem 1.2rem;
        margin-bottom: 1rem;
    }
    body {
        padding: 1rem 0.5rem;
    }
    .logo-section {
        margin-bottom: 2rem;
        padding: 0.5rem 0;
    }
    .content h1 {
        margin: 1.2rem 0;
        padding: 0.3rem 0;
    }
    .content p {
        margin: 1.2rem 0;
        padding: 0 0.5rem;
    }
    .arabic-text {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    footer {
        padding: 0.6rem 0.8rem;
        max-width: 90%;
    }
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .footer-contact {
        flex-direction: column;
        gap: 0.3rem;
    }
    .footer-contact span {
        font-size: 0.65rem;
    }
    .content h1 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    .content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .arabic-text {
        font-size: 0.9rem;
        padding-top: 1rem;
        margin-top: 1rem;
    }
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    .contact-link {
        font-size: 0.8rem;
        padding: 8px 12px;
        width: 100%;
        justify-content: center;
    }
    .retry-btn {
        padding: 10px 24px;
        font-size: 0.95rem;
        width: 100%;
    }
    .action-btn {
        padding: 10px 24px;
        font-size: 0.95rem;
        width: 100%;
    }
    .footer-contact {
        flex-direction: column;
        gap: 0.2rem;
    }
}


/* Landscape/Short screens */

@media (max-height: 600px) {
    body {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
        overflow-y: auto;
    }
    .container {
        margin: auto;
    }
}