@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;
    scroll-behavior: smooth;
}

html{
    overflow-x: hidden;
}

body{
    width: 100%;
    overflow-x: hidden;
    background: linear-gradient(to right, rgb(255,255,255), rgb(254,215,173));
}

nav{
    width: 100%;
    height: 10vh;
    position: sticky;
    top: 0;
    z-index: 1000;
}


.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: black;
    transition: 0.3s linear;
}

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

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

.dropdown{
    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%;
    min-height: 90vh;
    padding: 50px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-top: 50px;
}

.main-container .image{
    z-index: -1;
    width: 50%;
    /* --- NEW --- */
    display: flex; /* Added to center the image itself */
    justify-content: center; /* Added to center the image itself */
}

.main-container .image img{
    /* --- MODIFIED --- */
    width: 80%; /* Adjusted for smaller size */
    max-width: 350px; /* Added max-width */
    border-radius: 50%; /* Made round */
    object-fit: cover; /* Ensures image covers the circular area */
    aspect-ratio: 1 / 1; /* Maintain aspect ratio */
    box-shadow: 0 0 25px rgba(109, 67, 0, 0.4); /* Added a subtle shadow */
}

.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::after{
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    animation: cursor 0.6s linear infinite;
}

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

.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);
}

/* --- New Section Styles --- */
.separator {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
}

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

/* About Section */
#about {
    flex-direction: column;
}

.about-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    color: rgb(109,67, 0);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.about-text ul li {
    margin-bottom: 10px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    /* --- MODIFIED --- */
    width: 80%; /* Adjusted for smaller size */
    max-width: 350px; /* Added max-width */
    border-radius: 50%; /* Made round */
    object-fit: cover; /* Ensures image covers the circular area */
    aspect-ratio: 1 / 1; /* Maintain aspect ratio */
    box-shadow: 0 0 25px rgba(109, 67, 0, 0.4); /* Added a subtle shadow */
}

/* Skills Section */
#skills {
    flex-direction: column;
}

.skills-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.skill-group {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skill-group h3 {
    color: rgb(109,67, 0);
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-align: center;
}

.skill-group ul {
    list-style: none;
    padding-left: 0;
    text-align: center;
}

.skill-group li {
    font-size: 1rem;
    line-height: 1.8;
}

/* Projects Section */
#projects {
    flex-direction: column;
}

.projects-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    color: rgb(109,67, 0);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.project-card h4 {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.project-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Contact Section */
#contact {
    flex-direction: column;
}

.contact-container {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info {
    margin-bottom: 30px;
    text-align: center;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-info i {
    color: rgb(109,67, 0);
    margin-right: 10px;
}

.contact-info a {
    color: black;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    color: rgb(109,67, 0);
}

.contact-form {
    width: 100%;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid rgb(109,67, 0);
    border-radius: 5px;
    background-color: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6d4300;
    box-shadow: 0 0 10px rgba(109, 67, 0, 0.5);
}

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

.contact-form button:hover {
    background-color: rgb(129, 87, 20);
}


@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-reverse;
    }

    .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: 20px;
    }

    /* Media query for new sections */
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        width: 70%; /* Adjust image size for smaller screens */
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}
/* About Section */
#about {
    flex-direction: column;
}

.about-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start; /* Aligns content to the top */
    justify-content: center;
}

.about-left, .about-right {
    flex: 1; /* Both take equal space */
    min-width: 300px; /* Minimum width before wrapping */
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-left h3, .about-right h3 {
    color: rgb(109, 67, 0);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-left p, .about-right p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.about-left ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.about-left ul li {
    margin-bottom: 10px;
}

.about-right .project-list {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(109, 67, 0, 0.2); /* Separator for projects */
    padding-bottom: 15px;
}

.about-right .project-list:last-child {
    border-bottom: none; /* No separator for the last project */
}

.about-right h4 {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 5px;
}

.about-right h5 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

/* Certifications grid and cards */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 15px; /* Space between cert cards */
    margin-top: 20px; /* Space below the cert intro text */
}

.cert-card {
    background-color: #fff; /* White background for each card */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom */
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(109, 67, 0, 0.1); /* Subtle border */
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.cert-card h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
}

.cert-btn {
    align-self: flex-start; /* Align button to start within the card */
    background-color: transparent;
    padding: 8px 15px;
    border-radius: 20px;
    border: 2px solid rgb(109, 67, 0);
    color: rgb(109, 67, 0);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s linear;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto; /* Pushes button to the bottom if content is uneven */
    font-size: 0.9rem; /* Slightly smaller button text */
}

.cert-btn:hover {
    background-color: rgb(109, 67, 0);
    color: white;
    filter: drop-shadow(0 0 10px rgba(109, 67, 0, 0.5));
}

.cert-btn i {
    font-size: 0.9rem; /* Slightly smaller icon */
}

/* Media query for mobile */
@media (max-width: 884px) {
    .about-content {
        flex-direction: column;
        gap: 20px;
    }

    .about-left, .about-right {
        min-width: unset;
        width: 100%;
    }

    .cert-grid {
        grid-template-columns: 1fr; /* Stack cert cards on mobile */
    }
}
/* Projects Section */
#projects {
    flex-direction: column;
}

.projects-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    /* --- NEW --- */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    color: rgb(109,67, 0);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.project-card h4 {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.project-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    /* --- NEW --- */
    margin-bottom: 20px;
}

/* --- NEW CSS for Project Certificate Button --- */
.project-cert-btn {
    background-color: transparent;
    padding: 8px 15px;
    border-radius: 20px;
    border: 2px solid rgb(109, 67, 0);
    color: rgb(109, 67, 0);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s linear;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto; /* Pushes button to the bottom */
}

.project-cert-btn:hover {
    background-color: rgb(109, 67, 0);
    color: white;
    filter: drop-shadow(0 0 10px rgba(109, 67, 0, 0.5));
}

.project-cert-btn i {
    font-size: 1rem;
}