:root {
    --primary: #034B80;
    --primary-light: #087E8B;
    --dark: #023255;
    --accent: #FF4D00;
    --accent-light: #FF8A50;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --text: #1E293B;
    --text-light: #64748B;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 30px rgba(3, 75, 128, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body.rtl {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 44px;
    width: auto;
    mix-blend-mode: multiply;
    transition: opacity 0.3s;
}
.logo img:hover { opacity: 0.8; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-select {
    padding: 6px 12px;
    border-radius: 10px;
    border: 1.5px solid #E2E8F0;
    background: var(--white);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
}

.btn-primary {
    background: var(--dark);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(2, 50, 85, 0.2);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(2, 50, 85, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    padding: 12px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid #E2E8F0;
}

.btn-secondary:hover {
    border-color: var(--dark);
    background: #F8FAFC;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 77, 0, 0.1);
    color: var(--accent);
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 77, 0, 0.2);
}

.hero-text h1 {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--dark);
}

.accent {
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent) 0%, #FF8A50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
}

.btn-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    text-align: left;
}

.btn-hero i {
    font-size: 28px;
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-text .small {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.8;
}

.btn-text .large {
    font-size: 18px;
    font-weight: 800;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .count {
    font-size: 32px;
    font-weight: 900;
    color: var(--dark);
}

.stat .label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

.hero-visual {
    position: relative;
}

.phone-wrapper {
    position: relative;
    z-index: 2;
}

.phone-mockup {
    width: 100%;
    max-width: 420px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 40px 80px rgba(3, 75, 128, 0.22)) drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    animation: float 6s ease-in-out infinite;
    border-radius: 28px;
}

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

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 16px 20px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    animation: float 5s ease-in-out infinite alternate;
}

.floating-card i {
    font-size: 20px;
}

.floating-card span {
    font-weight: 700;
    font-size: 14px;
}

.c1 { top: 20%; left: -20px; color: var(--primary-light); }
.c2 { bottom: 15%; right: -20px; color: var(--accent); animation-delay: 1s; }

.hero-bg-blob {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(3, 75, 128, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Features Grid */
.features-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title h2 {
    font-size: 44px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 48px 40px;
    border-radius: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(241, 245, 249, 1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
}

.f-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 28px;
}

.bg-blue { background: #E0F2FF; color: var(--primary); }
.bg-orange { background: #FFF4EE; color: var(--accent); }
.bg-green { background: #EBFBF5; color: #10B981; }

.feature-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* Map Section */
.map-section {
    padding: 120px 0;
    background: #F1F5F9;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.map-container-wrapper {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    height: 600px;
    background: #e5e7eb;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tracking-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 20px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.tracking-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #94a3b8;
    border-radius: 50%;
}

.tracking-status.active .status-dot {
    background: #10B981;
    box-shadow: 0 0 10px #10B981;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.tracking-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-item i {
    font-size: 16px;
    color: var(--primary-light);
    margin-bottom: 4px;
}

.stat-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
}

.stat-val small {
    font-size: 12px;
    font-weight: 600;
    margin-left: 2px;
}

.stat-item label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tracking-actions {
    display: flex;
    gap: 12px;
}

.btn-tracking-primary, .btn-tracking-danger {
    flex: 1;
    padding: 14px;
    border-radius: 16px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-tracking-primary {
    background: var(--dark);
    color: var(--white);
}

.btn-tracking-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.btn-tracking-danger {
    background: #FEE2E2;
    color: #EF4444;
}

.btn-tracking-danger:hover {
    background: #FECACA;
}

.content-side h2 {
    font-size: 48px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 24px;
    line-height: 1.2;
}

.content-side p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.list-item i {
    color: #10B981;
    font-size: 20px;
}

.list-item span {
    font-weight: 600;
    font-size: 16px;
}

/* Preview Section */
.preview-section {
    padding: 100px 0;
}

.preview-bg {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    border-radius: 60px;
    padding: 80px 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.preview-content h2 {
    font-size: 44px;
    font-weight: 900;
    margin-bottom: 16px;
}

.preview-content p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 60px;
}

.screens-full {
    max-width: 900px;
    width: 100%;
    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.3));
}

/* Footer */
footer {
    padding: 100px 0 40px;
    background: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.f-logo {
    height: 45px;
    margin-bottom: 24px;
}

.footer-info p {
    color: var(--text-light);
    max-width: 300px;
}

.footer-links h4, .footer-socials h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--dark);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-5px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
}

.made-by {
    color: var(--dark);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--white);
    z-index: 999;
    overflow: hidden;
    transition: 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.mobile-menu.active {
    height: 350px;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

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

.mobile-nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-size: 20px;
    font-weight: 700;
}

/* RTL Adjustments */
body.rtl .hero-grid, body.rtl .split-layout, body.rtl .footer-grid {
    direction: rtl;
}

body.rtl .list-item i {
    margin-left: 0;
    margin-right: 0;
}

/* Responsive Queries */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 56px; }
    .hero-grid { gap: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    header { padding: 16px 0; }
    .nav-links, .nav-actions { display: none; }
    .menu-toggle { display: block; }
    
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 44px; }
    .hero-text p { margin-inline: auto; }
    .hero-cta { justify-content: center; flex-wrap: wrap; }
    .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    
    .features-grid { grid-template-columns: 1fr; }
    .split-layout { grid-template-columns: 1fr; gap: 40px; }
    .content-side { text-align: center; }
    .content-side h2 { font-size: 36px; }
    .list-item { justify-content: center; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-info p { margin: 0 auto; }
    .social-icons { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 20px; }
}
