@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #B8D8C0;
    color: #18352A;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: #A4CDB0;
    border-bottom: 1px solid #7EAE8D;
}

nav a {
    color: #18352A;
    text-decoration: none;
    margin-left: 25px;
}

nav a:hover {
    color: #2E7650;
}

h1, h2, h3 {
    font-family: 'DM Serif Display', serif;
    color: #174D35;
}

#home h2 {
    color: #2E7650;
}

#home a {
    width: fit-content;
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #276749;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

#home a:hover {
    background-color: #1E5038;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 700px;
}

.hero-image {
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;

    /* Soft shadow without putting the photo in a box */
    filter: drop-shadow(0 15px 15px rgba(24, 53, 42, 0.20));
}

@media (max-width: 800px) {

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 25px;
    }

    .hero-image {
        flex: none;
        width: 100%;
    }

    .hero-image img {
        max-width: 250px;
        margin: 0 auto;
    }

    .hero-text {
        max-width: 100%;
    }

}
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.project-button,
.resume-button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.project-button {
    background-color: #276749;
    color: white;
}

.resume-button {
    background-color: transparent;
    color: #276749;
    border: 2px solid #276749;
}

.project-button:hover {
    background-color: #1E5038;
}

.resume-button:hover {
    background-color: #276749;
    color: white;
}

#contact {
    text-align: center;
    padding: 80px 20px;
}

.contact-intro {
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.social-links a {
    padding: 12px 24px;
    background-color: #276749;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s ease;
}

.social-links a:hover {
    background-color: #1E5038;
    transform: translateY(-2px);
}

#education {
    padding: 80px 0;
}

#education h2 {
    text-align: center;
    margin-bottom: 40px;
}

.education-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.education-card {
    background-color: rgba(255, 255, 255, 0.25);
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(39, 103, 73, 0.25);
    box-shadow: 0 8px 20px rgba(24, 53, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(24, 53, 42, 0.15);
}

.education-card h3 {
    color: #174D35;
    margin-top: 0;
    margin-bottom: 8px;
}

.education-card h4 {
    color: #2E7650;
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.education-card p {
    line-height: 1.7;
}

.education-focus {
    font-weight: 600;
    color: #276749;
    margin-top: 18px;
}

/* Mobile */
@media (max-width: 800px) {
    .education-container {
        grid-template-columns: 1fr;
    }
}

/* -------------------------
   PROJECTS & LABS
-------------------------- */

#projects {
    padding: 80px 0;
}

#projects h2 {
    text-align: center;
    margin-bottom: 15px;
}

.projects-intro {
    max-width: 750px;
    margin: 0 auto 45px;
    text-align: center;
    line-height: 1.7;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.25);
    padding: 30px;
    border-radius: 18px;

    border: 1px solid rgba(39, 103, 73, 0.25);

    box-shadow:
        0 8px 20px rgba(24, 53, 42, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

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

    box-shadow:
        0 14px 28px rgba(24, 53, 42, 0.15);
}

.project-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.project-card h3 {
    color: #174D35;
    margin-top: 0;
    margin-bottom: 15px;
}

.project-card p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.25);
    padding: 30px;
    border-radius: 18px;
    border: 1px solid rgba(39, 103, 73, 0.25);
    box-shadow: 0 8px 20px rgba(24, 53, 42, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

    /* ADD THESE */
    display: flex;
    flex-direction: column;
}

.project-tools {
    color: #276749;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
    margin-top: auto;
}

.project-status {
    display: inline-block;

    padding: 7px 13px;

    background-color: #276749;
    color: white;

    border-radius: 20px;

    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.project-status.coming-soon {
    background-color: transparent;
    color: #276749;
    border: 1px solid #276749;
}

.project-section-title {
    margin-top: 50px;
    margin-bottom: 25px;
    color: #174D35;
    font-size: 1.7rem;
}

.labs-title {
    margin-top: 70px;
}

.labs-container {
    grid-template-columns: repeat(2, 1fr);
}

.project-status.completed {
    background-color: #276749;
}

.project-status.active {
    background-color: #174D35;
}

.project-status.ongoing {
    background-color: transparent;
    color: #276749;
    border: 1px solid #276749;
}

@media (max-width: 800px) {

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

}

.github-button {
    display: inline-block;
    padding: 8px 14px;
    margin-right: 10px;
    margin-bottom: 10px;

    color: #276749;
    background-color: transparent;

    border: 1px solid #276749;
    border-radius: 8px;

    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;

    transition: all 0.2s ease;
}

.github-button:hover {
    background-color: #276749;
    color: white;
    transform: translateY(-2px);
}