/* ============================================================
   BOXZERO - MAIN STYLESHEET
   Version: 2.5.3
   ============================================================ */

/* ----- Fonts ----- */
@font-face {
    font-family: 'Vazir';
    src: url('../font/Vazir-Regular.woff2') format('woff2'),
         url('../font/Vazir-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../font/Vazir-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../font/Vazir-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Alibaba';
    src: url('../font/Alibaba-Regular.woff2') format('woff2');
    font-display: swap;
}

/* ----- Root Variables ----- */
:root {
    /* Backgrounds */
    --bg-dark: #0e0e0e;
    --bg-card: #1e293b;
    --bg-light: #ffffff;
    
    /* Text */
    --text-dark: #ffffff;
    --text-light: #0f172a;
    --text-gray: #94a3b8;
    --text-primary: #f1f5f9;
    
    /* Purple Theme */
    --purple: #b008f3;
    --purple-light: #c026f3;
    --purple-dark: #8b00e0;
    --accent-color: #b008f3;
    --accent-dark: #8b00e0;
    --accent-light: #c026f3;
    
    /* Gradients */
    --grad: linear-gradient(135deg, #b008f3, #8b5cf6);
    --grad-hover: linear-gradient(135deg, #c026f3, #7c3aed);
    
    /* Borders & Shadows */
    --border: rgba(71, 85, 105, 0.5);
    --border-color: rgba(71, 85, 105, 0.5);
    --border-hover: rgba(176, 8, 243, 0.4);
    --shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.3);
    
    /* Cards */
    --card-bg: rgba(30, 41, 59, 0.8);
    --card-hover-bg: rgba(30, 41, 59, 0.95);
    
    /* Buttons */
    --btn-gradient: linear-gradient(135deg, #b008f3, #8b5cf6);
    --btn-hover: linear-gradient(135deg, #c026f3, #7c3aed);
    
    /* Radius */
    --radius: 28px;
    --radius-sm: 16px;
    --radius-lg: 45px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ----- Light Theme ----- */
[data-theme="light"] {
    --bg-dark: #e7e7e7;
    --bg-card: #ffffff;
    --text-dark: #000000;
    --text-light: #f1f5f9;
    --text-gray: #475569;
    --text-primary: #0f172a;
    
    --border: rgba(148, 163, 184, 0.2);
    --border-color: rgba(148, 163, 184, 0.2);
    --shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.08);
    
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-hover-bg: rgba(255, 255, 255, 0.98);
}

/* ----- Reset & Base ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    background: var(--bg-dark);
    color: var(--text-dark);
    transition: var(--transition);
    line-height: 1.6;
    min-height: 100vh;
}

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000;

    opacity: 1;
    visibility: visible;

    transition:
        opacity .8s ease,
        visibility .8s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Grid */
.loader-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.045) 1px,
            transparent 1px
        );

    background-size: 45px 45px;
}

/* Glass */
.loader-box {
    position: relative;
    z-index: 2;

    width: 150px;
    height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 36px;

    background: rgba(255,255,255,.06);

    border: 1px solid rgba(255,255,255,.2);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.15),
        0 25px 80px rgba(0,0,0,.7);
}

/* Ring */
.loader-ring {
    position: absolute;

    width: 80px;
    height: 80px;

    border-radius: 50%;

    border: 2px solid rgba(255,255,255,.12);

    border-top-color: white;

    animation: loaderSpin .8s linear infinite;
}

.loader-text {
    position: relative;
    z-index: 3;

    color: rgba(255,255,255,.8);

    font-family: Arial, sans-serif;

    font-size: 11px;

    letter-spacing: 2px;

    min-width: 80px;

    text-align: center;
}

@keyframes loaderSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   BACKGROUND GRID & ORB (UPDATED FOR GLASS EFFECT)
   ============================================================ */

/* 1. THE BACKGROUND GRID */
.grid-bg {
    position: fixed; /* Fixed so it stays put while scrolling */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* Behind all content */
    pointer-events: none; /* Allows clicking through it */
        
    /* Create the grid */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px; /* Size of each grid square */
    background-position: -1px -1px; /* Fix slight alignment issues */
}

/* Light theme adjustment for grid */
[data-theme="light"] .grid-bg {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

/* 2. THE TOP-LEFT CIRCLE DESIGN (Orb) */
.orb-container {
    position: fixed;
    top: 70px;
    left: 70px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The faint outer ring */
.orb-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid var(--border); /* Uses your glass border */
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(4px); /* Glass effect */
    position: absolute;
}

/* The glowing inner dot */
.orb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--purple-light);
    box-shadow: 0 0 25px 10px rgba(176, 8, 243, 0.4); /* Purple glow */
    position: absolute;
    animation: orb-pulse 3s infinite ease-in-out;
}

@keyframes orb-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- Scrollbar Styling ----- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-light);
}

