:root {
    --en-red: #EE2C2C;
    --en-red-hover: #ff3d3d;
    --en-dark-bg: #000000;
    /* Solid Black */
    --en-glass-border: rgba(255, 255, 255, 0.08);
    --en-font-main: 'Inter', -apple-system, system-ui, sans-serif;
    --en-transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ANIMATIONS */
@keyframes enFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@keyframes enScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.en-header-hub {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--en-header-height, 100px);
    background: #000000;
    z-index: 99999;
    transition: var(--en-transition);
    font-family: var(--en-font-main);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--en-glass-border);
}

.en-header-hub.scrolled {
    height: 80px;
    background: #000000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--en-glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.header-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.header-logo {
    margin-left: 0;
    z-index: 10;
}

.header-logo img {
    transition: var(--en-transition);
}

.en-header-hub.scrolled .header-logo img {
    height: 32px !important;
}

/* NAVIGATION MATRIX */
.nav-matrix ul {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-matrix li {
    position: relative;
    padding: 2.5rem 0;
    animation: enFadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Stagger animations */
.nav-matrix li:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-matrix li:nth-child(2) {
    animation-delay: 0.15s;
}

.nav-matrix li:nth-child(3) {
    animation-delay: 0.2s;
}

.nav-matrix li:nth-child(4) {
    animation-delay: 0.25s;
}

.nav-matrix li:nth-child(5) {
    animation-delay: 0.3s;
}

.nav-matrix li:nth-child(6) {
    animation-delay: 0.35s;
}

.nav-matrix a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    position: relative;
}

/* Underline Effect */
.nav-matrix a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--en-red);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-matrix a:hover::after,
.nav-matrix li.current-menu-item>a::after {
    width: 100%;
}

.nav-matrix a:hover,
.nav-matrix li.current-menu-item>a,
.nav-matrix li.has-mega:hover>a {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.nav-matrix .chevron {
    width: 12px;
    height: 12px;
    fill: currentColor;
    opacity: 0.5;
    transition: 0.3s;
}

.nav-matrix li:hover .chevron {
    transform: rotate(180deg);
}

/* MEGA MENU DEFAULT STYLE (Redesigned) */
.en-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: max-content;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--en-glass-border);
    border-top: 2px solid var(--en-red);
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border-radius: 0 0 12px 12px;
    z-index: 100;
}

.nav-matrix li:hover .en-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-inner {
    display: flex;
    gap: 50px;
}

.mega-column h4 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin: 0 0 20px;
}

.mega-cta {
    color: var(--en-red) !important;
    font-size: 12px !important;
}

.mega-links {
    display: grid;
    grid-template-columns: repeat(2, 220px);
    gap: 15px;
}

.mega-item {
    display: flex !important;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: 0.2s;
    background: transparent;
}

/* Mega Link Hover Animations */
.mega-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.mega-item .m-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    fill: #fff;
    transition: 0.3s;
}

.mega-item:hover .m-icon {
    background: var(--en-red);
}

.mega-item .m-text {
    display: flex;
    flex-direction: column;
}

.mega-item .m-text strong {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
}

.mega-item .m-text span {
    font-size: 10px;
    color: #666;
    text-transform: none;
    letter-spacing: 0;
}

/* HEADER OPS */
.header-ops {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* LANG SWITCHER (Vibrant & Premium for Polylang) */
.en-lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Polylang Specific Overrides */
.en-lang-switcher ul,
.en-lang-switcher .pll-list {
    display: flex !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.en-lang-switcher li {
    display: flex !important;
    align-items: center;
}

.en-lang-switcher::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(238, 44, 44, 0.1), transparent);
    animation: enShimmer 3s infinite linear;
    pointer-events: none;
}

@keyframes enShimmer {
    0% {
        transform: rotate(0deg) translate(-50%, -50%);
    }

    100% {
        transform: rotate(360deg) translate(-50%, -50%);
    }
}

