/* Google Font*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

*{box-sizing: border-box;padding: 0;margin: 0;scroll-behavior: smooth;}
body{font-family: Montserrat, sans-serif;font-size: .938rem;background-color: #f2f3f2;}

/*Header*/
.header{background-color: #f9e401;position: fixed;top: 0;left: 0;width: 100%;box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);z-index: 100;}
.nav{height: 7rem;}
.container{
    max-width: 1300px;
    margin-inline: 1.5rem;
}
.nav__data{
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav__logo img{
    width: 350px;
    height: 110px;
    display: flex;
    position: relative;
}
.nav__toggle{
    position: relative;
    width: 32px;
    height: 32px;
}
.nav__burger,.nav__close{
    color: black;
    position: absolute;
    width: max-content;
    height: max-content;
    inset: 0;
    margin: auto;
    font-size: 1.25rem;
    cursor: pointer;
    transition: opacity .1s, transform .4s;
}
.nav__close{
    opacity: 0;
}
.nav__link{
    color: black;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color .3s;
}
.nav__link:hover{background-color: grey;}
.dropdown__item{
   
    cursor: pointer;
}
.dropdown__item:hover .dropdown__menu{
    max-height: 1000px;
    transition: max-height .4s ease-in;
}
.dropdown__item:hover .dropdown__arrow{
    transform: rotate(180deg);
}
.dropdown__arrow{
    font-size: 1.25rem;
    font-weight: initial;
    transition: transform .4s;
}
.dropdown__menu{
    max-height:0 ;
    overflow: hidden;
    transition: max-height .4s ease-out;
}
.dropdown__link{
    padding: 1.25rem 1.25rem 1.25rem 2.5rem;
    color: black;
    background-color: grey;
    display: flex;
    align-items: center;
    column-gap: .5rem;
    font-weight: 600;
    transition: background-color .3s;
}
.dropdown__link i{
    font-size: 1.25rem;
    font-weight: initial;
}
.dropdown__link:hover{
    background-color: #0056b3;
}
.dropdown__subitem:hover > .dropdown__submenu{
    max-height: 1000px;
    transition: max-height .4s ease-in;
}
.dropdown__add{
    margin-left: auto;
}
.dropdown__submenu{
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease-out;
}
.dropdown__sublink{
    background-color: gray;
    padding: 1.25rem 1.25rem 1.25rem 2.5rem;
    color: black;
    display: flex;
    align-items: center;
    column-gap: .5rem;
    font-weight: 600;
    transition: background-color .3s;
}
.dropdown__sublink i{
    font-size: 1.25rem;
    font-weight: initial;
}
.dropdown__sublink:hover{
    background-color: #0056b3;
}
ul{
    list-style: none;
}
a{
    text-decoration: none;
}

@media screen and (max-width: 1118px) /* Mobile View*/
{
    .nav__menu{
        position: absolute;
        left: 0;
        top: 2.5rem;
        width: 100%;
        height: calc(100vh - 3.5rem);
        overflow: auto;
        pointer-events: none;
        opacity: 0;
        transition: top .4s, opacity .3s;
    }
    .nav__menu::-webkit-scrollbar{
        width: 0;
    }
    .nav__logo img{
        width: 200px;
        height: 75px;
        display: flex;
        position: relative;
        left: 10px;
    }
    .nav__list{
        background-color: gray;
        padding: top 1rem;
    }
    .dropdown__link{
        color: black;
    }
    .dropdown__sublink{
        color: black;
    }
}

.show-menu{
    opacity: 1;
    top: 5.2rem; /* Menu Gap*/
    pointer-events: initial;
}

.show-icon .nav__burger{
    opacity: 0;
    transform: rotate(90deg);
}

.show-icon .nav__close{
    opacity: 1;
    transform: rotate(90deg);
}

@media screen and (max-width: 340px){
    .container{
        margin-inline: 1rem;
    }
    .nav__link{
        padding-inline: 1rem;
    }
}

@media screen and (min-width:1118px){ /* Large Screen Eg Laptop*/
    .container{
        margin-inline:auto ;
    }
    .nav{
        height: calc(4rem)+2rem;
        display: flex;
        justify-content: space-between;
    }
    .nav__toggle{
        display: none;
    }
    .nav__list{
        height: 100%;
        display: flex;
        column-gap: 3rem;
    }
    .nav__link{
        height: 100%;
        padding: 0;
        justify-content: initial;
        column-gap: .25rem;
    }
    .nav__link:hover{
        background-color: transparent;
    }
    .dropdown__item,.dropdown__subitem{
        position: relative;
    }
    .dropdown__menu, .dropdown__submenu{
        max-height: initial;
        overflow: initial;
        position: absolute;
        left: 0;
        top: 6rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s, top .3s;
    }
    .dropdown__link, .dropdown__sublink{
        padding-inline: 1rem 3.5rem;
    }
    .dropdown__subitem .dropdown__link{
        padding-inline: 1rem;
        color: black;
    }
    .dropdown__submenu{
        position: absolute;
        left: 100%;
        top: .5rem;
    }
    .dropdown__item:hover .dropdown__menu{ /* menu gap here*/
        opacity: 1;
        top: 7rem;
        pointer-events: initial;
        transition: top .3s;
    }
    .dropdown__subitem:hover > .dropdown__submenu{
        opacity: 1;
        top: 0;
        pointer-events: initial;
        transition: top .3s;
    }
}

/* General Container */
.card-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Formal Members Section */
.formal-members-section {
    margin-top: 3rem;
    padding: 50px 20px;
    background-color: #f4f4f4;
}

.formal-members-section h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
}

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cards per row */
    gap: 30px;
    justify-items: center;
}

/* Member Card */
.member-card {
    background-color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 250px;
    width: 100%;
}

.member-card img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Added shadow */
}


.member-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.member-card p {
    font-size: 1rem;
    color: #666;
    margin: 5px 0;
}

/* For screens up to 1024px - 3 cards per row */
@media (max-width: 1024px) {
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* For screens up to 768px - 2 cards per row */
@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For screens up to 480px - 1 card per row */
@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
}

.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
  }
  
  .footer p {
    margin: 0;
    font-size: 1rem;
  }
  
  .developer-info {
    margin-top: 5px;
    font-size: 0.85rem; 
    color: #ccc; 
  }
