:root {
    --bg-main: #000525;
    --bg-card: rgba(13, 25, 60, 0.6);
    --bg-card-hover: rgba(48, 119, 207, 0.15);
    --primary-color: #3077cf;
    --primary-glow: rgba(48, 119, 207, 0.4);
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-en: 'Inter', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-en);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Language Toggle --- */
.ar { display: none; }
.en { display: inline-block; }

body.lang-ar { direction: rtl; font-family: var(--font-ar); }
body.lang-ar .en { display: none; }
body.lang-ar .ar { display: inline-block; }
body.lang-ar .icon-arrow { transform: rotate(180deg); }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 600; margin-bottom: 0.5rem; }
.section-tag { 
    color: var(--primary-color); 
    font-size: 0.85rem; 
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
    display: block; 
    margin-bottom: 0.5rem;
}
.content-section h2 { font-size: 2.2rem; }


/* --- Navbar (Desktop) --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 4%; position: absolute; width: 100%; z-index: 100;
}
.logo { font-size: 1.8rem; font-weight: 700; display: flex; flex-direction: column; line-height: 1;}
.logo span { color: var(--primary-color); font-weight: 300; }
.logo-sub { font-size: 0.5rem; letter-spacing: 2px; color: var(--text-muted); margin-top: 4px; }

/* Wrapper for links & buttons to keep them on the same line on desktop */
.nav-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links { display: flex; gap: 2rem; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary-color); }

.nav-actions { display: flex; align-items: center; gap: 1.5rem; }
#toggle-lang { background: none; border: 1px solid var(--border-color); color: var(--text-main); cursor: pointer; font-size: 0.9rem; padding: 0.5rem 1rem; border-radius: 20px; transition: 0.3s; }
#toggle-lang:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* --- Mobile Menu Styles (Hidden on Desktop) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: 0.3s;
}

@media (max-width: 1024px) {
    /* Break point adjusting for tablets/small laptops where navbar gets crowded */
    .nav-container { gap: 1.5rem; }
    .nav-links { gap: 1rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-container {
        position: fixed;
        top: 0;
        left: -100%; 
        width: 100%;
        height: 100vh;
        background-color: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s ease-in-out;
        z-index: 100;
        padding: 2rem;
    }

    /* Support for RTL off-screen positioning */
    body.lang-ar .nav-container { left: auto; right: -100%; }
    body.lang-ar .nav-container.active { right: 0; left: auto;}

    .nav-container.active { left: 0; }

    .nav-links { flex-direction: column; text-align: center; font-size: 1.5rem; gap: 1.5rem;}
    .nav-actions { flex-direction: column; gap: 1.5rem;}

    /* Hamburger Animation to "X" */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}


/* --- Buttons --- */
.btn-primary, .btn-outline {
    padding: 0.9rem 2rem; border-radius: 8px; font-weight: 500;
    cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 1rem; transition: 0.3s; border: none; font-family: inherit;
}
.btn-primary { background-color: var(--primary-color); color: white; box-shadow: 0 4px 15px var(--primary-glow); }
.btn-primary:hover { background-color: #255da6; box-shadow: 0 6px 20px rgba(48,119,207,0.6); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: white; }
.btn-outline:hover { border-color: var(--primary-color); background: rgba(48,119,207,0.1); transform: translateY(-2px); }
.btn-sm { padding: 0.7rem 1.4rem; font-size: 0.9rem; }

/* --- Hero Banner --- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 7rem 4% 4rem; overflow: hidden; }
#particles-js { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-glow {
    position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(48,119,207,0.15) 0%, rgba(0,5,37,0) 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none;
}

.hero-container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; pointer-events: none;}
.hero-content { text-align: center; max-width: 900px; margin: 0 auto; pointer-events: auto;}
.hero-content .subtitle { color: var(--primary-color); font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 1rem; }
.hero-content .title { font-size: 3rem; line-height: 1.15; margin-bottom: 1.5rem; font-weight: 700; }
.hero-content .title span { color: #adadad; }
.hero-content p { color: var(--text-muted); font-size: 1.2rem; margin: 0 auto 3rem; max-width: 800px; }
.hero-buttons { display: flex; justify-content: center; gap: 1.5rem; }

.hero-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 5rem; width: 100%; max-width: 1200px; pointer-events: auto;}
.float-card {
    flex: 1 1 150px; background: rgba(10, 20, 50, 0.7); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 1.8rem 1rem; text-align: center; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex; flex-direction: column; align-items: center; gap: 1rem; backdrop-filter: blur(8px); transition: 0.4s;
    animation: float 5s ease-in-out infinite;
}
.float-card:hover { border-color: var(--primary-color); box-shadow: 0 8px 32px var(--primary-glow); transform: translateY(-10px) !important; cursor: pointer; }
.float-card i { font-size: 2.2rem; color: #fff; }
.float-card span { font-size: 0.9rem; font-weight: 500; line-height: 1.3;}
.item-1 { animation-delay: 0s; } .item-2 { animation-delay: 0.5s; } .item-3 { animation-delay: 1s; } .item-4 { animation-delay: 1.5s; } .item-5 { animation-delay: 2s; } .item-6 { animation-delay: 2.5s; }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0px); } }

/* --- Layout & Sections --- */
.main-content { padding: 4rem 4%; max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 4rem; }
.content-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 4rem; width: 100%; position: relative; z-index: 10; }

/* About Us */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.img-placeholder { background: rgba(0,0,0,0.4); height: 100%; min-height: 350px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 5rem; color: var(--primary-color); border: 1px solid var(--border-color); }
.about-text p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; }
.stat-box { background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); padding: 1.5rem; border-radius: 12px; text-align: center; transition: 0.3s; }
.stat-box:hover { border-color: var(--primary-color); background: var(--bg-card-hover); transform: translateY(-5px); }
.stat-box i { color: var(--primary-color); font-size: 1.8rem; margin-bottom: 0.8rem; }
.stat-box h4 { font-size: 2rem; margin: 0; font-weight: 700; }
.stat-box span { font-size: 0.9rem; color: var(--text-muted); }

