.navbar {
    position: fixed;
    max-width: 100%;
    display: flex;
    align-items: center;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
    text-align: center;
    justify-content:center;
    height: 80px;
    width: 100%;
    transition: background-color 0.5s ease-in, height 0.5s ease-in;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #333;
    margin-bottom: 5px;
    border-radius: 5px;
}

.nav-links {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-grow: 1;
    margin-top: 10px;
    align-content: center;
    flex-wrap: wrap;
}

.nav-link {
    margin: 0 20px;
    text-decoration: none;
    color: #757575;
    font-weight:500;
    transition: color 0.3s;    
    font-size: 16px;
}

.nav-link.active {
    color: #212D54;
}

.nav-link.active::after {
    content: '';
    display: block;
    margin: 0 auto;
    height: 3px;
    width: 24px;
    background-color: #212D54;
    margin-top: 5px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    transform: translateX(-10%);

}

.content {
    position: absolute;
    width: 100%;
}

/* Scrolled state of the header */
.navbar.scrolled {
    position: fixed;
    background-color: #FFFFFF;
    top: 0;
    max-width: 100%;
    display: flex;
    align-items: stretch;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
    justify-content:center;
    height: 50px;
    width: 100%;
    transition: background-color 0.5s ease-in, height 0.5s ease-in;
}

/* Hide profile pic when scrolled */
/* .navbar.scrolled .profile-pic {
    display: none;
} */

.navbar.scrolled .nav-links {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-grow: 1;
    margin-bottom:10px ;
    align-content: center;
    flex-wrap: wrap;
}

.navbar.scrolled .nav-link {
    margin: 0 20px;
    text-decoration: none;
    color: #212D54;
    font-weight:500;    
    font-size: 16px;
}

.navbar.scrolled .nav-link.active::after {
    content: '';
    display: block;
    margin: 0 auto;
    height: 3px;
    width: 24px;
    background-color: #212D54;
    margin-top: 5px;
    border-radius: 5px;
}


/*Explore Me Model*/
.exploreMemodal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.hidden {
    display: none;
}

.exploreMemodal-content {
    position: relative;
    width: 300px;
    height: auto;
    border-radius: 10px;
    background-color: white;
    color: black;
    text-align: left;
    max-width: 100%;
}

.exploreMemodal-content img {
    width: 300px;
    height: 250px;
    border-radius: 10px 10px 0 0;
}

.exploreMeclose {
    position: fixed;
    top: 10px;
    right: 20px;
    color: #FFFFFF;
    font-size: 2em;
    cursor: pointer;
}

.exploreMeclose:hover,
.exploreMeclose:focus {
    cursor: pointer;
}

.exploreMeModal-text {
    text-align: left;
    width: 100%;
    margin-bottom: 20px;
}

#exploreMeModalh2 {
    margin-top: 5px;
    margin-left: 15px;
}

.exploreMeModal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 5px;
    align-items: center;
    margin-top: -10px;
    margin-left: 15px;
    justify-content: space-around;
    align-content: center;
    justify-items: stretch;
}

.exploreMeLabels {
    display: contents;
}

.exploreMeLabels p {
    margin: 3px 0;
    word-break: break-word;
}

#exploreMeModalp {
    font-weight: bold;
    line-height: 1;
    word-wrap: break-word;
}

/* Mobile View */
@media (max-width: 1100px) and (min-width: 769px) {
    .nav-links {
        padding-left: 22%;
    }    
    
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        max-width: 100%;
        display: flex;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1;
        text-align: center;
        align-items: center;
        justify-content: space-between;
        max-height: 65px !important;
        width: 100%;
        transition: background-color 0.5s ease-in, height 0.5s ease-in;
        padding-left: 2%;
    }

    .navbar.scrolled {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 2%;
    }

    .hamburger {
        display: flex;
        margin: 2%;
    }

    .navbar.scrolled .nav-links{
        display: none;
        position: fixed;
        top: 0;
    }

    .nav-links {
        display: none;
    }

    .profile-pic {
        position: relative !important;
        width: 45px !important;
        height: 45px;
        display: flex !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        padding-right: 5%;
        top: 0px !important;
        left: 0 !important;
        margin: 0px !important;
    }

    .profile-pic .overlay {
        position: absolute !important;
        top: 0px !important;
        left: 0 !important;
        width: 45px !important;
        height: 45px;
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        display: flex !important;
        justify-content: space-between;
        flex-wrap: nowrap !important;
        align-items: center !important;
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 50%;
        font-weight: 700;
        font-size: 7px !important;
        transition: width 0.5s ease, height 0.5s ease;
        text-align: center !important;
    }
    
    .navbar.scrolled.profile-pic {
        position: relative !important;
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        right: 20px;
        top: 0px !important;
        left: 0 !important;
        margin: 0px !important;
    }

    .profile-pic img {
        width: 45px !important;
        height: 45px !important;
        object-fit: cover;
        border: none;
    }
}

/* Drawer styles */
.drawer {
    position: fixed;
    top: 0;
    left: -70%;
    width: 70%;
    height: 100%;
    background-color: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    transition: left 0.3s ease;
    z-index: 1000;
}

.drawer.open {
    left: 0;
}

.drawer-header {
display: flex;
width: 100%;
justify-content: space-around;
padding: 10px 0 10px;
background-color: #f4f4f4;
border-bottom: 1px solid #ddd;
}

.close-drawer {
font-size: 24px;
cursor: pointer;
}

.drawer-content {
display: flex;
flex-direction: column;
padding: 20px;
}

.drawer-content .nav-link {
margin: 10px 0;
}