/* ============================================
   دليل بلدنا - Dalil Baladna
   Premium Stylesheet with Dark Mode & Social Icons
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #5f1d74;
    --primary-dark: #4a165a;
    --primary-light: #7b2d94;
    --primary-lighter: #9b4dba;
    --primary-bg: #faf5fc;
    --primary-soft: #f0e6f5;
    --accent: #ff6b6b;
    --accent-2: #ffa502;
    --success: #2ed573;
    --info: #1e90ff;
    --white: #ffffff;
    --black: #1a1a2e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --shadow-sm: 0 2px 8px rgba(95, 29, 116, 0.08);
    --shadow-md: 0 4px 20px rgba(95, 29, 116, 0.12);
    --shadow-lg: 0 8px 40px rgba(95, 29, 116, 0.18);
    --shadow-xl: 0 16px 60px rgba(95, 29, 116, 0.25);
    --shadow-glow: 0 0 40px rgba(95, 29, 116, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-main: 'Cairo', 'Tajawal', sans-serif;
    --container-max: 1200px;
    --header-height: 72px;
}

/* ---------- Dark Mode Variables ---------- */
[data-theme="dark"] {
    --primary-bg: #1a1a2e;
    --primary-soft: #2a2a3e;
    --white: #1e1e32;
    --black: #f0f0f0;
    --gray-100: #2a2a3e;
    --gray-200: #33334a;
    --gray-300: #3d3d55;
    --gray-400: #4a4a60;
    --gray-500: #6c6c80;
    --gray-600: #9a9ab0;
    --gray-700: #c0c0d0;
    --gray-800: #e0e0e8;
    --gray-900: #f8f8fa;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(123, 45, 148, 0.4);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.5s ease, color 0.5s ease;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition-fast);
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ---------- Selection ---------- */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.5;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-lighter) 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(95, 29, 116, 0.35);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    box-shadow: 0 8px 35px rgba(95, 29, 116, 0.45);
    transform: translateY(-3px) scale(1.02);
}

/* زر المتصفح - Outline Style */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(95, 29, 116, 0.35);
    transform: translateY(-3px) scale(1.02);
}

[data-theme="dark"] .btn-outline {
    color: var(--primary-lighter);
    border-color: var(--primary-lighter);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--primary-lighter);
    color: #ffffff;
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
}

.btn-light:hover {
    background: var(--primary-soft);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.2);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 22px 52px;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 40px rgba(95, 29, 116, 0.5);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    font-size: 1.2em;
    animation: btnIconBounce 2s infinite;
}

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

/* ---------- Download Buttons Container ---------- */
.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

/* ---------- Header & Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(95, 29, 116, 0.1);
    transition: var(--transition-smooth);
    height: var(--header-height);
}

[data-theme="dark"] .site-header {
    background: rgba(30, 30, 50, 0.9);
    border-bottom: 1px solid rgba(123, 45, 148, 0.2);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(95, 29, 116, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .site-header.scrolled {
    background: rgba(30, 30, 50, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-text {
    transition: color var(--transition-fast);
    color: var(--gray-900);
}

.logo:hover .logo-text {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    justify-content: center;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-700);
    position: relative;
    transition: var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    transition: width var(--transition-fast);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
}

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

.nav-web-btn {
    display: inline-flex;
}

/* ---------- Theme Toggle Button ---------- */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-soft);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: rotate(15deg) scale(1.05);
}

.theme-toggle svg {
    position: absolute;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-icon-light {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

[data-theme="dark"] .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.lang-toggle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-soft);
    transition: var(--transition-bounce);
}

.lang-toggle:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: rotate(5deg) scale(1.05);
}

.nav-download-btn {
    display: inline-flex;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.hamburger:hover {
    background: var(--primary-soft);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    padding: 90px 24px 32px;
    transition: right var(--transition-smooth);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

[dir="ltr"] .mobile-menu {
    right: auto;
    left: -100%;
    transition: left var(--transition-smooth);
}

.mobile-menu.active {
    right: 0;
}

[dir="ltr"] .mobile-menu.active {
    right: auto;
    left: 0;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.mobile-menu ul li a {
    display: block;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--gray-800);
    transition: var(--transition-fast);
}

.mobile-menu ul li a:hover {
    background: var(--primary-soft);
    color: var(--primary);
    transform: translateX(-4px);
}

[dir="ltr"] .mobile-menu ul li a:hover {
    transform: translateX(4px);
}

/* ---------- Social Links - Hero Section ---------- */
.hero-social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--transition-bounce);
    overflow: visible;
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.08);
}

