/* ===== GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: #000;
    color: #ccffe9;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}
/* ===== BACKGROUND PARTICLES (Neon Drift) ===== */
canvas#bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(135deg, #000000 0%, #0a0015 50%, #000000 100%);
}
/* ===== HEADER ===== */
h1 {
    text-align: center;
    font-family: "Orbitron", sans-serif;
    margin-top: 55px;
    color: #00ffd0;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow:
        0 0 10px #00ffd0,
        0 0 20px #00ff88,
        0 0 40px #00ccff,
        0 0 60px #0088ff;
    letter-spacing: 3px;
    animation: neonPulse 3s ease-in-out infinite;
}
@keyframes neonPulse {
    0%, 100% {
        text-shadow:
            0 0 10px #00ffd0,
            0 0 20px #00ff88,
            0 0 40px #00ccff,
            0 0 60px #0088ff;
    }
    50% {
        text-shadow:
            0 0 15px #00ffd0,
            0 0 30px #00ff88,
            0 0 50px #00ccff,
            0 0 80px #0088ff;
    }
}
/* ===== SEARCH ===== */
.search-box {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 0 20px;
}
.search-box input {
    width: 100%;
    max-width: 700px;
    padding: 18px 24px;
    border-radius: 12px;
    background: rgba(0, 10, 30, 0.8);
    border: 2px solid #00ffbb55;
    color: #00ffd5;
    font-size: 1.1rem;
    font-family: "Inter", sans-serif;
    box-shadow: 0 0 18px #00ff9d33, inset 0 0 10px rgba(0, 255, 208, 0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}
.search-box input::placeholder {
    color: #00ffbb88;
}
.search-box input:focus {
    outline: none;
    border-color: #00ffd0;
    background: rgba(0, 15, 40, 0.9);
    box-shadow:
        0 0 35px #00ffd055,
        0 0 55px #00ccff33,
        inset 0 0 15px rgba(0, 255, 208, 0.15);
    transform: translateY(-2px);
}
/* ===== GRID ===== */
.grid {
    width: 90%;
    max-width: 1300px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
    padding: 0 20px 80px;
}
/* ===== CARD ===== */
.card {
    padding: 28px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(16, 16, 16, 0.9), rgba(8, 8, 8, 0.95));
    border: 2px solid #00ffc022;
    box-shadow:
        0 0 20px rgba(0, 255, 150, 0.15),
        inset 0 0 15px rgba(0, 255, 208, 0.05);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}
.card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: #00ffd0;
    box-shadow:
        0 15px 40px rgba(0, 255, 208, 0.25),
        0 0 40px #00ffd055,
        inset 0 0 20px rgba(0, 255, 208, 0.1);
}
/* ENHANCED LIGHT RING EFFECT */
.card::before {
    content: "";
    position: absolute;
    width: 250%;
    height: 250%;
    top: -75%;
    left: -75%;
    background: conic-gradient(
        transparent,
        transparent,
        #00ffd055,
        #00ffaa88,
        #00ff8844,
        transparent,
        transparent
    );
    animation: spinRing 6s linear infinite;
    opacity: 0.12;
    pointer-events: none;
}
@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.card::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 208, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    border-radius: 16px;
}
.card:hover::after {
    opacity: 1;
    animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.card-icon {
    font-size: 2.8rem;
    color: #00ffcf;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 208, 0.4));
    transition: all 0.35s ease;
}
.card:hover .card-icon {
    filter: drop-shadow(0 0 15px rgba(0, 255, 208, 0.8)) brightness(1.2);
    transform: scale(1.1);
}
.card-title {
    font-family: "Orbitron", sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #00ffd0;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 208, 0.3);
}
/* ===== PROGRESS BAR ===== */
.progress {
    width: 0%;
    height: 8px;
    margin-top: 16px;
    border-radius: 6px;
    background: linear-gradient(90deg, #00ffd0, #00ffaa, #00ff88);
    box-shadow:
        0 0 12px #00ffd0,
        0 0 25px rgba(0, 255, 150, 0.5),
        inset 0 0 8px rgba(255, 255, 255, 0.2);
    display: none;
    transition: width 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 1px solid rgba(0, 255, 208, 0.3);
    position: relative;
    overflow: hidden;
}
.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmerBar 1.5s infinite;
}
@keyframes shimmerBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
/* ===== DOWNLOAD COUNT ===== */
.counter {
    font-size: 0.9rem;
    margin-top: 12px;
    opacity: 0.8;
    color: #88ffe0;
    font-weight: 500;
    transition: all 0.35s ease;
}
.card:hover .counter {
    opacity: 1;
    color: #00ffd0;
    text-shadow: 0 0 8px rgba(0, 255, 208, 0.5);
}
/* ===== ANIMATIONS ===== */
@keyframes cardPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes counterPulse {
    0% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
/* ===== RESPONSIVE ===== */
footer {
    text-align: center;
    margin: 80px 0 40px;
    padding: 30px 20px;
    color: #00ffd099;
    font-family: "Orbitron", sans-serif;
    font-size: 0.95rem;
    letter-spacing: 2px;
    border-top: 2px solid rgba(0, 255, 208, 0.2);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: footerGlow 4s ease-in-out infinite;
}
@keyframes footerGlow {
    0%, 100% {
        text-shadow: 0 0 8px #00ffd033;
        border-top-color: rgba(0, 255, 208, 0.2);
    }
    50% {
        text-shadow: 0 0 15px #00ffd066;
        border-top-color: rgba(0, 255, 208, 0.4);
    }
}
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
        margin-top: 40px;
        letter-spacing: 2px;
    }
    .search-box input {
        width: calc(100% - 40px);
        padding: 14px 18px;
        font-size: 1rem;
    }
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 25px;
        width: 95%;
        margin: 40px auto;
    }
    .card {
        padding: 20px;
        border-radius: 14px;
    }
    .card-title {
        font-size: 1.1rem;
    }
    .card-icon {
        font-size: 2.3rem;
    }
    footer {
        margin: 60px 0 20px;
        font-size: 0.85rem;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
        margin-top: 30px;
    }
    .search-box {
        margin-top: 25px;
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .card {
        padding: 18px;
    }
}
#clock {
    position: fixed;
    top: 20px;
    left: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #00ffd0;
    text-shadow: 0 0 8px #00ffd0;
    z-index: 1000;
}

/* === TEXT SELECTION VA CURSORNI TO‘LIQ O‘CHIRISH === */
* {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */ /* Standart */
    cursor: default !important;
}

/* Faqat input (search bar) uchun cursor va tanlashni qaytarib beramiz */
.search-box input,
.search-box input:focus {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    cursor: text !important;
}

/* Agar card ichidagi matnni nusxalash kerak bo‘lsa (ixtiyoriy) */
/* .card-title, .counter { user-select: text; cursor: text; } */

/* Qo‘shimcha: matnni ajratib olishni butunlay o‘chirish */
body {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hoverda ham cursor o‘zgarmasin */
.card, h1, footer, .card-title, .counter {
    cursor: default !important;
}
