@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=DM+Serif+Display&display=swap');

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

body{
    background:#FAF3E3;
    color:#2D5A27;
    font-family:'Poppins', sans-serif;
}

/* ================= HEADER ================= */

header{
    background:#2D5A27;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 60px;
    position:sticky;
    top:0;
    z-index:1000;
}

header h1{
    font-family:'DM Serif Display', serif;
    color:#FAF3E3;
    font-size:34px;
}

nav a{
    text-decoration:none;
    color:#FAF3E3;
    margin-left:25px;
    font-weight:600;
    transition:.3s;
    position:relative;
}

nav a:hover{
    color:#DDEFD8;
}

nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-5px;
    width:0;
    height:3px;
    background:#FAF3E3;
    transition:.3s;
}

nav a:hover::after{
    width:100%;
}


section{
    min-height:100vh;
    padding:80px;
}

#home{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:linear-gradient(135deg,#FAF3E3,#E8F2E3,#C5DDBD,#2D5A27);
    background-size:400% 400%;
    animation:gradientBG 10s ease infinite;
}

.home-text{
    flex:1;
}

.home-text h2{
    font-family:'DM Serif Display', serif;
    font-size:60px;
    margin-bottom:20px;
}

.home-text p{
    font-size:18px;
    line-height:1.8;
    max-width:500px;
    margin-bottom:30px;
}

.home-image{
    flex:1;
    display:flex;
    justify-content:center;
}

.profile{
    width:420px;
    height:420px;
    border-radius:50%;
    object-fit:cover;
    border:8px solid #2D5A27;
    box-shadow:0 15px 35px rgba(0,0,0,.25);
    animation:floating 4s ease-in-out infinite;
}

button{
    padding:14px 40px;
    border:none;
    border-radius:30px;
    background:#2D5A27;
    color:white;
    font-size:17px;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    background:#46753D;
    transform:translateY(-4px);
}

/* ================= ABOUT ================= */

#about{
    background:#E8F2E3;
    color:#2D5A27;
}

.about-container{
    display:flex;
    justify-content:flex-start;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
}

.about-image{
    flex:0.5;
    display:flex;
    justify-content:flex-start;
}

.about-profile{
    width:300px;
    height:auto;
    object-fit:cover;
    border-radius:20px;
    border:6px solid #2D5A27;
    box-shadow:0 15px 30px rgba(0,0,0,.2);
    animation:floating 4s ease-in-out infinite;
}


.about-text{
    flex:1;
}

.about-text h2{
    font-family:'DM Serif Display', serif;
    font-size:45px;
    margin-bottom:20px;
}

.about-text p{
    font-size:17px;
    line-height:1.8;
    margin-bottom:15px;
}

.projects{
    text-align:center;
    padding:60px 20px;
}

.project-card{
    width:500px;
    max-width:90%;
    margin:40px auto;
    background:#FAF3E3;
    padding:30px;
    border:6px solid #A0522D;
    border-radius:20px;
    box-shadow:0 8px 20px rgba(0,0,0,.2);
}

.project-card h3{
    font-size:32px;
    color:#4B0082;
    margin-bottom:20px;
}

.project-card p{
    font-size:20px;
    line-height:1.6;
    color:#333;
}

.btn{
    display:inline-block;
    margin-top:20px;
    padding:12px 30px;
    background:#2D5A27;
    color:#fff;
    text-decoration:none;
    border-radius:10px;
    font-size:18px;
    font-weight:bold;
}

.btn:hover{
    background:#3f7a39;
}


#contact{
    background:#2D5A27;
    color:#FAF3E3;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
}

#contact h2{
    font-family:'DM Serif Display', serif;
    font-size:45px;
    margin-bottom:20px;
}

#contact p{
    margin:8px 0;
    font-size:18px;
}

h2::after{
    content:"";
    display:block;
    width:80px;
    height:4px;
    background:#2D5A27;
    margin:12px auto;
    border-radius:10px;
}

#contact h2::after{
    background:#FAF3E3;
}


@keyframes gradientBG{
    0%{
        background-position:0% 50%;
    }
    50%{
        background-position:100% 50%;
    }
    100%{
        background-position:0% 50%;
    }
}

@keyframes floating{
    0%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-10px);
    }
    100%{
        transform:translateY(0);
    }
}


@media(max-width:768px){

    header{
        flex-direction:column;
        padding:20px;
    }

    nav{
        margin-top:15px;
    }

    nav a{
        display:inline-block;
        margin:10px;
    }

    #home{
        flex-direction:column-reverse;
        text-align:center;
        padding:40px 20px;
    }

    .home-text{
        text-align:center;
    }

    .home-text h2{
        font-size:40px;
    }

    .home-text p{
        margin:auto;
        margin-bottom:25px;
    }

    .profile{
        width:500px;
        height:500px;
        margin-bottom:50px;
    }

    .about-container{
        flex-direction:column;
        column-gap:40px;
    }

    .about-text{
        text-align:justify;
    }

    .about-profile{
        width:500px;
        height:500px;
    }

    .about-text h2,
    #contact h2{
        font-size:35px;
    }

    p{
        font-size:16px;
    }

}
