/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #1A2526;
}

body[dir="rtl"] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Noto Sans Arabic';
}

/* Navigation Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 15px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #3498db;
    text-decoration: none;
}

.logo span {
    color: #2c3e50;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

body[dir="rtl"] .nav-links li {
    margin-left: 0;
    margin-right: 20px;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #3498db;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

body[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-toggle {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 20px;
    height: 2px;
    background-color: #2c3e50;
    margin: 4px;
    transition: all 0.3s ease;
}

section {
    padding: 60px 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: relative;
    z-index: 1;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

h1, h2, h3 {
    font-weight: 700;
    color: #2c3e50;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #3498db;
    margin: 10px auto;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #3498db;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    min-width: 120px;
    text-align: center;
}

.btn:hover {
    background: transparent;
    color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(26, 37, 38, 0.7), rgba(26, 37, 38, 0.7)), url('images/background.jpg') center 20%/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 20px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* About Section */
#about {
    background-color: #f8f9fa;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

body[dir="rtl"] .about-content {
    flex-direction: row-reverse;
}

.about-text {
    flex: 1;
    min-width: 100%;
    padding: 15px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
    min-width: 100%;
    padding: 15px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Services Section */
#services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.service-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Testimonials Section */
#testimonials {
    background-color: #f8f9fa;
    text-align: center;
}

.testimonial-slider {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial {
    min-width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.testimonial-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-content img {
    max-width: 600px;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 5px;
    object-fit: contain;
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: #3498db;
}

/* FAQ Section */
#faq {
    background-color: white;
}

.faq-container {
    max-width: 100%;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-question {
    background-color: #f8f9fa;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    background-color: white;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-answer.show {
    padding: 12px 15px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.9rem;
}

/* Contact Section */
#contact {
    background-color: #f8f9fa;
    padding: 60px 15px;
}

.contact-content {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.contact-details {
    margin-top: 15px;
}

.contact-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #3498db;
    font-size: 0.9rem;
}

body[dir="rtl"] .contact-detail {
    flex-direction: row-reverse;
}

.contact-icon {
    font-size: 1.2rem;
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

body[dir="rtl"] .contact-icon {
    margin-right: 0;
    margin-left: 8px;
}

.contact-detail a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-detail a:hover {
    color: #2980b9;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

body[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.social-links a:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Apply Section */
#apply {
    background-color: white;
    text-align: center;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px;
    z-index: 2;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        flex-direction: column;
        background-color: white;
        padding-top: 60px;
        transition: right 0.5s ease;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    body[dir="rtl"] .nav-links {
        right: auto;
        left: -100%;
        box-shadow: 5px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.show {
        right: 0;
    }

    body[dir="rtl"] .nav-links.show {
        right: auto;
        left: 0;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    body[dir="rtl"] .nav-links li {
        margin: 10px 0;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .about-content {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 15px;
    }

    .testimonial-content {
        padding: 15px;
    }

    .testimonial-content img {
        max-width: 400px;
        max-height: 300px;
    }

    .faq-question {
        padding: 10px 12px;
    }

    .faq-answer.show {
        max-height: 500px;
        padding: 10px 12px;
    }

    .contact-detail {
        margin-bottom: 8px;
    }

    .social-links a {
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 0.8rem;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.8rem;
    }

    .testimonial-content img {
        max-width: 300px;
        max-height: 200px;
    }
}