* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0f172a;
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --accent-gold: #d97706;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #f8fafc;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-blue: #1e40af;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Cairo', sans-serif; /* تم تغيير الخط إلى Cairo */
    line-height: 1.6;
    color: var(--text-primary);
    background: rgba(248, 250, 252, 0.5); /* لون أبيض شفاف */
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    font-size: 15px;
}

body[dir="ltr"] {
    font-family: 'Cairo', sans-serif;
}

.content-wrapper {
    position: relative;
    z-index: 2;
}

/* Professional Header */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo Positioning */
.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--accent-gold);
    font-size: 1.8rem;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

[dir="rtl"] .logo-img {
    margin-left: 10px;
    margin-right: 0;
}

[dir="ltr"] .logo-img {
    margin-left: 0;
    margin-right: 10px;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

/* Navigation Links - Center */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

[dir="rtl"] .nav-links a::after {
    right: 0;
}

[dir="ltr"] .nav-links a::after {
    left: 0;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language Toggle - Inside Header */
.lang-toggle-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 2px;
    z-index: 1001;
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.lang-btn.active {
    background: var(--primary-blue);
    color: var(--bg-white);
}

.lang-btn:hover:not(.active) {
    background: var(--bg-light);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Professional Hero Section - Full Screen */
.hero {
    position: relative;
    color: var(--bg-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://abralmodon.com/assets/images/68e7edcb92253.jpg') center/cover;
    animation: zoomEffect 20s ease-in-out infinite alternate;
    z-index: -2;
}

@keyframes zoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.75) 0%, 
        rgba(30, 64, 175, 0.65) 50%,
        rgba(15, 23, 42, 0.75) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    z-index: 1;
    padding: 0 5%;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    font-family: 'Cairo', sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 1s ease 0.3s both;
}

.cta-button {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--bg-white);
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    background: #b45309;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Stats Section - Blue Background */
.stats {
    padding: 80px 5%;
    background: rgba(30, 64, 175, 0.65); /* لون أزرق شفاف */
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* خلفية خاصة لقسم الإحصائيات */
.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://abralmodon.com/assets/images/68e7edcb92253.jpg') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease both;
}
.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Services Section - White Background */
.services {
    padding: 80px 5%;
    background: rgba(248, 250, 252, 0.5); /* لون أبيض شفاف */
    position: relative;
    overflow: hidden;
}

/* خلفية خاصة لقسم الخدمات */
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://abralmodon.com/assets/images/68e7edcb92253.jpg') center/cover;
    opacity: 0.05;
    z-index: -1;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    font-family: 'Cairo', sans-serif;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease both;
}
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.25);
}

.service-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* About Section - Blue Background */
.about {
    padding: 80px 5%;
    background: rgba(30, 64, 175, 0.65); /* لون أزرق شفاف */
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* خلفية خاصة لقسم من نحن */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://abralmodon.com/assets/images/68e7edcb92253.jpg') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

body[dir="rtl"] .about-content { direction: rtl; }

.about-text {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    animation: fadeInLeft 0.8s ease both;
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.7;
    font-size: 0.95rem;
    opacity: 0.9;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: fadeInRight 0.8s ease both;
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Features Section - New Design */
.features {
    padding: 100px 5%;
    /* خلفية متدرجة لجعل البوكسات الزجاجية تبرز */
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    position: relative;
    overflow: hidden;
}

/* تم إزالة صورة الخلفية القديمة واستبدالها بلون متدرج */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* التصميم الجديد للبوكس الزجاجي */
.feature-item {
    background: rgba(255, 255, 255, 0.1); /* خلفية زجاجية شفافة */
    backdrop-filter: blur(15px); /* تأثير الضبابية الزجاجية */
    -webkit-backdrop-filter: blur(15px); /* لدالة متصفحات سفاري */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* إطار زجاجي */
    padding: 2.5rem 2rem;
    text-align: center;
    color: var(--text-light);
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

    /* حالة البداية قبل الحركة */
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    
    /* تطبيق حركة الظهور */
    animation: featureFadeIn 0.8s ease-out forwards;
}

/* حركة الظهور الجديدة */
@keyframes featureFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.5);
}

/* تصميم الأيقونة الجديد */
.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.feature-icon i {
    font-size: 2.2rem;
    color: var(--bg-white);
    transition: color 0.3s ease;
}

.feature-item:hover .feature-icon i {
    color: var(--bg-white);
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--bg-white);
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Contact Section - Blue Background */
.contact {
    padding: 80px 5%;
    background: rgba(30, 64, 175, 0.65); /* لون أزرق شفاف */
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* خلفية خاصة لقسم الاتصال */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://abralmodon.com/assets/images/68e7edcb92253.jpg') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.3) 0%, 
        rgba(30, 64, 175, 0.2) 100%);
    pointer-events: none;
    z-index: -1;
}

.contact-content {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    z-index: 1;
}

body[dir="rtl"] .contact-content { direction: rtl; }

.contact-info { animation: fadeInLeft 0.8s ease both; }

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    position: relative;
    display: inline-block;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
}

body[dir="rtl"] .contact-item { flex-direction: row-reverse; }

.contact-item i {
    font-size: 1.3rem;
    color: var(--accent-gold);
    min-width: 25px;
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    animation: fadeInRight 0.8s ease both;
}

.form-group { margin-bottom: 1.2rem; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent-gold);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #b45309;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--bg-white);
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Footer Brand (Logo + Name) */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
}

.footer-brand i.fas {
    font-size: 40px;
    color: var(--accent-gold);
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 600;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    color: #ffffff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.social-links a {
    color: var(--bg-white);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-gold);
}

.footer-text {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer-brand {
        margin-bottom: 0;
    }
    .footer-text {
        margin-top: 0;
        order: 3;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: static;
        transform: none;
    }
    .mobile-menu {
        display: block;
    }
    .lang-toggle-header {
        display: none;
    }
    .hero h1 { font-size: 2rem; }
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .section-title { font-size: 1.8rem; }
    .services-grid,
    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Professional Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-dark);
    color: var(--bg-white);
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
    z-index: 2000;
    font-weight: 500;
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}