/* CSS */

/* #026748 (Dartmouth green) */
/* #F2F6F7 (Anti-flash white) */
/* 'Trebuchet MS' (Main Font) */

/* ========== GLOBAL STYLES ========== */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #F2F6F7;
    margin: 0;
    font-family: 'Trebuchet MS', 'Lucida Grande', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.5;
}

header {
    height: 60px;
    width: 100%;
    margin-top: 20px;
}

section {
    box-sizing: border-box;
    min-height: fit-content;
    margin: 0 10rem;
    padding-top: 5vh;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

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

:root {
    --shadow-heavy: 0 4px 10px rgba(0, 0, 0, 0.7);
    --shadow-light: 0 4px 10px rgba(0, 0, 0, 0.5);
}

p {
    font-size: 0.95rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: black;
}

h3 {
    font-weight: 900;
    font-size: 1.4rem;
    color: black;
}


h4 {
    font-weight: 200;
    font-size: 1.2rem;
    color: black;
}

ul {
    font-size: 1rem;
}

.btn {
    background-color: #F2F6F7;
    color: black;
    font-size: 0.9rem;
    font-weight: 500;
    border: black solid 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #333;
    color: white;
    transform: translateY(-2px);
}

.card-hover:hover {
    background-color: #f9f9f9;
}




/* ========== HEADER ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    margin-right: 140px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: #026748;
    text-decoration: underline;
    text-underline-offset: 0.7rem;
}

.logo {
    margin-left: 180px;
    display: inline-block;
    color: black;
    transition: color 0.3s ease;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover {
    color: #026748;
}

.logo:hover::after {
    transform: scaleX(1);
}


/* ========== HOME PAGE ========== */
.profile-section-container {
    display: flex;
    /* width: 100%; */
    justify-content: center;
    gap: 4rem;
}

.profile-pic-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-text-container {
    align-self: center;
    text-align: center;
}

.socials-container {
    display: flex;
    justify-content: center;
    gap: 1rem;

}

.socials-container img {
    width: 40px;
    height: 40px;
}

.goals-section-container {
    margin: 7rem auto 0 auto;
    max-width: 1050px;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.3rem;

}


.goals-body-container {
    padding: 15px 30px;
    border-radius: 55px;
    height: 5rem;
    box-shadow: var(--shadow-heavy);
    width: 100%;

    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}


.goal-number {
    background-color: #F2F6F7;
    color: black;
    box-shadow: 1px 1px 4px 4px rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;

    font-family: Impact;

}

.goal-text {
    flex: 0.9;
    text-align: center;
}




/* ========== ABOUT ME PAGE ========== */
.resume-btn {
    padding: 14px 24px;
    border-radius: 40px;
}


.about-text-container {
    align-self: center;
}

.location-box {
    display: flex;
    align-items: center;
    margin-left: -18px;
}



.skills-list {
  list-style: none;
  padding-left: 0;
  line-height: 1.8;
}

.skills-list li {
  margin-bottom: 6px;
}

.about-section-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 1rem;
}

.badges-img {
    margin-top: 4rem;
}



/* ========== PROJECTS PAGE ========== */
.projects-container {
    text-align: center;
    margin: -10px 7rem;

}

.projects-container h1 {
    font-size: 1.8rem;
}


.project-imgs {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;

}

.project-card {
    width: 300px;
    height: auto;
    box-shadow: var(--shadow-heavy);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;

}

.project-card h3 {
    font-size: 1.3rem;
    margin: 13px auto;
}

.project-card p {
    font-size: 0.95rem;
    margin: 1px auto;
}

.project-card h3,
.project-card p {
    white-space: normal;
    word-break: break-word;
}

.project-card img {
    width: 100%;
    border-radius: 16px;
    height: 170px;
    border: none;
    box-shadow: var(--shadow-light);

}





.view-project-btn {
    margin-top: 12px;
    padding: 9px 24px;
    border-radius: 20px;
}




/* ========== PROFESSIONAL EXPERIENCE PAGE ========== */
.experience-section {
    max-width: 1000px;
}


.job-entry {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
    border-bottom: 1px solid #c5c5c5;
    padding-bottom: 30px;
}

