/* HEADER */

.header {
    /* White header at the top of the page */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000; /* Updated z-index to stay above all elements */
    height: 90px;
    background: rgba(255, 255, 255, 0.97);
    background: transparent;
    border-bottom: 1px solid rgba(61, 0, 117, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:background .35s ease, box-shadow .35s ease, border-color .35s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

/* SVG Logo Styling */
.header-logo {
  display: inline-block;
  line-height: 0; /* Prevents unwanted bottom spacing */
}

.header-logo svg {
  width: 40px;      /* Set explicit width */
  height: 40px;     /* Set explicit height */
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hover Effect */
.header-logo:hover svg {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Sticky header after scrolling */
header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000; /* Updated z-index to stay above all elements */
    background: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.navbar {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    /* width: 250px; */
    height: 65px;
    display: flex;
    align-items: center;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

/* Normal logo */
.logo-normal {
    display: block;
}

/* Sticky logo hidden initially */
.logo-sticky {
    display: none !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #3c0a6d;
    font-size: var(--font-14);
    font-weight: var(--weight-600);
    letter-spacing: .5px;
}

header.scrolled .nav-links {
    color: #3c0a6d;
}

.nav-links a {
    position: relative;
    color: inherit;
    opacity: .8;
    transition: color .3s ease, opacity .3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #9d4edd;
    opacity: 1;
    font-weight: var(--weight-500);
}

.nav-links a:not(.nav-button)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: #7b3fc0;
    transition: width .3s ease;
}

.nav-links a:not(.nav-button):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-button {
    padding: 8px 24px;
    border-radius: 0px;
    background: #7b3fc0;
    color: white !important;
    opacity: 1 !important;
    transition: transform .3s ease, background .3s ease;
}

.nav-button:hover {
    background: #3D0075;
    color: #D1C4E9;
    transform: translateY(-2px);
}

.menu-button {
    display: none;
    border: 0;
    background: #3D0075;
    color: #D1C4E9;
    font-size: var(--font-28);
}

header.scrolled .menu-button {
    color: #ffffff;
}