.social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.social-instagram:hover {
    box-shadow: 0 8px 30px rgba(225, 48, 108, 0.6);
}

.social-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0a5dc2 100%);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-facebook:hover {
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.6);
}

.social-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}

.social-telegram:hover {
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.6);
}

.social-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--gray-900);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.social-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--gray-900);
}

.social-btn:hover .social-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* ---------- Mobile Social Links ---------- */
.mobile-social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 16px 0;
}

.mobile-social-links a {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--transition-bounce);
}

.mobile-social-links a:hover {
    transform: scale(1.1);
}

/* ---------- Footer Social Links ---------- */
.footer-social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--transition-bounce);
    position: relative;
}

.footer-social-btn:hover {
    transform: translateY(-3px) scale(1.08);
}

.footer-social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0a5dc2 100%);
}

.footer-social-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.footer-web-btn {
    margin-top: 8px;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    padding: calc(var(--header-height) + 40px) 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--primary-bg) 0%, var(--white) 100%);
    transition: background 0.5s ease;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    animation: shapeFloat 8s ease-in-out infinite;
}

[data-theme="dark"] .hero-bg-shape {
    opacity: 0.2;
}

.hero-bg-1 {
    top: -100px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-lighter) 0%, transparent 70%);
    animation-delay: 0s;
}

.hero-bg-2 {
    bottom: -120px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ff6b6b 0%, transparent 70%);
    opacity: 0.15;
    animation-delay: 4s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(95, 29, 116, 0.2); }
    50% { box-shadow: 0 0 40px rgba(95, 29, 116, 0.4); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 40%, var(--primary-lighter) 70%, #d4a5e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGradient 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes titleGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.8;
}

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

.hero-apk-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Hero Phone Mockup */
.hero-phone-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    width: 340px;
    animation: floatPhone 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(-1deg); }
    75% { transform: translateY(-6px) rotate(1deg); }
}

.phone-frame {
    background: #1a1a2e;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 30px 60px rgba(95, 29, 116, 0.3),
        0 0 0 2px rgba(95, 29, 116, 0.2),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-screen {
    background: #f8f6fa;
    border-radius: 28px;
    overflow: hidden;
    height: 600px;
    display: flex;
    flex-direction: column;
    position: relative;
}

[data-theme="dark"] .phone-screen {
    background: #1e1e32;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.phone-app-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--primary);
    color: white;
}

.phone-app-logo {
    width: 28px;
    height: 28px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.phone-app-name {
    flex-grow: 1;
    font-weight: 700;
    font-size: 0.9rem;
}

.phone-app-location {
    font-size: 1rem;
}

.phone-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 12px;
    padding: 10px 14px;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-size: 0.8rem;
    color: var(--gray-500);
}

[data-theme="dark"] .phone-search-bar {
    background: #2a2a3e;
    color: #c0c0d0;
}

.phone-map {
    flex-grow: 1;
    position: relative;
    background: #e8f0e8;
    margin: 0 8px;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 180px;
}

[data-theme="dark"] .phone-map {
    background: #252540;
}

.phone-map-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(95, 29, 116, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95, 29, 116, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

.phone-pin {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 4px;
    background: white;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 0.7rem;
    font-weight: 600;
    animation: pinPulse 3s ease-in-out infinite;
    z-index: 2;
}

[data-theme="dark"] .phone-pin {
    background: #2a2a3e;
    color: #e0e0e8;
}

@keyframes pinPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.phone-route-line {
    position: absolute;
    top: 40%;
    right: 20%;
    width: 45%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    z-index: 1;
    animation: routeMove 3s ease-in-out infinite;
}

@keyframes routeMove {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.phone-nearby {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phone-nearby-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .phone-nearby-card {
    background: #2a2a3e;
}

.nearby-icon {
    font-size: 1.2rem;
}

.nearby-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nearby-info strong {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-800);
}

[data-theme="dark"] .nearby-info strong {
    color: #e0e0e8;
}

.nearby-distance {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 600;
}

/* ---------- Section Common ---------- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.badge-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    line-height: 1.3;
}

.text-white {
    color: white;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
}

.text-light {
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Web App Section ---------- */
.web-app-section {
    padding: 80px 0;
    background: var(--white);
    transition: background 0.5s ease;
}

.web-app-card {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--white) 50%, var(--primary-bg) 100%);
    border-radius: var(--radius-xl);
    padding: 56px 32px;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(95, 29, 116, 0.15);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .web-app-card {
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--gray-100) 50%, var(--primary-bg) 100%);
    border-color: rgba(123, 45, 148, 0.3);
}

