:root{
    --text-color: #1a1c20;
    --link-color: #4a76ee;
    --background-color: #eeeff1;

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

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    max-width: 1400px;
    margin: 0 auto;
}
a{
    color: var(--link-color);
    text-decoration: none;
}

nav{
    display:flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: 80px;
}

nav .left a{
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;

}
nav .right a{
    color: var(--text-color);
    margin: 0 10px;
    
    
}
nav .right a:last-child{
    color: var(--background-color);
    background-color: var(--text-color);
    padding: 5px 15px;
    border-radius: 5px;
}
nav .right a span{
    margin-left: 5px;
}

/* Section 1: Profile */

.ProfileSection{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    margin: 50px 0;
    margin-bottom: 100px;
    gap: 40px;
}
.ProfileSection .text{
    flex: 5;

}
.ProfileSection .text .links{
    margin-top: 25px;
}
.ProfileSection .text .links a{
    display: inline-block;
    padding: 5px 10px;
    border: 2px solid var(--link-color);
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: .1s;
}
.ProfileSection .text .links a:hover{
    color:var(--text-color);
    border: 2px solid var(--text-color);
}
.ProfileSection .text h2{
    font-size: 45px;
}
.ProfileSection .headshot{
    flex: 2;
    display: flex;
    justify-content: right;
}
.ProfileSection .headshot img{
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
}
@media (max-width: 850px){
    /*Section1: Profile*/
    .ProfileSection .text h2{
        font-size: 35px;
    }

}
@media (max-width: 740px){
    /*Section1: Profile*/
    .ProfileSection{
        flex-direction: column-reverse;
    }
    .ProfileSection .headshot img{
        width: 300px;
        height: 300px;
        
    }
    /*Section3: Projects*/
    .projects-section{
        text-align: center;
    }
    .projects-section .group{
        flex-direction: column;
    }
    /*Section4: Contact*/
    .contact-section .group{
        flex-direction: column;
    }
    
    

}

/*Section2: Skills*/
.skills-section {
    padding: 0 50px;
    margin-bottom: 35px;
}

.skills-section h2{
    text-align: center;
    font-size: 35px;
}
.skills-section .text{
    text-align: center;
    margin-bottom: 20px;
}
.skills-section .cells{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.skills-section .cells .cell{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    width: 200px;
    padding:10px 20px;
    margin: 10px;
    border: 1px solid lightgray;
    border-radius: 5px;

}
.skills-section .cells .cell img{
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 2px;
}
.skills-section .cells .cell span{
    font-size: 18px;
}



/* Section3: Projects */
.projects-section {
    padding: 0 50px;
    margin-bottom: 100px;
}

.projects-section h2 {
    font-size: 35px;
    margin-bottom: 30px;
    text-align: center;
}

/* Grid container */
.projects-section .group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual project card */
.projects-section .group .project-details {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-section .group .project-details:hover {
    transform: translateY(-5px);
}

.projects-section .group .project-details img {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.projects-section .group .project-details p:first-of-type {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.projects-section .group .project-details p:last-of-type {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.projects-section .group .text {
    margin-top: auto;
    font-size: 0.9rem;
    color: #444;
    text-align: left;
}

/* Responsive breakpoints */
@media (max-width: 900px) {
    .projects-section .group {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-section .group {
        grid-template-columns: 1fr;
    }
}
/*Section4: Contact*/
.contact-section{
    padding: 0 50px;
    margin-bottom: 100px;
}
.contact-section h2{
    font-size: 35px;
}
.contact-section .group{
    display: flex;
    gap: 50px;
}

.contact-section .group .text{
    flex: 3;
    margin-top: 20px;
}
.contact-section .group form{
    flex: 3;
    display: flex;
    flex-direction: column;
}
.contact-section .group form input,
.contact-section .group form textarea {
    font-family: 'Poppins', sans-serif;
    border: 2px solid var(--link-color);
    background-color: transparent;
    padding: 10px;
    margin-bottom: 15px;
    outline: none;
    resize: none;
}
.contact-section .group form button{
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: var(--link-color);
    border: none;
    height: 50px;
    cursor: pointer;
    transition: .1s;
}
.contact-section .group form button:hover{
    filter: brightness(.9);
}
footer{
    align-items: center;
}

@media (max-width: 600px){
    /*NAVBAR*/
    nav{
        padding: 0 20px;
    }
    nav .right a {
        font-size: 22px;
    }
    nav .right a:last-child {
        color: var(--text-color);
        background-color: transparent;
        padding: 0;
    }
    nav .right a span{
        display: none;
    }
    /*Section1: Profile*/
    .ProfileSection{
        padding: 0 20px;
    }
    .ProfileSection .text h2{
        font-size: 30px;
    }
    /*Section2: Skills*/
    .skills-section{
        padding: 0 20px;
    }
    .skills-section .cells .cell span{
        font-size: 16px;

    }
    /*Section3: Testimony*/
    .testimony-section{
        padding: 0 20px;
    }
    /*Section4: Contact*/
    .contact-section{
        padding: 0 20px;
    }
}

footer {
    padding: 30px 50px;
    text-align: center;
    border-top: 1px solid lightgray;
    margin-top: 50px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    
}
/*Section5: Footer*/
footer a {
    color: var(--link-color);
    text-decoration: none;
    display: inline-block;
    margin: 0 10px 10px 0; /* top, right, bottom, left */
    padding: 5px 10px;
    border: 2px solid var(--link-color);
    border-radius: 5px;
    transition: color 0.1s, border-color 0.1s, background-color 0.1s;
}

footer a:hover {
    
    color:var(--text-color);
    border: 2px solid var(--text-color);
    background-color: var(--background-color);
}