:root{
    --text-color: #1a1c20;
    --link-color: #4a76ee;
    --background-color: #eeeff1;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    scroll-padding: 10px;
}

body{
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    max-width: 2000px;
}

a{
    color: var(--link-color);
    text-decoration: none;
}

/* NAVBAR */

header {
    background-color: #1a1a1a;
    padding: 0px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 50px;
}


nav{
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    height: 80px;
    align-items: center;
}

nav .left a{
    color: var(--background-color);
    font-weight: 600;
    font-size: 22px;
}

nav .right a{
    margin: 0 8px;
    color: var(--background-color);
}

nav .right a:last-child{
    color: var(--background-color);
    background-color: var(--link-color);
    padding: 5px 15px;
    border-radius: 5px;
}

nav .right a:last-child span{
    margin: 3px;
}

nav .right a:hover{
    color: #ff7b54;
}

/* Hero-Section */
.hero-section{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px o;
    padding: 0 80px;
    margin-bottom: 100px;
    gap: 40px;
}

.hero-section .text{
    flex: 5;
}

.hero-section .text p{
    font-size: 18px;
}

.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:hover{
    border: 2px solid var(--text-color);
    color: var(--text-color);
}

.hero-section .headshot{
    flex: 2;
    display: flex;
    justify-content: right;
}

.hero-section .headshot img{
    border-radius: 50%;
    width: 400px;
}

/* About-Section */
.about-section{
    padding: 0 250px;
    margin-bottom: 100px;
}

.about-section h2{
    text-align: center;
    font-size: 35px;
}

.about-section .text{
    text-align: center;
    border: 0px solid rgb(212, 212, 212);
    border-radius: 5px;
    font-size: 18px;
    padding: 25px 25px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.about-section .text:hover{
    border: 0px solid rgb(212, 212, 212);
    transform: scale(1.025);
}

.about-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;
}

.about-section .text .links{
    margin-top: 20px;
}

.about-section .text .links a:hover{
    border: 2px solid var(--text-color);
    color: var(--text-color);
}

/* Skills-Section */

.skills-section{
    padding: 0 200px;
    margin-bottom: 50px;
}

.skills-section h2{
    text-align: center;
    font-size: 35px;
    margin-bottom: 10px;
}

