/* assets/css/style.css - fixed language switcher + correct nav/mobile behavior */

:root {
    --bg-dark: #020617;
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
    --stroke: rgba(255, 255, 255, 0.1);
    --bg-card: rgba(2, 6, 23, 0.6);
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius: 20px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Heebo', 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
}

/* Glass Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
}

.gradient-text { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }

/* HEADER */
header {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(2, 6, 23, 0.95); backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Ensure header contents never clip language buttons */
header .nav-inner,
header .nav-links {
    overflow: visible;
}

.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }

/* Logo in header */
.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: 0.3s;
    color: var(--text-main);
    text-decoration: none;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    opacity: 1;
}

/* Buttons */
.btn-glow {
    background: var(--gradient-main); color: white; padding: 14px 40px; border-radius: 50px;
    font-size: 1.1rem; font-weight: bold; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: none; cursor: pointer; box-shadow: 0 0 25px rgba(59, 130, 246, 0.4); transition: all 0.3s ease;
}
.btn-outline {
    background: transparent; border: 1px solid var(--primary); color: var(--text-main);
    padding: 12px 30px; border-radius: 50px; font-weight: 600; text-decoration: none; display: inline-block;
    transition: 0.3s;
}

/* ---------- Language Switcher (FIXED) ---------- */
/* Force visible on desktop */
.desktop-lang {
    display: flex;
    align-items: center;
}

/* Common switcher styling */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switcher button {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    line-height: 1;
    min-width: 44px;
    height: 34px;
}

html[dir="rtl"] .lang-switcher button { margin-left: 0; }
html[dir="ltr"] .lang-switcher button { margin-right: 0; }

.lang-switcher button.active-lang {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59,130,246,0.5);
}

/* Mobile Menu Fixes */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* This is a LI inside UL - keep it block; switcher inside will be flex */
.mobile-lang-container {
    display: none;
    width: 100%;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

@media (max-width: 1100px) {
    .nav-links {
        position: fixed; top: 80px; right: -100%; width: 280px; height: 100vh;
        background: rgba(2, 6, 23, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; padding: 40px 20px; gap: 20px; transition: 0.4s ease;
        align-items: flex-start; border-left: 1px solid rgba(255,255,255,0.1);
        z-index: 999;
    }
    .nav-links.active { right: 0; }

    html[dir="ltr"] .nav-links { left: -100%; right: auto; border-right: 1px solid rgba(255,255,255,0.1); border-left: none; }
    html[dir="ltr"] .nav-links.active { left: 0; }

    .mobile-menu-btn { display: block; }

    /* Hide desktop switcher on mobile, show mobile one inside menu */
    .desktop-lang { display: none; }

    .mobile-lang-container { display: block; }
    .mobile-lang-container .lang-switcher {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

/* HERO */
.hero { padding: 160px 0 80px; text-align: center; }

.hero-logo {
    display: block;
    margin: 0 auto 30px auto;
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.3));
    opacity: 1;
    transform: none;
}

.hero h1 { font-size: 3.8rem; margin-bottom: 20px; line-height: 1.1; letter-spacing: -1px; }
.hero p { max-width: 800px; margin: 0 auto 40px; font-size: 1.25rem; color: var(--text-muted); }

/* Animation Utils */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

.wa-float {
    position: fixed; bottom: 30px; right: 30px; width: 64px; height: 64px; background: #25d366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    z-index: 999; text-decoration: none; transition: 0.3s;
}

/* Services List Specifics */
.service-row { display: flex; align-items: flex-start; gap: 40px; margin-bottom: 80px; padding: 40px; background: rgba(255,255,255,0.02); border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.service-icon-large { font-size: 3.5rem; color: var(--accent); background: rgba(255,255,255,0.05); width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.sub-services { list-style: none; padding: 0; margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.sub-services li { position: relative; padding-right: 25px; color: var(--text-muted); font-size: 1rem; }
html[dir="ltr"] .service-row { text-align: left; }
html[dir="ltr"] .sub-services li { padding-right: 0; padding-left: 25px; }

@media (max-width: 768px) {
    .service-row { flex-direction: column; text-align: center; }
    html[dir="ltr"] .service-row { text-align: center; }
    .service-icon-large { margin: 0 auto 20px; }
    .sub-services { text-align: right; }
    html[dir="ltr"] .sub-services { text-align: left; }
}