/* Services */
.services-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.service-list-item { display: flex; gap: 1.5rem; background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); padding: 2rem; border-radius: 12px; transition: 0.3s; }
.service-list-item:hover { border-color: var(--primary-color); background: var(--bg-card-hover); transform: translateY(-5px); }
.service-list-item .icon i { font-size: 2.2rem; color: var(--primary-color); }
.service-list-item h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.service-list-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Testimonials Carousel */
.testi-carousel-wrapper { position: relative; display: flex; align-items: center; gap: 1rem; }
.testi-carousel {
    display: flex; gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding: 1rem 0; width: 100%;
}
.testi-carousel::-webkit-scrollbar { display: none; }
.testi-card {
    min-width: 350px; flex: 0 0 calc(33.333% - 1.33rem); scroll-snap-align: start;
    background: rgba(255,255,255,0.02); border: 1px solid var(--border-color);
    padding: 2rem; border-radius: 12px; transition: 0.3s;
}
.testi-card:hover { border-color: var(--primary-color); background: var(--bg-card-hover); }
.testi-card .stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 1.2rem; }
.testi-card p { font-size: 1.05rem; color: var(--text-muted); font-style: italic; margin-bottom: 1.5rem; }
.client-meta { display: flex; align-items: center; gap: 1rem; }
.client-meta .avatar { width: 45px; height: 45px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.client-meta h4 { font-size: 1rem; margin: 0; }
.client-meta span { font-size: 0.85rem; color: var(--text-muted); }

.carousel-btn {
    background: var(--bg-card); border: 1px solid var(--border-color); color: white;
    border-radius: 50%; width: 50px; height: 50px; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.carousel-btn:hover { background: var(--primary-color); border-color: var(--primary-color); }
body.lang-ar .prev-btn i { transform: rotate(180deg); }
body.lang-ar .next-btn i { transform: rotate(180deg); }

/* Clients Draggable & Scrollable Carousel */
.client-carousel { 
    overflow-x: hidden;
    white-space: nowrap; 
    width: 100%; 
    position: relative; 
    padding: 1rem 0; 
    margin-top: 2rem;
    cursor: grab;
}
.client-carousel.active {
    cursor: grabbing;
}
.client-track { 
    display: inline-block; 
    animation: scroll 40s linear infinite; 
    will-change: transform;
}
.client-carousel:hover .client-track,
.client-carousel.active .client-track { 
    animation-play-state: paused; 
}

.client-box {
    display: inline-flex; width: 220px; margin: 0 1rem; background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color); padding: 2rem 1rem; border-radius: 12px;
    align-items: center; justify-content: center; gap: 0.8rem; font-weight: 600;
    font-size: 1.1rem; color: var(--text-muted); transition: 0.3s;
    user-select: none;
}
.client-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.client-box:hover { color: white; border-color: var(--primary-color); background: var(--bg-card-hover); }

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-30%); } }

