:root {
    --primary-color: #1a1a1a;
    --secondary-color: #000000;
    --accent-color: #FADF0E;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --header-height: 80px;
    --light-bg: #ffffff;
    --light-bg-alt: #f7f7f7;
    --dark-text: #333333;
    --dark-text-muted: #666666;
}

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

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

html[lang="en"] body {
    font-family: 'Poppins', sans-serif;
}

html[lang="ar"] body {
    font-family: 'Cairo', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

a:hover {
    color: #fff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

.section-light {
    background-color: var(--light-bg-alt);
}

.section-light .section-title {
    color: var(--dark-text);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* Particle Background */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--primary-color);
    overflow: hidden;
}

#particle-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}

.particle {
    position: absolute;
    background-color: rgba(250, 223, 14, 0.2);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    opacity: 0;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    25% { opacity: 1; }
    50% { transform: translateY(-50vh) translateX(10vw); }
    75% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(-10vw); opacity: 0; }
}

/* Header */
.sticky-header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: top 0.3s;
}

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

.logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
}

html[lang="ar"] .nav-menu {
    padding-right: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
}

.social-media a {
    color: var(--text-color);
    margin: 0 8px;
    font-size: 1.1rem;
}
.social-media a:hover {
    color: var(--accent-color);
}

.lang-switcher {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 3px;
    margin-left: 20px;
    font-size: 0.9rem;
}
html[lang="ar"] .lang-switcher {
    margin-left: 0;
    margin-right: 20px;
}

.lang-ar { display: none; }
html[lang="ar"] .lang-ar { display: inline; }
html[lang="ar"] .lang-en { display: none; }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Contact Section */
.contact-section.section-light {
    background-color: var(--light-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}
.contact-form form {
    display: flex;
    flex-direction: column;
}
.contact-form input, .contact-form textarea {
    background: #2a2a2a;
    border: 1px solid #444;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-family: inherit;
    transition: background-color 0.3s, border-color 0.3s;
}
.section-light .contact-form input, .section-light .contact-form textarea {
    background-color: var(--light-bg);
    border: 1px solid #ddd;
    color: var(--dark-text);
}

.section-light .contact-form input:focus, .section-light .contact-form textarea:focus {
    background-color: var(--light-bg);
    border-color: var(--accent-color);
    outline: none;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: var(--text-muted);
}

.section-light .contact-form input::placeholder, .section-light .contact-form textarea::placeholder {
    color: var(--dark-text-muted);
}

.contact-info h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.contact-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
}
.section-light .contact-info p {
    color: var(--dark-text-muted);
}
.contact-info ul li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.contact-info ul li i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}
html[lang="ar"] .contact-info ul li i {
    margin-right: 0;
    margin-left: 15px;
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
}

/* Footer */
footer {
    background: var(--secondary-color);
    padding: 60px 0 20px;
    border-top: 1px solid #333;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}
.footer-about p {
    color: var(--text-muted);
}
.footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}
.footer-links ul li, .footer-contact ul li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}
html[lang="ar"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}
.footer-contact ul {
    color: var(--text-muted);
}
.footer-contact i {
    color: var(--accent-color);
    margin-right: 10px;
}
html[lang="ar"] .footer-contact i {
    margin-left: 10px;
    margin-right: 0;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Utility classes */
.scroll-to-top, .whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
}
.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.whatsapp-float {
    bottom: 80px;
    background-color: #25D366;
    color: white;
    opacity: 1;
    transform: translateY(0);
}
.whatsapp-float:hover, .scroll-to-top:hover {
    transform: scale(1.1);
    color: white;
}
html[lang="ar"] .scroll-to-top, html[lang="ar"] .whatsapp-float {
    right: auto;
    left: 20px;
}

/* Page Header (for subpages) */
.page-header {
    padding: 160px 0 80px;
    background: var(--secondary-color);
    text-align: center;
}
.page-header h1 {
    font-size: 3rem;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        padding: 20px 0;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        text-align: center;
        margin: 10px 0;
    }
    .mobile-menu-toggle {
        display: block;
        margin-left: 15px;
    }
    html[lang="ar"] .mobile-menu-toggle {
        margin-left: 0;
        margin-right: 15px;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .header-right .social-media {
        display: none;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-contact ul li, .footer-links ul li {
        justify-content: center;
    }
    html[lang="ar"] .footer-contact ul li, html[lang="ar"] .footer-links ul li {
        justify-content: center;
    }
    .footer-contact i {
        margin-right: 5px;
    }
    html[lang="ar"] .footer-contact i {
        margin-left: 5px;
    }
}