@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html{
    overflow-x: hidden;
}

body{
    
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(to right, rgb(255,255,255), rgb(254,215,173));
}


nav{
    width: 100%;
    height: 10vh;
    position: sticky;
}


.nav-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.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);
}

.hamburg, .cancel{
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: black;
    font-size: 2rem;
    display: none;
}

.nav-container .links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-container .links a{
    position: relative;
    font-size: 1.2rem;
    color: black;
    text-decoration: none;
    font-weight: 500;
    transform: 0.3s linear;
}

.nav-container .links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: rgb(109,67, 0);
    transition: 0.2s linear;
}

.nav-container .links a:hover::before{
    width: 100%;
}

.nav-container .contact-btn{
    background-color: transparent;
    padding: 5px 20px;
    border-radius: 20px;
    border: 2px solid rgb(109,67, 0);
    transition: 0.2s linear;
}

.nav-container .contact-btn a{
    color: white;
    transition: 0.3s linear;
}

.nav-container .contact-btn:hover, .nav-container .contact-btn:hover a{
    background-color: rgb(109,67, 0);
    color: black;
}

.nav-container .links a:hover{
    color: black;
}

.dropdown{
    perspective: 10;
    z-index: 100;
    position: absolute;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    backdrop-filter: brightness(40%) blur(3px);
    box-shadow: 0 0 20px black;
    transition: 0.2s linear;
}

.dropdown .links a{
    color: white;
    display: flex;
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: 0.2s linear;
}

.dropdown .links a:hover{
    background-color: rgb(109,67, 0);
}

section{
    width: 100%;
    height: 90vh;
}

.main-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.main-container .image{
    height: 55%;
    width: 55%;
    z-index: -1;
    width: 50%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
}


.main-container .image img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.main-container .content{
    color: black;
    width: 40%;
    min-height: 100px;
}

.content h1{
    font-size: clamp(1rem, 2rem + 5vw, 3rem);
}

.content h1 span{
    color: rgb(109,67, 0);
    text-shadow: 0 0 10px rgb(109,67, 0);
}

.content .typewriter{
    font-weight: 600;
    font-size: clamp(1rem, 1rem + 5vw, 2rem);
}

.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 5s infinite;
}


@keyframes cursor {
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words {
    0%, 33%{
        content: "Software Developer";
    }
    34%, 66%{
        content: "UI/UX Designer";
    }
    67%, 100%{
        content: "fullstack developer";
    }
}

.content p{
    font-size: clamp(0.4rem, 0.2rem + 9vw, 1rem);
    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;
    transition: 0.2s linear;
}

.social-links i:hover{
    scale: 1.3;
    color: white;
    background-color: rgb(109,67, 0);
    filter: drop-shadow(0 0 10px rgb(109,67,0));
}

.content button{
    width: 40%;
    height: 6vh;
    margin: 30px;
    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);
}

@media (max-width:884px) {
    body{
        overflow-y: visible;
    }

    nav .logo{
        position: absolute;
        top: 16px;
        left: 15px;
        font-size: 1.5rem;
    }

    .main-container{
        display: flex;
        flex-direction: column;
    }

    .nav-container .links{
        display: none;
    }

    .hamburg,.cancel{
        display: block;
    }

    .main-container .content{
        width: 80%;
    }

    .social-links i{
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
    .cancel{
        color: white;
    }

    .main-container .image{
        width: 80%;
        margin-bottom: 0px;
    }
}
/* Skills Section Styling */
#skills {
    text-align: center;
    padding: 50px 0;
    background-color: #f8f9fa; /* Light background */
}

#skills h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

/* Skills Container */
.skills-container {
    margin-top: -150px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(to right, rgb(255,255,255), rgb(254,215,173));
}

/* Individual Skill Box */
.skill {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 120px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    /* background: linear-gradient(to right, rgb(255,255,255), rgb(254,215,173)); */
}

.skill:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

/* Icon Styling */
.skill i {
    font-size: 40px;
    margin-bottom: 10px;
    /* background: linear-gradient(to right, rgb(255,255,255), rgb(254,215,173)); */
}