/* ============================================================
   GLASS MORPHISM UTILITY
   ============================================================ */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.glass-light {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================================
   GLASS STATS CARDS
   ============================================================ */
.stats-glass-section {
    padding: 60px 0 80px;
    background: var(--bg-dark);
    position: relative;
}

/* Subtle background pattern */
.stats-glass-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(176, 8, 243, 0.03), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.02), transparent 50%);
    pointer-events: none;
}

.stats-glass-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== GLASS CARD ===== */
.stats-glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px 24px 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* ===== Glass border glow effect ===== */
.stats-glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(176, 8, 243, 0.04),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.stats-glass-card:hover::before {
    opacity: 1;
}

/* ===== Corner shine ===== */
.stats-glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(176, 8, 243, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stats-glass-card:hover::after {
    opacity: 1;
}

/* ===== Hover effect ===== */
.stats-glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(176, 8, 243, 0.25);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(176, 8, 243, 0.04);
}

/* ===== Icon ===== */
.stats-glass-card .card-icon {
    font-size: 2.2rem;
    color: var(--purple);
    margin-bottom: 12px;
    display: block;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.stats-glass-card:hover .card-icon {
    opacity: 1;
    transform: scale(1.08);
}

/* ===== Number ===== */
.stats-glass-card .card-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

/* ===== Label ===== */
.stats-glass-card .card-label {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 400;
}

/* ===== Badge ===== */
.stats-glass-card .card-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 3px 16px;
    background: rgba(176, 8, 243, 0.08);
    border: 1px solid rgba(176, 8, 243, 0.06);
    border-radius: 20px;
    font-size: 0.65rem;
    color: var(--text-gray);
    letter-spacing: 0.5px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.stats-glass-card:hover .card-badge {
    opacity: 1;
    background: rgba(176, 8, 243, 0.12);
}

/* ============================================================
   RESPONSIVE GLASS STATS
   ============================================================ */

@media (max-width: 1024px) {
    .stats-glass-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 700px;
    }
    
    .stats-glass-card {
        padding: 28px 20px 24px;
    }
    
    .stats-glass-card .card-number {
        font-size: 2.4rem;
    }
}

@media (max-width: 640px) {
    .stats-glass-section {
        padding: 40px 0 60px;
    }
    
    .stats-glass-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .stats-glass-card {
        padding: 22px 14px 18px;
        border-radius: 18px;
    }
    
    .stats-glass-card .card-icon {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    .stats-glass-card .card-number {
        font-size: 1.8rem;
    }
    
    .stats-glass-card .card-label {
        font-size: 0.78rem;
    }
    
    .stats-glass-card .card-badge {
        font-size: 0.55rem;
        padding: 2px 12px;
        margin-top: 10px;
    }
}

@media (max-width: 420px) {
    .stats-glass-grid {
        gap: 10px;
    }
    
    .stats-glass-card {
        padding: 16px 10px 14px;
        border-radius: 14px;
    }
    
    .stats-glass-card .card-number {
        font-size: 1.5rem;
    }
    
    .stats-glass-card .card-label {
        font-size: 0.7rem;
    }
    
    .stats-glass-card .card-icon {
        font-size: 1.3rem;
    }
}

/* ============================================================
   VERSION BADGE
   ============================================================ */
.version {
    position: fixed;
    bottom: 10px;
    right: 15px;
    z-index: 1000;
    opacity: 0.25;
    font-size: 0.65rem;
    pointer-events: none;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ============================================================
   LANGUAGE BUTTON
   ============================================================ */
.language-btn {
    position: fixed;
    top: 25px;
    left: 65px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 14px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.language-btn:hover {
    transform: scale(1.05) translateY(-2px);
    border-color: var(--purple);
    box-shadow: 0 10px 40px rgba(176, 8, 243, 0.25);
}

.language-btn:active {
    transform: scale(0.93);
}

.language-btn i {
    font-size: 20px;
    color: var(--purple);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.language-btn:hover i {
    transform: rotate(180deg);
}

.language-btn .lang-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    text-transform: uppercase;
    min-width: 24px;
    text-align: center;
}

.language-btn .lang-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

/* Ripple Effect */
.language-btn .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(176, 8, 243, 0.12);
    transform: scale(0);
    animation: ripple-effect 2.5s infinite;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

@keyframes ripple-effect {
    0% { transform: scale(0); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* ----- Language Dropdown ----- */
.lang-dropdown {
    position: fixed;
    top: 130px;
    left: 20px;
    width: 340px;
    max-height: 0;
    overflow: hidden;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    z-index: 1002;
    transition: all 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: translateY(-15px) scale(0.92);
    transform-origin: top left;
}

.lang-dropdown.active {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0) scale(1);
    padding: 20px 20px 18px;
}

.lang-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}

.lang-header i {
    font-size: 22px;
    color: var(--purple);
}

.lang-header span {
    font-size: 15px;
    font-weight: 700;
    flex: 1;
    color: var(--text-dark);
}

.lang-close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 18px;
}

.lang-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dark);
    transform: rotate(90deg);
}

