/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    font-size: 16px; /* Base font size */
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;

}

.navbar {
    background-color: #27272a;
    color: #cbd0f3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    gap: 1rem;
    position: fixed; /* Fix the navbar at the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it sits on top of other content */
}

.logo-text {
    display: flex;
    align-items: center;
}

.logo {
    height: 4rem;
    /* margin-right: 0.5rem; */
    /* width: 10rem; */
    border-radius: 0 !important;
}

.hamburger {
    cursor: pointer;
    display: none; /* Initially hidden */
    flex-direction: column;
    gap: 0.3125rem; /* 5px in rem */
}

.hamburger .line {
    width: 1.5625rem; /* 25px in rem */
    height: 0.1875rem; /* 3px in rem */
    background-color: #cbd0f3;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-item {
    position: relative;
    text-align: center;
}

.nav-link {
    color: #cbd0f3;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    font-size: 1.4rem;
}

.nav-link:hover,
.nav-link:focus {
    color: #3749D1;

}

.dropdown-item:hover {
    color: #3749D1;

}


.dropdown-menu {
    display: none;
    gap: 0.5rem;
    position: absolute;
    background-color: #27272a;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 10rem;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    color: #cbd0f3;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    background-color: #27272a;
    border-color: #27272a;
    box-shadow: none;
    padding: 1rem;
    text-align: center;
}

.logo-text-text {
    word-break: normal;
    font-size: larger;
    font-weight: 600;
    color: #fff;
}

.nav-button {
    background-color: #3749D1;
    color: #fff !important;
    font-weight: 600;
    border: none;
    margin: 5px;
    padding: 12px 24px;
    border-radius: 100px;
    cursor: pointer;
}

.nav-button:hover {
    background-color: #2a3a98;
}

/* Responsive Styles */
@media (max-width: 48rem) { /* 768px in rem */
    .hamburger {
        display: flex; /* Show hamburger menu on small screens */
    }
    
    .nav-menu {
        display: none; /* Hide full menu on small screens */
        flex-direction: column;
        width: 100%;
    }

    .nav-menu.active {
        display: flex; 
        align-items: center;
        margin: 0rem 1rem 1rem;
/* Show menu when hamburger is clicked */
    }

    .nav-item {
        text-align: center;
    }

  
    
    .dropdown-menu {
        position: static;
    }

    .nav-link{
        font-size: 1.2rem;
    }

  
}

/* Transformations for Hamburger to X icon */
.hamburger.open .line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 5px);
}

.hamburger.open .line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
}

/* Adding arrow or highlight to the dropdown item */
.dropdown-toggle::after {
    content: ' ▼'; /* Add an arrow after the link text */
    font-size: 0.75rem;
}