/* Colors for Icons */
.skill:nth-child(1) i { color: #E34F26; } /* HTML */
.skill:nth-child(2) i { color: #1572B6; } /* CSS */
.skill:nth-child(3) i { color: #F7DF1E; } /* JavaScript */
.skill:nth-child(4) i { color: #4A90E2; } /* DSA */
.skill:nth-child(5) i { color: #007396; } /* Java */
.skill:nth-child(6) i { color: #00599C; } /* C++ */

/* Skill Name Styling */
.skill p {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 5px;
    color: #333;
}

.Skills {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem; /* Adjust size as needed */
    font-weight: 600; /* Makes text bold */
    background: linear-gradient(to right, rgb(255, 255, 255), rgb(254, 215, 173));
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    padding: -20px;
    margin-top: -150px; /* Adds some spacing around the section */
    width: 100vw;
    height: 60vh;
}
.Projects{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem; /* Adjust size as needed */
    font-weight: 600; /* Makes text bold */
    background: linear-gradient(to right, rgb(255, 255, 255), rgb(254, 215, 173));
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    padding: -20px;
    margin-top: -400px; /* Adds some spacing around the section */
    width: 100vw;
    height: 60vh;

}

.project-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -170px;  /* Adjusted for better positioning */
}

.project {
    width: 75vw;  /* Adjusted size */
    height: 40vh;
    margin-left: 25px;
    /* background: #fff; */
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.project:hover {
    transform: scale(1.05);
}

.project img {
    width: 100%;  /* Makes the image fit inside */
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.project img:hover {
    transform: scale(1.1);
}
/* Study Sync Text */
.project-intro {
    margin-top: 10px; /* Space between image and text */
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    /* background: white; */
    padding: 8px 15px;
    border-radius: 8px;
    text-align: center;
    display: inline-block;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2); /* Smooth shadow */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
    margin-left: 680px;
    margin-top: -1000px;
    margin-bottom: 500px;
}

/* Hover Effect: Enlarges text, changes color, and adds deeper shadow */
.project-intro:hover {
    transform: scale(1.1);
    color: lightgreen; /* Change color on hover */
    cursor: pointer;
    box-shadow: 4px 6px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
}
@media (max-width: 764px) {
    /* Adjusting Navbar */
    nav {
        height: 8vh; /* Reducing navbar height */
    }
    
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    /* .hamburg, .cancel {
        display: block;
        font-size: 1.8rem;
        top: 15px;
    } */

    .nav-container .links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        display: none;
    }

    /* .dropdown {
        width: 100%;
        transform: translateY(0);
        height: auto;
    } */

    /* .dropdown .links {
        display: flex;
        flex-direction: column;
        align-items: center;
    } */

    /* Adjusting Main Section */
    .main-container {
        flex-direction: column;
        text-align: center;
        height: auto;
    }

    .main-container .content {
        width: 90%;
    }

    .main-container .image {
        width: 90%;
        height: auto;
    }

    /* Adjusting Skills Section */
    .skills-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .skill {
        width: 80%;
        padding: 15px;
    }

    /* Adjusting Projects Section */
    .project-container {
        margin-top: auto;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 100px;
    }

    .project {
        margin-top: auto;
        width: 80%;
        height: auto;
    }

    .project img {
        margin-top: auto;
        width: 100%;
        height: 100%;
    }

    /* Adjusting Study Sync Text */
    .project-intro {
        margin-top: auto;
        margin-left: 0;
        text-align: center;
        width: 90%;
        font-size: 1rem;
    }

    /* Adjusting Buttons & Social Icons */
    .social-links {
        display: flex;
        justify-content: center;
    }

    .social-links i {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
    }

    .content button {
        width: 70%;
        font-size: 90%;
    }
    .Projects{
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem; /* Adjust size as needed */
        font-weight: 600; /* Makes text bold */
        background: linear-gradient(to right, rgb(255, 255, 255), rgb(254, 215, 173));
        font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
        padding: 20px;
        margin-top: 150px; /* Adds some spacing around the section */
        width: 100vw;
        height: 60vh;
    
    }

    .project {
        width: 75vw;  /* Adjusted size */
        height: 40vh;
        margin-left: 25px;
        /* background: #fff; */
        /* padding: 10px; */
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease-in-out;
    }
    .project-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: -170px;  /* Adjusted for better positioning */
    }
    .project{
            width: 50vw;
            height: 35vh;
        }
    
}
@media (max-width: 365px){
    .inroduction{
        display: none;
    }
}

@media (max-width: 999px){
    .nav-container{
        display: none;
    }
}
