/* --- HEADER BASE --- */
.starter-header {
    position: relative;
    width: 100%;
    z-index: 100;
    transition: all 0.4s ease;
}

.starter-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Logo */
.starter-header-logo img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}
.starter-header-logo:hover img {
    transform: scale(1.05);
}

/* Desktop Nav */
.starter-header-nav {
    display: none;
}
@media (min-width: 992px) {
    .starter-header-nav {
        display: flex;
        align-items: center;
        gap: 32px;
    }
}
.starter-header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}
.starter-header-nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

/* CTA Button */
.starter-header-cta {
    display: none;
}
@media (min-width: 992px) {
    .starter-header-cta {
        display: block;
    }
}
.starter-header-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Toggle */
.starter-header-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 102;
}
@media (min-width: 992px) {
    .starter-header-toggle {
        display: none;
    }
}
.starter-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    margin-bottom: 5px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99), opacity 0.3s;
}
.starter-hamburger span:last-child {
    margin-bottom: 0;
}

/* Mobile Menu Drawer */
.starter-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    padding: 80px 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99);
    z-index: 101;
    display: flex;
    flex-direction: column;
}
.starter-mobile-menu.active {
    right: 0;
}
.starter-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}
.starter-mobile-menu li {
    margin-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 12px;
}
.starter-mobile-menu a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}
.starter-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}
.starter-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sticky State Global */
.starter-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: starterSlideDown 0.3s ease-out;
}
@keyframes starterSlideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* --- STYLE 1: GLASS OVERLAY --- */
.starter-header--glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute; /* Overlays hero */
    top: 0;
    left: 0;
}
.starter-header--glass .starter-header-container {
    padding: 20px 40px;
    max-width: 1400px;
}
.starter-header--glass .starter-header-nav a {
    color: rgba(255, 255, 255, 0.8);
}
.starter-header--glass .starter-header-nav a:hover {
    color: #fff;
}
.starter-header--glass .starter-header-nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}
.starter-header--glass .starter-header-nav a:hover::after {
    width: 100%;
}
.starter-header--glass .starter-header-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.starter-header--glass .starter-header-btn:hover {
    background: #fff;
    color: #000;
}
.starter-header--glass .starter-header-toggle {
    color: #fff;
}

/* Sticky State for Glass */
.starter-header--glass.is-sticky {
    background: rgba(20, 20, 20, 0.8); /* Darker on scroll */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- STYLE 2: FLOATING ISLAND --- */
.starter-header--floating {
    margin-top: 24px;
    position: absolute;
    left: 0;
    right: 0;
}
.starter-header--floating .starter-header-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    max-width: 1100px;
    border-radius: 999px;
    padding: 12px 32px;
}
.starter-header--floating .starter-header-logo img {
    height: 32px;
}
.starter-header--floating .starter-header-nav a {
    color: #374151;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
}
.starter-header--floating .starter-header-nav a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}
.starter-header--floating .starter-header-btn {
    background: #111827;
    color: #fff;
    padding: 10px 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.starter-header--floating .starter-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.starter-header--floating .starter-header-toggle {
    color: #111827;
}

/* Sticky State */
.starter-header--floating.is-sticky {
    margin-top: 10px;
}
.starter-header--floating.is-sticky .starter-header-container {
    background: rgba(255, 255, 255, 0.9);
    border-color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* --- STYLE 3: MINIMAL STICKY --- */
.starter-header--minimal {
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}
.starter-header--minimal .starter-header-container {
    padding: 20px 40px;
    max-width: 1400px;
}
.starter-header--minimal .starter-header-nav a {
    color: #4b5563;
}
.starter-header--minimal .starter-header-nav a:hover {
    color: #4f46e5;
}
.starter-header--minimal .starter-header-btn {
    background: #eff6ff;
    color: #4f46e5;
    box-shadow: none;
}
.starter-header--minimal .starter-header-btn:hover {
    background: #4f46e5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}
.starter-header--minimal .starter-header-toggle {
    color: #111827;
}

/* Sticky State */
.starter-header--minimal.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding-top: 5px;
    padding-bottom: 5px;
}
.starter-header--minimal.is-sticky .starter-header-container {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* --- STYLE 4: OSTY REPLICA (Shrinking Sticky) --- */

/* 1. INITIAL STATE (Transparent & Big) */
.starter-header--osty {
    position: absolute; /* Overlays the hero section */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth easing */
}

.starter-header--osty .starter-header-container {
    padding: 35px 60px; /* Big initial padding */
    max-width: 100%; /* Full width usually for this style */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo Initial */
.starter-header--osty .starter-header-logo img {
    height: 45px; /* Large Logo */
    width: auto;
    transition: all 0.5s ease;
}

/* Nav Links Initial */
.starter-header--osty .starter-header-nav a {
    color: #ffffff; /* Assume dark background initially */
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding: 10px 0;
}

.starter-header--osty .starter-header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.starter-header--osty .starter-header-nav a:hover::after {
    width: 100%;
}

/* Icons / Buttons Initial */
.starter-header--osty .starter-header-toggle,
.starter-header--osty .starter-header-icon-btn {
    color: #ffffff;
    font-size: 20px;
}

.starter-header--osty .starter-header-btn {
    background: #ffffff;
    color: #000000;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 4px; /* Slightly squared for this theme style */
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* 2. STICKY STATE (Scrolled) */
.starter-header--osty.is-sticky {
    position: fixed;
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-bottom: none;
}

.starter-header--osty.is-sticky .starter-header-container {
    padding: 15px 40px; /* SHRUNK PADDING */
}

/* Logo Sticky (Shrink) */
.starter-header--osty.is-sticky .starter-header-logo img {
    height: 30px; /* Small Logo */
}

/* Colors Flip */
.starter-header--osty.is-sticky .starter-header-nav a,
.starter-header--osty.is-sticky .starter-header-toggle,
.starter-header--osty.is-sticky .starter-header-icon-btn {
    color: #1f2937; /* Dark text */
}

.starter-header--osty.is-sticky .starter-header-nav a::after {
    background-color: #4f46e5; /* Color accent underline */
}

.starter-header--osty.is-sticky .starter-header-btn {
    background: #1f2937;
    color: #ffffff;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .starter-header--osty .starter-header-container {
        padding: 20px;
    }
    .starter-header--osty.is-sticky .starter-header-container {
        padding: 15px 20px;
    }
}