* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#header{
    height: 90px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    background: linear-gradient(90deg, #6c3483, #9966cc);
    color: white;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

#header h1{
    font-size: 28px;
    letter-spacing: 1px;
    min-width: fit-content;
}

#header > input{
    height: 45px;
    width: 28%;
    border-radius: 25px;
    border: none;
    padding: 0 20px;
    font-size: 16px;
    outline: none;
    min-width: 150px;
}

#navlinks{
    height: 60px;
    width: 45%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(255,255,255,0.15);
    border-radius: 40px;
    backdrop-filter: blur(10px);
}

#navlinks a{
    padding: 10px 18px;
    color: white;
    font-size: 16px;
    text-decoration: none;
    border-radius: 20px;
    transition: 0.3s;
    white-space: nowrap;
}

#navlinks a:hover{
    background-color: white;
    color: #004e92;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile and Tablet Styles */
@media (max-width: 1024px) {
    #header {
        padding: 0 16px;
    }
    
    #header h1 {
        font-size: 22px;
    }
    
    #header > input {
        width: 20%;
        font-size: 14px;
    }
    
    #navlinks {
        width: 40%;
    }
    
    #navlinks a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    #header {
        height: 70px;
        padding: 0 12px;
        flex-wrap: wrap;
    }
    
    #header h1 {
        font-size: 20px;
        flex-basis: auto;
    }
    
    #header > input {
        display: none;
    }
    
    #navlinks {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background-color: rgba(0, 4, 40, 0.98);
        border-radius: 0;
        backdrop-filter: blur(15px);
        justify-content: flex-start;
        padding-top: 20px;
        gap: 15px;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    #navlinks.active {
        left: 0;
    }
    
    #navlinks a {
        width: 90%;
        padding: 12px 20px;
        font-size: 16px;
        text-align: center;
        border-radius: 10px;
        transition: all 0.3s;
    }
    
    #navlinks a:hover {
        background-color: #2bb0a6;
        color: white;
    }
    
    .hamburger {
        display: flex;
        order: 3;
    }
}

@media (max-width: 480px) {
    #header {
        height: 60px;
        padding: 0 10px;
    }
    
    #header h1 {
        font-size: 18px;
    }
    
    #navlinks {
        top: 60px;
    }
    
    #navlinks a {
        padding: 10px 16px;
        font-size: 14px;
    }
}
