/* Global Styles - Dark Mode & Enhanced Aesthetic */
:root {
    --primary-color: #26B0F1;
    /* Primary Color */
    --primary-glow: rgba(38, 176, 241, 0.5);
    --secondary-color: #9E9E9E;
    /* Grey Color */
    --bg-main: #121212;
    /* Background Color */
    --bg-card: #1E1E1E;
    /* Surface/Card Color */
    --bg-header: #1E1E1E;
    --text-main: #FFFFFF;
    /* Text Color */
    --text-muted: #9E9E9E;
    /* Light Grey/Hint Color */
    --border-color: #5A5A5A;
    /* Border Color */
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --font-family: 'Cairo', sans-serif;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Navbar */
.navbar {
    background-color: rgba(30, 41, 59, 0.95);
    /* Semi-transparent Slate 800 */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.logo img {
    height: 40px;
    margin-left: 10px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    padding: 120px 0;
    background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-glow);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2563EB);
    color: #FFFFFF;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--bg-card);
    border-color: var(--primary-color);
}

.btn-light {
    background: var(--text-main);
    color: var(--bg-main);
}

.btn i {
    margin-left: 10px;
    font-size: 1.3rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 1;
    position: relative;
}

.phone-mockup {
    width: 320px;
    border-radius: 40px;
    border: 8px solid #334155;
    background-color: #000;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.hero-bg-shape {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-main);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
    background-color: var(--primary-color);
    color: #FFFFFF;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Internal Pages Styling (Privacy & Terms) */
.page-header {
    background-color: var(--bg-card);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.page-header p {
    color: var(--text-muted);
}

.page-content {
    padding: 80px 0;
    background-color: var(--bg-main);
}

.policy-section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.policy-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.policy-section p,
.policy-section li {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.policy-section ul {
    list-style: disc;
    margin-right: 25px;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-main) 100%);
    color: var(--text-main);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.download p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.download .cta-buttons {
    justify-content: center;
}

/* Footer */
footer {
    background-color: #020617;
    /* Even darker for footer */
    color: var(--text-muted);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 35px;
    margin-bottom: 20px;
    /* In dark mode, ensure logo is visible - usually white */
    /* filter: brightness(0) invert(1); Not needed if logo is already visible or adaptive */
}

.footer-logo p {
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-main);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
    /* Slight movement on hover */
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-direction: row !important;
    /* Force row direction */
}

.social-icons li {
    list-style: none;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
        /* Above navbar */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-card);
        width: 100%;
        text-align: center;
        padding: 30px 0;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid var(--border-color);
    }

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

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}