@import url('https://fonts.googleapis.com/css2?family=Sofadi+One&display=swap');

* {
    scroll-behavior: smooth;
    font-size: 62.5%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;

}

nav {
    position: fixed;
    top: 0;
    display: flex;
    background-color: #333;
    color: white;
    width: 100%;
    border-bottom: 0.5px solid #ddd6d6;
    box-shadow: 0px 5px 10px 0px #000;
    opacity: 1;
    z-index: 999;
    padding: 0em 0.8em;
    height: 7rem;
    align-items: center;
    justify-content: space-evenly;
    font-family: "Sofadi One", system-ui;
}

.navbar {
    background-color: #333;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: center;
}

.navbar ul {
    display: flex;
    align-items: flex-end;
    justify-content: space-evenly;
}

.navbar li {
    list-style-type: none;
    margin-left: 6rem;

    position: relative;
}

nav .navlogo img {
    background-color: #333;
    width: 7rem;
    display: flex;
    justify-content: left;
    align-items: center;
    margin-left: 1.5rem;
}

nav a {
    font-size: 2.33rem;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    font-weight: 600;
}

nav ul a:hover {
    background-color: #dad8d8;
    border-radius: 1rem;
    color: black;
    box-shadow: inset 0px 0px 1em 0px #fff,
        0px 0px 1.3em 0px #fff;
        padding: 2rem 1rem;
}


/* Dropdown styles */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    /* min-width: 160px; */
    /* border: 1rem; */
    border-radius: 1rem;
    width: 15vw;
    z-index: 1;
    margin: 2rem;
}

.dropdown-content a {
    padding: 2rem;
    text-decoration: none;
    display: block;
}

.nav_items:hover .dropdown-content {
    display: block; /* Show dropdown on hover */
}
.angle-icon {
    display: inline-block;
    transition: transform 0.4s ease;
}

.nav_items:hover .angle-icon {
    transform: rotate(180deg); /* Rotate on hover */
}
/* .ham_menu {
    display: none;
    width: 5rem;
    height: 100%;
    align-items: center;
    justify-content: center;
} */

nav input[type="checkbox"] {
    display: none;
}

.lines {
    display: none;
}

.lines .line {
    display: block;
}

@keyframes fade-in {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
    
}
@keyframes fade-out {
    0%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
    
}

/* <======================================= media queries =============================> */

@media (max-width: 1169px) {

    nav{
        display: block;
        height: 64px;
        padding: 2rem 4rem ;
    }
    
    .navul{
        display:none;
        opacity: 0;
    }

    .navbar{
        position:fixed;
        inset:0 0 0 50%;
        flex-direction: column;
        padding:10rem 5rem;
        background: rgba(55, 54, 54, 0.8);
        align-items: flex-start;
        justify-content:flex-start;  
    }
    .navbar li {
        list-style-type: circle;
        padding: 1rem 0;
    }
    .navbar li a {
        color: white;
    }

    /* .ham_menu{
        display: block;
    } */

    nav input[type="checkbox"]{
        display: block;
        width: 32px;
        height: 40px;
        position: relative;
        top: -50px;
        left: 93vw;
        z-index: 10001;
        opacity:0 ;
        /* background-color: red; */
    }

    nav .lines{
        position: absolute;
        top: 15px;
        right:2vw;
        width: 40px;
        height:32px;
        border-radius:10%;
        display:flex;
        flex-direction: column;
        justify-content:space-between;
        align-items:center;
        /* background-color:goldenrod; */
    }

    nav .lines .line1{
        transform-origin:0% 0% ;
        transition:transform 0.4s ease-in-out;
    }
    nav .lines .line2{
        transition:transform 0.4s ease-in-out;
    }
    nav .lines .line3{
        transform-origin: 0% 100%;
        transition:transform 0.4s ease-in-out;
    }

    nav .lines .line{
        display: block;
        background-color:#fff;
        border-radius:10;
        height:0.5rem;
        padding:0.2rem;
        width: 100%;
    }

    nav input[type="checkbox"]:checked ~  .navul{
        display: block;
        animation:fade-in 0.4s ease-in-out;
        opacity: 1;
    }

    nav input[type="checkbox"]:checked ~ .lines .line1{
        transform: rotate(45deg);
    }
    nav input[type="checkbox"]:checked ~ .lines .line2{
        transform:scaleY(0);
    }
    nav input[type="checkbox"]:checked ~ .lines .line3{
        transform: rotate(-45deg);
    }
    
    nav .navlogo{
        height:100%;
        /* padding-top:1rem; */
        display: flex;
        align-items:center;
    }
    nav .navlogo img{
        width: 5rem;
    }
}

@media (max-width:768px){
    nav .navlogo img{
        width: 5rem;
    }
}
@media (max-width:500px){
    nav input[type="checkbox"]{
        left:88vw;
    }

        .navul{
            display:none;
            opacity: 0;
        }

    }
  
 