/* Base Styles */
html {
    scroll-padding-top: 100px;
}

body {
    font-family: "Vazir", sans-serif;
    background: #020617;
    color: #e2e8f0;
    scroll-behavior: smooth;
    margin: 0;
    padding-top: 80px;
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #020617;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    border: 4px solid #1e293b;
    border-top: 4px solid #38bdf8;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Navbar Optimization */
.custom-nav {
    max-width: 60%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
    .custom-nav {
        max-width: 95%;
        border-radius: 12px !important;
        /* یا می‌تونی بزاری 0 */
    }

}

.navbar-nav .nav-link:hover {
    color: #38bdf8 !important;
}

/* Sections & Cards */
.section {
    padding: 80px 20px;
}

.title {
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
    color: #fff;
}

.subtitle {
    color: #94a3b8;
    text-align: justify;
    line-height: 2.1;
    max-width: 800px;
    margin: auto;
    text-align-last: center;
}

.app-icon {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
    color: #e2e8f0;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.6);
}

/* Stats Animation Styling */
.stat-box {
    font-size: 32px;
    font-weight: 800;
    color: #38bdf8;
}

/* اضافه کردن خودکار علامت + به آمار */
.stat-box::after {
    content: "+";
    font-size: 20px;
    margin-right: 2px;
}

.btn-primary {
    background: #38bdf8;
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
}

.btn-primary:hover {
    background: #0ea5e9;
}

.featureG-box {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 12px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.featureG-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.download-btn {
    padding: 10px;
    border-radius: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Myket - آبی */
.download-btn.myket {
    background-color: #0d6efd;
    color: white;
}

/* Bazaar - سبز */
.download-btn.bazaar {
    background-color: #28a745;
    color: white;
}

/* Google Play - سفید */
.download-btn.google {
    background-color: white;
    color: black;
}

/* Hover effect */
.download-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.gapinoModal {
    background: #020617;
    color: #e2e8f0;
}
