:root {
    --header-bg: #FFFFFF;
    --header-text: #1E293B;
    --bg: #020617;
    --primary: #00D1FF;
    --accent: #2563EB;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

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

body {
    font-family: 'Cairo', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
    direction: rtl;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

.mesh-bg { position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%); }

/* Header */
header { position: fixed; top: 0; width: 100%; z-index: 2000; background: rgba(15, 23, 42, 0.8) !important; backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 10px 0; height: 80px; display: flex; align-items: center; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 52px !important; width: 52px !important; border-radius: 50% !important; border: 2px solid var(--accent); box-shadow: 0 0 15px rgba(37, 99, 235, 0.5), 0 0 30px #2563EB; padding: 2px; background: #fff; object-fit: contain; transition: 0.3s; }
.logo img:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 0 25px rgba(37, 99, 235, 0.7), 0 0 50px #2563EB; }

.nav-links { display: flex; gap: 15px; }
.nav-links a { text-decoration: none; color: #f8fafc; font-weight: 800; font-size: 16px; padding: 8px 12px; transition: 0.3s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--accent); border-radius: 2px; }

.btn-header { background: var(--accent); color: #fff; padding: 10px 25px; border-radius: 6px; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3); transition: 0.3s; }
.btn-header:hover { transform: translateY(-2px); background: #1d4ed8; }
.btn-lang { background: #f1f5f9; color: #334155; padding: 8px 15px; border-radius: 6px; font-weight: 700; border: 1px solid #e2e8f0; cursor: pointer; }
.mobile-lang { display: none !important; }

/* Hero Section */
.hero { position: relative; height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; margin-top: 80px; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: -1; animation: zoomBg 25s infinite alternate; opacity: 0.6; }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle, rgba(2, 6, 23, 0.5) 0%, #020617 100%); z-index: 0; }
@keyframes zoomBg { from { transform: scale(1); } to { transform: scale(1.2); } }

.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; }
.hero h1 { font-size: clamp(35px, 6vw, 65px); font-weight: 950; line-height: 1.2; margin-bottom: 25px; background: linear-gradient(to bottom, #fff 40%, var(--primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted); margin-bottom: 40px; }
.btn-hero { background: var(--primary); color: #000; padding: 15px 40px; border-radius: 50px; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 0 20px rgba(0, 209, 255, 0.4); transition: 0.3s; }
.btn-hero:hover { transform: translateY(-5px); background: #fff; }
.hero-app-visual { display: none; }

/* Sections & Cards */
.section { padding: 100px 0; }
.h2 { font-size: clamp(28px, 5vw, 42px); font-weight: 950; margin-bottom: 20px; text-align: center; color: #fff; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 50px; }
.card { background: var(--glass); border: 1px solid var(--glass-border); padding: 40px; border-radius: 20px; transition: 0.3s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-10px); border-color: var(--primary); background: rgba(255, 255, 255, 0.05); }
.icon-box { font-size: clamp(30px, 5vw, 45px); color: var(--primary); margin-bottom: 25px; }
.card h3 { font-size: 1.6rem; margin-bottom: 15px; font-weight: 800; }
.card p { color: var(--text-muted); line-height: 1.7; }

/* Brands */
.brand-section { padding: 100px 0; position: relative; background: linear-gradient(to bottom, transparent, rgba(0, 209, 255, 0.03), transparent); }
.brand-grid { overflow: hidden; width: 100%; padding: 40px 0; position: relative; }
.brand-track { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; width: 100%; }
.brand-item { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border); border-radius: 4px; height: 280px; flex: 0 0 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; transition: 0.5s; cursor: pointer; position: relative; backdrop-filter: blur(10px); }
.brand-img-box { width: 100%; height: 70%; display: flex; align-items: center; justify-content: center; }
.brand-item img { width: 90%; height: 90%; object-fit: contain; filter: grayscale(1) brightness(1.8); opacity: 0.4; transition: 0.6s; }
.brand-title { font-size: 20px; font-weight: 900; margin-bottom: 15px; letter-spacing: 2px; color: #fff; transition: 0.4s; }
.brand-item:hover { border-color: var(--primary); background: rgba(255, 255, 255, 0.07); transform: translateY(-12px); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6); }
.brand-item:hover img { filter: grayscale(0) brightness(1); opacity: 1; transform: scale(1.15); }
.brand-item:hover .brand-title { color: var(--primary); }

/* Contact Form */
.form-box { background: #fff; padding: 40px; border-radius: 16px; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { width: 100%; background: #f1f5f9; border: 1px solid #e2e8f0; padding: 15px; border-radius: 8px; color: #334155; font-family: inherit; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }

footer { border-top: 1px solid var(--glass-border); padding: 60px 0; text-align: center; margin-top: 80px; }
.bottom-nav { display: none; }

/* WhatsApp Tooltip (Desktop Only) */
.wa-float { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: #fff !important; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); z-index: 999; transition: 0.3s; }
.wa-float:hover { transform: scale(1.1); }

.wa-float::before {
    content: attr(aria-label);
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    border: 1px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.wa-float:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; background: #01040f; }
    header { height: 70px !important; background: rgba(1, 4, 15, 0.98) !important; backdrop-filter: blur(25px) !important; border-bottom: 2px solid var(--primary) !important; padding: 0 !important; }
    .nav-wrap { padding: 0 15px !important; flex-direction: row !important; justify-content: space-between !important; width: 100% !important; }
    .logo img { height: 60px !important; width: 60px !important; border-radius: 50% !important; border: 2px solid var(--primary) !important; box-shadow: 0 0 20px var(--primary); }
    
    .btn-lang.mobile-lang { display: flex !important; background: var(--primary); color: #000; border: none; padding: 8px 12px; border-radius: 10px; font-weight: 900; }
    .nav-links, .btn-header, .btn-lang:not(.mobile-lang) { display: none !important; }
    
    .bottom-nav { display: flex !important; position: fixed; bottom: 0 !important; left: 0; right: 0; top: auto; background: rgba(15, 23, 42, 0.98); backdrop-filter: blur(25px); height: 65px; border-top: 2px solid var(--primary); z-index: 11000 !important; align-items: center; justify-content: space-around; padding: 0; }
    .nav-item { display: flex; flex-direction: column; align-items: center; color: #fff; text-decoration: none; font-size: 11px; gap: 4px; opacity: 0.7; }
    .nav-item i { font-size: 22px; }
    .nav-item.active { opacity: 1; color: var(--primary); text-shadow: 0 0 10px var(--primary); }

    .hero-app-visual { display: flex !important; justify-content: center; align-items: center; margin: 0 auto 40px auto; width: 280px; height: 280px; position: relative; z-index: 10; }
    .floating-tech-img { width: 100%; height: 100%; border-radius: 50%; border: 4px solid var(--primary); box-shadow: 0 0 50px rgba(0, 209, 255, 0.6); object-fit: contain; background: #fff; padding: 10px; }
    
    .grid-cards { display: flex !important; flex-direction: column !important; gap: 25px !important; padding: 20px !important; }
    .card { background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)) !important; border: 1px solid rgba(0, 209, 255, 0.3) !important; border-radius: 30px !important; padding: 30px !important; border-right: 6px solid var(--primary) !important; display: flex !important; flex-direction: column; align-items: center; text-align: center; }
    .brand-track { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; justify-items: center !important; }
    .brand-item { width: 100% !important; height: 140px !important; margin: 0 !important; padding: 15px !important; }
    
    body { display: flex !important; flex-direction: column !important; }
    header { order: 1; }
    .hero { order: 2; min-height: 85vh !important; padding: 150px 20px 60px !important; }
    #details { order: 3; }
    #why-us { order: 4; }
    #contact { order: 5; }
    footer { order: 6; padding-bottom: 90px; }
    
    .wa-float::before { display: none; }
}