* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0f0f1f;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(87, 108, 188, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(115, 62, 173, 0.15) 0%, transparent 50%);
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #00fffc, #9d4dff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 20px rgba(157, 77, 255, 0.3);
}

.search-container {
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#searchInput:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #9d4dff;
    box-shadow: 0 0 20px rgba(157, 77, 255, 0.2);
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    width: 90%;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(157, 77, 255, 0.3);
}

.nav-item .icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #00fffc, #9d4dff);
    transition: transform 0.3s ease;
}

.nav-item:hover .icon {
    transform: scale(1.1);
}

.nav-item span {
    font-size: 0.9rem;
    text-align: center;
}

footer {
    margin-top: auto;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.error-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    color: #fff;
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(255, 107, 107, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .logo {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .nav-item {
        padding: 1rem;
    }

    .nav-item .icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .nav-item span {
        font-size: 0.8rem;
    }
}
