nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    padding: 15px 15px;
    height: 60px;
    position: relative;
    width: 100%;
    z-index: 10;
    text-align: center;
}

.nav-row {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-icons {
    flex: 0 0 auto;
}

/* Left Section (LinkedIn Button) */
.nav-left,
.nav-right {
    display: flex;
    align-items: center;
}

/* Center Section (Navigation Links) */
.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    flex-wrap: nowrap;
}

/* Navigation Links */
.nav-center a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    transition: background-color 0.3s ease-in-out;
}

.mobile-menu.show {
    display: flex;
}

.mobile-menu a {
    color: white;
    padding: 8px 0;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hover effects */
.mobile-menu a:hover {
    background-color: #444;
}

.nav-center.desktop-menu {
    display: none;
}

.menu-icon {
    width: 20px;
    height: 20px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #333;
    padding: 10px;
    text-align: center;
}

/* LinkedIn Button */
.linkedin-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #0077B5;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.linkedin-button:hover {
    background-color: #005f8d;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.linkedin-icon,
.github-icon {
    width: 24px;
    height: 24px;
}

/* GitHub Button */
.github-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #0a0a0a;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.github-button:hover {
    background-color: #24292f;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    /* Adjust this value as needed to place it below your nav */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
    padding: 10px 0;
    text-align: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-sub {
    position: relative;
}

.dropdown-sub-content {
    display: none;
    position: absolute;
    left: 100%; /* show to the right */
    top: 0;
    background-color: #333;
}

.dropdown-sub:hover .dropdown-sub-content {
    display: block;
}


main,
.content {
    margin-top: 50px;
}

.hamburger {
    font-size: 24px;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
}

@media (max-width: 768px) {

    main,
    .content {
        margin-top: 70px;
    }

    nav {
        flex-direction: column;
        padding: 10px 0;
        height: auto;
        justify-content: center;
    }

    .nav-left,
    .nav-right,
    .hamburger {
        display: flex;
    }

    .nav-center {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
        display: none;
    }

    .nav-center.desktop-menu {
        display: none;
    }

    .nav-icons,
    .hamburger {
        display: block;
    }

    .mobile-menu.show {
        display: flex;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #333;

        min-width: 160px;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 1;
        text-align: center;
        padding: 10px 0;
    }

    .dropdown.active .dropdown-content {
        display: block;
        text-align: center;
    }

    .dropdown-content a {
        padding: 10px 15px;
        text-align: center;
        width: 100%;
    }

    .container {
        padding: 20px;
        border-radius: 8px;
        width: 100%;
        margin-top: 45px;
    }

    .linkedin-button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        background-color: #ababab;
        color: white;
        text-decoration: none;
        font-weight: bold;
    }

    .linkedin-icon,
    .github-icon {
        width: 24px;
        height: 24px;
    }


    .github-button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        background-color: #ababab;
        color: white;
        text-decoration: none;
        font-weight: bold;
    }

    .linkedin-button,
    .github-button {
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .nav-center.desktop-menu {
        display: none;
    }

    .nav-left,
    .nav-right,
    .hamburger {
        display: flex;
    }

    .mobile-menu.show {
        display: flex;
    }

    .linkedin-button,
    .github-button {
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .linkedin-icon,
    .github-icon {
        width: 24px;
        height: 24px;
    }
}

@media (min-width: 769px) {


    .nav-row,
    .mobile-menu {
        display: none;
    }

    .nav-center.desktop-menu {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        height: 100%;
    }

    .nav-center a {
        color: white;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-center a:hover {
        color: #ccc;
    }

    /* Structure for the mobile flex layout */
    .nav-left,
    .nav-right {
        display: flex;
        align-items: center;
    }

    .hamburger {
        font-size: 24px;
        color: white;
        background: none;
        border: none;
        cursor: pointer;
    }
}