@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

/* NAVBAR */
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: ghostwhite;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10000; /* navbar always on top */
}

.logo-box{
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box img{
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.logo-text h2{
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #00BFFF;
}

.logo-text p{
    margin: 0;
    font-size: 16px;
    color: gray;
    margin-top: 5px;
}

.logo-link {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    align-items: center;
}

/* NAV LINKS DESKTOP */
.nav-links{
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
    border: 1px solid navy;
    background-color: #00BFFF;
    padding: 12px;
    border-radius: 10px;
}

.nav-links a{
    text-decoration: none;
    color: white;
    transition: 0.5s;
}

.nav-links a:hover{
    color: navy;
}

/* BUTTON */
.btn{
    padding: 8px 18px;
    background: #00BFFF;
    color: white;
    border-radius: 5px;
    font-weight: 600;
    list-style: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover{
    background: navy;
    transform: scale(1.05);
}

/* HAMBURGER */
.hamburger{
    font-size: 28px;
    cursor: pointer;
    display: none;
}

.scholar-desktop{
    display: inline-block;
}

.btn-mobile{
    display: none;
}

/* ================= MOBILE VIEW FIXES ================= */
@media (max-width:900px){

    .hamburger{
        display: block;
        z-index: 20000;
    }

    .nav-links{
        position: absolute;
        top: 100%; /* sits directly below navbar */
        right: 0;
        background: #00BFFF;
        width: 100%;
        padding: 25px 0;
        flex-direction: column;
        gap: 22px;
        display: none;
        z-index: 9999; /* menu ALWAYS above hero */
        border-radius: 0 0 12px 12px;

        /* animation */
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-links.open{
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .logo-box img{
        width: 55px;
        height: 55px;
    }
    .logo-text h2{ font-size: 18px; }
    .logo-text p{ font-size: 11px; }

    .hamburger-menu{ display: none; }
    .scholar-desktop{ display: none; }
}

/* EXTRA SMALL FIXES */
@media (max-width:358px){
    .logo-text h2{ font-size: 14px; }
    nav{ height: 70px; }
}

@media (max-width:378px){
    nav{ height: 70px; }
    .logo-text h2{ font-size: 14px; }
}

@media (max-width:323px){
    .logo-text h2{ font-size: 12px; }
}

@media (max-width:428px){
    /* no top gaps now */
}

@media (min-width:1020px) and (max-width:1040px){
    nav{ padding: 0 50px; }
    .nav-links{ margin-right: 50px; }
    #scholarBtn{ margin-left: 40px; }
}
