/* ===== ESS Website Styles ===== */

/* Import Google Fonts */
/* خطوط تدعم العربية والكردية بشكل كامل */
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    
    /* Font Families */
    --font-arabic: 'Noto Naskh Arabic', 'Tajawal', Arial, sans-serif;
    --font-kurdish: 'Noto Naskh Arabic', 'Inter', Arial, sans-serif;
    --font-latin: 'Inter', 'Noto Sans', Arial, sans-serif;
    --font-fallback: Arial, Helvetica, sans-serif;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-arabic);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-weight: 900;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-block;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow);
    height: 38px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    height: 38px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background: rgba(105, 105, 105, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(150, 141, 141, 0.432);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-nav .btn {
    margin: 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white) !important;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.95);
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff !important;
}

.hero-content p {
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.95);
    font-weight: 700;
    line-height: 1.8;
    color: #ffffff !important;
}

.hero-content .btn {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    color: #ffffff !important;
}

.hero-content * {
    color: #ffffff !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

.hero-content .h5,
.hero-content .h6,
.hero-content small,
.hero-content span {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    font-weight: 600;
}

.hero-buttons {
    margin-top: 2rem;
}

.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--white);
    font-size: 2rem;
    opacity: 0.8;
    transition: var(--transition);
}

.scroll-indicator a:hover {
    opacity: 1;
    transform: translateY(-5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(241, 245, 249, 0.8));
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(118, 75, 162, 0.05));
    z-index: 1;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.feature-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
}

.feature-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--secondary-color);
    position: relative;
    padding-right: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(29, 78, 216, 0.85));
    color: var(--white);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.85), rgba(241, 245, 249, 0.85));
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(118, 75, 162, 0.1));
    z-index: 1;
}

.about-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-features {
    margin-top: 2rem;
}

.about-feature {
    margin: 1rem 0;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    border-right: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.about-feature:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(-5px);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.65), rgba(241, 245, 249, 0.65));
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e2e8f0;
    padding: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.contact-info {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: block;
    color: inherit;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    z-index: 1;
}

.contact-info i {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-info:hover i {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.65), rgba(15, 23, 42, 0.65));
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: flex;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .btn {
        margin: 0.5rem 0;
        display: block;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .stat-item, .about-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading animation for statistics */
.stat-number {
    transition: all 0.5s ease;
}

/* Hover effects */
.feature-card:hover .feature-icon {
    transform: scale(1.1);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    transition: var(--transition);
}

/* Print styles */
@media print {
    .navbar, .hero-buttons, .scroll-indicator {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* Module Cards */
.module-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.module-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.module-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.module-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-right: 1.5rem;
}

.module-list li:before {
    content: "✓";
    color: #059669;
    font-weight: bold;
    position: absolute;
    right: 0;
    top: 0.5rem;
}

.module-list li:last-child {
    border-bottom: none;
}

/* Technology Cards */
.tech-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tech-features {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hero Stats */
.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.hero-stats .h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Enhanced Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Modules Section Background */
.modules-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.9));
    position: relative;
}

.modules-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(118, 75, 162, 0.05));
    z-index: 1;
}

/* Technology Section Background */
.technology-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.85), rgba(241, 245, 249, 0.85));
    position: relative;
}

.technology-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(118, 75, 162, 0.08));
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-right: 1.5rem;
    transition: all 0.3s ease;
}

