/* Header Styles - Stardust Brand Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: none; /* Completely hidden during preloader */
    z-index: 10000;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 0 0; /* Reduced left padding to move logo more left */
    display: flex;
    justify-content: space-between; /* Restored to ensure mobile hamburger positioning */
    align-items: center;
    height: 70px;
    position: relative;
}
.header-logo {
    flex: 0 0 auto;
    padding-top: 30px; /* Desktop top padding */
    padding-left: 0px; /* Desktop left padding */
    position: relative; /* For absolute positioning of Lottie */
    cursor: pointer; /* Indicate it's interactive */
}
.header-logo img {
    display: none; /* Permanently hide SVG logo - Lottie animation is now our only logo */
}
/* Lottie Animation Container for Logo Interactions */
.header-lottie-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-30%, -40%) scale(0.558); /* Desktop: keeping your adjusted value */
    width: 326px; /* Measured width */
    height: 170px; /* Measured height */
    transform-origin: center center;
    z-index: 2; /* Above static logo */
    opacity: 0; /* Hidden initially - shown after transition */
    pointer-events: auto; /* Allow interactions */
}

/* Tablet-specific positioning */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-lottie-container {
        transform: translate(-26%, -38%) scale(0.5);
    }
}
@media (max-width: 768px) {
    .header-lottie-container {
        transform: translate(-27%, -36%) scale(0.444); /* Mobile: adjusted left margin (-33% moves logo more right) */
    }
}

/* Navigation Menu Styles */
.nav-menu {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0); /* Center horizontally, no vertical transform */
    /* Use viewport centering without vertical offset */
    z-index: 10001;
    padding-top: 35px; /* Pad from top instead of positioning */
}
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}
.nav-link {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: #F1F1F1;
    position: relative;
    font: 500 normal 16px / 1.2 'Inter', sans-serif;
}
.nav-link:hover {
    color: #FFF;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.3),
                 0 0 4px rgba(255, 255, 255, 0.2),
                 0 0 6px rgba(255, 255, 255, 0.1);
}
.nav-underline-box {
    width: 100%;
    height: 0.625em;
    position: relative;
}
.nav-underline-box-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: visible !important;
    margin-top: -0.1em; /* Small gap between text and underline for nav */
}

/* Mobile Scaling Hamburger Navigation Styles */
.hamburger-nav__toggle {
    display: none !important;
}
/* Universal menu styles - work on all devices */
.navigation__dark-bg {
    transition: all 0.7s cubic-bezier(0.5, 0.5, 0, 1);
    opacity: 0;
    pointer-events: auto;
    visibility: hidden;
    background-color: #000;
    position: absolute;
    inset: 0;
}
[data-navigation-status="active"] .navigation__dark-bg {
    opacity: 0.33;
    visibility: visible;
}
/* DESKTOP MEDIA QUERY: Hide mobile menu elements on desktop >= 769px */
@media (min-width: 769px) {
    .navigation,
    .navigation *,
    .hamburger-nav,
    .hamburger-nav *,
    .hamburger-nav__group,
    .hamburger-nav__thumbnails,
    .hamburger-nav__toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}
.nav-menu.open ul {
    transform: translateX(0);
}
/* Header container background when mobile menu is open (mobile only) */
@media (max-width: 768px) {
    .header-container.menu-open {
        background: #191919;
        backdrop-filter: blur(10px);
    }
}