/* Search */
.lang-search {
    position: relative;
    margin-bottom: 14px;
}

.lang-search i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 14px;
}

.lang-search input {
    width: 100%;
    padding: 12px 45px 12px 18px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-dark);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.lang-search input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(176, 8, 243, 0.1);
}

.lang-search input::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

/* Language List */
.lang-list {
    max-height: 260px;
    overflow-y: auto;
    padding-left: 4px;
}

.lang-list::-webkit-scrollbar {
    width: 4px;
}

.lang-list::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 10px;
}

.lang-list::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 10px;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition-bounce);
    margin-bottom: 3px;
    position: relative;
}

.lang-item:hover {
    background: rgba(176, 8, 243, 0.1);
    transform: translateX(-5px) scale(1.02);
}

.lang-item.active {
    background: rgba(176, 8, 243, 0.15);
    border: 1px solid rgba(176, 8, 243, 0.2);
}

.lang-item .flag {
    font-size: 26px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.lang-item .lang-name {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    color: var(--text-dark);
}

.lang-item .lang-code {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 700;
    background: var(--bg-dark);
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.lang-item .check-mark {
    color: var(--purple);
    font-size: 18px;
    opacity: 0;
    transform: scale(0) rotate(-45deg);
    transition: var(--transition-bounce);
}

.lang-item.active .check-mark {
    opacity: 1;
    transform: scale(1) rotate(0);
}

/* Footer */
.lang-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--border);
    gap: 12px;
}

.lang-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-gray);
}

.lang-info i {
    color: var(--purple);
    font-size: 14px;
}

.lang-info strong {
    color: var(--text-dark);
}

.lang-reset {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-gray);
    padding: 6px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    font-family: inherit;
}

.lang-reset:hover {
    background: rgba(176, 8, 243, 0.15);
    border-color: var(--purple);
    color: var(--purple);
    transform: translateY(-1px);
}

/* Overlay */
.lang-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lang-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Language Items Animation */
.lang-item {
    animation: slideInLang 0.4s ease forwards;
    opacity: 0;
}

.lang-item:nth-child(1) { animation-delay: 0.03s; }
.lang-item:nth-child(2) { animation-delay: 0.06s; }
.lang-item:nth-child(3) { animation-delay: 0.09s; }
.lang-item:nth-child(4) { animation-delay: 0.12s; }
.lang-item:nth-child(5) { animation-delay: 0.15s; }
.lang-item:nth-child(6) { animation-delay: 0.18s; }
.lang-item:nth-child(7) { animation-delay: 0.21s; }
.lang-item:nth-child(8) { animation-delay: 0.24s; }

@keyframes slideInLang {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Toast Notification */
.lang-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--purple);
    padding: 14px 32px;
    border-radius: 16px;
    color: var(--text-dark);
    font-weight: 500;
    z-index: 99999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    font-family: 'Vazir', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.lang-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.lang-toast i {
    font-size: 22px;
    color: var(--purple);
}

/* ============================================================
   MAIN NAVIGATION (UPDATED: GLASS, STROKE, BLUR, ROUNDED)
   ============================================================ */
.menu {
    direction: ltr;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    
    /* ULTIMATE GLASS EFFECT */
    background: rgba(30, 41, 59, 0.3); /* Highly transparent so the grid shows through */
    backdrop-filter: blur(24px);       /* Heavy blur behind the navbar */
    -webkit-backdrop-filter: blur(24px);
    
    /* STROKE & ROUNDING */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Sharp, subtle translucent stroke */
    border-radius: 999px; /* "Five" rounded: infinitely round, like a pill shape */
    
    padding: 8px 25px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05); /* Deep shadow + subtle inset highlight */
}

