.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.header-container {
    /* position: relative; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    border-radius: 50px;
    /* background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); */
    background: rgba(255, 255, 255, 0.26);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.37);
    transition: all 0.5s ease;
    /* overflow: hidden; */
}

/* Right-to-left animation overlay */
.header-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transform: translateX(-100%) scale(0.65);
    opacity: 0;
    transition: transform 0.1s ease, opacity 0.5s ease, scale 0.1s ease;
    z-index: -1;
    border-radius: 50px;
}

.header.scrolled .header-container::before {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.logo {
    transition: all 1s ease;
    z-index: 1;
    padding-left: 12px;
}

.logo h3 {
    font-family: "Overlock SC", sans-serif;
    color: #000;
    font-weight: bold;
    font-size: 34px;
}

.logo img {
    /* height: 23px; */
    height: 36px;
    /* filter: invert(1); */
}

.desktop-nav {
    display: flex;
    gap: 32px;
}

.desktop-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 1;
    padding: 6px 12px;

    background: transparent;
    border-radius: 20px;
    border: none;
    transition: 0.3s ease;
    cursor: pointer;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #97CBEB, #997ADA);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.desktop-nav a:hover,
.header.scrolled .desktop-nav a:hover {
    color: #668DC6;
    transform: scale(1.05);
}

.desktop-nav a:hover::after {
    width: 80%;
}

.button-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-button,
.mobile-cta-button {
    background: linear-gradient(135deg, #97CBEB, #997ADA);
    border: none;
    border-radius: 23px;
    padding: 12px 18px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 12px rgba(151, 203, 235, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 12px rgba(151, 203, 235, 0.6);
    }

    50% {
        box-shadow: 0 0 16px rgba(153, 122, 218, 0.9);
    }

    100% {
        box-shadow: 0 0 12px rgba(151, 203, 235, 0.6);
    }
}

.mobile-cta-button {
    display: none;
}

.cta-button:hover,
.mobile-cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(153, 122, 218, 0.8);
}

.cta-button:active,
.mobile-cta-button:active {
    transform: scale(0.97);
    box-shadow: 0 0 8px rgba(151, 203, 235, 0.5);
}

.mobile-nav {
    display: flex;
    gap: 20px;
}

/* Hamburger menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    border-radius: 3px;
    background-color: #000;
    transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: -11px;
    right: -110vw;
    width: 101vw;
    height: 100vh;
    background: linear-gradient(90deg, #232946 0%, #1a1a2e 100%);
    opacity: 0.95;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.3s ease;
    z-index: 999;
    opacity: 0;
}

.mobile-menu a {
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: 500;
    padding: 6px 30px;
}

.mobile-menu.open {
    right: -22px;
    opacity: 1;
}



/* Scrolled state styles */


/* Mobile responsiveness */
@media screen and (max-width: 1300px) {
    a.blog{
        display: none;  
    }
}
@media screen and (max-width: 1200px) {
    .desktop-nav{
        gap: 26px;
    }
    .desktop-nav a {
        font-size: 15px;
        padding: 6px 8px;
    }
}

@media screen and (max-width: 1100px) {
    .desktop-nav {
        gap: 5px;
    }

    .desktop-nav a {
        font-size: 14px;
    }

    .cta-button {
        padding: 10px 16px;
        font-size: 16px;
    }

}

@media (max-width: 900px) {
    .mobile-menu{
        display: flex;
    }
    .desktop-nav {
        display: none;
    }

    .hamburger,
    .mobile-cta-button {
        display: block;
    }

    .header-container .cta-button {
        display: none;
    }

    .header-container {
        padding: 12px 16px;
    }

    /* Hamburger animation when open */
    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

@media screen and (max-width: 470px) {
    .logo img {
        height: 30px;
    }

    .mobile-cta-button {
        border-radius: 27px;
        padding: 6px 12px;
        font-size: 14px;
    }

    .mobile-nav {
        gap: 0px;
    }
}

@media screen and (max-width: 375px) {
    .mobile-cta-button {
        display: none;
    }
}