/* Mobile responsiveness for header */
@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }
    .header-logo {
        padding-top: 50px; /* Mobile-specific top padding */
        padding-left: 25px; /* Mobile-specific left padding */
    }
    .header-logo img {
        height: 65px; /* Increased by 30% from 45px (originally 30px) */
    }
    .nav-menu {
        display: none; /* Hide desktop menu on mobile */
    }

    /* HIDE mobile navigation on desktop - only show on mobile */
    .navigation {
        display: none !important;
        z-index: 500;
        pointer-events: none;
        position: fixed;
        inset: 0;
    }

    /* FORCE burger icon visible on mobile */
    #theBurger {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Scaling Hamburger Navigation Styles - Universal (Mobile + Desktop) */
    .navigation {
        display: block !important;
        z-index: 500 !important;
        pointer-events: none;
        position: fixed;
        inset: 0;
    }

    /* FORCE burger icon visible on mobile */
    #theBurger {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .navigation__dark-bg {
        transition: all 0.7s cubic-bezier(0.5, 0.5, 0, 1);
        opacity: 0;
        pointer-events: auto;
        visibility: hidden;
        background-color: #000;
        position: absolute;
        inset: 0;
    }

    [data-navigation-status="active"] .navigation__dark-bg {
        opacity: 0.33;
        visibility: visible;
    }

    .hamburger-nav {
        border-radius: 1.5rem;
        position: absolute;
        top: 2rem;
        right: 2rem;
    }

    .hamburger-nav__bg {
        transition: all 0.7s cubic-bezier(0.5, 0.5, 0, 1);
        background-color: #0000;
        border-radius: 1.75rem;
        width: 3.5rem;
        height: 3.5rem;
        position: absolute;
        top: 0;
        right: 0;
    }

    [data-navigation-status="active"] .hamburger-nav__bg {
        background-color: #000000;
        width: 100%;
        height: 100%;
    }

    .hamburger-nav__group {
        transition: all 0.5s cubic-bezier(0.5, 0.5, 0, 1), transform 0.7s cubic-bezier(0.5, 0.5, 0, 1);
        grid-column-gap: 1rem;
        grid-row-gap: 1rem;
        pointer-events: auto;
        transform-origin: 100% 0%;
        flex-flow: column;
        padding: 2.25rem 2.5rem 2rem 2rem;
        display: flex;
        position: relative;
        transform: scale(0.15) rotate(0.001deg);
        opacity: 0;
        visibility: hidden;
        width: 22rem;
    }

    [data-navigation-status="active"] .hamburger-nav__group {
        transform: scale(1) rotate(0.001deg);
        opacity: 1;
        visibility: visible;
    }

    .hamburger-nav__menu-p {
        opacity: .5;
        letter-spacing: .1em;
        text-transform: uppercase;
        margin-bottom: 0;
        font-family: RM Mono, Arial, sans-serif;
        font-size: 1rem; /* Changed to rem to avoid shop's font scaling */
        font-weight: 400;
    }

    .hamburger-nav__ul {
        grid-column-gap: .375rem;  /* Changed to rem */
        grid-row-gap: .375rem;     /* Changed to rem */
        flex-flow: column;
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
        display: flex;
        position: relative;
    }

    .hamburger-nav__li {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .hamburger-nav__a {
        color: #F1F1F1;
        justify-content: space-between;
        align-items: center;
        text-decoration: none;
        display: flex;
    }

    .hamburger-nav__p {
        white-space: nowrap;
        margin-bottom: 0;
        padding-right: 1.25em;
        font-size: 2rem; /* Changed to rem */
        font-family: PP Neue Corp Tight, Arial, sans-serif;
        font-weight: 500;
    }

    .hamburger-nav__dot {
        transition: all 0.7s cubic-bezier(0.5, 0.5, 0, 1);
        background-color: currentColor;
        border-radius: 50%;
        flex-shrink: 0;
        width: .5rem;  /* Changed to rem */
        height: .5rem; /* Changed to rem */
        transform: scale(0) rotate(0.001deg);
        opacity: 0.5;
    }

    .hamburger-nav__a[aria-current] .hamburger-nav__dot {
        transform: scale(1) rotate(0.001deg);
        opacity: 1;
    }

    .hamburger-nav:has(.hamburger-nav__a:hover) .hamburger-nav__dot {
        transform: scale(0) rotate(0.001deg);
    }

    .hamburger-nav .hamburger-nav__a:hover .hamburger-nav__dot {
        transform: scale(1) rotate(0.001deg);
        opacity: 0.25;
    }

    .hamburger-nav__toggle {
        transition: transform 0.7s cubic-bezier(0.5, 0.5, 0, 1);
        z-index: 10;
        background-color: #0000;
        justify-content: center;
        align-items: center;
        width: 5rem;
        height: 5rem;
        margin: -1rem;
        padding: 1rem;
        pointer-events: auto;
        cursor: pointer;
        border-radius: 50%;
        display: flex !important; /* FORCE visibility on mobile */
        position: absolute;
        top: 0;
        right: 0;
        border: none;
        outline: none;
        overflow: visible;
        color: #131313;
        transform: translate(0rem, 0rem) rotate(0.001deg);
    }

    [data-navigation-status="active"] .hamburger-nav__toggle {
        transform: translate(-1rem, 1rem) rotate(0.001deg);
    }

    .hamburger-nav__icon {
        width: 1.8rem;
        height: 1.8rem;
        transform: scale(2);
    }

    .hamburger-nav__thumbnails {
        display: flex;
        gap: 0.5em;
        flex-wrap: wrap;
        margin-top: 0.5em;
    }

    .hamburger-nav__thumbnails > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25em;
    }

    .hamburger-nav__thumbnails img {
        width: 8.22rem;  /* Changed to rem to avoid scaling */
        height: 8.22rem; /* Changed to rem to avoid scaling */
        object-fit: cover;
        border-radius: 0.25em;
    }

    .hamburger-nav__thumbnails p {
        margin: 0;
        font-size: 0.75rem; /* Changed to rem to avoid scaling */
        text-align: center;
        color: #F1F1F1;
    }

    /* Hamburger nav thumbnails - remove underlines from linked text */
    .hamburger-nav__thumbnails a {
        text-decoration: none;
        color: #F1F1F1; /* Inherit parent color */
    }
}