.job-image img {
    width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-light);

}

.job-details h3 {
    margin: 0;
}

.job-details ul {
    padding-left: 20px;
    margin-top: 10px;
}

.job-details ul li {
    margin-bottom: 6px;
}

.skills-gained {
    font-style: italic;
    color: #3b3b3b;
}




/* ========== CONTACT PAGE ========== */
.contact-section {
    margin: 5vh 8rem;
    /* padding: 80px 20px; */
}

.contact-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.contact-form {
    flex: 1;
    min-width: 400px;
    box-shadow: var(--shadow-heavy);
    border-radius: 20px;
    padding: 24px;
}

.contact-btn {
    padding: 9px 24px;
    border-radius: 20px;

}

.contact-form h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.name-fields {
    display: flex;
    gap: 10px;
}

.name-fields input {
    flex: 1;
}

input, textarea {
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    font-family: 'Trebuchet MS';

}


.contact-info {
    flex: 0.8;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
}

.info-card {
    box-shadow: var(--shadow-light);
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    text-decoration: none;
    color: black;
    transition: all 0.3s ease;
}



.contact-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    box-shadow: var(--shadow-light);

    border-radius: 10px;
    text-decoration: none;
    color: black;
    font-weight: 500;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.contact-link:hover {
    background-color: #f1f1f1;
}

.contact-link img {
    width: 28px;
    height: 28px;
    margin-right: 10px;
}









/* Mobile view */
/* ======== MOBILE STYLES ======== */
@media (max-width: 1024px) {
    section {
        margin: 0 1rem;
        padding-top: 1rem;
    }

    header {
        margin-top: 10px;
        height: auto;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .logo {
        margin-left: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        margin-right: 0;
        padding: 0;
    }

    /* Home/Profile */
    .profile-section-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        /* margin: 0 1rem; */
    }

    .profile-pic-container{
        margin: 0 5rem;
    }

    .profile-pic-container img{
        width: 350px;
    }

    /* About Section */
    .about-section-container {
        flex-direction: column;
        gap: 2rem;
        margin: 0 3rem;
    }

    .about-text-container{
        margin-bottom: -9rem;
    }
    .about-text-container h1{
        text-align: center;
    }

    .about-page .profile-pic-container img {
        display: none;
    }

    .location-box{ 
        justify-content: center;

    }

    .goals-section-container{
        margin: 0 3rem;
    }

    .projects-container h1{
        font-size: 1.2rem;
    }

    /* Projects */
    .projects-container {
        margin: 0 2rem;
    }

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

    .experience-section h1,
    .experience-section h3,
    .experience-section p {
        text-align: center;
    }

    .job-entry{
        justify-content: center;
    }

    .job-image{
        margin: 0 auto; 
    }

    .contact-container {
        /* flex-direction: column; */
        /* align-items: center; */
        margin: 0 0;
        gap: 2vh;
    }

    .contact-form {
        min-width: 280px;
        width: 100%;
    }

    .contact-info {
        flex: 1;
        gap: 0;
    }

    .contact-section {
        margin: 0 2rem;
    }

}

@media (max-width: 480px) {
    h1 { font-size: 1.2rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    p, ul { font-size: 0.9rem; }

    .socials-container img {
        width: 42px;
        height: 42px;
    }

    .goal-number {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}



/* Hamburger hidden on desktop */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    margin-right: 1rem;
}

/* Mobile nav styles */
@media (max-width: 1024px) {
    .navbar {
        position: relative;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        height: 60px;
    }

    .logo {
        margin: 0;
        text-align: center;
        z-index: 1;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 40%;
        transform: translateY(-50%);
        font-size: 2rem;
        cursor: pointer;
        z-index: 1;
    }

    .nav-links {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        flex-direction: column;
        gap: 1rem;
        margin: 0;
        padding: 0; 
        width: 100%;
        text-align: center;
        background-color: #F2F6F7;
        border-top: 1px solid #ccc;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1;

    transition: 
        max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    }

    .nav-links.active {
        max-height: 500px;
        opacity: 1;
        padding: 1rem 0;
    }
}

