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

body{
    background-color: #ffffff;
}

.name{
    width: fit-content;
    background-color: transparent;
    color: #eb5e28;
    font-size: 40px;
    margin-left: 15%;
    position:fixed;
    top: -18px;
    transition: text-shadow 0.5s ease-in-out;
    margin-top: 3%;
}

.lastname{
    color: #403d39;
    font-size: 40px;
}

#refresh:hover{
    cursor: pointer;
}

.d{
    color: #eb5e28;
    font-size: 50px;
}

.f{
    color: #403d39;
    font-size: 50px;
}

.name:hover{
    text-shadow: 0 0 10px #a6a6a6, 0 0 20px #a6a6a6, 0 0 30px #a6a6a6;
}

header{
    background: linear-gradient(to top,#ffffff,#ffffff);
    font-family: 'Fira Sans', sans-serif;
    font-family: 'Rajdhani', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: fit-content;
    padding-bottom: 1%;
    border-bottom: 4px solid #eb5e28;
    z-index: 1000;
}


nav{
    background-color: transparent;
    margin-left: 55%;
    width: fit-content;
    display: inline-block;
    margin-top: 3%;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 25px;
}

li a{
    color: #eb5e28;
    text-decoration: none;
    transition: text-shadow 0.5s ease-in-out;
    font-size: 18px;
}

li a:hover{
    text-shadow: 0 0 10px #a6a6a6, 0 0 20px #a6a6a6, 0 0 30px #a6a6a6;
}

@keyframes colorFade {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.home{
    margin-top: 25%;
    font-size: 40px;
    width: fit-content;
    margin-left: 15%;
    margin-bottom: 20%;
    color: #403d39;
    font-family: 'Fira Sans', sans-serif;
    font-family: 'Rajdhani', sans-serif;
}

/* Home layout: left text + right circular profile placeholder */
.home-inner{
    display: flex;
    align-items: center;
    gap: 40px;
}

.home-left{
    max-width: 650px;
}

.home-right{
    margin-left: auto;
}

.profile-photo{
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background-image: url("img/profile_pic.jpg");
    background-size: cover;
    background-position: 60% center;
    border: 4px solid #eb5e28;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transform: translate(38px, -20px); /* move right and up slightly */
    transition: transform 0.25s ease;
}

.home p{
    font-size: 25px;
    margin-bottom: 20px;
}

.home span{
    font-size: 80px;
    color: #eb5e28;
}

.about{
    height: 67vh;
    background-color: #ffffff;
    text-align: center;
    font-family: 'Fira Sans', sans-serif;
    font-family: 'Rajdhani', sans-serif;
    color: #fffcf2;
}

#aboutheader{
    margin-right: 55%;
    margin-bottom: 50px;
    font-size: 80px;
    color: #eb5e28;
}

.summary{
    display: flex;
    justify-content: center;
}

#summary{
    margin-top: 50px;
    width: 430px;
    height: 270px;
    background-color: #403d39;
    color: #ffffff;
    padding: 18px;
    font-size: 18px;
    font-weight: 500s;
    border-radius: 10px;
    font-family: 'Fira Sans', sans-serif;
    font-family: 'Rajdhani', sans-serif;
    transition: ease-in 0.5s, transform 0.5s;
}

#summary:hover{
    background-color: #eb5e28;
    color:#403d39;
    transform: translateY(-10px);
}

.skills{
    padding: 70px 0px;
}

.container{
    width: 1000px;
    margin-left: 15%;
    text-align: center;
}

.skills-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.headers{
    display: inline-block;
    font-family: 'Fira Sans', sans-serif;
    font-family: 'Rajdhani', sans-serif;
    font-size: 80px;
    color: #eb5e28;
}

.skill-bullets{
    list-style: none;
}

.skills-list div{
    background-color: #403d39;
    color: #ffffff;
    padding: 50px;
    font-size: 15px;
    font-weight: 300s;
    border-radius: 10px;
    font-family: 'Fira Sans', sans-serif;
    font-family: 'Rajdhani', sans-serif;
    transition: ease-in 0.5s, transform 0.5s;
}

.skills-list div i{
    font-size: 50px;
    margin-bottom: 30px;
}

.skills-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.skills-list div:hover{
    background-color: #eb5e28;
    color:#403d39;
    transform: translateY(-10px);
}


.portfolio{
    padding: 70px 0;
}

.portfolio-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.project{
    width: 100%;
    height: 60vh;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.project img{
    width: 100%;
    border-radius: 10px;
    transition: tranform 0.5s;
}

.layer{
    width: 100%;
    height: 0%;
    background: linear-gradient(rgba(255, 255, 255, 0.96), #858483);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    transition: height 0.5s;
}

.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'Fira Sans', sans-serif;
    font-family: 'Rajdhani', sans-serif;
    color: #eb5e28;
}

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

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

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact{
    padding-top: 70px;
}

.contact-left{
    flex-basis: 35%;
}

.contact-right{
    flex-basis: 60%;
}

.contact-left p{
    margin-top: 30px;
    color:#403d39;
    font-family: 'Fira Sans', sans-serif;
    font-family: 'Rajdhani', sans-serif;
}

.contact-left p i{
    color: #eb5e28;
    margin-right: 15px;
    font-size: 25px;
}

.social-icon{
    margin-top: 30px;
}

.social-icon a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #403d39;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icon a:hover{
    color: #eb5e28;
    transform: translateY(-5px);
}

