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

/* Variables */
:root {
    --blue: #0EA5E9;
    --orange: #F59E0B;
    --blue-dark: #1E40AF;
    --orange-light: #FCD34D;
    --black: #1a1a1a;
    --gray: #666;
    --gray-light: #f5f5f5;
    --white: #ffffff;
}

/* Base */
body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--blue) 0%, var(--orange) 40%);
    color: var(--white);
    direction: rtl;
    min-height: 100vh;
}

body.ltr {
    direction: ltr;
    font-family: 'Cairo', sans-serif;
}

/* Language visibility */
.en { display: none; }
.ar { display: block; }

body.ltr .en { display: block; }
body.ltr .ar { display: none; }

/* Layout */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    padding: 40px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border: 2px solid var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Placeholder when no image is loaded */
.brand-logo::after {
    content: 'LOGO';
    position: absolute;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    text-align: center;
    z-index: -1;
}

.brand-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
}


.lang-switch {
    background: var(--white);
    color: var(--blue);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.lang-switch:hover {
    background: var(--orange-light);
    color: var(--blue-dark);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.hero-section {
    text-align: center;
    max-width: 600px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--orange-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-text h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
}

.hero-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border-radius: 12px;
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(26, 26, 26, 0.1);
}

.contact-link:hover {
    background: var(--blue-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.contact-link.phone i {
    color: var(--blue);
}

.contact-link.email i {
    color: var(--orange);
}

.contact-link.social i {
    color: #e4405f;
}

.contact-link.location i {
    color: var(--gray);
}

.contact-link:hover i {
    color: var(--orange-light);
}

/* Responsive */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 0 16px;
    }
    
    .site-header {
        padding: 20px 0;
    }
    
    .brand {
        gap: 16px;
    }
    
    .brand-logo {
        width: 50px;
        height: 50px;
    }
    
    .brand-text h1 {
        font-size: 24px;
    }
    
    
    .hero-text h2 {
        font-size: 36px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .contact-link {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 28px;
    }
    
    .hero-text p {
        font-size: 15px;
    }
    
    .main-content {
        padding: 40px 0;
    }
}

/* RTL specific adjustments */
body:not(.ltr) .contact-link {
    flex-direction: row-reverse;
}

body.ltr .contact-link i {
    margin-left: 0;
    margin-right: 0;
}

/* Fix RTL text direction for numbers and social handles */
.contact-link span {
    direction: ltr;
    unicode-bidi: embed;
}

/* Keep Arabic text RTL */
body:not(.ltr) .contact-link .ar {
    direction: rtl;
    unicode-bidi: embed;
}