:root {
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #000000;
    --text-secondary: #333333;
    --border-color: #000000;
    --hover-bg: #f8f9fa;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --border-width: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease-out;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.05em;
    border-bottom: 3px solid black;
    display: inline-block;
    padding-bottom: 10px;
}

p.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto 0;
    font-weight: 500;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
}

.card {
    background-color: var(--card-bg);
    border: var(--border-width) solid var(--border-color);
    border-radius: 12px;
    /* Sketchy border radius style inspired by Fighter */
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out backwards;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 4px 4px 0px black;
    background-color: var(--hover-bg);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.card h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    border-bottom: 2px solid transparent;
    display: inline-block;
    transition: border-bottom 0.3s;
}

.card:hover h2 {
    border-bottom: 2px solid black;
}

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.arrow {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    color: black;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 1px solid black;
    padding-bottom: 2px;
}

.arrow svg {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.card:hover .arrow svg {
    transform: translateX(5px);
}

footer {
    margin-top: 5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
    width: 100%;
    max-width: 600px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .card:hover {
        transform: translateY(-3px);
    }
}