@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins',  sans-serif;
}

:root{
    --bg-color: #FFF9DE;
    --title-color: #A6D0DD;
    --text-color: #FF6969;
    --second-text-color: #E48F4B;
    --hover-color: #FFB469;
    --second-hover-color: #DDF4FF;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 2.5rem;
    color: var(--title-color);
    font-weight: 600;
    cursor: default;
}

.navbar a{
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active{
    color: var(--title-color);
}

#menu-icon{
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

.home{
   display: flex;
   justify-content: center;
   align-items: center; 
}

.home-img img{
    width: 30vw;
    border-radius: 50%;
    animation: floatImage 3s ease-in-out infinite;
}

@keyframes floatImage {
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-2rem);
    }
    100%{
        transform: translateY(0);
    }
}
.home-content h3{
    font-size: 3.2rem;
    font-weight: 700;
}

span{
    color: var(--title-color);
}

.home-content h1{
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p{
    margin-top: 1rem;
    margin-right: 7rem;
    font-size: 1.6rem;
}

.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--text-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--second-text-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover{
    background: var(--text-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--text-color);
}
  
.portfolio{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-item{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 95rem;
}

.portfolio-img img{
    width: 100%;
    max-width: 35vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-img img,
.portfolio-img a {
  width: 75%;
  max-width: 75%;
}

.heading{
    text-align: center;
    font-size: 4.5rem;
}

.portfolio-title{
    font-size: 4rem;
    color: var(--second-text-color);
    text-align: left;
    margin-bottom: 5rem;
}

.portfolio-content {
    text-align: left;
    padding: 1rem;
    width: 100%;
}

.portfolio-content h2 {
    text-align: left;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.portfolio-content p {
    font-size: 1.6rem;
    margin-top: 1rem;
}

.btn{
    display: inline-block;
    margin: 2rem 3rem 0 0;
    padding: 1rem 2.8rem;
    background: var(--bg-color);
    border: .2rem solid var(--text-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--bg-color);
    font-size: 1.6rem;
    color: var(--text-color);
    letter-spacing: .1rem;
    font-weight: 600;
}

.btn:hover{
    box-shadow: none;
    background: var(--hover-color);
}

.timeline{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 5rem;
}

.timeline .timeline-row{
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.timeline-row .timeline-column{
    flex: 1 1 40rem;
}

.timeline-column .title{
    font-size: 2.5rem;
    margin: 3rem 0 1.5rem 2rem;
}

.timeline-column .timeline-box{
    border-left: .2rem solid var(--text-color)
}

.timeline-box .timeline-content{
    position: relative;
    padding-left: 2rem;
}

.timeline-content .content{
    position: relative;
    padding: 1.5rem;
    border: .2rem solid var(--text-color);
    border-radius: .6rem;
    margin-bottom: 2rem;
}

.timeline-content .content .year{
    font-size: 1.5rem;
    color: var(--text-color);
    padding-bottom: .5rem;
}

.timeline-content .content .year i{
    padding-right: .5rem;
}

.timeline-content .content h3{
    font-size: 2.5rem;
    font-weight: 500;
}

.timeline-content .content h4{
    font-size: 1.8rem;
}

.timeline-content .content p{
    font-size: 1.6rem;
    padding-top: .5rem;
}

.timeline-box .timeline-content::before{
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--text-color);
    border-radius: 50%;
}

.timeline-content .content::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-hover-color);
    z-index: -1;
    transition: .5s;
}

.timeline-content .content:hover::before{
    width: 100%;
}

.testimonial h2{
    color: var(--text-color);
    margin-bottom: 5rem;
}

.testimonial-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.testimonial-container .testimonial-box{
    flex: 1 1 45rem;
    background: var(--bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--text-color);
}

.testimonial-container .testimonial-box .testimonial-img img{
    width: 10vw;
    border-radius: 50%;
}

.testimonial-box h3{
    color: var(--text-color);
    font-weight: 100;
    font-size: 3rem;
    margin: 1rem 0 .5rem;
}

.testimonial-box h4{
    color: var(--text-color);
    font-weight: 100;
    font-size: 2rem;
    margin: .5rem 0 3rem;
}

.testimonial-box p{
    color: var(--text-color);
    font-weight: 100;
    font-size: 1.6rem;
    margin: 1rem 0 1rem;
}

.contact h2{
    margin-bottom: 3rem;
}

.contact form{
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: #FFFF;
    background: var(--second-text-color);
    border-radius: .8rem;
    margin: .7rem 0;
}

.contact form .input-box input{
    width: 49%;
}

.contact form textarea{
    resize: none;
}

.contact form .btn{
    margin-top: 2rem;
    cursor: pointer;
}

.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 9%;
    background: var(--second-text-color);
}

.footer .footer-text{
    color: var(--title-color);
    font-size: 1.5rem;
}

.footer-iconTop a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--title-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a i{
    font-size: 2.4rem;
    color: var(--bg-color)
}

.footer-iconTop a:hover{
    box-sizing: 0 0 1rem var(--second-text-color);
}

/*BREAKPOINTS*/
@media (max-width: 1200px) {
    html{
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header{
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3% 2rem;
    }
    .testimonial{
        padding-bottom: 7rem;
    }
    .contact{
        min-height: auto;
    }
    .footer{
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    #menu-icon{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid var(--title-color);
        box-shadow: 0 .5rem 1rem var(--title-color);
        display: none
    }
    .navbar.active{
        display: block;
    }
    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    .home{
        flex-direction: column;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
        font-size: 5rem;
    }
    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
    .portfolio{
        flex-direction: column;
    }
    .portfolio img{
        width: 70vw;
        margin-top: 4rem;
    }
    .testimonial h2{
        margin-bottom: 3rem;
    }
    .testimonial-container{
        grid-template-columns: repeat(2, 1fr);
    }
    .contact h2{
        margin-bottom: 3rem;
    }
}

@media (max-width: 617px){
    .testimonial-container{
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 450px){
    html{
        font-size: 50%;
    }
    .contact form .input-box input{
        width: 100%;
    }
}

@media only screen and (max-width: 365px){
    .home{
        flex-direction: column;
    }
    .home-img img{
        width: 90vw;
    }
    .testimonial-img img{
        width: 90vw;
    }
    .footer p{
        text-align: center;
        margin-top: 2rem ;
    }
}
