:root {
    --primary-color: #ff5722;
    --secondary-color: #ff3366;
    --accent-color: #2196f3;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --text-color: #444;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #fafafa;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-right: 20px;
}

.language-switcher button {
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.language-switcher button:hover {
    opacity: 1;
}

.language-switcher button.active {
    opacity: 1;
    border-bottom: 2px solid var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-content {
    width: 50%;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    max-width: 600px;
}

.cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.data-visualization {
    width: 45%;
    height: 70vh;
    position: relative;
    z-index: 1;
}

#dataCanvas {
    width: 100%;
    height: 100%;
}

/* Services Section */
.services {
    padding: 5rem 5%;
    background-color: #fafafa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.service-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

/* About Section */
.about {
    padding: 5rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
}

.about-content {
    width: 50%;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.team-visualization {
    width: 45%;
    height: 400px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Projects Section */
.projects {
    padding: 5rem 5%;
    background-color: #fafafa;
    position: relative;
}

.project-slider {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    margin: 2rem 0;
}

.project-card {
    min-width: 100%;
    display: flex;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.project-image {
    width: 50%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-size: cover !important;
    background-position: center !important;
}

#project1, #project2, #project3 {
    background-size: cover !important;
    background-position: center !important;
}

.project-info {
    width: 50%;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.project-info p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-controls button {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background-color: #fff;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

.contact-info {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-color);
}

.contact-item p {
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
}

.social-link i {
    font-size: 1.2rem;
}

.map-container {
    width: 50%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo .logo {
    height: 60px;
}

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

.footer-links ul li {
    margin-left: 2rem;
}

.footer-links ul li a {
    color: white;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* RTL Support */
html[dir="rtl"] .logo-container {
    order: 0;
}

html[dir="rtl"] nav ul li {
    margin-right: 2rem;
    margin-left: 0;
}

html[dir="rtl"] .menu-toggle {
    order: -1;
}

html[dir="rtl"] .hero-content {
    text-align: right;
}

html[dir="rtl"] .contact-item i {
    margin-left: 1rem;
    margin-right: 0;
}

html[dir="rtl"] .social-link {
    margin-left: 1rem;
    margin-right: 0;
}

html[dir="rtl"] .service-card,
html[dir="rtl"] .project-info {
    text-align: right;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding-top: 3rem;
        height: auto;
    }

    .hero-content, .data-visualization {
        width: 100%;
        text-align: center;
    }

    .hero p {
        margin: 0 auto 2rem;
    }

    .data-visualization {
        height: 50vh;
        margin-top: 2rem;
    }

    .about {
        flex-direction: column;
    }

    .about-content, .team-visualization {
        width: 100%;
    }

    .team-visualization {
        margin-top: 3rem;
    }

    .project-card {
        flex-direction: column;
    }

    .project-image, .project-info {
        width: 100%;
    }

    .project-info {
        padding: 2rem 0 0;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info, .map-container {
        width: 100%;
    }

    .map-container {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

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

    .footer-links ul {
        flex-direction: column;
        align-items: center;
        margin-top: 1.5rem;
    }

    .footer-links ul li {
        margin: 0.5rem 0;
    }

    .language-switcher {
        margin-right: 10px;
    }
    
    html[dir="rtl"] .language-switcher {
        margin-left: 10px;
        margin-right: 0;
    }
}