/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: #0f172a;
    color: #f1f5f9;
    direction: rtl;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Navbar ===== */
.nav {
    background: #1e293b;
    border-bottom: 1px solid #334155;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-brand-text strong {
    font-size: 1.1rem;
    color: #60a5fa;
}

.nav-brand-text span {
    font-size: 0.65rem;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.nav-home-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #334155;
    color: #e2e8f0;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-home-link:hover { background: #475569; }

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #312e81 100%);
    padding: 60px 24px;
    text-align: center;
    border-bottom: 1px solid #1e293b;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 20px;
}

.hero-divider {
    width: 80px;
    height: 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 999px;
    margin: 0 auto;
}

/* ===== Apps Grid Section ===== */
.apps-section {
    padding: 48px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 480px)  { .apps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 680px)  { .apps-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px)  { .apps-grid { grid-template-columns: repeat(5, 1fr); } }

/* ===== App Card ===== */
.app-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    border-color: #475569;
}

.app-icon-wrap {
    width: 80px;
    height: 80px;
    background: #334155;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 14px;
    transition: background 0.25s;
}

.app-card:hover .app-icon-wrap { background: #475569; }

.app-icon-wrap img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    transition: transform 0.25s;
}

.app-card:hover .app-icon-wrap img { transform: scale(1.1); }

.app-name {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #fff;
    padding: 9px 0;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn-download:hover {
    background: linear-gradient(135deg, #16a34a, #059669);
    box-shadow: 0 4px 14px rgba(16,185,129,0.4);
}

/* ===== Info Cards Section ===== */
.info-section {
    background: #111827;
    border-top: 1px solid #1e293b;
    padding: 48px 24px;
}

.info-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }

.info-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: background 0.2s;
}

.info-card:hover { background: #374151; }

.info-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.4rem;
}

.info-icon-wrap.green  { background: rgba(34,197,94,0.15);  color: #4ade80; }
.info-icon-wrap.blue   { background: rgba(59,130,246,0.15); color: #60a5fa; }
.info-icon-wrap.yellow { background: rgba(234,179,8,0.15);  color: #facc15; }

.info-card h4 { font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; }
.info-card p  { color: #94a3b8; font-size: 0.8rem; line-height: 1.5; }

/* ===== Footer ===== */
.footer {
    background: #0f172a;
    border-top: 1px solid #1e293b;
    padding: 20px 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
}

.footer a { color: #60a5fa; }
.footer a:hover { text-decoration: underline; }

/* ===== WhatsApp Button ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(34,197,94,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(34,197,94,0.7);
}