.web-app-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(95, 29, 116, 0.05) 0%, transparent 50%);
    animation: rotateBg 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.web-app-icon {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 30px rgba(95, 29, 116, 0.4);
    animation: downloadIconPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes downloadIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 30px rgba(95, 29, 116, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 8px 50px rgba(95, 29, 116, 0.6); }
}

.web-app-card .section-title {
    position: relative;
    z-index: 1;
}

.web-app-card .section-desc {
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
}

.web-app-card .btn {
    position: relative;
    z-index: 1;
}

/* ---------- Features Section ---------- */
.features-section {
    padding: 80px 0;
    background: var(--white);
    transition: background 0.5s ease;
}

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

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(95, 29, 116, 0.08);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    cursor: default;
}

[data-theme="dark"] .feature-card {
    background: var(--gray-100);
    border-color: rgba(123, 45, 148, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary-lighter));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

[dir="rtl"] .feature-card::before {
    transform-origin: right;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: rgba(95, 29, 116, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
    transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-icon-1 { background: #fee2e2; color: #dc2626; }
.feature-icon-2 { background: #dbeafe; color: #2563eb; }
.feature-icon-3 { background: #fef3c7; color: #d97706; }
.feature-icon-4 { background: #d1fae5; color: #059669; }
.feature-icon-5 { background: #ede9fe; color: #7c3aed; }
.feature-icon-6 { background: #fce7f3; color: #db2777; }

[data-theme="dark"] .feature-icon-1 { background: rgba(220, 38, 38, 0.2); }
[data-theme="dark"] .feature-icon-2 { background: rgba(37, 99, 235, 0.2); }
[data-theme="dark"] .feature-icon-3 { background: rgba(217, 119, 6, 0.2); }
[data-theme="dark"] .feature-icon-4 { background: rgba(5, 150, 105, 0.2); }
[data-theme="dark"] .feature-icon-5 { background: rgba(124, 58, 237, 0.2); }
[data-theme="dark"] .feature-icon-6 { background: rgba(219, 39, 119, 0.2); }

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- Nearby Section ---------- */
.nearby-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-soft) 50%, var(--primary-bg) 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease;
}

.nearby-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.nearby-content .section-desc {
    margin-bottom: 24px;
}

.nearby-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.stat-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

.map-visual {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    min-height: 400px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 2px solid rgba(95, 29, 116, 0.1);
}

[data-theme="dark"] .map-visual {
    background: var(--gray-100);
    border-color: rgba(123, 45, 148, 0.2);
}

.map-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(95, 29, 116, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95, 29, 116, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
}

.map-pin {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    animation: mapPinFloat 4s ease-in-out infinite;
    cursor: pointer;
    transition: var(--transition-fast);
}

[data-theme="dark"] .map-pin {
    background: var(--gray-100);
    color: var(--gray-800);
}

.map-pin:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.map-pin-icon {
    font-size: 1.3rem;
}

.map-pin-label {
    font-size: 0.8rem;
    color: var(--gray-800);
}

.map-pin-distance {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    background: var(--primary-soft);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

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

.map-route-dashed {
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--primary) 0, var(--primary) 10px, transparent 10px, transparent 20px);
    border-radius: 2px;
    z-index: 1;
    animation: routeDash 2s linear infinite;
}

@keyframes routeDash {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

.map-center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(95, 29, 116, 0.2), 0 0 0 16px rgba(95, 29, 116, 0.1);
    z-index: 2;
    animation: centerPulse 2s ease-in-out infinite;
}

@keyframes centerPulse {
    0%, 100% { box-shadow: 0 0 0 8px rgba(95, 29, 116, 0.2), 0 0 0 16px rgba(95, 29, 116, 0.1); }
    50% { box-shadow: 0 0 0 12px rgba(95, 29, 116, 0.3), 0 0 0 24px rgba(95, 29, 116, 0.15); }
}

.map-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    z-index: 3;
    font-size: 0.8rem;
    animation: cardFloat 5s ease-in-out infinite;
}

[data-theme="dark"] .map-floating-card {
    background: var(--gray-100);
}

.map-card-1 {
    bottom: 20px;
    right: 20px;
    animation-delay: 0s;
}

.map-card-2 {
    bottom: 80px;
    left: 20px;
    animation-delay: 2s;
}

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

.map-card-icon {
    font-size: 1.4rem;
}

.map-floating-card strong {
    font-size: 0.85rem;
    display: block;
    color: var(--gray-800);
}

.map-floating-card span {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.75rem;
}

/* ---------- How It Works ---------- */
.how-section {
    padding: 80px 0;
    background: var(--white);
    transition: background 0.5s ease;
}

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

.step-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(95, 29, 116, 0.08);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .step-card {
    background: var(--gray-100);
    border-color: rgba(123, 45, 148, 0.2);
}

.step-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(95, 29, 116, 0.03) 0%, transparent 60%);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.step-card:hover::before {
    transform: rotate(180deg);
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(95, 29, 116, 0.2);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -2px;
    opacity: 0.6;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: var(--transition-bounce);
}

.step-card:hover .step-icon {
    background: var(--primary);
    color: white;
    transform: rotate(360deg) scale(1.1);
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.step-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ---------- Professionals Section ---------- */
.professionals-section {
    padding: 80px 0;
    background: var(--white);
    transition: background 0.5s ease;
}

.professionals-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 70%, var(--primary-lighter) 100%);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.professionals-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: shapeFloat 10s ease-in-out infinite;
}

.professionals-card::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: shapeFloat 12s ease-in-out infinite reverse;
}

.professionals-content {
    position: relative;
    z-index: 1;
}

.professionals-content .section-title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.professionals-content .section-desc {
    margin-bottom: 24px;
    font-size: 1rem;
}

.professionals-visual {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pro-visual-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition-fast);
    animation: cardSlideIn 0.6s ease-out;
}

