/* Header CSS - Version 2 */

/* Font Face */
@font-face {
    font-family: 'XIROD';
    src: url('../../../assets/fonts/XIROD.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sui Generis';
    src: url('../../../assets/fonts/sui generis rg.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.vexml-header {
    background-color: #000000;
    color: #ffffff;
    padding: 0 20px;
    /* Reduced padding for tighter fit */
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'XIROD', sans-serif;
    width: 100%;
    box-sizing: border-box;
    /* Ensure padding doesn't push width */
}

/* Left Group: Logo + Nav */
.header-left-group {
    display: flex;
    align-items: center;
    gap: 30px;
    /* Increased slightly for better breathing room on wide screens */
    height: 80px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.header-logo-text {
    font-size: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-logo:hover {
    text-decoration: none;
    color: inherit;
}

/* Nav Desktop */
.header-nav {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 20px;
    /* Tightened from 25px */
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Sui Generis', Georgia, serif;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    position: relative;
    /* For positioning the underline */
    padding-bottom: 5px;
    /* Space for underline */
}

/* Hover & Active Glow Text */
.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Underline Effect (Mimicking Path-30) */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    /* Start hidden */
    height: 2px;
    /* Stroke width 2 */
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    /* Glowing line */
    transition: width 0.3s ease;
}

/* Show underline on hover and active */
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Navigation Separation */
.header-nav {
    margin-left: 15px;
    /* Space from logo */
    display: flex;
    flex-shrink: 0;
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    margin-left: auto;
    /* Push to extreme right */
    height: 80px;
    padding-left: 20px;
    /* Minimum 20px buffer from nav */
    position: relative;
    z-index: 1002;
}

.btn-download {
    background: linear-gradient(90deg, #FD724C 0%, #EF405C 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    /* Smaller font for button text? */
    letter-spacing: 1px;
    transition: opacity 0.3s;
    white-space: nowrap;
    text-transform: uppercase;
    font-family: 'XIROD', sans-serif;
}

.btn-download:hover {
    opacity: 0.9;
}

/* Mobile Toggle (Hamburger) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    /* Above mobile menu */
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* Mobile Menu Container (Initially Hidden - Animated) */
.mobile-menu-overlay {
    display: flex;
    position: absolute;
    top: 100%;
    /* Below header */
    left: 0;
    width: 100%;
    background-color: #000000;
    max-height: 0;
    /* Collapsed */
    overflow: hidden;
    opacity: 0;
    padding: 0;
    border-top: 0px solid #333;
    flex-direction: column;
    align-items: center;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease, border-top 0.4s ease;
    visibility: hidden;
    z-index: 999;
}

.mobile-menu-overlay .nav-list {
    flex-direction: column;
    gap: 20px;
}

/* Responsive Logic */
@media (max-width: 920px) {

    /* Trigger before 20px gap is breached */
    .vexml-header {
        padding: 0 20px;
    }

    .header-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Open State for Mobile Menu - Animated */
    .mobile-menu-overlay.open {
        max-height: 500px;
        /* Sufficient height for menu items */
        opacity: 1;
        padding: 20px 0;
        border-top: 1px solid #333;
        visibility: visible;
    }

    /* Animation for X */
    .vexml-header.nav-open .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-7px, 6px);
    }

    .vexml-header.nav-open .bar:nth-child(2) {
        opacity: 0;
    }

    .vexml-header.nav-open .bar:nth-child(3) {
        transform: rotate(45deg) translate(-7px, -6px);
    }
}

/* Extra Small Devices (Mobile Portrait) */
@media (max-width: 480px) {
    .vexml-header {
        padding: 0 10px;
        /* Much tighter padding */
        min-height: 60px;
        /* Reduce overall height */
    }

    .header-left-group {
        height: 60px;
        gap: 10px;
        /* Reduce gap */
    }

    .header-logo img {
        height: 30px;
        /* Smaller logo */
    }

    .header-logo-text {
        font-size: 16px;
        /* Smaller text */
    }

    .btn-download {
        padding: 8px 12px;
        /* Tighter button */
        font-size: 10px;
        /* Smaller font */
    }

    .header-right-group {
        gap: 10px;
        height: 60px;
        padding-left: 10px;
    }

    .mobile-toggle {
        font-size: 20px;
    }

    .bar {
        width: 22px;
        height: 2px;
    }
}