:root {
    --primary-cyan: #62cef5;
    --primary-grey: #556066;
    --dark-grey: #333333;
    --light-grey: #f4f7f8;
    --white: #ffffff;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--white);
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-container img {
    height: 40px;
    margin-right: 10px;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-container img:hover {
    filter: drop-shadow(0 0 10px var(--primary-cyan));
    transform: scale(1.05);
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--primary-grey);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-cyan);
}

.lang-switch {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    border-left: 1px solid #ccc;
    padding-left: 20px;
}

.lang-switch a {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--primary-grey);
}

.lang-switch a.active {
    font-weight: bold;
    color: var(--primary-cyan);
}

/* Hero Section */
.hero {
    padding: 100px 5%;
    background-color: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-content {
    max-width: 600px;
    flex: 1;
    min-width: 300px;
}

.hero-image {
    flex-shrink: 0;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--primary-grey);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: var(--primary-cyan);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

/* Sections */
.section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary-grey);
}

/* Cards (Regus style) */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary-cyan);
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 5% 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 0 20px;
    text-align: left;
}

.footer-section h3 {
    color: var(--primary-cyan);
    margin-bottom: 20px;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.footer-social a img:hover {
    transform: translateY(-5px);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: black;
}

/* Team Section Styles */
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.team-card:hover {
    transform: translateY(-10px);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--primary-cyan);
}

.team-card h3 {
    margin-bottom: 5px;
    color: var(--primary-grey);
}

.team-card p {
    color: var(--primary-cyan);
    font-weight: bold;
}

/* Card Image Styles */
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.date {
    color: var(--primary-cyan);
    font-weight: bold;
    margin-bottom: 10px;
}

/* Social Icons for Contact Page */
.social-links-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links-container a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-links-container a img:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .nav-links li {
        margin: 0;
    }
    .hero {
        padding: 50px 5%;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-image img {
        width: 100% !important;
        max-width: 350px;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .location-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-section {
        margin-bottom: 20px;
    }
    .footer-social {
        justify-content: center;
    }
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

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

[dir="rtl"] .lang-switch {
    margin-left: 0;
    margin-right: 20px;
    border-left: none;
    border-right: 1px solid #ccc;
    padding-left: 0;
    padding-right: 20px;
}

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

/* English (LTR): Content on Left, Image on Right - Default Order */
/* No flex-direction change needed for LTR */

/* Arabic (RTL): Image on Left, Content on Right - Reverse Order */
[dir="rtl"] .hero {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo-container img {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .social-links-container {
    justify-content: flex-end;
}
