/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f5f0fa;
    min-height: 100vh;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container */
.container {
    max-width: 1200px;
    width: 100%;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2f2e41;
    position: relative;
    display: inline-block;
}

header h1::before {
    content: 'Telegram Apps Showcase';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ea4c89, #ff6bcb);
    mix-blend-mode: screen;
    z-index: -1;
}

header p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-top: 10px;
}

.bookmark, .contact {
    font-size: 1rem;
    color: #6b7280;
    margin-top: 10px;
}

.contact a {
    color: #ea4c89;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/* Grid layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Category cards */
.category {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.category:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.category h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2f2e41;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* Links */
.link {
    display: block;
    background: #ea4c89;
    color: white;
    padding: 12px;
    margin: 8px 0;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.link:hover {
    background: #d43f78;
    transform: translateX(5px);
}

.link.disabled {
    background: #ccc;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

/* Decorative element (Dribbble-inspired) */
.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(234, 76, 137, 0.1), rgba(255, 107, 203, 0.1));
    z-index: 0;
    border-radius: 15px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    color: #6b7280;
}

.copyright {
    font-size: 1rem;
    margin: 10px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }

    header h1::before {
        content: 'Telegram Apps Showcase';
    }

    header p {
        font-size: 1rem;
    }

    .bookmark, .contact {
        font-size: 0.9rem;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .category h2 {
        font-size: 1.4rem;
    }

    .link {
        font-size: 0.9rem;
        padding: 10px;
    }

    .copyright {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header h1::before {
        content: 'Telegram Apps Showcase';
    }

    header p {
        font-size: 0.9rem;
    }

    .bookmark, .contact {
        font-size: 0.8rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .copyright {
        font-size: 0.8rem;
    }
}