:root{
    --dark: #111111;
    --mid: #1e1e1e;
    --primary: #4f8ef7;
    --light: #f5f5f5;
    --card: #ffffff;
    --text: #1a1a1a;
}

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

html,body{
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body{
    font-family: "Open Sans", sans-serif;
    background-color: var(--light);
    color: var(--text);
    padding-top: 60px;
}

/* ================= NAVBAR ================= */

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 40px;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--mid);
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    z-index: 1000;
}

.navleft,
.navright{
    display: flex;
    align-items: center;
}

nav a{
    text-decoration: none;
    color: white;
    margin: 12px;
    font-weight: 500;
    position: relative;
}

nav a::after{
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -4px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after{
    width: 100%;
}

/* ================= INTRO ================= */

.introSection{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 120px 60px 90px;
    background: linear-gradient(135deg, var(--dark), var(--mid));
    color: white;
}

.nameBar h1,
.nameBar h2{
    font-size: 48px;
}

.nameBar p{
    margin-top: 15px;
    max-width: 800px;
    line-height: 1.7;
    color: #e2e8f0;
}

.tagline{
    font-size: 18px;
    color: var(--primary) !important;
    margin-top: 8px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.resumeBtn{
    display: inline-block;
    margin-top: 24px;
    padding: 12px 28px;
    background-color: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.resumeBtn:hover{
    background-color: #3a7de8;
    transform: translateY(-2px);
}

.gradPhoto{
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
    border: 6px solid #888888;
}

/* ================= SKILLS ================= */

.skillsSection{
    padding: 90px 20px;
    text-align: center;
    background-color: var(--card);
}

.skillsSection h1{
    margin-bottom: 50px;
    color: var(--dark);
}

.skillsphotos{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.skillItem{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.skillItem span{
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.skillsphotos i{
    font-size: 80px;
    transition: transform 0.3s ease;
}

.skillsphotos i:hover{
    transform: scale(1.12);
}

/* ================= ABOUT ================= */

.aboutSection{
    padding: 90px 20px;
    background-color: var(--mid);
    color: white;
    text-align: center;
}

.aboutMeHeader{
    margin-bottom: 40px;
}

.aboutSection p{
    max-width: 750px;
    margin: 20px auto 40px;
    color: #dbeafe;
}

.GmuLogo,
.NovaLogo{
    width: 110px;
    height: 110px;
    background-color: white;
    border-radius: 12px;
    padding: 8px;
    transition: transform 0.3s ease;
}

.GmuLogo:hover,
.NovaLogo:hover{
    transform: scale(1.12);
}

.courseworkSection,
.certsSection{
    margin-top: 50px;
}

.courseworkSection h2,
.certsSection h2{
    font-size: 22px;
    margin-bottom: 20px;
    color: white;
}

.courseworkGrid{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.courseworkGrid span{
    background-color: rgba(255,255,255,0.1);
    color: #e2e8f0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.certItem{
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 420px;
    margin: 16px auto 0;
    background-color: rgba(255,255,255,0.07);
    padding: 14px 20px;
    border-radius: 12px;
}

.certItem i{
    font-size: 40px;
}

.certItem p{
    margin: 0 !important;
    color: white !important;
}

.certDate{
    font-size: 13px;
    color: #94a3b8 !important;
    margin-top: 4px !important;
}

/* ================= PROJECTS ================= */

.projectsSection{
    padding: 90px 20px;
    background-color: var(--card);
}

.projectsHeader{
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark);
}

.projectList{
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.projectItem{
    background-color: var(--light);
    padding: 25px;
    border-radius: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projectItem:hover{
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.projectTop{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.projectItem strong{
    color: var(--primary);
}


.techStack{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.techStack span{
    background-color: #e8edf5;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.projectItem ul{
    margin-top: 10px;
    margin-left: 20px;
}

/* ================= EXPERIENCE ================= */

.experienceSection{
    padding: 90px 20px;
    background-color: var(--light);
    text-align: center;
}

.cbpSec,
.rivBridgeSec{
    margin-bottom: 40px;
}

.cbpSec img,
.rivBridgeSec img{
    width: 120px;
    margin-top: 15px;
}

/* ================= CONTACT ================= */

.contactSection{
    padding: 90px 20px;
    background-color: var(--dark);
    text-align: center;
    color: white;
}

.contactForm{
    max-width: 500px;
    margin: 35px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contactForm input,
.contactForm textarea{
    padding: 12px;
    border-radius: 6px;
    border: none;
}

.contactForm button{
    padding: 12px;
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contactForm button:hover{
    background-color: #48b1ad;
}

/* ================= SCROLL TO TOP ================= */

.scrollTop{
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 999;
}

.scrollTop:hover{
    background-color: #3a7de8;
    transform: translateY(-2px);
}

/* ================= FOOTER ================= */

.footer{
    background-color: #020617;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px){

    .introSection{
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 70px;
    }

    .gradPhoto{
        margin-top: 30px;
        width: 240px;
        height: 240px;
    }

    .nameBar h1{
        font-size: 36px;
    }

    .skillsphotos img{
        width: 120px;
        height: 120px;
    }
}
    