.en-lang-switcher a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 20px;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.en-lang-switcher a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.en-lang-switcher a.active {
    color: #fff;
    background: linear-gradient(135deg, #EE2C2C, #FF5F5F);
    /* Vibrant Red Gradient */
    box-shadow: 0 4px 15px rgba(238, 44, 44, 0.4);
    transform: scale(1.05);
}

.en-lang-switcher .sep {
    display: none;
    /* Hide separator for pill design */
}

/* CONTACT WIDGET (NEW) */
.en-contact-widget {
    position: relative;
    z-index: 200;
}

/* Trigger Button */
.en-premium-cta {
    background: var(--en-red);
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--en-transition);
    border: 1px solid var(--en-red);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(238, 44, 44, 0.2);
}

.en-premium-cta svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: 0.3s;
}

.en-premium-cta:hover {
    background: var(--en-red-hover);
    box-shadow: 0 0 30px rgba(238, 44, 44, 0.6);
    transform: translateY(-1px);
}

.en-premium-cta:hover svg {
    transform: translateX(3px);
}

/* DROPDOWN */
.contact-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    width: 340px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Fix hover bridge */
.en-contact-widget::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 25px;
}

.en-contact-widget:hover .contact-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* CLOCK */
.widget-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#en-time-display {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

#en-date-display {
    font-size: 11px;
    font-weight: 600;
    color: var(--en-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* SOCIAL GRID */
.widget-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ws-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 5px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid transparent;
}

.ws-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.ws-icon {
    width: 24px;
    height: 24px;
    fill: #fff;
    margin-bottom: 6px;
    transition: 0.3s;
}

.ws-item:hover .ws-icon {
    transform: scale(1.1);
    fill: var(--en-red);
}

.ws-item span {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-weight: 600;
    transition: 0.3s;
}

.ws-item:hover span {
    color: #fff;
}

/* ACTIONS */
.widget-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s;
    width: 100%;
    border: 1px solid transparent;
}

.wa-btn.primary {
    background: var(--en-red);
    color: #fff;
}

.wa-btn.primary:hover {
    background: var(--en-red-hover);
    box-shadow: 0 5px 25px rgba(238, 44, 44, 0.4);
    transform: translateY(-2px);
}

.wa-btn.outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.wa-btn.outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Burger */
.en-burger-pro {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.burger-lines {
    width: 24px;
    height: 14px;
    position: relative;
}

.burger-lines span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    left: 0;
    transition: 0.3s;
}

.burger-lines span:first-child {
    top: 0;
}

.burger-lines span:last-child {
    bottom: 0;
}

.en-burger-pro.active .burger-lines span:first-child {
    top: 6px;
    transform: rotate(45deg);
}

.en-burger-pro.active .burger-lines span:last-child {
    bottom: 6px;
    transform: rotate(-45deg);
}

@media (max-width: 1024px) {
    .nav-matrix {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 40px;
        z-index: 999;
    }

    .nav-matrix.mobile-active {
        right: 0;
    }

    .nav-matrix ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-matrix li {
        animation: none;
        opacity: 1;
        transform: none;
        padding: 0;
    }

    .en-burger-pro {
        display: flex;
    }

    .header-ops {
        gap: 15px;
    }

    .en-lang-pill {
        display: none;
    }

    .en-contact-widget {
        display: none;
    }
}

/* Polylang Specific Overrides (Appended) */
.en-lang-switcher ul,
.en-lang-switcher .pll-list {
    display: flex !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.en-lang-switcher li {
    display: flex !important;
    align-items: center;
}

.en-lang-switcher li a {
    display: block;
    /* Ensure hit area */
}

.en-lang-switcher li.current-lang a {
    color: #fff;
    background: linear-gradient(135deg, #EE2C2C, #FF5F5F) !important;
    box-shadow: 0 4px 15px rgba(238, 44, 44, 0.4);
    transform: scale(1.05);
}