:root {
    /* Light Mode */
    --bg: #f2f2f7;
    --nav-bg: rgba(255, 255, 255, 0.7);
    --card-bg: #ffffff;
    --text: #1d1d1f;
    --text-dim: #6e6e73;
    --primary: #3431D5;
    --border: rgba(0, 0, 0, 0.05);
    --logo-filter: none;
}

[data-theme="dark"] {
    /* Dark Mode */
    --bg: #000000;
    --nav-bg: rgba(28, 28, 30, 0.8);
    --card-bg: #1c1c1e;
    --text: #f5f5f7;
    --text-dim: #8e8e93;
    --primary: #5e5ce6;
    --border: rgba(255, 255, 255, 0.1);
    /* Inverts dark blue logo to white/bright blue for dark theme visibility */
    --logo-filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--primary));
}

body {
    margin: 0;
    font-family: 'Inter', 'Noto Sans Arabic', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: all 0.3s ease;
}

.blur-bg {
    position: fixed;
    top: -50px; left: -50px; width: 150%; height: 150%;
    background: radial-gradient(circle at top right, var(--primary), transparent 40%);
    opacity: 0.05;
    z-index: -1;
}

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

/* Modern Nav */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    margin-top: 20px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border);
    position: sticky;
    top: 20px;
    z-index: 100;
}

.logo { height: 45px; filter: var(--logo-filter); transition: filter 0.3s ease; }

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

/* Increased Nav Font Size & Spacing */
.menu { 
    display: flex; 
    list-style: none; 
    gap: 30px; /* Increased gap for larger text */
    align-items: center; 
    margin: 0; 
    padding: 0; 
}

.menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600; /* Made slightly bolder for readability */
    font-size: 1.1rem; /* Larger text as requested */
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.menu a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

/* Specific styling for text-based language links */
.lang-text a {
    font-size: 1rem; /* Slightly smaller than main links to maintain hierarchy */
    opacity: 0.8;
}

/* Theme Button Adjustments */
.theme-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    margin: 0 10px;
    transition: 0.3s;
}

/* Ensure Logo stays balanced with larger text */

/* Responsive adjust for larger text */
@media (max-width: 1100px) {
    .menu { gap: 15px; }
    .menu a { font-size: 1rem; }
}

.login-pill {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
}

/* Hero */
.hero { text-align: center; padding: 80px 0 40px; }
.hero h1 { font-size: 3rem; margin-bottom: 15px; }
.hero p { color: var(--text-dim); font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

.hero-apps {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.hero-apps img {
    height: 60px;
    border-radius: 12px;
    transition: 0.3s;
}

.hero-apps img:hover { transform: scale(1.05); }

.price-list {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    text-align: right;
}

.price-list li::before {
    content: "✓";
    color: var(--primary);
    margin-left: 8px;
    font-weight: bold;
}

.cost {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

.hero.mini { padding: 40px 0 20px; }
.hero.mini h1 { font-size: 2rem; }

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 60px;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 32px;
    transition: transform 0.3s ease;
}

.bento-card:hover { transform: translateY(-5px); }
.bento-card.large { grid-column: span 2; }
.bento-card.medium { grid-column: span 2; }

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Contact Cards - VISIBILITY FIX */
.contact-card {
    text-decoration: none;
    text-align: center;
    color: var(--text) !important; /* Force visibility in Dark Mode */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-text {
    font-size: 1rem;
    color: var(--text-dim);
    margin-top: 10px;
}

.contact-card:hover .contact-text { color: var(--primary); }

@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.large, .bento-card.medium { grid-column: span 1; }
    .menu { display: none; }
}