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

}

body{
    width: 100%;
    height: 100%;

    background: linear-gradient(to right,rgb(255,255,255),rgb(254,215,173));

}

nav {
    width: 100%;
    height: 70px;   
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav_container{
    width: 100%;
    height: 100%;
    display: flex;

    justify-content: space-around;
}

.logo{
    color: black;
    font-size: 2rem;
    font-weight: bolder;
}

.logo span{
    color: rgb(109,67,0);
    text-shadow: 0 0 10px rgb(109,67,0);
}



.nav_container .links{
    display: flex;
    gap: 3rem;
}

.nav_container .links a{
    position: relative;
    font-size: 1.2rem;
    color: black;
    text-decoration: none;
    font-weight: 500;
    transform: 0.3s linear;

}



.nav_container .contact-btn{
    background-color: rgb(109, 67, 0);
    padding: 5px 25px;
    border-radius: 20px;
    border: 2px solid rgb(109, 67, 0);
}



.nav_container .links a:hover{
    color: rgb(109, 67, 0);
}

.nav_container .contact-btn:hover, .nav_container .contact-btn:hover a { 
    background-color: rgb(109, 67, 0);
    color: white;
}



section{
    width: 100%;
    height: 90vh;
}

.main_container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content:space-evenly;
    align-items: center;
    
}

.main_container .image{
    width: 40%;
}

.main_container .image img{
    width: 100%;
}

.main_container .content{
    color: black;
    width: 40%;
    
}

.content h1{
    font-size: 42px;
}

.content h1 span{
    color: rgb(109,67, 0);
    text-shadow: 0 0 10px rgb(109,67, 0);
}

.content .typewriter{
    font-weight: 600;
    font-size: 30px;
}

.content .typewriter span{
    color: rgb(109,67, 0);
    font-size: 2.5rem;
    text-shadow: 0 0 5px rgb(109,67, 0);
    position: relative;
    transition: 0.3s linear;
}

.typewriter span::before{
    content: "Developer";
    animation: words 15s infinite;
}

.typewriter span::after{
    content: "";
    position: absolute;
    height: 100%;
    border-left: 3px solid black;
    animation:  cursor 0.6s linear infinite;
}

@keyframes cursor {
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words {
    0%, 33%{
        content: "Developer";
    }
    34%, 66%{
        content: "Designer";
    }
    67%, 100%{
        content: "SEO Expert";
    }
}

.content p{
    font-size:large;
    margin: 10px 0;
}

.social-links i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color:transparent;
    border: 0.2rem solid rgb(109,67, 0);
    border-radius: 50%;
    color:rgb(109,67, 0);
    margin: 5px 10px;

    font-size: 1.5rem;

}

.social-links i:hover{
    scale: 1.3;
    color: white;
    background-color: rgb(109,67, 0);

}

.content button{
    width: 40%;
    height: 6vh;
    margin-top: 20px;
    background-color: rgb(109,67, 0);
    color: white;
    border: none;
    outline: none;
    font-size: 100%;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.2s linear;
}

.content button:hover{
 scale: 1.1;
 color: rgb(109,67, 0);
 border: 2px solid rgb(109,67, 0);
 background-color: transparent;
 font-weight: 700;
 box-shadow: 0 0 40px rgb(109,67, 0);
}

.about{
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;

}
.about .image{

    width: 30%;
}

.about .image img{
    width: 100%;
}

.about .content{
    color: black;
    width: 40%;
     line-height: 1.8;
}


.projects {
    width: 100%;
    padding: 80px 10%;
    color: white;
}

.projects h1 {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: left;
    color: black;
}

.project-part {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    gap: 30px;
}

.project-part .content {
    width: 55%;
    color: black;
}

.project-part h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.project-part p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: black;
}

.project-part .tags {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.project-part .tags span {
    background: #333;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #ffb84d;
}

.project-part .btn {
    display: inline-block;
    padding: 10px 18px;
    background: #a855f7;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

.project-part .btn:hover {
    background: #9333ea;
}

.project-part .image {
    width: 40%;
}

.project-part .image img {
    width: 100%;
    border-radius: 10px;
}



.skills {
    padding: 60px 10%;
    background: inherit; 
    color: black;
    text-align: center;
}

.skills h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: left;
}

.skill-parts {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.skill-parts .part {
    background: white;
    border-radius: 10px;
    padding: 20px;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.skill-parts .part:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.skill-parts .part i {
    font-size: 3rem;
    color: purple;
    margin-bottom: 15px;
}

.skill-parts .part h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.skill-parts .part p {
    font-size: 0.95rem;
    color: #333;
}


.contact {
    padding: 60px 10%;
    background: inherit; 
    text-align: center;
}

.contact h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: black;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: auto;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.contact input:focus,
.contact textarea:focus {
    border-color: rgb(109,67,0);
    box-shadow: 0 0 8px rgba(109,67,0,0.5);
}

.contact button {
    background: rgb(109,67,0);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s linear;
}

.contact button:hover {
    background: transparent;
    color: rgb(109,67,0);
    border: 2px solid rgb(109,67,0);
    box-shadow: 0 0 15px rgb(109,67,0);
}






@media (max-width: 480px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

     /* Nav */
    nav {
        flex-direction: column;
        padding: 10px;
    }

    .nav_container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .nav_container .links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Home  */
    .main_container {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 12px;
        height: auto;
    }

    .main_container .image {
        width: 80%;
        margin: 0 auto;
    }

    .main_container .content {
        width: 100%;
    }

    .content h1 {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .content .typewriter {
        font-size: 0.9rem;
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin: 10px 0;
    }

    .download-btn {
        display: block;
        margin: 0 auto;
        font-size: 0.9rem;
        padding: 6px 14px;
    }

    /* About  */
    .about {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 15px;
    }

    .about .image,
    .about .content {
        width: 100%;
    }

    /* Projects  */
    .projects {
        padding: 25px 15px;
    }

    .project-part {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 15px;
    }

    .project-part img {
        width: 100%;
        height: auto;
    }

    /* Skills  */
    .skills {
        padding: 25px 15px;
        text-align: center;
    }

    .skill-parts {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .skill-parts .part {
        width: 100%;
        max-width: 300px;
    }

    /* Contact  */
    .contact {
        padding: 25px 15px;
        text-align: center;
    }

    .contact form {
        width: 100%;
    }

    .contact input,
    .contact textarea {
        width: 100%;
        font-size: 0.9rem;
    }

    .contact button {
        width: 100%;
        font-size: 1rem;
        padding: 10px;
    }

    /* Footer */
    footer {
        font-size: 0.8rem;
        text-align: center;
        padding: 10px;
        margin-top: 25px !important;
    }
}
