@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&family=Cairo:wght@400;700;900&display=swap');

:root {
    /* Dark Theme (Default) */
    --bg-dark: #020408;
    --bg-card: rgba(10, 15, 25, 0.6);
    --accent-blue: #00e5ff;
    --accent-purple: #9d00ff;
    --text-primary: #f8f9fa;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(2, 4, 8, 0.8);
    --dev-bg: #ffffff02;
    --verified: #3b82f6;
}

[data-theme="light"] {
    --bg-dark: #ffffff;
    --bg-card: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --glass-border: rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --dev-bg: #f9fafb;
    --verified: #2563eb;
    --accent-blue: #0ea5e9;
    --accent-purple: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.1s ease, color 0.1s ease, border-color 0.1s ease, opacity 0.1s ease;
}

[lang="ar"] * {
    font-family: 'Cairo', sans-serif;
}

[lang="en"] * {
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--glass-border);
    transition: 0.3s;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-style: italic;
    background: linear-gradient(135deg, #ffffff 10%, var(--accent-blue) 50%, var(--accent-purple) 90%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.35));
    transition: 0.3s ease;
}

[data-theme="light"] .logo-text {
    background: linear-gradient(135deg, #0f172a 10%, var(--accent-blue) 60%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.1));
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.verified-badge {
    color: #0095f6;
    fill: #0095f620;
    width: 22px !important;
    height: 22px !important;
    filter: drop_shadow(0 0 5px rgba(0, 149, 246, 0.3));
}

.dev-name-v3 .verified-badge {
    width: 18px !important;
    height: 18px !important;
    color: var(--verified);
    fill: var(--verified);
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.3));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    position: relative;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item i {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.nav-item:hover {
    color: var(--accent-blue);
}

.nav-item:hover i {
    opacity: 1;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #00e5ff, #8b5cf6);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    transition: 0.3s ease;
    border-radius: 10px;
}

.nav-item.active::after,
.nav-item:hover::after {
    width: 100%;
}

.nav-item.active {
    color: var(--accent-blue);
}

.nav-item.active i {
    opacity: 1;
}

.nav-actions {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.menu-toggle:hover {
    background: var(--bg-card);
    border-color: var(--accent-blue);
}

@media (max-width: 992px) {
    nav {
        padding: 0.6rem 5%;
        height: 60px;
        flex-direction: row !important;
        direction: ltr !important;
        gap: 0.8rem;
    }

    .logo-wrapper {
        order: 3;
        flex: 1;
        justify-content: flex-end;
    }

    .logo-text {
        font-size: 1.45rem;
        font-weight: 950;
        letter-spacing: 2px;
        text-align: right;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    }

    .verified-badge {
        width: 18px !important;
        height: 18px !important;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--bg-dark);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 3rem 1.5rem;
        gap: 1.2rem;
        border-top: 1px solid var(--glass-border);
        transform: translateY(-20px) translateX(0);
        /* Reset desktop transform */
        opacity: 0;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        z-index: 1050;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0) translateX(0);
        /* Reset desktop transform */
        opacity: 1;
        pointer-events: all;
    }

    .menu-toggle {
        display: flex;
        order: 1;
        border-radius: 12px;
        background: var(--bg-card);
        width: 38px;
        height: 38px;
        position: relative;
        z-index: 1100;
    }

    .nav-actions {
        order: 2;
        gap: 0.8rem;
        flex-direction: row !important;
    }

    .nav-item {
        font-size: 1rem;
        width: 100%;
        max-width: 400px;
        background: var(--bg-card);
        padding: 1.2rem 1.5rem;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
        justify-content: flex-start;
        flex-direction: row;
        gap: 1rem;
        transition: 0.3s;
    }

    [lang="ar"] .nav-item {
        flex-direction: row-reverse;
    }

    .nav-item i {
        width: 22px;
        height: 22px;
        color: var(--accent-blue);
    }

    .nav-item.active {
        background: rgba(0, 229, 255, 0.08);
        border-color: var(--accent-blue);
        color: var(--accent-blue);
        box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
    }

    /* Elite Mobile Hero UI - High Impact & Balanced */
    .hero {
        padding: 100px 5% 40px;
        min-height: 60vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 10vw, 3.8rem);
        font-weight: 950;
        letter-spacing: 2.5px;
        line-height: 1.1;
        margin-bottom: 2rem;
        background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: #ffffff;
        /* Fallback */
        text-transform: uppercase;
        filter: drop-shadow(0 10px 20px rgba(255, 255, 255, 0.15));
        font-style: italic;
        width: 100%;
        display: block;
        text-align: center;
    }

    [data-theme="light"] .hero h1 {
        background: linear-gradient(180deg, #0f172a 0%, #334155 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: #0f172a;
        /* Fallback */
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    }

    .hero p {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 2.5rem;
        line-height: 1.8;
        opacity: 0.9;
        padding: 0 5%;
        text-align: center;
        color: var(--text-secondary);
    }

    /* Refined Mobile Stats Pill - Final Dimension Fix */
    .trust-stats {
        display: flex;
        justify-content: space-around;
        align-items: stretch;
        width: 92%;
        background: var(--bg-card);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        padding: 1rem 2px;
        margin: 0 auto 2rem;
    }

    .stat-item {
        flex: 1;
        text-align: center;
        border-right: 1px solid var(--glass-border);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 2px;
        min-width: 0;
        /* Allow items to shrink if needed */
    }

    .stat-item:last-child {
        border-right: none;
    }

    .stat-value {
        font-size: 1.2rem;
        font-weight: 950;
        display: block;
        line-height: 1;
        margin-bottom: 5px;
        background: linear-gradient(135deg, #00f2ff, #a855f7);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .stat-label {
        font-size: 0.52rem;
        font-weight: 850;
        text-transform: uppercase;
        color: var(--text-secondary);
        letter-spacing: 0.2px;
        display: block;
        line-height: 1.1;
        width: 100%;
        opacity: 0.95;
    }

    .cta-btn {
        width: 85%;
        max-width: 300px;
        padding: 1.1rem 2rem;
        font-size: 1rem;
        border-radius: 50px;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: 2px;
        box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
    }

    [lang="ar"] .nav-item.active {
        border-right: 4px solid var(--accent-blue);
        border-left: 1px solid var(--glass-border);
    }

    [lang="en"] .nav-item.active {
        border-left: 4px solid var(--accent-blue);
        border-right: 1px solid var(--glass-border);
    }

    .nav-item::after {
        display: none;
    }

    .nav-item:hover {
        background: var(--bg-card);
        transform: translateX(5px);
    }

    /* Compact Buttons for Mobile */
    .icon-btn#langBtn {
        width: auto !important;
        height: 38px !important;
        padding: 0 0.8rem !important;
        font-size: 0.75rem;
        border-radius: 12px !important;
    }

    .icon-btn#themeBtn {
        width: 38px !important;
        height: 38px !important;
        border-radius: 12px;
    }

    /* Support Section Improvements for Mobile */
    .support-card {
        padding: 2.2rem 1.5rem;
    }

    .support-card h2 {
        font-size: 1.8rem;
    }

    .support-socials {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .social-btn {
        padding: 0.7rem 0.5rem;
        font-size: 0.8rem;
        justify-content: center;
        width: 100%;
        gap: 0.5rem;
    }

    .social-btn i,
    .social-btn svg {
        width: 16px;
        height: 16px;
    }
}

.icon-btn {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.icon-btn:hover {
    background: var(--bg-card);
    transform: scale(1.1);
    border-color: var(--accent-blue);
}

/* Elite Hero UI - Professional Mesh Gradient */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 10% 80px;
    position: relative;
    overflow: hidden;
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .hero {
    background:
        radial-gradient(at 0% 0%, rgba(0, 229, 255, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(157, 0, 255, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 229, 255, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(157, 0, 255, 0.2) 0px, transparent 50%),
        #020408;
}

[data-theme="light"] .hero {
    background:
        radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.12) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(139, 92, 246, 0.12) 0px, transparent 50%),
        #ffffff;
}

@keyframes hero-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero h1 {
    font-size: clamp(3.5rem, 12vw, 7.5rem);
    font-weight: 1000;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: 5px;
    z-index: 2;
    animation: hero-float 6s ease-in-out infinite;
    font-style: italic;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

[data-theme="light"] .hero h1 {
    background: linear-gradient(180deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 2.5rem;
    z-index: 2;
    line-height: 1.5;
}

.trust-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3.5rem;
    z-index: 2;
    background: var(--bg-card);
    padding: 1.2rem 2.5rem;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* CTA Button - Chic and Premium */
.cta-btn {
    padding: 1.2rem 3.5rem;
    font-size: 1.1rem;
    font-weight: 850;
    color: white;
    background: linear-gradient(135deg, #00e5ff, #8b5cf6);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 15px 45px rgba(0, 229, 255, 0.25);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 229, 255, 0.4);
    background: linear-gradient(135deg, #00f2ff, #a855f7);
    letter-spacing: 3px;
}

.cta-btn:active {
    transform: scale(0.92);
    transition: 0.05s ease;
}

/* Categories */
.section-header {
    text-align: center;
    margin: 6rem 0 3rem;
}

.categories-container {
    padding: 0 8% 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.category-box {
    height: 400px;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.75;
}

.category-box:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    transition: 0.5s ease;
}

/* Specific help for low-res screenshots (like cables) */
.product-img-wrapper {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Simple Product Image Layout */
.product-card img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.product-card:hover img {
    transform: scale(1.1) translateY(-5px);
    filter: contrast(1.2) brightness(1.15);
}

.category-box.special-blend {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.category-box.special-blend img {
    opacity: 1;
    mix-blend-mode: normal;
    filter: url(#remove-black) drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15)) contrast(1.1);
}

.category-box.special-blend:hover {
    transform: translateY(-10px);
    background: #f8fafc;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

/* Fix text overlay since the background is now white */
.category-box.special-blend .category-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
}

.category-box.special-blend .category-overlay h3 {
    color: #0f172a !important;
    text-shadow: none !important;
}

.category-box.special-blend .category-overlay p {
    color: #0ea5e9 !important;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

/* Developer Section (Professional & Compact) */
.dev-section-modern {
    padding: 3rem 10% 2rem;
    text-align: center;
    background: var(--dev-bg);
    border-top: 1px solid var(--glass-border);
}

.dev-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: block;
    opacity: 0.8;
}

.dev-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.dev-name-v3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-direction: row;
    /* Ensure LTR order for name + badge */
}

[lang="ar"] .dev-name-v3 {
    flex-direction: row-reverse;
    /* Flip for Arabic to keep badge at the end */
}

/* Custom Verified Badge (Matches Image) */
.verified-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #0095f6;
    clip-path: polygon(50% 0%, 61% 6%, 74% 3%, 81% 13%, 94% 15%, 94% 28%, 100% 39%, 97% 50%, 100% 61%, 94% 72%, 94% 85%, 82% 87%, 74% 97%, 62% 94%, 50% 100%, 38% 94%, 26% 97%, 18% 87%, 6% 85%, 6% 72%, 0% 61%, 3% 50%, 0% 39%, 6% 28%, 6% 15%, 19% 13%, 26% 3%, 39% 6%);
    filter: drop-shadow(0 0 5px rgba(0, 149, 246, 0.4));
}

.verified-wrapper::after {
    content: '✓';
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
}

.dev-socials {
    display: flex;
    gap: 1.2rem;
}

.social-circle-v3 {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.3rem;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-circle-v3.whatsapp-btn:hover {
    background: #25D366;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.social-circle-v3.facebook-btn:hover {
    background: #1877F2;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.3);
}

.dev-copy {
    margin-top: 1.5rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Mission Section - Elite Styling */
.mission-section {
    padding: 6rem 8%;
    display: flex;
    justify-content: center;
    content-visibility: auto;
    /* Skip layout until visible */
    contain-intrinsic-size: 0 500px;
}

.mission-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3.5rem 2.5rem;
    border-radius: 40px;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
}

.mission-card h2 {
    font-size: 2.2rem;
    font-weight: 950;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #00e5ff, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mission-card ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
}

.mission-card li {
    background: var(--bg-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mission-card li:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    background: var(--bg-card);
}

.mission-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto;
    font-weight: 400;
}

[lang="ar"] .mission-card p {
    font-size: 1.25rem;
}

/* Support Section */
.support-section {
    padding: 4rem 8% 6rem;
    display: flex;
    justify-content: center;
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

.support-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 40px;
    width: 100%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.support-card h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.support-card p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.support-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    color: white;
}

.social-btn i,
.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn.whatsapp {
    background: #25D366;
    border-color: #25D366;
}

.social-btn.facebook {
    background: #1877F2;
    border-color: #1877F2;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

.social-btn.tiktok {
    background: #000;
    border-color: #333;
}

.social-btn:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.social-btn.whatsapp:hover {
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.social-btn.facebook:hover {
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.3);
}

.social-btn.instagram:hover {
    box-shadow: 0 10px 20px rgba(220, 39, 67, 0.3);
}

.social-btn.tiktok:hover {
    box-shadow: 0 10px 20px rgba(255, 0, 80, 0.2);
    border-color: #ff0050;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .search-bar {
        display: none;
    }

    nav {
        padding: 1rem 5%;
    }
}

/* Products Grid */
#productsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 35px;
    padding: 1.2rem;
    text-align: center;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    will-change: transform;
    contain: content;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
    border-bottom: 2px solid var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

.product-card:active {
    transform: scale(0.98);
    transition: transform 0.05s ease;
}

.product-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.03);
    /* Subtle backdrop instead of pure black */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.25s ease-out;
}

.product-img-wrapper.special-blend {
    background: #ffffff;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
}

.product-img-wrapper.special-blend img {
    mix-blend-mode: normal;
    filter: url(#remove-black) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.product-card:hover img {
    transform: scale(1.04);
}

.product-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-card .price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 0.2rem;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    text-align: center;
}

.product-purchase-group {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    align-items: flex-end;
    margin-top: auto;
    justify-content: center;
}

.qty-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 0 0 120px;
    align-items: center;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    height: 48px;
    min-width: 110px;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--accent-blue);
    width: 38px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.1s ease;
}

.qty-btn i {
    width: 16px;
    height: 16px;
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-btn:hover {
    background: rgba(0, 229, 255, 0.15);
}

.qty-input-group label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
}

.qty-input-group input {
    flex: 1;
    width: 40px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    outline: none;
    appearance: none;
    -moz-appearance: textfield;
}

.qty-input-group input::-webkit-outer-spin-button,
.qty-input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.buy-now-btn {
    flex: 1;
    padding: 0 0.8rem !important;
    font-size: 0.9rem !important;
    height: 48px !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 !important;
    white-space: nowrap;
}

@media (max-width: 768px) {
    #productsGrid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .categories-container {
        grid-template-columns: 1fr;
        padding: 0 8% 4rem;
        gap: 2rem;
    }

    .category-box {
        height: 400px;
        border-radius: 40px;
    }

    .category-overlay {
        padding: 2.5rem;
    }

    .category-overlay h3 {
        font-size: 1.8rem;
    }

    .product-card {
        padding: 1.5rem;
        border-radius: 35px;
        gap: 1rem;
    }

    .product-img-wrapper {
        border-radius: 25px;
    }

    .product-card h3 {
        font-size: 1.4rem;
        line-height: 1.2;
        min-height: 0;
        display: block;
        overflow: visible;
        margin: 0.5rem 0;
    }

    .product-desc {
        display: block;
        font-size: 0.9rem;
        color: var(--text-secondary);
        margin-bottom: 1rem;
    }

    .price {
        font-size: 1.3rem !important;
        font-weight: 800;
    }

    .product-purchase-group {
        flex-direction: row !important;
        align-items: flex-end;
        justify-content: space-between;
        width: 100%;
        gap: 0.8rem;
        margin-top: 1.8rem;
    }

    .qty-input-group {
        position: relative;
        flex: 1;
    }

    .qty-input-group label {
        display: block !important;
        position: absolute;
        bottom: calc(100% + 4px);
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.72rem;
        font-weight: 850;
        color: var(--text-secondary);
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .qty-selector {
        height: 50px;
        width: 100%;
        justify-content: center;
        border-radius: 25px;
        background: var(--bg-dark);
        border: 1px solid var(--glass-border);
    }

    .qty-btn {
        width: 40px;
    }

    .buy-now-btn {
        flex: 1.2;
        height: 50px !important;
        font-size: 1.1rem !important;
        font-weight: 900 !important;
        border-radius: 25px !important;
        box-shadow: 0 10px 25px rgba(0, 149, 246, 0.2) !important;
    }

    /* Mission Section Mobile Refinement */
    .mission-section {
        padding: 3rem 5%;
    }

    .mission-card {
        padding: 2rem 1.2rem;
        border-radius: 30px;
    }

    .mission-card h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        letter-spacing: -1px;
    }

    .mission-card ul {
        margin: 1.5rem 0;
        gap: 0.6rem;
    }

    .mission-card li {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-radius: 12px;
    }

    .mission-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    [lang="ar"] .mission-card p {
        font-size: 1rem;
    }

    .mobile-bottom-back {
        display: block !important;
        text-align: center;
        padding-bottom: 2rem;
    }
}

.mobile-bottom-back {
    display: none;
}