* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'poppins', sans-serif; */
    font-family: "Dosis", sans-serif;
    /* background-color: palevioletred; */
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header img{
    height: 70px;
    width: auto;
    margin-right: 20px;
    margin-left: -80px;
}
.logo {
    position: relative;
    font-size: 25px;
    color: black;
    text-decoration: none;
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.navbar a {
    display: inline-block;
    font-size: 20px;
    color: black;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: .3s;
    opacity: 0;
    animation: slideTop .5s ease forwards;
}

.navbar a:hover {
    color: #824D74;
}

/*=========================== HOME =====================================*/
.home {
    position: relative;
    width: 100%;
    justify-content: space-between;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 70px 10% 0;
    margin-top: 10px;
}

.home-content {
    flex: 1 1 60%;
    /* Takes up 60% of the flex container */
    max-width: 400px;
    /* You can adjust or remove this if needed */
    margin-left: 30px;
}

.home-img {
    flex: 1 1 40%;
    /* Takes up 40% of the flex container */
    display: flex;
    justify-content: center;
    /* Centers the image horizontally */
    align-items: center;
    margin-left:50px;
    /* Centers the image vertically */
}

.home-img img {
    width: 300px;
    /* Maintain the original width unless specified */
    height: 400px;
    /* Adjusts height automatically to maintain aspect ratio */
}

.home-content h3 {
    font-size: 35px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;

}

.home-content h3 span {
    color: #D37676;
}

.home-content h1 {
    font-size: 50px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content h4 {
    font-size: 60px;
    opacity: 0;
    font-weight: 700;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #D37676;
    font-size: 20px;
    border-radius: 50%;
    color: #D37676;
    text-decoration: none;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
    margin: 30px 15px 30px 0;
}

.home-sci a:hover {
    background: #D37676;
    color: #FFF3C7;
    box-shadow: 0 0 20px #D37676;
}

.home .content{
    font-size: 18px;
}



.btn-box {
    display: inline-block;
    padding: 12px 20px;
    background: #D37676;
    border-radius: 40px;
    font-size: 16px;
    color: #FFF3C7;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px #D37676,
        0 0 25px #D37676
}

.btn-box:hover {
    box-shadow: 0 0 5px #e27e7e,
        0 0 25px #e27e7e, 0 0 50px #e27e7e,
        0 0 100px #e27e7e, 0 0 200px #e27e7e
}

/*============================= ABOUT ===================================*/
.about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1rem;
}

.about-img img {
    padding-bottom: 20%;
    max-width: 600px;
    height: auto;
    width: 80%;
    border-radius: 8px;
    margin-left: 20px;
    margin-top: 20px;
}

.about-text{
    margin-right: 20px;
}
.about-text h2 {
    margin-top: -60px;
    font-size: 50px;
    margin-bottom: 20px;
}

.about-text h2 span {
    color: #D37676;
}

.about-text h4 {
    font-size: 25px;
    font-weight: 600;
    color: black;
    line-height: 1.7;
    margin: 15px 0 30px;
}

.about-text p {
    color: black;
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 2rem;
}

/*============================= SKILLS===================================*/

section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 100px;
}

.container1 {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 30px 13%;
    margin: 20px;
    box-sizing: border-box;
}

.sub-title{
    text-align: center;
    font-size: 50px;
    margin-bottom: -30px;
}

.sub-title span{
    color: #D37676;
}

 .title {
     font-size: 30px;
     font-weight: bold;
     margin-bottom: 20px;
     text-align: center;
 }
.Technical-bars-left,
.Technical-bars-right {
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 47%;
    padding: 20px;
    box-sizing: border-box;
}