/* Light mode adjustment for the menu */
[data-theme="light"] .menu {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.menu-in {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.desktop-nav {
    display: flex;
    gap: 5px;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(176, 8, 243, 0.08);
}

.line {
    width: 28px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* User Badge */
.user-name-badge {
    background: rgba(176, 8, 243, 0.15);
    padding: 6px 15px;
    border-radius: 40px;
    font-size: 0.85rem;
    margin-right: 10px;
    color: var(--purple);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.user-name-badge:hover {
    background: rgba(176, 8, 243, 0.25);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.85); /* Slightly more opaque on mobile */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 25px;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.mobile-nav.active {
    max-height: 500px;
    padding: 20px;
    display: flex;
    gap: 6px;
}

.mobile-nav-header {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.mobile-nav-header .logo {
    font-size: 1.2rem;
}

.mobile-nav-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 0.7rem;
    color: var(--text-gray);
    text-align: center;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav .btn-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    text-align: right;
    border-radius: 16px;
}

.mobile-nav .btn-menu i {
    width: 24px;
    font-size: 1.1rem;
}

/* Menu Buttons */
.btn-menu {
    /* Glass & Blur */
    background: rgba(255, 255, 255, 0.05); /* Ultra-clear glass base */
    backdrop-filter: blur(12px);           /* Heavy blur behind the button */
    -webkit-backdrop-filter: blur(12px);
    
    /* Stroke & Fully Rounded */
    border: 1px solid rgba(255, 255, 255, 0.12); /* Crisp, thin translucent stroke */
    border-radius: 999px;                        /* Perfectly round "pill" shape */
    
    /* Text & Layout */
    padding: 8px 22px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); /* Subtle inner shine */
}

/* Hover Effect - Lights up purple */
.btn-menu:hover {
    background: rgba(176, 8, 243, 0.12); /* Semi-transparent purple fill */
    border-color: rgba(176, 8, 243, 0.4); /* Stroke becomes purple */
    color: var(--purple);                /* Text turns purple */
    transform: translateY(-2px);         /* Smooth lift */
    box-shadow: 0 4px 20px rgba(176, 8, 243, 0.2); /* Purple glow */
}

/* Active State (Current Page) */
.btn-menu.active {
    background: rgba(176, 8, 243, 0.15);
    border-color: var(--purple);
    color: var(--purple);
    box-shadow: 0 0 15px rgba(176, 8, 243, 0.15);
}

/* ----- Light Mode Adjustments ----- */
[data-theme="light"] .btn-menu {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #475569;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .btn-menu:hover {
    background: rgba(176, 8, 243, 0.15);
    border-color: rgba(176, 8, 243, 0.4);
    color: var(--purple);
}

[data-theme="light"] .btn-menu.active {
    background: rgba(176, 8, 243, 0.2);
    border-color: var(--purple);
    color: var(--purple);
}
/* ============================================================
   THEME TOGGLE
   ============================================================ */
/* ============================================================
   THEME TOGGLE (UPDATED: GLASS + BLUR + ROUNDED + STROKE)
   ============================================================ */
.theme-toggle {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 48px;
    height: 48px;
    
    /* Glass Background & Heavy Blur */
    background: rgba(255, 255, 255, 0.06); /* Translucent glass base */
    backdrop-filter: blur(16px);            /* Deep blur behind the circle */
    -webkit-backdrop-filter: blur(16px);
    
    /* Sharp Stroke & Perfect Roundness */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Crisp translucent outline */
    border-radius: 999px; /* Perfectly round circle */
    
    /* Layout & Depth */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Hover Effect */
.theme-toggle:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--purple); /* Stroke lights up purple */
    box-shadow: 0 12px 40px rgba(176, 8, 243, 0.25); /* Purple glow */
}

/* Click Effect */
.theme-toggle:active {
    transform: scale(0.92);
}

/* Icon Styling */
.theme-toggle i {
    font-size: 20px;
    color: var(--text-dark);
    transition: var(--transition);
}

/* ----- Light Mode Adjustments ----- */
[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .theme-toggle:hover {
    border-color: var(--purple);
    box-shadow: 0 10px 30px rgba(176, 8, 243, 0.15);
}

/* ============================================================
   BUTTONS - UNIFIED SYSTEM
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Alibaba', 'Vazir', 'Tahoma', sans-serif;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-purple {
    /* Glass & Blur Base */
    background: rgba(255, 255, 255, 0.04); /* Crystal clear transparent base */
    backdrop-filter: blur(16px);            /* Heavy glass blur */
    -webkit-backdrop-filter: blur(16px);
    
    /* Gradient overlay on top of the glass */
    background-image: var(--grad);
    background-blend-mode: overlay; /* Blends the gradient subtly with the glass */

    /* Sharp Stroke & Fully Rounded */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Crisp translucent border */
    border-radius: 999px; /* Perfect pill shape */

    /* Text & Layout */
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

/* Shine Slide Effect (Kept from your original code) */
.btn-purple::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-purple:hover::before {
    left: 100%;
}

/* Hover Effect */
.btn-purple:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4); /* Stroke gets brighter on hover */
    box-shadow: 0 12px 40px rgba(176, 8, 243, 0.3); /* Deep purple glow */
    background-image: var(--grad-hover);
    background-blend-mode: overlay;
}

/* Click Effect */
.btn-purple:active {
    transform: translateY(0) scale(0.97);
}

/* Icon Animation */
.btn-purple i {
    transition: transform 0.3s ease;
}

.btn-purple:hover i {
    transform: translateX(-4px);
}

/* Pulse Animation */
.btn-purple.pulse {
    animation: btn-pulse 2s infinite;
}

@keyframes btn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(176, 8, 243, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(176, 8, 243, 0); }
    100% { box-shadow: 0 0 0 0 rgba(176, 8, 243, 0); }
}

/* ----- Glass Button ----- */
.btn-glass {
    /* Glass & Heavy Blur */
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* Sharp Stroke & Fully Rounded */
    border: 1px solid rgba(255, 255, 255, 0.12); /* Sharp translucent outline */
    border-radius: 999px; /* Perfect pill shape */
    
    /* Text & Layout */
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-weight: 600;
    font-family: 'Alibaba', 'Vazir', 'Tahoma', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glass Depth */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08); /* Top edge shine */
}

