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;
}
main{
    display:flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    text-align: center;  
}
#firstbutton{
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-top: 2rem;
    border: 2px solid #414A37;
    font-size: 1.2rem;
    font-weight: 600;
    background-color: #414A37;
    color: #DBC2A6;
    cursor: pointer;
    transition: all 0.3s ease; 
    text-decoration:none;
}
#firstbutton:hover {
    background-color: transparent; 
    color: #414A37; 
    transform: translateY(-5px); 
}
.main-intro{
   display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.main-intro h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.main-intro p {
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0.2rem 0;
    color: #635034;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate{
    opacity: 0; 
    animation: fadeInUp 0.8s ease forwards;
}
.animate:nth-child(1) { animation-delay: 0.2s; }
.animate:nth-child(2) { animation-delay: 0.4s; }
.animate:nth-child(3) { animation-delay: 0.6s; }
.animate:nth-child(4) { animation-delay: 0.8s; } 

.box{
  width:25%;
  height:50%;
  background-color: #414A37;
  display:flex;
  flex-direction: column;
  padding:10px;
  border-radius:20px;
}
.img{
    width:97%;
    height:300px;
    border-radius:20px;
}
main{
    display:flex;
    flex-direction: row;
    justify-content: space-evenly;
}
@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;
}
}

/*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);
    }
}
