* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --secondary-color: #f97316;
    --accent-color: #059669;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-light: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-heavy: 0 8px 25px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body.rtl {
    direction: rtl;
}

body.rtl .services-slider {
    direction: ltr;
}

/* Header & Navigation */
.header {
    background: linear-gradient(135deg, var(--primary-color), #1e3a8a);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    min-width: 120px;
    height: 48px;
    margin-right: 1rem;
}
.logo-img {
    max-height: 48px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background: rgba(255,255,255,0.18);
    box-shadow: 0 2px 8px 0 rgba(30,64,175,0.08);
    font-weight: 600;
    outline: none;
}

.nav-menu a:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.nav-menu a::before {
    display: none !important;
}

/* Mobile menu toggle improvements */
.mobile-menu-toggle {
    display: none;
    background: var(--secondary-color);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
    margin-left: 1rem;
    transition: background 0.2s, color 0.2s;
    z-index: 1500;
}
.mobile-menu-toggle:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

@media (max-width: 1024px) {
    .logo-img {
        max-height: 38px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 16px;
        top: 18px;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100vw;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-light);
        z-index: 1001;
        border-radius: 0 0 12px 12px;
    }
    .nav-menu.active {
        display: flex;
        width: 100vw;
        left: 0;
        right: 0;
    }
    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 1.2rem;
    }
    .nav-container {
        position: relative;
        padding: 0 1rem;
        min-height: 70px;
    }
}

/* --- Hero background image --- */
.hero {
    background: none; /* Remove SVG and gradient */
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 8rem 0;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background: url('background.jpg') center center / cover no-repeat;
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 40, 60, 0.7) 0%, rgba(30,64,175,0.55) 100%);
    box-shadow: 0 20px 60px 0 rgba(30, 64, 175, 0.30) inset;
    z-index: 1;
}
.hero > .container {
    position: relative;
    z-index: 2;
}

.language-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-toggle {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.language-toggle:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

.language-toggle.active {
    background: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    color: var(--secondary-color);
}

/* Main Content */
main {
    margin-top: 90px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(30, 58, 138, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23e5e7eb" width="1200" height="600"/><polygon fill="%23d1d5db" points="0,400 300,350 600,400 900,320 1200,380 1200,600 0,600"/><circle fill="%23f97316" cx="200" cy="150" r="20"/><circle fill="%23059669" cx="800" cy="200" r="25"/><rect fill="%23374151" x="100" y="300" width="50" height="80" rx="5"/><rect fill="%23374151" x="700" y="280" width="60" height="100" rx="5"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 8rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(249, 115, 22, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    letter-spacing: 2px;
}

.hero-content .tagline {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    background: linear-gradient(135deg, var(--secondary-color), #ea580c);
    color: white;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

/* Section Styles */
.section {
    padding: 6rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.legal-info {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-left: 5px solid var(--secondary-color);
}

.legal-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.legal-info p {
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-info strong {
    color: var(--text-dark);
    min-width: 180px;
}

/* Services Section */
.services-container {
    position: relative;
    margin-top: 3rem;
}

.services-slider {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
}

.services-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.service-slide {
    min-width: 100%;
    padding: 3rem;
    background: white;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.service-content {
    flex: 1;
}

.service-icon-large {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.service-slide h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.service-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.service-list li {
    padding: 0.8rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-dark);
    position: relative;
    padding-left: 2.5rem;
    transition: var(--transition);
    border-left: 3px solid var(--accent-color);
}

.service-list li:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(5px);
}

.service-list li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.service-list li:hover::before {
    color: white;
}

.service-visual {
    flex: 0 0 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    box-shadow: var(--shadow-light);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slider-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.slider-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* Certifications Section */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cert-card {
    background: white;
    padding: 2.5rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.cert-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}

.cert-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.cert-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    min-width: 40px;
    margin-top: 0.2rem;
}

.contact-details strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 0;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .service-slide {
        flex-direction: column;
        text-align: center;
    }

    .service-visual {
        flex: none;
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-light);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .tagline {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .service-slide {
        padding: 2rem;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .language-controls {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .language-toggle {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero {
        padding: 6rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 4rem 0;
    }

    .slider-controls {
        flex-direction: column;
        align-items: center;
    }

    .slider-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}