/* Hover Effect - Lights up purple */
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    border-color: rgba(176, 8, 243, 0.4); /* Stroke turns purple */
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(176, 8, 243, 0.1); /* Subtle purple glow */
}

/* ----- Light Mode Adjustment ----- */
[data-theme="light"] .btn-glass {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: #0f172a;
}

[data-theme="light"] .btn-glass:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(176, 8, 243, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
/* ----- Outline Button ----- */
.btn-outline {
    background: transparent;
    border: 2px solid var(--purple);
    color: var(--purple);
}

.btn-outline:hover {
    background: var(--purple);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(176, 8, 243, 0.3);
}

.btn-outline:active {
    transform: translateY(0) scale(0.98);
}

.btn-install {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    
    /* Glass & Heavy Blur */
    background: rgba(255, 255, 255, 0.06); /* Transparent glass base */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* Sharp Stroke & Fully Rounded */
    border: 1px solid rgba(255, 255, 255, 0.12); /* Crisp translucent outline */
    border-radius: 999px; /* Perfect pill shape */
    
    /* Layout & Font */
    font-weight: 600;
    font-family: 'Alibaba', 'Vazir', 'Tahoma', sans-serif;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glass Depth */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08); /* Top edge shine */
}

/* Gradient Overlay on top of the glass */
.btn-install::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad);
    opacity: 0.85; /* Blends the gradient with the glass */
    border-radius: inherit;
    z-index: -1;
    transition: opacity 0.3s ease;
}

/* Hover Effect */
.btn-install:hover:not(.hide) {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3); /* Stroke gets brighter */
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(176, 8, 243, 0.2); /* Subtle purple glow */
}

.btn-install:hover:not(.hide)::before {
    background: var(--grad-hover);
    opacity: 1; /* Gradient becomes fully visible on hover */
}

/* Click Effect */
.btn-install:active {
    transform: translateY(0) scale(0.98);
}

/* ============================================================
   ANDROID SPECIFIC (Green/Glass)
   ============================================================ */
.btn-install[href$=".apk"] {
    border-color: rgba(61, 220, 132, 0.3); /* Subtle green stroke */
}

