header#main-header {
    font-family: "Barlow", sans-serif;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: top 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
}

header#main-header .logo a {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

header#main-header.scrolled .logo a {
    color: #000;
}

header#main-header nav {
    background-color: #f5f5f5;
    padding: 10px 20px;
    border-radius: 50px;
}

header#main-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

header#main-header nav ul li a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
}

header#main-header .cta .cta-button {
    display: flex;
    align-items: center;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
}

header#main-header .cta .cta-button span {
    position: relative;
    z-index: 1;
    margin-left: 10px;
}

header#main-header .cta .cta-button::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: #0731d1;
    z-index: 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header#main-header .cta .cta-button:hover::before {
    width: 100%;
}

header#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    color: #000000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
    header#main-header {
        align-items: center;
        padding: 10px;
        justify-content: space-between;
    }
    header#main-header nav {
        display: none;
    }
    header#main-header .logo a {
        font-size: 18px;
    }
}
