*{
    box-sizing: border-box;
}
body{
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
}
.navbar{
    background: #222;
    color: #fff;
    padding: 1rem;
}
header nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header nav ul{
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
header nav ul li a{
    color: #fff;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.2s ease, border-bottom 0.1s ease, transform 0.2s ease;
}
header nav ul li a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #00aaff;
    transition: width 0.5s ease;
}
header nav ul li a:hover{
    transform: scale(1.1);
    color: #00aaff;
}
header nav ul li a:hover::after{
    width: 100%;
}


.hero-left .first{
    font-weight: 400;
    color: #444;
}
.hero-left .last{
    font-weight: 550;
    color: #000;
}
.hero{
    display: flex;
    min-height: 80vh;
    margin-bottom: 2rem;
}
.hero-left{
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 12px;
}
.hero-left h1{
    font-size: 2.5rem;
    margin-top: 1rem;
    white-space: nowrap;
}
.hero-left h3{
    font-weight: normal;
    color: #555;
    margin-bottom: 1rem;
}
.hero-left .school{
    font-weight: normal;
    color: #777;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.hero-right{
    flex: 2;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}
.headshot{
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.headshot:hover{
    transform: scale(1.2);
}
.contactLinks{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.contactLinks i{
    margin-right: 8px;
    font-size: 1.2rem;
}
.contactLinks a{
    display: flex;
    align-items: center;
    color: #0077cc;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.1s ease, transform 0.2s ease;
}
.contactLinks a:hover{
    color:#005fa3;
}

#skills{
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
}
#skills h2{
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}
#skills .subtitle{
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.skills-container{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.25s ease;
}
.skill-card{
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 1 2px 6px rgba(0,0,0,0.05);
    cursor: grab;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.skill-card:active{
    cursor: grabbing;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.skill-card h3{
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}
.progress-bar{
    background: #e0e0e0;
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
    position: relative;
}
.fill{
    height: 100%;
    background: #0077cc;
    border-radius: 7px;
    width: var(--percent, 0%);
    transition: width 0.8s ease-in-out;
    position: relative;
}
.fill span{
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    opacity: 0.9;
}

#projects{
    max-width: 1000px;
    margin: auto;
    padding: 3rem 2rem;
}
.project{
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
}
.project:nth-child(odd){
    flex-direction: row-reverse;
}
.project-image{
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.project-image img:hover{
    transform: scale(1.05);
}
.project-info{
    flex: 1;
}
.project-info h3{
    margin-bottom: 0.5rem;
}
.project-info a{
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: #0077cc;
    font-weight: bold;
    transition: color 0.3s ease;
}
.project-info a:hover{
    color: #005fa3;
}



section{
    padding: 2rem;
    max-width: 900px;
    margin:auto;
}
footer{
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 1rem;
}

@media(max-width: 768px){
    .hero{
        flex-direction: column;
    }
    .hero-left{
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    .hero-left h1{
        white-space: normal;
        text-align: center;
        font-size: 2rem;
    }
    .contactLinks{
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}