.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #eb5e28;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #403d39;
    font-family: 'Fira Sans', sans-serif;
    font-family: 'Rajdhani', sans-serif;
}

.btn.btn2{
    display: inline-block;
    background-color: #eb5e28;
}

.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background-color: #403d39;
    padding: 15px;
    margin: 15px 0;
    color: #fffcf2;
    font-size: 18px;
    border-radius: 6px;
}

form .btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    font-weight: 300;
    margin-top: 20px;
    background: linear-gradient(to top,#ffffff,#ffffff);
    border-top: 4px solid #eb5e28;
    color: black;
}

.contact h1{
    padding-bottom: 50px;
}

nav .fa-solid{
    display: none;
}

#msg{
    color: #61b752;
    margin-top: -40px;
    display: block;
    font-family: 'Fira Sans', sans-serif;
    font-family: 'Rajdhani', sans-serif;
}

@media only screen and (max-width: 600px) {
    header{
        height: auto;
        width: 100%;
        padding: 3px 8px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 55px;
    }

    .name{
        margin-left: 0;
        font-size: 30px;
        position: static;
        top: auto;
        order: 2;
    }

    .lastname{
        font-size: 30px;
    }

    .d, .f{
        font-size: 35px;
    }

    .box .headers{
        text-align: center;
        font-size: 48px;
        width: 100%;
        margin-left: 0;
        padding-left: 0;
    }

    .box{
        text-align: center;
        width: 100%;
    }

    #summary{
        width: 85%;
        margin-left: auto;
        margin-right: auto;
        height: auto;
    }

    .skills-list{
        grid-template-columns: 1fr;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .skills-list div{
        width: 85%;
        max-width: 280px;
        box-sizing: border-box;
    }

    .container{
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        max-width: 100%;
    }

    .box .headers{
        text-align: center;
        font-size: 48px;
        width: 100%;
        margin-left: 0;
        padding-left: 0;
    }

    .box{
        text-align: center;
        width: 100%;
    }

    #summary{
        width: 85%;
        margin-left: auto;
        margin-right: auto;
        height: auto;
    }

    .skills-list{
        grid-template-columns: 1fr;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

   

    .home p{
        font-size: 16px;
        margin-bottom: 4px;
        padding: 8px;
    }

    .home h1{
        font-size: 45px;
        width: 100%;
        line-height: 0.8;
        padding: 8px;
    }

     .home h1 span{
        font-size: 55px;
    }

    /* Responsive adjustments for the profile placeholder */
    .home-inner{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        text-align: center;
        gap: 12px;
        margin-top: -40px;
    }

    .home-right{
        margin-left: 0;
        margin-right: 0;
    }

    .home-left{
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .profile-photo{
        width: 140px;
        height: 140px;
        margin-top: 8px;
        margin-left: auto;
        margin-right: auto;
        transform: translate(0, 0); /* reset on small screens so layout is natural */
        background-position: 60% center;
    }

    .home{
        padding-top: 60px;
        margin-bottom: 40px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        text-align: center;
    }

    nav .fa-solid{
        display: block;
        font-size: 22px;
        position: absolute;
        top: 18px;
        right: 18px;
        cursor: pointer;
    }

    nav ul{
        background: #403d39;
        position: fixed;
        top: 0;
        right: -220px;
        width: 150px;
        height: 100vh;
        padding-top: 60px;
        z-index: 2000;
        transition: 0.35s;
    }
    li a:hover{
        text-shadow: none;
    }

    nav ul li{
        display: block;
        margin: 22px;
    }

    nav ul .fa-solid{
        position: absolute;
        top: 18px;
        left: 18px;
        cursor: pointer;
        font-weight: bolder;
        color: #eb5e28;
    }

    #summary{
        width: 100%;
        height: auto;
        margin-top: 16px;
    }

    .skills-list{
        margin-top: 18px;
        grid-template-columns: 1fr;
    }

    .container{
        width: 92%;
        margin: 0 auto;
        text-align: left;
        margin-top: 60px;
    }

    .portfolio{
        position: relative;
        top: 0;
    }

    .portfolio-list{
        margin-top: 10px;
    }

    .contact{
        position: relative;
        top: 0;
    }

    .contact .container{
        text-align: center;
    }

    .contact .row{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }

    .contact-left,
    .contact-right{
        flex-basis: auto;
        width: 100%;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .social-icon{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    .social-icon a{
        margin-right: 0;
    }

    .contact-right form .btn2{
        display: block;
        margin: 20px auto 28px;
    }

    .contact-right #msg{
        margin-top: 0;
        text-align: center;
    }

    .contact h1{
        padding-bottom: 15px;
    }

    body{
        height: auto;
        width: auto;
    }

    .container {
        display: block;
    }

    .box {
        flex: none;
        min-width: 0;
        box-sizing: border-box;
        display: block;
        width: 100%;
    }

    .box .headers{
        padding-left: 0;
        font-size: 48px;
    }

    /* Project and overlay adjustments for small screens */
    .project{
        height: auto;
    }

    .project img{
        height: auto;
    }

    .layer{
        padding: 18px;
    }

    .project .layer .project-links{
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
    }

}