:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --background-light: #f9f9f9;
    --background-gradient: linear-gradient(135deg, #f6f9fc 0%, #edf3f8 100%);
    --font-arabic: 'Noto Sans Arabic', 'Traditional Arabic', system-ui;
    --font-english: 'Poppins', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-english);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    z-index: 1001;
    width: 30px;
    height: 25px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 10px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 20px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    padding: 5rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 1.5rem;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary-color);
}

body.menu-open {
    overflow: hidden;
}

/* Overlay when menu is open */
body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    background: white;
    padding: 0.5rem;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.language-switcher button {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-family: var(--font-english);
}

.language-switcher button[data-lang="ar"] {
    font-family: var(--font-arabic);
}

.language-switcher button.active {
    background: var(--primary-color);
    color: white;
}

/* Language specific styles */
[data-lang-ar] {
    display: none;
    font-family: var(--font-arabic);
}

[data-lang-en] {
    display: block;
}

html[lang="ar"] body {
    font-family: var(--font-arabic);
    direction: rtl;
}

html[lang="ar"] .nav-links {
    flex-direction: row-reverse;
}

html[lang="ar"] .mobile-menu-toggle {
    margin-left: 0;
    margin-right: auto;
}

html[lang="ar"] .language-switcher {
    left: 20px;
    right: auto;
}

html[lang="ar"] .nav-links a::after {
    left: auto;
    right: 0;
}

html[lang="ar"] .nav-links a:hover::after {
    width: 100%;
}

html[lang="ar"] .hero-content {
    direction: rtl;
}

html[lang="ar"] .feature-card,
html[lang="ar"] .section-title,
html[lang="ar"] .location-text,
html[lang="ar"] .contact-container,
html[lang="ar"] .footer-column {
    text-align: right;
}

@media (max-width: 768px) {
    .language-switcher {
        top: 20px;
        right: 20px;
        padding: 0.3rem;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .language-switcher button {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Move language switcher when menu is open */
    body.menu-open .language-switcher {
        right: 320px; /* Move it outside the mobile menu width */
    }
    
    /* For RTL language */
    html[lang="ar"] body.menu-open .language-switcher {
        right: 20px;
        left: 320px;
    }
    
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    html[lang="ar"] .mobile-menu {
        left: -100%;
        right: auto;
    }
    
    html[lang="ar"] .mobile-menu.active {
        left: 0;
        right: auto;
    }
    
    html[lang="ar"] .mobile-menu-toggle span {
        left: auto;
        right: 0;
    }
}

/* Footer Styles */
footer {
    background: var(--text-color);
    color: white;
    padding: 4rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
} 