.pro-visual-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-8px);
}

[dir="ltr"] .pro-visual-card:hover {
    transform: translateX(8px);
}

.pro-card-2 {
    animation-delay: 0.2s;
}

.pro-visual-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.pro-visual-card h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

.pro-visual-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ---------- Download Section ---------- */
.download-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--primary-bg) 100%);
    transition: background 0.5s ease;
}

.download-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 56px 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(95, 29, 116, 0.1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .download-card {
    background: var(--gray-100);
    border-color: rgba(123, 45, 148, 0.2);
}

.download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(95, 29, 116, 0.05) 0%, transparent 50%);
    animation: rotateBg 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.download-icon-circle {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 30px rgba(95, 29, 116, 0.4);
    animation: downloadIconPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes downloadIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 30px rgba(95, 29, 116, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 8px 50px rgba(95, 29, 116, 0.6); }
}

.download-card .section-title {
    position: relative;
    z-index: 1;
}

.download-card .section-desc {
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
}

.download-card .btn {
    position: relative;
    z-index: 1;
}

.download-note {
    margin-top: 16px;
    color: var(--gray-500);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 48px 0 0;
    transition: background 0.5s ease;
}

[data-theme="dark"] .site-footer {
    background: #0a0a14;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}

.footer-logo {
    color: white;
    font-size: 1.3rem;
}

.footer-logo .logo-text {
    color: white;
}

.footer-tagline {
    margin-top: 8px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

[dir="ltr"] .footer-col h4::after {
    right: auto;
    left: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(-4px);
}

[dir="ltr"] .footer-links a:hover {
    transform: translateX(4px);
}

.footer-download-text {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ---------- Scroll Animation Classes ---------- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-container {
        gap: 32px;
    }
    
    .phone-mockup {
        width: 280px;
    }
    
    .phone-screen {
        height: 520px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-download-btn {
        display: none;
    }
    
    .nav-web-btn {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-phone-wrapper {
        order: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-text {
        max-width: 100%;
        font-size: 1rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-social-links {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 260px;
    }
    
    .phone-screen {
        height: 480px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .nearby-container {
        grid-template-columns: 1fr;
    }
    
    .map-visual {
        min-height: 300px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .professionals-card {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .btn-xl {
        padding: 18px 36px;
        font-size: 1.1rem;
    }
    
    .download-card {
        padding: 40px 20px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 220px;
    }
    
    .phone-screen {
        height: 400px;
    }
    
    .phone-nearby-card {
        padding: 6px 8px;
    }
    
    .nearby-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .map-pin {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .map-pin-label {
        font-size: 0.65rem;
    }
    
    .map-floating-card {
        font-size: 0.7rem;
        padding: 8px 10px;
    }
    
    .hero-social-links {
        gap: 8px;
    }
    
    .social-btn {
        width: 38px;
        height: 38px;
    }
}
