* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #0f1115;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 60px 20px 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    color: #b0b3c0;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.projects {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 20px 80px;
}

.card {
    background: #1a1d24;
    border-radius: 14px;
    padding: 25px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card h2 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.card p {
    color: #b0b3c0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card::after {
    content: "View Project →";
    position: absolute;
    bottom: 20px;
    right: 25px;
    font-size: 0.85rem;
    color: #4da3ff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card:hover::after {
    opacity: 1;
}

footer {
    margin-top: auto;
    padding: 20px;
    font-size: 0.85rem;
    color: #6c7280;
    text-align: center;
}

/* FIX MOBILE */
@media (max-width: 500px) {

    body {
        align-items: stretch;
    }

    header {
        padding: 40px 16px 24px;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .projects {
        grid-template-columns: 1fr;
        padding: 20px 16px 60px;
    }

    .card {
        width: 100%;
        min-height: auto;
    }

    .card p {
        padding-bottom: 25px;
    }

    .card::after {
        opacity: 1;
    }
}