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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.6;
}

.hero {
    text-align: center;
    padding: 60px 20px;
    background: white;
}

.profile-pic {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.subtitle {
    color: #666;
    margin: 10px 0;
}

.intro {
    max-width: 700px;
    margin: auto;
}

main {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

h2 {
    margin-bottom: 25px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    align-items: stretch;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.project-link:hover {
    text-decoration: none;
}

.project-link .project-card {
    cursor: pointer;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
    transition: transform .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: white;
}

footer {
    margin-top: 60px;
    text-align: center;
    padding: 30px;
    color: #777;
}

.project-content {
    padding: 20px;
    flex-grow: 1;
}

.project-content h3 {
    margin-bottom: 10px;
}

.project-content p {
    color: #555;
    margin-bottom: 15px;
}

/* Per project page style */

.project-page {
    max-width: 850px;
    margin: auto;
    padding: 50px 20px;
    font-size: 1.05rem;
}

.project-page > h1 {
    text-align: center;
    margin-bottom: 10px;
}

.project-image {
    display: block;
    width: 100%;
    max-height: 500px;
    max-width: 600px;
    object-fit: contain;
    margin: 0 auto 40px auto;
    border-radius: 12px;
}

.project-video {
    display: block;
    width: 100%;
    max-height: 500px;
    max-width: 600px;
    object-fit: contain;
    margin: 0 auto 40px auto;
    border-radius: 12px;
}

figcaption {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    margin-top: -25px;
    margin-bottom: 40px;
}

.project-page h2 {
    margin-top: 40px;
    margin-bottom: 15px;
}

.project-page p {
    margin-bottom: 20px;
}

.project-page ul {
    margin: 0 0 25px 30px;
}

.project-page li {
    margin-bottom: 8px;
}

/* GitHub Repo links */

.github-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}


.github-card {
    display: flex;
    align-items: center;
    gap: 20px;

    background: white;
    border-radius: 12px;
    padding: 20px;

    margin: 40px 0;

    box-shadow: 0 5px 15px rgba(0,0,0,.1);

    transition: transform .2s, box-shadow .2s;
}


.github-card-link:hover .github-card {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}


.github-icon img {
    width: 45px;
    height: 45px;
}


.github-info {
    flex-grow: 1;
}


.github-info h3 {
    margin-bottom: 5px;
}


.github-info p {
    color: #666;
    margin: 0;
}


.github-arrow {
    font-size: 2rem;
}

/* General Resource Links */

.resource-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}


.resource-card {
    display: flex;
    align-items: center;
    gap: 20px;

    background: white;
    border-radius: 12px;
    padding: 20px;

    margin: 40px 0;

    box-shadow: 0 5px 15px rgba(0,0,0,.1);

    transition: transform .2s, box-shadow .2s;
}


.resource-card-link:hover .resource-card {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}


.resource-icon {
    font-size: 45px;
    width: 45px;
    text-align: center;
}


.resource-info {
    flex-grow: 1;
}


.resource-info h3 {
    margin-bottom: 5px;
}


.resource-info p {
    color: #666;
    margin: 0;
}


.resource-arrow {
    font-size: 2rem;
}