/* Footer Styles - Stardust Brand Links */
.panel-footer {
    height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #151515;
    padding-top: 25px;
    padding-bottom:25px;
}
.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 20px;
    color: #F8F8F8;
    font-family: 'Inter', sans-serif;
}
.footer-container {
    display: flex;
    gap: 80px;
    margin-bottom: 30px;
}
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 16px;
    font-weight: 500;
    align-items: flex-start;
    opacity: 0.6;
}
.footer-link {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: rgba(248, 248, 248, 0.6);
    transition: color 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 1px;
    white-space: nowrap;
    margin-left: 20px;
    will-change: font-weight;
}
.footer-link:hover {
    color: #FFF;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.3),
                 0 0 4px rgba(255, 255, 255, 0.2),
                 0 0 6px rgba(255, 255, 255, 0.1);
}
.footer-link:active {
    color: #FFF;
    transform: none;
}
.footer-underline-box {
    width: 100%;
    height: 0.625em;
    position: relative;
}
.footer-underline-box-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: visible !important;
    margin-top: -0.1em; /* Adjust vertical positioning of the underline */
}
.copyright-row {
    margin-top: 20px;
    font-size: 14px;
    color: #A0A0A0;
}
.copyright-row span {
    cursor: default;
    pointer-events: none;
}
/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .footer-container {
        gap: 80px;
        align-items: center;
    }
    .footer-column {
        gap: 1px;
        font-size: 16.1px;
    }
    .footer-column span {
        text-align: center;
    }
}
@media (max-width: 480px) {
    .footer-container {
        gap: 80px;
    }
    .footer-column {
        gap: 1px;
        font-size: 16.1px;
    }
    .footer-column span {
        text-align: center;
    }
    .copyright-row {
        font-size: 16px;
    }
}

/* Runtime Configuration for Showing/Hiding Components */
body.no-header .header {
    display: none !important;
}
body.no-footer .panel-footer {
    display: none !important;
}