.btn-install[href$=".apk"]::before {
    background: linear-gradient(135deg, #3DDC84, #1a8a4a);
    opacity: 0.85;
}

.btn-install[href$=".apk"]:hover:not(.hide) {
    border-color: rgba(61, 220, 132, 0.5);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(61, 220, 132, 0.2); /* Green glow */
}

.btn-install[href$=".apk"]:hover:not(.hide)::before {
    background: linear-gradient(135deg, #5eea9a, #3DDC84);
    opacity: 1;
}

/* ============================================================
   HIDDEN GLASS VERSION
   ============================================================ */
.btn-install.hide {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-dark);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.btn-install.hide::before {
    display: none; /* Remove the purple gradient overlay */
}

.btn-install.hide::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(176, 8, 243, 0.3), rgba(209, 102, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.btn-install.hide:hover::after {
    opacity: 1;
}

.btn-install.hide:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(176, 8, 243, 0.3);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(176, 8, 243, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-install.hide:active {
    transform: scale(0.96);
}

/* Glass version of install button */
.btn-install.hide {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: var(--text-dark);
}

.btn-install.hide::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 52px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(176, 8, 243, 0.3), rgba(209, 102, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.btn-install.hide:hover::before {
    opacity: 1;
}

.btn-install.hide::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(176, 8, 243, 0.04), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.btn-install.hide:hover::after {
    opacity: 1;
}

.btn-install.hide:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(176, 8, 243, 0.3);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(176, 8, 243, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-install.hide:active {
    transform: scale(0.96);
}

/* Android specific */
.btn-install[href$=".apk"] {
    border-color: #3DDC84;
    background: linear-gradient(135deg, #3DDC84, #1a8a4a);
}

.btn-install[href$=".apk"]:hover:not(.hide) {
    box-shadow: 0 8px 25px rgba(61, 220, 132, 0.4);
    background: linear-gradient(135deg, #5eea9a, #3DDC84);
}

.btn-install[href$=".apk"].hide {
    border-color: rgba(61, 220, 132, 0.25);
    background: rgba(61, 220, 132, 0.06);
}

.btn-install[href$=".apk"].hide::before {
    background: linear-gradient(135deg, rgba(61, 220, 132, 0.4), rgba(61, 220, 132, 0.08));
}

.btn-install[href$=".apk"].hide:hover {
    border-color: rgba(61, 220, 132, 0.4);
    background: rgba(61, 220, 132, 0.12);
    box-shadow: 
        0 12px 40px rgba(61, 220, 132, 0.15),
        inset 0 1px 0 rgba(61, 220, 132, 0.15);
}

/* Button Sizes */
.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Button Colors */
.btn-purple.green {
    background: linear-gradient(135deg, #3DDC84, #1a8a4a);
    box-shadow: 0 4px 15px rgba(61, 220, 132, 0.3);
}

.btn-purple.green:hover {
    box-shadow: 0 10px 30px rgba(61, 220, 132, 0.5);
    background: linear-gradient(135deg, #5eea9a, #3DDC84);
}

.btn-purple.blue {
    background: linear-gradient(135deg, #4A90D9, #2C5F8A);
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.3);
}

.btn-purple.blue:hover {
    box-shadow: 0 10px 30px rgba(74, 144, 217, 0.5);
    background: linear-gradient(135deg, #6BA8E8, #4A90D9);
}

.btn-purple.red {
    background: linear-gradient(135deg, #EF4444, #991B1B);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-purple.red:hover {
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, #F87171, #EF4444);
}

.btn-purple:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-purple:disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(176, 8, 243, 0.3) !important;
    background: var(--grad) !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    margin-bottom: 20px;
}

.hero-badge span {
    background: rgba(176, 8, 243, 0.12);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--purple);
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-glow {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 3.5rem;
}

.hero-text p {
    color: var(--text-gray);
    font-size: 1rem;
    max-width: 450px;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.hero-numbers {
    display: flex;
    gap: 35px;
}

.hero-numbers div {
    display: flex;
    flex-direction: column;
}

.hero-numbers .num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--purple);
}

.hero-numbers span:last-child {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(176, 8, 243, 0.2), transparent 70%);
    border-radius: 50%;
    animation: hero-pulse 3s infinite;
}

@keyframes hero-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.08); opacity: 0.7; }
}

.floating {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: float 3s ease infinite;
}

.floating i {
    font-size: 1.3rem;
    color: var(--purple);
}

.floating-1 { top: 0; left: 0; animation-delay: 0s; }
.floating-2 { bottom: 30px; right: 0; animation-delay: 0.5s; }
.floating-3 { top: 40%; right: 15%; animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ============================================================
   FEATURES SECTION (UPDATED TO GLASS)
   ============================================================ */
.features {
    padding: 80px 0;
    background: var(--bg-dark); /* Changed to dark so glass stands out */
}

.section-title {
    text-align: center;
    margin-bottom: 55px;
}

.section-title span {
    display: inline-block;
    background: rgba(176, 8, 243, 0.12);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--purple);
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feat-card {
    background: var(--bg-card); /* Glass Background */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feat-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 40px -10px rgba(176, 8, 243, 0.2);
}

.feat-icon {
    width: 70px;
    height: 70px;
    background: rgba(176, 8, 243, 0.12);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.feat-icon i {
    font-size: 2rem;
    color: var(--purple);
}

.feat-card h3 {
    margin-bottom: 12px;
}

.feat-card p {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ============================================================
   GAMES SECTION (UPDATED TO GLASS)
   ============================================================ */
.popular-games {
    padding: 80px 0;
}

.games-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.game-box {
    background: var(--bg-card); /* Glass Background */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px 20px;
    text-align: center;
    width: 250px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.game-box:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 40px -10px rgba(176, 8, 243, 0.2);
}

.game-img {
    width: 100px;
    height: 100px;
    background: rgba(176, 8, 243, 0.08);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.game-img img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.game-img i {
    font-size: 2.8rem;
    color: var(--purple);
}

.game-box h4 {
    margin-bottom: 6px;
}

.game-box p {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.stars {
    margin-bottom: 18px;
}

.stars i {
    color: #ffd700;
    font-size: 0.75rem;
}

.stars span {
    font-size: 0.75rem;
    margin-right: 5px;
}

.game-btn {
    display: inline-block;
    background: var(--grad);
    padding: 8px 22px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.game-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(176, 8, 243, 0.3);
}

.soon {
    opacity: 0.65;
}

.soon-tag {
    background: rgba(255, 215, 0, 0.15);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    color: #ffd700;
    display: inline-block;
    margin-top: 10px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    padding: 55px 0;
    background: var(--grad);
}

.stats-wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.stat-block {
    flex: 1;
    min-width: 130px;
}

.stat-block i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
    color: rgba(255, 255, 255, 0.9);
}

.stat-block .stat-num {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    color: #ffffff;
}

.stat-block span:last-child {
    font-size: 0.9rem;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   DEVELOPER SECTION
   ============================================================ */
.dev-section {
    padding: 80px 0;
}

.dev-wrap {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.section-tag {
    display: inline-block;
    background: rgba(176, 8, 243, 0.12);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--purple);
    margin-bottom: 15px;
}

.dev-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.dev-text p {
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.dev-list {
    list-style: none;
    margin-bottom: 30px;
}

.dev-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dev-list i {
    color: var(--purple);
}

.dev-icon {
    text-align: center;
}

.dev-icon i {
    font-size: 13rem;
    color: var(--purple);
    opacity: 0.3;
}

/* ============================================================
   BLOG SECTION (UPDATED TO GLASS)
   ============================================================ */
.blog-section {
    padding: 80px 0;
    background: var(--bg-card); /* Changed to dark so glass stands out */
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post {
    background: var(--bg-card); /* Glass Background */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.blog-post:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 40px -10px rgba(176, 8, 243, 0.2);
}

.blog-image {
    height: 160px;
    background: rgba(176, 8, 243, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image i {
    font-size: 3rem;
    color: var(--purple);
}

.blog-cat {
    display: inline-block;
    background: rgba(176, 8, 243, 0.12);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    color: var(--purple);
    margin: 15px 15px 8px;
}

.blog-post h4 {
    padding: 0 15px;
    font-size: 1rem;
    margin-bottom: 8px;
}

.blog-post p {
    padding: 0 15px;
    color: var(--text-gray);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.blog-post a {
    display: inline-block;
    margin: 0 15px 18px;
    color: var(--purple);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.blog-post a:hover {
    color: var(--purple-light);
    padding-right: 5px;
}

.blog-more-btn {
    text-align: center;
    margin-top: 45px;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
    padding: 80px 0;
}

.news-card {
    max-width: 550px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(176, 8, 243, 0.08), rgba(139, 92, 246, 0.04));
    border: 1px solid var(--purple);
    border-radius: var(--radius-lg);
    padding: 45px 35px;
    text-align: center;
}

.news-icon {
    width: 70px;
    height: 70px;
    background: var(--grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.news-icon i {
    font-size: 2rem;
    color: white;
}

.news-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.news-card p {
    color: var(--text-gray);
    margin-bottom: 25px;
}

.news-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.news-form input {
    flex: 1;
    min-width: 220px;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: 60px;
    background: var(--bg-card);
    color: var(--text-dark);
    font-family: inherit;
    transition: var(--transition);
}

.news-form input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(176, 8, 243, 0.1);
}

.news-form button {
    background: var(--grad);
    border: none;
    padding: 14px 30px;
    border-radius: 60px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.news-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(176, 8, 243, 0.3);
}

.news-note {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 18px;
}

/* ============================================================
   DOWNLOADS SECTION
   ============================================================ */
.downloads-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 120px 40px 60px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 32px;
    gap: 28px;
    width: 500px;
    max-width: 620px;
    min-height: 300px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cart:hover {
    transform: translateY(-5px);
    border-color: var(--purple);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.cart i,
.cart .icon {
    font-size: 64px;
    color: var(--purple);
    transition: var(--transition);
}

.cart:hover i {
    transform: scale(1.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-card);
    padding: 60px 0 25px;
    border-top: 1px solid var(--border);
}

.footer-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

.footer-col p {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.social {
    display: flex;
    gap: 12px;
}

.social a {
    width: 38px;
    height: 38px;
    background: rgba(176, 8, 243, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    transition: var(--transition);
    text-decoration: none;
}

.social a:hover {
    background: var(--purple);
    color: white;
    transform: translateY(-3px) scale(1.05);
}

.footer-col h4 {
    margin-bottom: 18px;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--purple);
    padding-right: 5px;
}

.footer-col ul li i {
    margin-left: 8px;
    color: var(--purple);
    width: 22px;
}

.footer-copy {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* ============================================================
   BANNER SLIDER
   ============================================================ */
.banner-slider {
    position: relative;
    max-width: 1100px;
    margin: 130px auto 40px;
    padding: 0 50px;
}

.slider-container {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
}

.ad-banner {
    position: relative;
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-dark));
    overflow: hidden;
    cursor: pointer;
}

.ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ad-banner:hover img {
    transform: scale(1.08);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: 40px 30px 25px;
    color: white;
    transform: translateY(20px);
    transition: var(--transition);
}

.ad-banner:hover .banner-overlay {
    transform: translateY(0);
}

.banner-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.banner-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 12px;
}

.banner-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.ad-banner:hover .banner-btn {
    background: var(--purple);
    transform: translateX(-5px);
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
}

.banner-placeholder i {
    font-size: 4rem;
    color: var(--purple);
    opacity: 0.5;
}

.close-banner {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-banner:hover {
    background: var(--purple);
    transform: rotate(90deg);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn i {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.slider-btn:hover {
    background: var(--purple);
    border-color: var(--purple);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn:hover i {
    color: white;
}

.prev { left: -20px; }
.next { right: -20px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--text-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    width: 28px;
    background: var(--purple);
    border-radius: 10px;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* ----- Tablet & Below ----- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-numbers {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .dev-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .dev-list {
        text-align: right;
        display: inline-block;
    }
    
    .dev-icon {
        display: none;
    }
    
    .banner-slider {
        margin-top: 110px;
        padding: 0 30px;
    }
    
    .ad-banner {
        height: 280px;
    }
    
    .slider-btn {
        width: 36px;
        height: 36px;
    }
    
    .prev { left: -10px; }
    .next { right: -10px; }
}

/* ----- Mobile ----- */
@media (max-width: 768px) {
    .orb-container {
        top: 80px;
        left: 20px;
    }
    .orb-ring {
        width: 50px; 
        height: 50px;
    }
    .orb-dot {
        width: 8px; 
        height: 8px;
    }

    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .text-glow {
        font-size: 2.4rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-wrap {
        flex-direction: column;
        align-items: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        padding: 35px 20px;
    }
    
    .news-card h3 {
        font-size: 1.4rem;
    }
    
    .footer-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social {
        justify-content: center;
    }
    
    .footer-col ul li i {
        margin-left: 0;
    }
    
    .ad-banner {
        height: 220px;
    }
    
    .banner-overlay h3 {
        font-size: 1rem;
    }
    
    .banner-overlay p {
        font-size: 0.7rem;
    }
    
    /* Language */
    .language-btn {
        top: 80px;
        left: 15px;
        padding: 8px 14px 8px 12px;
        gap: 8px;
    }
    
    .language-btn i {
        font-size: 17px;
    }
    
    .language-btn .lang-label {
        font-size: 11px;
        min-width: 20px;
    }
    
    .language-btn .lang-indicator {
        width: 6px;
        height: 6px;
    }
    
    .lang-dropdown {
        width: 92%;
        left: 4%;
        top: 135px;
    }
    
    .lang-dropdown.active {
        padding: 16px 16px 14px;
    }
    
    .lang-item {
        padding: 9px 12px;
    }
    
    .lang-item .flag {
        font-size: 22px;
    }
    
    .lang-item .lang-name {
        font-size: 13px;
    }
    
    .lang-search input {
        padding: 10px 40px 10px 16px;
        font-size: 13px;
    }
    
    .lang-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .lang-reset {
        justify-content: center;
    }
    
    .lang-toast {
        bottom: 80px;
        padding: 12px 24px;
        font-size: 14px;
        width: 90%;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-install {
        padding: 10px 18px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
        margin: 5px 0;
    }
    
    .btn-install i.large {
        font-size: 1.1rem;
    }
    
    .btn-install.hide::before {
        inset: -1.5px;
        border-radius: 50px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .user-name-badge {
        display: none;
    }
    
    .desktop-nav .btn-menu:last-child {
        margin-right: 0;
    }
    
    /* Downloads */
    .downloads-container {
        flex-direction: column;
        align-items: center;
        padding: 100px 20px;
        gap: 35px;
    }
    
    .cart {
        width: 95%;
        max-width: 500px;
        min-height: 280px;
        padding: 40px 30px;
    }
    
    .cart i,
    .cart .icon {
        font-size: 52px;
    }
}

/* ----- Small Mobile ----- */
@media (max-width: 480px) {
    .orb-container {
        display: none; /* Hides the orb on very small screens to clean up UI */
    }

    .hero-btns {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
        width: 100%;
    }
    
    .hero-numbers {
        gap: 20px;
    }
    
    .hero-numbers .num {
        font-size: 1.2rem;
    }
    
    .game-box {
        width: 100%;
    }
    
    .news-form {
        flex-direction: column;
    }
    
    .theme-toggle {
        bottom: 20px;
        left: 20px;
        width: 42px;
        height: 42px;
    }
    
    .theme-toggle i {
        font-size: 18px;
    }
    
    /* Language */
    .language-btn {
        top: 75px;
        left: 10px;
        padding: 6px 12px 6px 10px;
    }
    
    .language-btn i {
        font-size: 15px;
    }
    
    .language-btn .lang-label {
        font-size: 10px;
        min-width: 18px;
    }
    
    .lang-dropdown {
        top: 125px;
        width: 96%;
        left: 2%;
    }
    
    .lang-dropdown.active {
        padding: 14px 14px 12px;
    }
    
    .lang-header span {
        font-size: 13px;
    }
    
    .lang-item {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .lang-item .flag {
        font-size: 20px;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        border-width: 1.5px;
    }
    
    .btn-install {
        padding: 8px 14px;
        font-size: 0.8rem;
        border-width: 1.5px;
    }
    
    .btn-install i {
        font-size: 0.9rem;
    }
    
    .btn-install i.large {
        font-size: 1rem;
    }
    
    .btn-install.hide {
        border-width: 1px;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .btn-purple.btn-lg {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .btn-purple.btn-sm {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    
    .mobile-nav .btn-menu {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    /* Downloads */
    .cart {
        width: 100%;
        max-width: 420px;
        min-height: 270px;
        padding: 35px 25px;
        gap: 22px;
    }
    
    .cart i,
    .cart .icon {
        font-size: 48px;
    }
    
    .banner-slider {
        padding: 0 15px;
    }
    
    .slider-btn {
        width: 30px;
        height: 30px;
    }
}