html * {
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    transition: all 0.2s ease;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f4f7fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #222;
    font-size: 1rem;
    min-height: 100vh; /* Ensure body occupies the full viewport height */
}

h1 {
    font-size: 2.75rem;
    margin: 2rem 0 0.5rem;
    color: #003366;
}

.intro {
    max-width: 800px;
    text-align: center;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 1000px;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    gap: 2rem;
    flex: 1; /* This will take up remaining space to push footer down */
    margin-bottom: 3rem; /* Increased space between projects and footer */
}

.section-heading {
    font-size: 1.75rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid #0077cc;
    padding-bottom: 0.5rem;
    width: 100%;
}

.projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
    background-color: #ffffff;
    border: 1px solid #e2e6ea;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease-in-out;
    margin-bottom: 2rem;
}

.card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
}

.card-copy {
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.card-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    color: white;
    background-color: #0077cc;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.card-link:hover {
    background-color: #005fa3;
}

footer {
    padding: 2rem 1rem; /* Increased padding for more space */
    width: 100%;
    background-color: #f0f2f5;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    margin-top: auto; /* This pushes footer to the bottom */
}

.github-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.github-link {
    color: #0077cc;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.github-link i {
    margin-right: 8px;
    font-size: 1.5rem; /* Larger icon */
}

.github-link:hover {
    color: #005fa3;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    .card {
        width: 180px;
    }

    .intro {
        font-size: 1rem;
    }

    footer .social-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 600px) {
    .card {
        width: 160px;
    }

    .intro {
        font-size: 0.9rem;
    }
}