.feature-list li:before {
    content: "✓";
    color: #059669;
    font-weight: bold;
    position: absolute;
    right: 0;
    top: 0.5rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:hover {
    color: #2563eb;
    transform: translateX(-5px);
}

/* Enhanced Statistics - Removed duplicate */

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fbbf24;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.2rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* Enhanced About Section - Removed duplicate */

.about-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.about-feature {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.about-feature:last-child {
    border-bottom: none;
}

.about-feature:hover {
    transform: translateX(10px);
    color: #2563eb;
}

/* Enhanced Contact Section - Removed duplicate */

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: block;
    color: inherit;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
}

.contact-info:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Enhanced Navigation */
.navbar {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(80, 80, 80, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Enhanced Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline-light:hover {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #1e293b;
    transform: translateY(-2px);
}

/* Enhanced Hero Section - Removed duplicate */

.floating-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: white;
    font-size: 2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.scroll-indicator a:hover {
    opacity: 1;
    transform: translateY(-5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Enhanced Footer - Removed duplicate */

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===== Multi-Language Support ===== */
/* دعم متعدد اللغات - پشتگیری زمانە جیاوازەکان */

/* Language Switcher - Modern Design */
.language-switcher {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 1rem 0.75rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.language-switcher .btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.language-switcher .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.language-switcher .btn:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.language-switcher .btn:hover::before {
    transform: scale(1);
}

.language-switcher .btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #2563eb;
    color: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transform: scale(1.1);
}

.language-switcher .btn.active::before {
    transform: scale(1);
}

/* Language Switcher Animation */
.language-switcher {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateY(-50%) translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

/* Hover effect for the entire switcher */
.language-switcher:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.05);
}

.language-switcher .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.language-switcher .btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.language-switcher .btn:not(.active) {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

.language-switcher .btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
}

/* Language Notification */
.language-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}

.language-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-weight: 500;
}

/* RTL/LTR Support */
[dir="rtl"] .language-switcher {
    right: auto;
    left: 20px;
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateY(-50%) translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

[dir="rtl"] .language-switcher:hover {
    transform: translateY(-50%) scale(1.05);
}

[dir="rtl"] .language-notification {
    right: auto;
    left: 20px;
    transform: translateX(-100%);
}

[dir="rtl"] .language-notification.show {
    transform: translateX(0);
}

/* Responsive Language Switcher */
@media (max-width: 768px) {
    .language-switcher {
        position: fixed;
        top: auto;
        bottom: 20px;
        right: 20px;
        left: auto;
        transform: none;
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.75rem;
        border-radius: 20px;
    }
    
    [dir="rtl"] .language-switcher {
        right: auto;
        left: 20px;
    }
    
    .language-switcher .btn {
        width: 45px;
        height: 45px;
        font-size: 0.7rem;
    }
    
    .navbar-nav .btn {
        min-width: 100px;
        height: 36px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        bottom: 15px;
        right: 15px;
        padding: 0.5rem;
        gap: 0.4rem;
    }
    
    [dir="rtl"] .language-switcher {
        right: auto;
        left: 15px;
    }
    
    .language-switcher .btn {
        width: 40px;
        height: 40px;
        font-size: 0.65rem;
    }
}

/* Enhanced RTL Support */
[dir="rtl"] .navbar-nav .nav-link {
    margin: 0 0.5rem;
}

[dir="rtl"] .hero-buttons .btn {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .hero-buttons .btn:last-child {
    margin-right: 0;
}

[dir="rtl"] .feature-list li {
    padding-right: 0;
    padding-left: 1.5rem;
}

[dir="rtl"] .feature-list li::before {
    right: auto;
    left: 0;
}

[dir="rtl"] .module-list li {
    padding-right: 0;
    padding-left: 1.5rem;
}

[dir="rtl"] .module-list li:before {
    right: auto;
    left: 0;
}

[dir="rtl"] .about-feature {
    border-right: none;
    border-left: 4px solid var(--primary-color);
}

[dir="rtl"] .about-feature:hover {
    transform: translateX(5px);
}

/* تم إزالة دعم LTR - إبقاء RTL فقط للعربية والكردية */

/* ===== Font Support by Language ===== */
/* دعم الخطوط حسب اللغة - پشتگیری فۆنت بە پێی زمان */

/* Arabic Language Fonts */
[lang="ar"] body,
[lang="ar"] * {
    font-family: var(--font-arabic) !important;
}

/* Kurdish Language Fonts - تطبيق على جميع النصوص */
[lang="ku"] body {
    font-family: var(--font-kurdish) !important;
}

[lang="ku"] h1, [lang="ku"] h2, [lang="ku"] h3, [lang="ku"] h4, [lang="ku"] h5, [lang="ku"] h6 {
    font-family: var(--font-kurdish) !important;
}

[lang="ku"] p, [lang="ku"] span, [lang="ku"] div {
    font-family: var(--font-kurdish) !important;
}

[lang="ku"] input, [lang="ku"] button, [lang="ku"] select, 
[lang="ku"] textarea, [lang="ku"] label, [lang="ku"] li,
[lang="ku"] td, [lang="ku"] th, [lang="ku"] caption {
    font-family: var(--font-kurdish) !important;
}

/* تطبيق الفونت الكردي على جميع العناصر عند تغيير اللغة */
body.kurdish-font *:not(.fas):not(.fab):not(.far) {
    font-family: var(--font-kurdish) !important;
}

/* تطبيق الفونت العربي على جميع العناصر */
body.arabic-font *:not(.fas):not(.fab):not(.far) {
    font-family: var(--font-arabic) !important;
}

/* تطبيق الفونت الكردي على العناصر المحددة */
.kurdish-font h1, .kurdish-font h2, .kurdish-font h3,
.kurdish-font h4, .kurdish-font h5, .kurdish-font h6,
.kurdish-font p, .kurdish-font span, .kurdish-font div,
.kurdish-font input, .kurdish-font button, .kurdish-font select,
.kurdish-font textarea, .kurdish-font label, .kurdish-font li,
.kurdish-font td, .kurdish-font th, .kurdish-font caption {
    font-family: var(--font-kurdish) !important;
}

/* تحسينات خاصة للكردية */
[lang="ku"] h1, [lang="ku"] h2, [lang="ku"] h3,
[lang="ku"] h4, [lang="ku"] h5, [lang="ku"] h6 {
    font-weight: 600;
}

[lang="ku"] p, [lang="ku"] span, [lang="ku"] div {
    line-height: 1.7;
}

/* إبقاء الأيقونات كما هي بغض النظر عن اللغة */
[lang="ku"] .fas, [lang="ku"] .fab, [lang="ku"] .far,
[lang="ku"] .fa, [lang="ku"] i[class*="fa-"],
[lang="ar"] .fas, [lang="ar"] .fab, [lang="ar"] .far,
[lang="ar"] .fa, [lang="ar"] i[class*="fa-"] {
    font-family: "Font Awesome 6 Free" !important;
}

/* ضمان ظهور الأيقونات في جميع الحالات */
.fas, .fab, .far, .fa, i[class*="fa-"] {
    font-family: "Font Awesome 6 Free" !important;
}

/* ضمان ظهور أيقونات التواصل الاجتماعي بشكل خاص */
.social-link i {
    font-family: "Font Awesome 6 Free" !important;
    font-size: 1.2rem;
}

/* ضمان ظهور أيقونات التواصل الاجتماعي في جميع الحالات */
.social-link i[class*="fa-"] {
    font-family: "Font Awesome 6 Free" !important;
    font-size: 1.2rem;
}

.social-link i[class*="fab"] {
    font-family: "Font Awesome 6 Brands" !important;
    font-size: 1.2rem;
}

/* ضمان ظهور أيقونات Font Awesome في جميع الحالات */
.fab {
    font-family: "Font Awesome 6 Brands" !important;
}

.fas, .far, .fa {
    font-family: "Font Awesome 6 Free" !important;
}

/* ضمان ظهور أيقونات التواصل الاجتماعي بشكل خاص */
.social-link .fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-size: 1.2rem;
}

.social-link .fas,
.social-link .far,
.social-link .fa {
    font-family: "Font Awesome 6 Free" !important;
    font-size: 1.2rem;
}

/* Font Loading Optimization */
.font-loading {
    font-display: swap;
}

/* Fallback Fonts for Better Rendering */
@font-face {
    font-family: 'Noto Sans Arabic';
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/notosansarabic/v18/nwpCtLGrOA-Ms5QiAIfpTesMeR8WqHcBOQ.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}

@font-face {
    font-family: 'Inter';
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* تم إزالة جميع قواعد LTR - إبقاء RTL فقط */

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .feature-card,
    .module-card,
    .tech-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .floating-card {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    .btn {
        display: none !important;
    }
}

/* Try System Section Styles */
.try-system-section {
    position: relative;
    overflow: hidden;
}

.try-system-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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.3;
}

.try-system-content {
    position: relative;
    z-index: 2;
}

.try-system-features .d-flex {
    transition: all 0.3s ease;
}

.try-system-features .d-flex:hover {
    transform: translateX(-10px);
}

.try-system-features i {
    font-size: 1.2rem;
}

.try-system-buttons .btn {
    transition: all 0.3s ease;
}

.try-system-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.floating-system-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.floating-system-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.floating-system-card:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.floating-system-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.system-stats .h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.system-stats small {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Enhanced Button Styles */
.btn-success {
    background: linear-gradient(135deg, #059669, #047857);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-success:hover::before {
    left: 100%;
}

.btn-success:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

/* System Options Explanation Section */
.system-options-section {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.option-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.option-card i {
    transition: all 0.3s ease;
}

.option-card:hover i {
    transform: scale(1.1);
}

.option-card .btn {
    transition: all 0.3s ease;
}

.option-card .btn:hover {
    transform: translateY(-1px);
}

/* Logo Styles - Enhanced Professional Design */
.navbar-brand {
    padding: 0;
    margin-right: 1.5rem;
    background-color: rgba(105, 102, 102, 0.205);
    border-radius: 10px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    background-color: rgba(170, 163, 163, 0.226);
}

.navbar-brand img {
    height: 60px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: translateY(-3px);
}

/* Clean Logo Design */
.hero-logo-clean {
    height: 400px;
    width: auto;
    max-width: 100%;
    padding: 25px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    transition: transform 0.3s ease;
    animation: fadeIn 0.8s ease;
}

.hero-logo-clean:hover {
    transform: translateY(-5px);
}

/* Clean Hero Stats */
.hero-stat {
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 0.8s ease;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Logo Sizes */
@media (max-width: 991px) {
    .hero-logo-clean {
        height: 200px;
        margin-top: 2rem;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        padding: 6px 10px;
    }
    
    .navbar-brand img {
        height: 50px !important;
        max-width: 130px;
    }
    
    .hero-logo-clean {
        height: 180px;
        padding: 18px;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .hero-stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        padding: 5px 8px;
    }
    
    .navbar-brand img {
        height: 45px !important;
        max-width: 110px;
    }
    
    .hero-logo-clean {
        height: 160px;
        padding: 15px;
    }
    
    .hero-stat-number {
        font-size: 1.8rem;
    }
    
    .hero-stat-label {
        font-size: 0.85rem;
    }
}

/* Demo and Brochure Logo Styles - Enhanced */
.demo-logo-container,
.brochure-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    text-align: center;
}

.demo-logo,
.brochure-logo {
    height: 120px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4)) brightness(1) contrast(1.1);
    z-index: 2;
    position: relative;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
}

.demo-logo:hover,
.brochure-logo:hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6)) brightness(1.1) contrast(1.2);
    background: rgba(255, 255, 255, 0.1);
}

.demo-logo-glow,
.brochure-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.2) 0%, rgba(5, 150, 105, 0.1) 30%, transparent 70%);
    border-radius: 50%;
    animation: logoGlow 3s ease-in-out infinite alternate;
    z-index: 1;
}

/* Footer Logo Enhancement */
.footer-logo {
    height: 30px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: brightness(1) contrast(1.2);
    transform: scale(1.1);
}

/* Mini Map Styles */
.mini-map-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #f8f9fa;
    padding: 10px;
}

.mini-map-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mini-map-container iframe {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mini-map-container iframe:hover {
    transform: scale(1.02);
}

/* Responsive Mini Map */
@media (max-width: 768px) {
    .mini-map-container {
        margin: 10px 0;
        padding: 8px;
    }
    
    .mini-map-container iframe {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .mini-map-container {
        margin: 8px 0;
        padding: 6px;
    }
    
    .mini-map-container iframe {
        height: 160px;
    }
}
