/* Custom Split Header (Logo in Middle) */
.custom-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 30px 50px;
    background: transparent !important;
}

/* Override any scrolled state - keep header always transparent */
.custom-header.scrolled {
    background: transparent !important;
    box-shadow: none !important;
}

/* Ensure text is always white */
.custom-header .min-nav-link,
.custom-header.scrolled .min-nav-link {
    color: #fff !important;
}

.custom-header .custom-logo a,
.custom-header.scrolled .custom-logo a {
    color: #fff !important;
}

.custom-header .min-nav-link::after,
.custom-header.scrolled .min-nav-link::after {
    background: #fff !important;
}

.custom-header .custom-nav-toggle span,
.custom-header.scrolled .custom-nav-toggle span {
    background: #fff !important;
}

/* Force scroll to top on refresh/load to prevent jumping */
html,
body {
    overflow-x: hidden;
}

/* Custom Header Inner Layout */
.custom-header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.custom-logo {
    position: relative;
    left: auto;
    transform: none;
}

.custom-logo a {
    font-family: 'Albert Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.split-nav-left,
.split-nav-right {
    display: flex;
    gap: 30px;
    flex: 1;
}

.split-nav-left {
    justify-content: flex-end;
}

.split-nav-right {
    justify-content: flex-start;
    align-items: center;
}

.lang-switcher {
    display: flex;
    gap: 12px;
    margin-left: 20px;
}

.lang-link {
    opacity: 0.5;
    transition: opacity 0.3s;
    line-height: 0;
}

.lang-link:hover,
.lang-link.active {
    opacity: 1;
}

/* Premium Text-Based Language Switcher */
.lang-switcher-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 25px;
}

.lang-text-link {
    font-family: 'Albert Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
}

.lang-text-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.lang-text-link.active {
    color: #fff;
}

.lang-divider {
    font-family: 'Albert Sans', sans-serif;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.min-nav-link {
    font-family: 'Albert Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.min-nav-link:hover {
    color: #fff;
    opacity: 1;
}

.min-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s;
}

.min-nav-link:hover::after {
    width: 100%;
}

.custom-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.custom-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Push header down when Editor Toolbar is present */
body.akari-editor-active .custom-header {
    top: 60px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .custom-header {
        padding: 20px 30px;
    }

    .split-nav-left,
    .split-nav-right {
        display: none;
    }

    .custom-logo {
        position: static;
        transform: none;
        margin-right: auto;
    }

    .custom-header-inner {
        justify-content: space-between;
        width: 100%;
        gap: 0;
    }

    .custom-nav-toggle {
        display: flex;
    }
}

/* Premium Mobile Menu - Frosted Glass Design */
.min-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.min-mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.min-close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    z-index: 2001;
    padding: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.min-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.min-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 35px;
    text-align: center;
}

/* Mobile Menu Links - Matching Desktop Font */
.min-mobile-link {
    font-family: 'Albert Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.min-mobile-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Language Switcher */
.mobile-lang-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-link {
    font-family: 'Albert Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-lang-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-lang-link.active {
    color: #fff;
}

.mobile-lang-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 10px;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
}

.mobile-social-link {
    font-family: 'Albert Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-social-link:hover {
    color: #fff;
}

.min-mobile-menu.active .min-mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay */
.min-mobile-menu.active .min-mobile-link:nth-child(1) {
    transition-delay: 0.1s;
}

.min-mobile-menu.active .min-mobile-link:nth-child(2) {
    transition-delay: 0.15s;
}

.min-mobile-menu.active .min-mobile-link:nth-child(3) {
    transition-delay: 0.2s;
}

.min-mobile-menu.active .min-mobile-link:nth-child(4) {
    transition-delay: 0.25s;
}

.min-mobile-menu.active .mobile-lang-switcher {
    animation: fadeInUp 0.5s ease forwards 0.35s;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}