/* ريست عام وضبط الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: radial-gradient(circle at 30% 50%, #1b2893 0%, #0c0f43 55%, #030416 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* ================= Navbar ================= */
.main-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.site-logo {
    height: 45px;
    width: auto;
    display: block;
}

.nav-logo a {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #a0b4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-container-box {
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 18px;
    display: inline-block;
    letter-spacing: 0.4px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-menu a.active {
    background-color: #ffffff !important;
    color: #040814 !important;
    font-weight: 900;
    box-shadow: 0 2px 18px rgba(255, 255, 255, 0.35);
    transform: scale(1.02);
}

/* ====== زرار اللغة ====== */
.lang-btn {
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 8px 18px 8px 10px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.4px;
}

.globe-svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.6s ease;
}

.globe-svg circle,
.globe-svg ellipse,
.globe-svg line {
    stroke: #fff;
    transition: stroke 0.35s ease;
}

.lang-btn:hover {
    background: #fff;
    color: #0c0f43;
    border-color: #fff;
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.lang-btn:hover .globe-svg { transform: rotate(30deg); }

.lang-btn:hover .globe-svg circle,
.lang-btn:hover .globe-svg ellipse,
.lang-btn:hover .globe-svg line { stroke: #0c0f43; }

/* ================= Home Cards ================= */
.home-container {
    max-width: 1400px;
    margin: 60px auto 40px auto;
    padding: 0 40px;
}

.cards-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 220px;
    max-width: 250px;
}

.category-card a {
    text-decoration: none;
    width: 100%;
    display: block;
}

.card-preview {
    width: 100%;
    height: 380px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
    cursor: pointer;
    overflow: hidden;
}

.card-preview:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 48px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255,255,255,0.12);
}

.card-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 50px;
    opacity: 0.25;
}

.card-label {
    background-color: #fff;
    color: #0c0f43;
    padding: 9px 25px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: center;
    width: 90%;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

[dir="rtl"] .nav-menu { flex-direction: row; }

/* ================= Responsive Navbar ================= */
@media (max-width: 992px) {
    .main-navbar {
        padding: 20px;
        justify-content: center;
    }
    .nav-container-box {
        order: 3;
        width: 100%;
        border-radius: 30px;
        padding: 6px 10px;
        justify-content: center;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    .nav-menu a {
        padding: 6px 12px;
        font-size: 12px;
    }
    .home-container {
        margin: 30px auto;
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .main-navbar {
        flex-direction: column;
        gap: 15px;
    }
    .nav-container-box { order: unset; }
    .category-card { min-width: 100%; max-width: 100%; }
    .card-preview { height: 340px; }
}

/* ================= FOOTER ================= */
.main-footer {
    background: rgba(4, 8, 20, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 50px 28px;
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 50px;
}

/* --- Brand --- */
.footer-brand {
    flex: 1;
    min-width: 280px;
    max-width: 480px;
}

.footer-brand h2 {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #a0b4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand > p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.85;
    font-weight: 400;
    margin-bottom: 28px;
}

/* --- Social Buttons --- */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    border: 1.5px solid transparent;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.footer-social-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.footer-social-btn:hover svg {
    transform: scale(1.15);
}

/* WhatsApp */
.btn-wa {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}
.btn-wa:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.35);
    transform: translateY(-2px);
}

/* TikTok */
.btn-tt {
    background: rgba(254, 44, 85, 0.1);
    border-color: rgba(254, 44, 85, 0.3);
    color: #fe2c55;
}
.btn-tt:hover {
    background: #fe2c55;
    border-color: #fe2c55;
    color: #fff;
    box-shadow: 0 6px 22px rgba(254, 44, 85, 0.35);
    transform: translateY(-2px);
}

/* Instagram */
.btn-ig {
    background: rgba(225, 48, 108, 0.1);
    border-color: rgba(225, 48, 108, 0.3);
    color: #e1306c;
}
.btn-ig:hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #e1306c;
    color: #fff;
    box-shadow: 0 6px 22px rgba(225, 48, 108, 0.35);
    transform: translateY(-2px);
}

/* Facebook */
.btn-fb {
    background: rgba(24, 119, 242, 0.1);
    border-color: rgba(24, 119, 242, 0.3);
    color: #1877f2;
}
.btn-fb:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
    box-shadow: 0 6px 22px rgba(24, 119, 242, 0.35);
    transform: translateY(-2px);
}

/* --- Contact Info --- */
.footer-info {
    flex: 1;
    min-width: 240px;
}

.footer-info h3 {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-list li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-icon-svg {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.footer-icon-svg svg {
    width: 15px;
    height: 15px;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s ease;
}

.footer-contact-list li:hover .footer-icon-svg {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.footer-contact-list li:hover .footer-icon-svg svg {
    color: #fff;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-contact-list a:hover {
    color: #fff;
}

/* --- Bottom bar --- */
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.25);
    font-size: 12px;
    letter-spacing: 0.4px;
    line-height: 1.8;
}

.dev-by { display: inline; margin-inline-start: 8px; }

.sigma-link {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.sigma-link:hover { color: #fff; }

/* ================= Footer Responsive ================= */
@media (max-width: 768px) {
    .main-footer {
        padding: 40px 20px 24px;
        margin-top: 60px;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 36px;
        text-align: center;
    }
    .footer-brand {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-info { text-align: center; }
    .footer-contact-list li { justify-content: center; }
    .footer-bottom { margin-top: 28px; }
    .dev-by { display: block; margin-top: 4px; margin-inline-start: 0; }
}