:root {
    --primary-color: #138275;
    --secondary-color: #0891b2;
    --accent-color: #0d9488;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --light-text: #64748b;
    --gradient-primary: linear-gradient(135deg, #1C9E97 0%, #009577 100%);
    --gradient-secondary: linear-gradient(135deg, #0d9488 0%, #059669 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --text-secondary: #64748b;
}

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

body {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Language-specific styles */
.lang-fr {
    font-family: 'Inter', 'Arial', sans-serif;
}

/* تم إزالة أنماط navbar-nav المتعارضة مع modern-header.php */

.language-switcher {
    margin-right: 15px;
}

.language-switcher .form-select {
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.9rem;
    background-color: white;
    color: var(--dark-text);
    min-width: 120px;
}

.language-switcher .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* تعديل المحتوى عند وجود site-mode-alert */
body.has-site-alert .hero-section {
    padding-top: 160px; /* site-mode-alert (60px) + navbar (80px) + إضافي (20px) */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-highlight {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-hero-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-hero-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-description {
    color: var(--light-text);
    line-height: 1.6;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-description {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 8px;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* تنسيقات أيقونات الشبكات الاجتماعية */
.social-media-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 30px;
}

.social-media-section h6 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.social-icon:hover::before {
    transform: translateX(100%);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ألوان خاصة لكل شبكة اجتماعية */
.social-icon.facebook {
    background: linear-gradient(135deg, #1877f2, #0d6efd);
}

.social-icon.facebook:hover {
    background: linear-gradient(135deg, #0d6efd, #1877f2);
}

.social-icon.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-icon.youtube:hover {
    background: linear-gradient(135deg, #cc0000, #ff0000);
}

.social-icon.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.social-icon.linkedin:hover {
    background: linear-gradient(135deg, #005885, #0077b5);
}

.social-icon.tiktok {
    background: linear-gradient(135deg, #000000, #25f4ee);
}

.social-icon.tiktok:hover {
    background: linear-gradient(135deg, #25f4ee, #000000);
}

.social-icon.telegram {
    background: linear-gradient(135deg, #0088cc, #006699);
}

.social-icon.telegram:hover {
    background: linear-gradient(135deg, #006699, #0088cc);
}

.social-icon.email {
    background: linear-gradient(135deg, #ea4335, #d23f31);
}

.social-icon.email:hover {
    background: linear-gradient(135deg, #d23f31, #ea4335);
}

/* Mobile Menu Styles */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.show {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1200;
    padding: 1rem;
    overflow-y: auto;
}

.mobile-menu.show {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.mobile-menu-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-menu-title i {
    font-size: 1.2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1e293b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: right;
    justify-content: flex-start;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(28, 158, 151, 0.1);
    color: var(--primary-color);
}

.mobile-nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    margin: 1rem 0;
    padding: 0;
    text-align: center;
}

.language-switcher-mobile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    color: var(--primary-color);
    justify-content: center;
}

.language-select-mobile {
    max-width: 120px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.language-select-mobile:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(28, 158, 151, 0.25);
}

/* Mobile Auth Buttons */
.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.mobile-auth-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: right;
    justify-content: flex-start;
}

.mobile-auth-btn.login-btn {
    color: #0891b2;
    background: rgba(8, 145, 178, 0.1);
    border: 1px solid rgba(8, 145, 178, 0.2);
}

.mobile-auth-btn.login-btn:hover {
    background: #0891b2;
    color: white;
}

.mobile-auth-btn.register-btn {
    color: white;
    background: var(--gradient-primary);
    border: 1px solid transparent;
}

.mobile-auth-btn.register-btn:hover {
    background: var(--gradient-secondary);
    transform: translateY(-1px);
}

.mobile-auth-btn i {
    font-size: 1rem;
}

/* Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.pulse {
    animation: pulse 2s infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 30px;
    }
    
    /* تم إزالة أنماط navbar-brand المتعارضة مع modern-header.php */

    .btn-auth {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    /* تم إزالة تصميم navbar للجوال المتعارض مع modern-header.php */

    .mobile-auth-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-top: 15px;
    }

    .mobile-auth-container .language-switcher {
        margin-bottom: 10px;
    }

    .mobile-auth-container .btn-auth {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
        padding: 10px 15px;
        border-radius: 8px;
        font-size: 0.9rem;
    }

    /* تعديلات خاصة بـ site-mode-alert على الجوال */
    .site-mode-alert {
        padding: 15px 15px;
        font-size: 0.9rem;
        top: 0; /* يبقى في الأعلى على الجوال أيضاً */
    }

    body.has-site-alert header {
        top: 55px; /* أقل على الجوال */
    }

    body.has-site-alert .hero-section {
        padding-top: 145px; /* أقل على الجوال */
    }

    .site-mode-alert i {
        font-size: 1rem;
        margin-left: 6px;
    }

    /* تنسيقات أيقونات الشبكات الاجتماعية على الجوال */
    .social-icons {
        gap: 10px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
        max-width: 380px;
    }
}

/* Hide mobile menu on desktop */
@media (min-width: 992px) {
    .mobile-menu,
    .mobile-overlay {
        display: none !important;
    }
}

/* تم إزالة تعديلات navbar-toggler المتعارضة مع modern-header.php */ 