/* ========================================
   MAIN STYLES
   Core styles and common components
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Sections */
section {
    padding: 4rem 0;
    position: relative;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 999;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.lang-icon {
    font-size: 1.25rem;
}

.lang-text {
    font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 998;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6), 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

/* Animations */
.animate {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .language-switcher {
    right: auto;
    left: 2rem;
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 2rem;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .language-switcher {
        top: 80px;
        right: 1rem;
    }
    
    [dir="rtl"] .language-switcher {
        left: 1rem;
        right: auto;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    [dir="rtl"] .whatsapp-float {
        left: 1.5rem;
        right: auto;
    }
}

/* Skip to Content Link (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #25D366;
    color: #000;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    transition: top 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

[dir="rtl"] .skip-to-content {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}











/* ✅ Tawk.to Widget Override - Force Display */
#tawk-bubble-container,
#tawk-chat-container,
iframe[title*="chat" i] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
}

/* تأكد من عدم التعارض مع WhatsApp */
.whatsapp-float {
    z-index: 99998 !important;
    bottom: 2rem !important;
}

/* لو Tawk فتح، حرك WhatsApp */
body.tawk-open .whatsapp-float {
    bottom: 6rem !important;
}