html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
body{
    background-color: #DBC2A6;
    color:#414A37;
    margin:0;
    padding:0;
    font-family: 'poppins',sans-serif;
}
header {
    background-color: #414A37;
    position: sticky;
    top: 0;
}
nav{
    display:flex; 
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem; 
    max-width: 1200px;
    margin: 0 auto; 
}
#heading{
    color: #DBC2A6;
    font-weight: 600;
}
#navigation{
    display: flex;
    gap:2rem;  
} 
.navbar{
    text-decoration: none;
    color: #DBC2A6;
    font-size: 1rem;
    font-weight: 300;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}
.navbar::after {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #DBC2A6;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}
.navbar:hover {
    color: #FFFFFF; 
}

.navbar:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


img{
    width: 280px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px; 
    border: 10px solid #414A37; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#about{
    display:flex;
    justify-content: center;
    align-items:center;
    gap: 4rem;
    padding: 5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 80vh;
    position: relative; 
}
.about-image {
    flex-shrink: 0;
}

.about-content {
    max-width: 600px;
}
about-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-top: 0;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #635034;
}

.about-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #c4a989;
    padding-bottom: 0.5rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background-color: #414A37;
    color: #DBC2A6;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.skill-tag:hover {
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate{
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.about-image.animate { animation-delay: 0.2s; }
.about-content h2.animate { animation-delay: 0.4s; }
.about-content p.animate { animation-delay: 0.6s; }
.about-content h3.animate { animation-delay: 0.8s; }
.skills-container.animate { animation-delay: 1.0s; }

@media (max-width: 768px) {
    #about {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 3rem 1rem;
    }

    .about-content h3 {
        border-bottom: none;
    }
    
    .skills-container {
        justify-content: center;
    }

    #navigation {
        display: none;
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(65, 74, 55, 0.95);
        backdrop-filter: blur(5px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }    
}

/*made using chatgpt */

.nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .hamburger-button {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        background: none;
        border: none;
    }
    .hamburger-line {
        width: 25px;
        height: 3px;
        background-color: #DBC2A6;
        border-radius: 3px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .nav-toggle:checked ~ #navigation {
        display: flex;
        transform: translateX(0);
    }
    .nav-toggle:checked + .hamburger-button .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle:checked + .hamburger-button .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked + .hamburger-button .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
@media (max-width: 768px) {
    #navigation {
        display: none;
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(65, 74, 55, 0.95);
        backdrop-filter: blur(5px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    #about {
        flex-direction: column;
        text-align: center;
   
    }
}
/*made using chatgpt */

.nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .hamburger-button {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        background: none;
        border: none;
    }
    .hamburger-line {
        width: 25px;
        height: 3px;
        background-color: #DBC2A6;
        border-radius: 3px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .nav-toggle:checked ~ #navigation {
        display: flex;
        transform: translateX(0);
    }
    .nav-toggle:checked + .hamburger-button .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle:checked + .hamburger-button .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked + .hamburger-button .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
