: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: 3500px;
    margin: 0 auto;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    padding: 0px 10px;
    height: 80px;
    align-items: center;

}   

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


}

nav .right a {
    color: var(--text-color);
    margin: 0 15px;
    
}

/* Section 1: Hero */
 .hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    margin: 50px;
    margin-bottom: 100px;
    gap: 40px;
 }

.hero-section .text {
    flex: 5;
}
.hero-section .text h2 {
    font-size: 45px;
}
.hero-section .text .links {
     margin-top: 25px;
}

.hero-section .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;

}   

.hero-section .text .links a i {
    margin-right: 0.3rem; /* or adjust to your liking */
    display: inline-block; /* ensures margin works properly */
}

.hero-section .text .links a:hover {
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.hero-section .headshot {
    flex: 1;
    display: flex;
    justify-content: right;
    
}

.hero-section .headshot img {
    width: 500px;
    border-radius: 50%;

}

/* Section 2: Skills */

.skills-section {
    padding: 0 50px;
    margin-bottom: 100px;
}

.skills-section h2 {
    text-align: center;
    font-size: 35px;
}

.skills-section .text {
    text-align: center;
    margin-bottom: 20px;
}

.skills-section .text ul {
    list-style: none;
    padding-left: 0;
    text-align: left; /* make sure text is left aligned */
    max-width: 600px; /* optional: control width for better alignment */
    margin: 0 auto; /* center the whole list if you want */
}

.skills-section .text ul li {
    position: relative;
    padding-left: 2rem; /* space for the checkmark */
    margin-bottom: 0.5rem; /* spacing between items */
}

.skills-section .text ul li::before {
    content: "✅";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
    line-height: 1.2;
    width: 1.5rem; /* fixed width for checkmark */
    text-align: center; /* center the checkmark in this space */
    color: var(--link-color);
}
.skills-section .cells {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.skills-section .cells .cell {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 200px;
    padding: 10px 20px;
    margin: 10px;
    border: 1.5px solid #d3d3d3;
    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;
    
}

/* Section 3: Testimony */
.testimony-section {
    padding: 0 50px;
    margin-bottom: 100px;
}

.testimony-section h2 {
    margin-bottom: 20px;
    font-size: 35px;
}

.testimony-section .group {
    display: flex;
    align-items: center;
    gap: 50px;
}
@media (max-width: 850px) {
    /* Section 1: Hero */
    .hero-section .text h2 {
        font-size: 35px;
    }
}
    .testimony-section .group .person-details{
        text-align: center;
        flex: 2;
    }

    .testimony-section .group .text {
        flex: 8;

    }

     .testimony-section .group .person-details img{
        aspect-ratio: 1/1;
        width: 200px;
        object-fit: cover;
        border-radius: 50%;
     }



.testimony-section .group .person-details p {
    font-weight: 600;
    
}


.testimony-section .group .person-details p:last-child {
    font-weight: normal;
}


/* Section 4: 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-family: poppins, sans-serif;
    font-size: 16px;
    background-color: var(--link-color);
    color: white;
    border: none;
    height: 50px;
    cursor: pointer;
    transition: .1s;
}


.contact-section .group form button:hover{
    filter: brightness(.9);

}

@media (max-width: 740px) {
    /* Section 1: Hero */
    .hero-section {
        flex-direction: column-reverse;
    }

    .hero-section .headshot img {
        width: 300px;
        
    };
    /* Section 3: Testimony */ 

    .testimony-section {
        text-align: center;
    }

    .testimony-section .group {
        flex-direction: column;
        
    }

    /* Section 4: Contact */
    .contact-section .group {
        flex-direction: column;
    }

}

@media (max-width: 600px) {
    /*NAVBAR*/
    nav{
        padding: 0 20px;
    }

    nav .right a {
        font-size: 22px;

    }

    nav .right a span {
        display: none;
    }


    /* Section 1: Hero */
    .hero-section {
        padding: 0 20px;
    
    }
    .hero-section .text h2 {
        font-size: 30px;
    }

   /* Section 2: Skills */ 

   .skills-section {
    padding: 0 20px;
    

    }
    .skills-section .cells .cell span{
    
    font-size: 16px;
   
   
    }

    /* Section 3: Testimony */

    .testimony-section {
        padding: 0 20px;    
    }


    /* Section 4: Contact */
    .contact-section .group {
        padding: 0 20px;

    }
}