.skills-section .cells{
    border: 0px solid rgb(212, 212, 212);
    border-radius: 5px;
    padding: 25px 25px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.skills-section .cells .cell:hover{
    border: 0px solid rgb(212, 212, 212);
    transform: scale(1.4);
}

.skills-section .cells .cell{
    display: flex;
    justify-content: center;
    align-items: center;

    width: 200px;
    padding: 10px 20px;
    border: 0px solid rgb(169, 169, 169);
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.skills-section .cells .cell img{
    width: 100px;
    height: 100px;
    border-radius: 5px;
    margin-right: 5px;
}

/* Experience-Section */
.experience-section{
	width: 100%;
	padding: 35px 10%;
	grid-template-columns: 1fr 1fr;
	grid-column-gap: 20px;
    padding-right: calc(10% - 30px);
    margin-bottom: 50px;
}

.experience-section h2{
    font-size: 35px;
    text-align: center;
    margin-bottom: 30px;
}

.experience-section .contents{
	padding: 0px 30px;
	border-left: 2px solid #bababa;
}

.experience-section .contents .box{
	position: relative;
	padding: 20px;
	background-color: var(--background-color);
	cursor: pointer;
	margin-bottom: 20px;
    border-radius: 5px;
}

.experience-section .contents .box:hover{
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.experience-section .contents .box::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    right: calc(100% + 22px);
    top: 50%;      
    transform: translateY(-50%);  
    background-color: var(--link-color);
    border: 2px solid white;
}


.experience-section .box h4{
	position: relative;
	color: var(--text-color);
}

.experience-section .box h3{
	font-size: 19px;
	padding: 10px 0px 6px;
    margin-bottom: -10px;
	color: var(--text-color);
}

.experience-section .box span{
    padding: 0px 0px 20px;
    font-style: italic;
}

.experience-section .box dl{
	line-height: 1.2;
	color: var(--text-color);
	font-size: 15px;
}

.experience-section .box p{
	line-height: 1.2;
	color: var(--text-color);
	font-size: 15px;
}

.experience-section .box .box-content{
    display: flex;
    align-items: center;
    gap: 20px;
}

.experience-section .box .box-image{
    flex-shrink: 0;
    width: 120px;
    margin-top: 5px;
}

.experience-section .box .box-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.experience-section .box .box-details {
    flex-grow: 1;
}

.experience-section .contents .box span::before {
    margin-top: 40px;
}


/* Projects-Section */
.project-section {
    padding: 40px 100px;
    margin-bottom: 60px;
}

.project-section h2 {
    font-size: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.project-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #8ca8f6;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover{
    background-color: #4a76ee;
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}


.project-cards {
    display: flex;
    gap: 30px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    padding: 20px 0;
}

.project-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.card-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.card-skills span {
    background-color: #f0f0f0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #555;
}

.card-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid var(--link-color, #333);
    border-radius: 5px;
    font-size: 18px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--link-color, #333);
}

.card-link i {
    margin-right: 6px;
}

.card-link:hover {
    border: 2px solid var(--text-color);
    color: var(--text-color);
}


/* Resume-Section */

.resume-section{
    padding: 0 50px;
    margin-bottom: 100px;
}

.resume-section h2{
    text-align: center;
    font-size: 35px;
    margin-bottom: 30px;
}

.resume-section .resume{
    text-align: center;
}

.resume-section .resume img{
    width: 700px;
    border: 2px solid rgb(212, 212, 212);
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.resume-section .resume img:hover{
    border: 2px solid rgb(212, 212, 212);
    
    transform: scale(1.05);
}

/* Education-Section */
.education-section{
    padding: 0 200px;
    margin-bottom: 100px;
}

.education-section h2{
    text-align: center;
    font-size: 35px;
    margin-bottom: 20px;
}

.education-section .group .school h3{
    font-size: 20px;
    font-weight: normal;
    margin-bottom: -20px;
}

.education-section .group{
    text-align: center;
    border: 2px solid rgb(212, 212, 212);
    border-radius: 5px;
    padding: 25px 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    margin-bottom: 20px;
}

.education-section .group .school img{
    width: 100px;
    margin-bottom: 10px;
}

.education-section .group:hover{
    border: 2px solid rgb(212, 212, 212);
    transform: scale(1.025);
}

/* Testimony-Section */

.testimony-section{
    padding: 0 100px;
    margin-bottom: 100px;
}

.testimony-section h2{
    text-align: center;
    font-size: 35px;
    margin-bottom: 20px;
}

.testimony-section .group{
    display: column;
    align-items: center;
    gap: 40px;
}

.testimony-section .group .headshot{
    flex: 2;
    text-align: center;
    margin-bottom: 20px;
}

.testimony-section .boxes .group{
    flex: 5;
    margin-right: 20px;
}

.testimony-section .boxes{
    display: flex;
}

.testimony-section .group .text{
    flex: 8;
    font-style: italic;
    font-family: 'Times New Roman', Times, serif;
    font-size: 17px;
}

.testimony-section .group{
    border: 2px solid rgb(212, 212, 212);
    border-radius: 5px;
    padding: 25px 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
    margin-bottom: 20px;
}

.testimony-section .group:hover{
    border: 2px solid rgb(212, 212, 212);
    transform: scale(1.025);
}

.testimony-section .group .headshot img{
    border-radius: 50%;
    width: 130px;
    margin-bottom: 10px;
}

.testimony-section .group .headshot span{
    font-weight: bold;
}

.testimony-section .group .headshot span:last-of-type{
    font-weight: normal;
}

.testimony-section .group .headshot a{
    margin-top: 10px;
    display: inline-block;
    padding: 5px 10px;
    border: 2px solid var(--link-color);
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: .1s;
}

.testimony-section .group .headshot a:hover{
    border: 2px solid var(--text-color);
    color: var(--text-color);
}

/* Contact-Section */

.contact-section{
    padding: 0 400px;
    margin-bottom: 50px;
}

.contact-section h2{
    margin-bottom: 20px;
    text-align: center;
    font-size: 35px;
}

.contact-section .group{
    display: flex;
    gap: 40px;
    border: 2px solid rgb(212, 212, 212);
    border-radius: 5px;
    padding: 25px 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    margin-bottom: 20px;
}

.contact-section .group .text{
    flex: 3;
}

.contact-section .group label{
    font-weight: bolder;
    font-size: large;
}

.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(--text-color);
    resize: none;
    margin-bottom: 15px;
    padding: 10px;
    outline: none;
    background-color: transparent;
    border-radius: 5px;
}

.contact-section .group form button{
    font-size: 16px;
    padding: 5px;
    font-family: 'Poppins', sans-serif;
    background-color: var(--link-color);
    border: none;
    border-radius: 5px;
}

.contact-section .group form button:hover{
    background-color: #0532af;
}

/* Footer-Section */
.footer-section {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 20px 0;
    box-shadow: 0px -6px 15px rgba(0, 0, 0, 0.4); /* Shadow at the top of the footer */
    text-align: center;
}

.footer-section .contacts {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-section .contacts a {
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section .contacts i {
    margin-right: 5px;
    font-size: 16px;
}

.footer-section .contacts a:hover {
    color: #ff7b54;
}

@media (max-width: 992px) {
    .project-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .project-section {
        padding: 30px 50px;
    }
    
    .project-card {
        flex: 0 0 100%;
    }
}

@media(max-width: 768px){
	main.row{
		grid-template-columns: 1fr;
	}
	.row .col:nth-child(2){
		margin-top: 30px;
	}
}

@media (max-width: 850px){

    .education-section{
        padding: 0 50px;
        margin-bottom: 100px;
    }

    .project-section{
        padding: 0 50px;
    }

    .project-section .boxes {
        flex-direction: column;
    }

    .project-section .group {
        width: 100%; 
        max-width: 600px;
    }

    .project-section .group .headshot img{
        text-align: center; 
    }

    .about-section{
        padding: 0 50px;
    }

    .skills-section{
        padding: 0 50px;
    }

    .contact-section{
        padding: 0 80px;
    }

    .hero-section .text h2{
        font-size: 35px;
    }
}

@media (max-width: 1000px){
    .project-section .boxes {
        flex-direction: column;
    }
}

@media (max-width: 1200px){

    .education-section{
        padding: 0 100px;
        margin-bottom: 100px;
    }

    .about-section{
        padding: 0 50px;
    }

    .skills-section{
        padding: 0 50px;
    }

    .contact-section{
        padding: 0 250px;
    }

    .hero-section .text h2{
        font-size: 35px;
    }
}

@media (max-width: 740px){

    .footer-section .contacts{
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2px;
    }

    .contact-section{
        padding: 0 100px;
    }

    .education-section{
        padding: 0 50px;
        margin-bottom: 100px;
    }

    .footer-section .contact a{
        margin-bottom: 1px;
    }

    .footer-section .contacts #descriptions{
        display: none;
    }

    .resume-section .resume img{
        width: 500px;
    }

    .hero-section .text h2{
        font-size: 35px;
    }

    .testimony-section .boxes{
        flex-direction: column;
    }

    .hero-section .headshot img{
        width: 300px;
    }

    .hero-section{
        flex-direction: column-reverse;
    }

    .testimony-section .group{
        flex-direction: column;
    }
}

@media (max-width: 650px){
    .project-section .group .headshot a{
        margin-left: 25px;
    }

    .experience-section .box .box-image {
        flex-shrink: 0;
        width: 120px;
        margin-top: 5px;
        display: none;
    }

    .project-section{
        padding: 0 20px;
    }

    .project-section .group .headshot span{
        padding: 0 0;;
    }
}

@media (max-width: 600px) {

    .resume-section{
        padding: 0 20px;
    }

    .resume-section .resume img{
        width: 350px;
    }

    .education-section{
        padding: 0 20px;
    }

    .about-section{
        padding: 0 20px;
    }

    .contact-section{
        padding: 0 20px;
    }

    .contact-section .group{
        display: flex;
        flex-direction: column;
    }

    .testimony-section{
        padding: 0 20px;
    }

    .skills-section{
        padding: 0 20px;
    }
    
    .hero-section{
        padding: 0 20px;
    }

    .hero-section .text h2{
        font-size: 28px;
    }

    nav{
        padding: 0 20px;
    }

    nav .right a span{
        display: none;
    }

    nav .right a:last-child{
        color: var(--text-color);
        background-color: var(--background-color);
        padding: 0 5px;
    }
}