/* Social Media Section */
.social-links-large { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.social-btn {
    display: inline-flex; align-items: center; gap: 1rem; padding: 1rem 2rem;
    border-radius: 50px; font-size: 1.1rem; font-weight: 600; color: white;
    transition: 0.3s; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
}
.social-btn i { font-size: 1.5rem; }
.social-btn.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: transparent;
    transform: translateY(-3px); }
.social-btn.tiktok:hover { background: #000; border-color: #25F4EE; box-shadow: -2px 2px 0 #25F4EE, 2px -2px 0 #FE2C55;
    transform: translateY(-3px); }
/* Facebook Button Hover Styling */
.social-btn.facebook:hover { 
    background: #1877F2; 
    border-color: #1877F2; 
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
    transform: translateY(-3px);
}
/* Contact Section Grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-list .contact-item { display: flex; align-items: flex-start; gap: 1.2rem; margin-bottom: 1.5rem; }
.contact-item i { background: rgba(48,119,207,0.1); color: var(--primary-color); padding: 1rem; border-radius: 10px; font-size: 1.3rem; }
.contact-item span { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.contact-item strong, .contact-item a { font-size: 1.05rem; font-weight: 500; }

.glass-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.glass-form input, .glass-form select, .glass-form textarea {
    width: 100%; padding: 1.2rem; background: rgba(0,0,0,0.3); border: 1px solid var(--border-color);
    border-radius: 8px; color: white; font-family: inherit; font-size: 0.95rem; transition: 0.3s;
}
.glass-form input:focus, .glass-form select:focus, .glass-form textarea:focus { outline: none; border-color: var(--primary-color); background: rgba(0,0,0,0.5); }
.glass-form select option { background: var(--bg-main); color: white; }

/* --- Simple Footer --- */
.footer { background: var(--bg-card); padding: 3rem 4% 1.5rem; border-top: 1px solid var(--border-color); margin-top: 2rem; }
.footer-simple-grid { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto 2rem; flex-wrap: wrap; gap: 2rem; }
.footer-brand h2 { font-size: 1.5rem; margin-bottom: 0.2rem; color: white; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-muted); font-weight: 500; }
.footer-links a:hover { color: var(--primary-color); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-content .title { font-size: 3rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .testi-card { flex: 0 0 calc(50% - 1rem); min-width: 300px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .content-section h2 { font-size: 1.2rem; }
    .content-section { padding: 2.5rem 1.5rem; }
    .services-list { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-content .title { font-size: 2.5rem; }
    .testi-card { flex: 0 0 100%; min-width: 100%; }
    .footer-simple-grid { flex-direction: column; text-align: center; justify-content: center; }
    .carousel-btn { position: absolute; }
    .carousel-btn.next-btn { right: -30px; }
    .carousel-btn.prev-btn { left: -30px; }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .menu-toggle { display: flex; }
    
    .nav-container {
        position: fixed;
        top: 0;
        left: -100%; 
        width: 100%;
        height: 100vh;
        background-color: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s ease-in-out;
        z-index: 100;
        padding: 2rem;
    }

    body.lang-ar .nav-container { left: auto; right: -100%; }
    body.lang-ar .nav-container.active { right: 0; left: auto; }

    .nav-container.active { left: 0; }

    /* Force flex display for links in mobile view */
    .nav-links { 
        display: flex !important; 
        flex-direction: column; 
        text-align: center; 
        font-size: 1.5rem; 
        gap: 1.5rem;
    }
    
    .nav-actions { 
        display: flex !important; 
        flex-direction: column; 
        gap: 1.5rem;
    }

    /* Hamburger Animation */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Layout Adjustments */
    .content-section { padding: 2.5rem 1.5rem; }
    .services-list { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-content .title { font-size: 2.5rem; }
    .testi-card { flex: 0 0 100%; min-width: 100%; }
    .footer-simple-grid { flex-direction: column; text-align: center; justify-content: center; }
}
nav .logo img{
    width: 200px;
    height: auto;
    object-fit: contain;
}
#about .img-placeholder img{
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 10px #cfcfcf;
}