.Technical-bars {
    margin-left: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.bar {
    font-size: 23px;
        display: flex;
        align-items: center;
}

.Technical-bars .bar {
    margin-top: 40px 0;
}

.Technical-bars .bar:first-child {
    margin-top: 0;
}

.Technical-bars .bar:last-child {
    margin-bottom: 0;
}

.Technical-bars .bar .info {
    margin-left: 10px;
        font-size: 16px;
        font-weight: 500;
        animation: showText 0.5s 1s linear forwards;
        opacity: 0;
        flex-grow: 1;
}

.Technical-bars .bar .info span {
    display: block;
}

 @media (max-width: 768px) {
     .container1 {
         flex-direction: column;
         align-items: center;
     }

     .Technical-bars-left,
     .Technical-bars-right {
         width: 90%;
         margin-bottom: 20px;
     }

     .Technical-bars {
         margin-left: 0;
         grid-template-columns: 1fr;
     }

     .bar {
         justify-content: space-between;
     }

     .Technical-bars .bar .info {
         margin-left: 0;
         text-align: right;
     }
 }

.large-icon{
    font-size: 30px;
}

@keyframes showText {
    100% {
        opacity: 1;
    }
}


/* ============================ PORTFOLIO =====================================*/
.portfolio{
    margin-top: -70px;
  
    margin-right: 30px;
}
.main-text{
 
    margin-top: 10px;
    margin-bottom: 20px;
}

.main-text h2{
    font-size: 50px;
    line-height: 1;
    text-align: center;
    margin-bottom: 30px;
}

.main-text h2 span{
    color: #D37676;
}

.portfolio-content{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    margin: 0 auto;
}

.row{
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.row img{
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: transform 0.5s;
    object-fit: cover;
}
.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.1), #AD88C6);
    position: absolute;
    border-radius: 8px;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
    transition: height 0.5s;
}

.layer h5{
    color: white;
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 15px;
}

.layer p{
    color: white;
    font-size: 1.0rem;
    line-height: 1.8;
}

.layer i{
    color: #ff004f;
    margin-top: 20px;
    font-size: 20px;
    background: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.row:hover img{
    transform: scale(1.1);
}

.row:hover .layer{
    height: 100%;
}


/* ============================ CONTACT =====================================*/
.contact{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
    padding-left: 30px;
    margin-top: 130px;
}

.contact-text h2{
    font-size: 50px;
    line-height: 1;
    text-align: center;
    margin-bottom: 30px;
}

.contact-text h2 span{
    color: #D37676;
}

.contact-text h4{
    margin: 15px 0;
    color: rgba(148, 144, 144, 0.767);
    font-size: 18px;
    font-weight: 600;
}

.contact-text p{
    color: rgb(111, 109, 109);
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 2rem;
}

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

.contact-list li{
    margin-bottom: 10px;
    display: block;
}

.contact-list i{
    display: inline-block;
    color: #D37676;
    font-size: 20px;
    font-weight: 600;
    transition: all .40s case;
}

.contact-list li a:hover{
    transform: scale(1.01) translateY(-5px);
    color: #D37676;
}

.contact-icons{
    margin-top: -65px;
}

.contact-icons i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #D37676;
    border-radius: 50%;
    font-size: 20px;
    color: #D37676;
    text-decoration: none;
    margin: 30px 15px 30px 0;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var);
}

.contact-icons i:hover{
    background: #D37676;
    color: #000;
    box-shadow: 0 0 20px #D37676;
}

.contact-form form{
    position: relative;
}

.contact-form form input, form textarea{
    border: none;
    outline: none;
    width: 90%;
    padding: 18px;
    background: #9e9ea1;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
}

.contact-form textarea{
    resize: none;
    height: 220px;
}

.contact-form form .send{
    display: inline-block;
    padding: 12px 28px;
    background: #D37676;
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px #D37676, 0 0 25px #D37676;
}

.contact-form form .send:hover{
    box-shadow: 0 0 5px #e27e7e, 0 0 25px #e27e7e, 0 0 50px #e27e7e, 0 0 100px #e27e7e, 0 0 200px #e27e7e;

}


/* ============================ FOOTER =====================================*/
.last-text p{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #AD88C6;
    font-weight: 300;
    margin-top: 70px;
}

.top{
    position: fixed;
    bottom: 3.7rem;
    right: 1.0rem;
}

.top i{
    color: #D37676;
    background: none;
    font-size: 30px;
    padding: 10px;
    border: 0.5rem;
    transition: transform .4s;
}

.top:hover{
    transform: translateY(-.5rem);
}




@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}