* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b1220;
    color: #cbd5e1;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
}

/* headers */

.header {
    text-align: center;
    margin-bottom: 50px;
}

.header h1 {
    font-size: 48px;
    font-weight: 700;
}

.header h1 span {
    color: #38bdf8;
}

.header p {
    margin-top: 10px;
    color: #94a3b8;
}

/* grid */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* cards */

.card {
    text-decoration: none;
    background: linear-gradient(145deg, #0f172a, #0b1220);
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: 0.25s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card h3 {
    color: #38bdf8;
    font-size: 20px;
}

.card p {
    font-size: 14px;
    color: #94a3b8;
}

/* badges */

.badge {
    width: fit-content;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .5px;
}

.visual {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.utility {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.library {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* button area */
.card-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* base for the button */
.btn {
    text-decoration: none;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s;
}

/* github */
.link-btn {
    background: rgba(56,189,248,0.15);
    color: #38bdf8;
}

.link-btn:hover {
    background: rgba(56,189,248,0.3);
}

/* download */
.download-btn {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}

.download-btn:hover {
    background: rgba(34,197,94,0.3);
}
.search-bar {
    display: block;
    margin: 25px auto; 
    padding: 12px 16px;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    border: 1px solid #1e293b;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 15px;
}


.owner {
    font-size: 13px;
    color: #64748b;
    margin-top: 5px;
}
