/* 3D Horizontal Menu - 1fdc0691 */

.h3dm-1fdc0691-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 800px;
    background-color: #1a1a2e;
    border-radius: 16px;
    padding: 10px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
}

.h3dm-1fdc0691-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.h3dm-1fdc0691-li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.h3dm-1fdc0691-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    color: #a0a0b8;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(0) scale(1) perspective(600px) rotateX(0deg);
    transform-style: preserve-3d;
    background-color: transparent;
    box-shadow: none;
    will-change: transform, box-shadow, background-color, color;
}

.h3dm-1fdc0691-item:hover:not(.h3dm-1fdc0691-active) {
    color: #d0d0e0;
    background-color: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px) scale(1.03);
}

.h3dm-1fdc0691-item.h3dm-1fdc0691-active {
    color: #ffffff;
    background-color: #e94560;
    transform: translateY(-12px) scale(1.08) perspective(600px) rotateX(5deg);
    box-shadow:
        0 12px 28px rgba(233, 69, 96, 0.45),
        0 4px 12px rgba(233, 69, 96, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.h3dm-1fdc0691-item.h3dm-1fdc0691-active::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 4px;
    background: rgba(233, 69, 96, 0.6);
    border-radius: 2px;
    filter: blur(4px);
}

.h3dm-1fdc0691-item.h3dm-1fdc0691-active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.h3dm-1fdc0691-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.h3dm-1fdc0691-item.h3dm-1fdc0691-active .h3dm-1fdc0691-icon {
    transform: scale(1.15) translateZ(10px);
    color: #ffffff;
}

.h3dm-1fdc0691-item.h3dm-1fdc0691-active .h3dm-1fdc0691-icon svg {
    fill: #ffffff;
}

.h3dm-1fdc0691-label {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

/* Bounce animation on click */
@keyframes h3dm-1fdc0691-bounce {
    0%   { transform: translateY(-12px) scale(1.08) perspective(600px) rotateX(5deg); }
    40%  { transform: translateY(-18px) scale(1.12) perspective(600px) rotateX(8deg); }
    60%  { transform: translateY(-10px) scale(1.06) perspective(600px) rotateX(3deg); }
    100% { transform: translateY(-12px) scale(1.08) perspective(600px) rotateX(5deg); }
}

.h3dm-1fdc0691-item.h3dm-1fdc0691-pop {
    animation: h3dm-1fdc0691-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Hamburger Button ===== */
.h3dm-1fdc0691-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    z-index: 20;
}

.h3dm-1fdc0691-hamburger:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.h3dm-1fdc0691-hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

/* Hamburger to X animation */
.h3dm-1fdc0691-hamburger.h3dm-1fdc0691-open .h3dm-1fdc0691-line-top {
    transform: translateY(8px) rotate(45deg);
}

.h3dm-1fdc0691-hamburger.h3dm-1fdc0691-open .h3dm-1fdc0691-line-mid {
    opacity: 0;
    transform: scaleX(0);
}

.h3dm-1fdc0691-hamburger.h3dm-1fdc0691-open .h3dm-1fdc0691-line-bot {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== Mobile Dropdown ===== */
.h3dm-1fdc0691-nav.h3dm-1fdc0691-mobile-mode {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.h3dm-1fdc0691-nav.h3dm-1fdc0691-mobile-mode .h3dm-1fdc0691-hamburger {
    display: flex;
}

.h3dm-1fdc0691-nav.h3dm-1fdc0691-mobile-mode .h3dm-1fdc0691-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
    padding-top: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding-top 0.3s ease;
    padding-top: 0;
}

.h3dm-1fdc0691-nav.h3dm-1fdc0691-mobile-mode.h3dm-1fdc0691-menu-open .h3dm-1fdc0691-list {
    max-height: 500px;
    opacity: 1;
    padding-top: 12px;
}

.h3dm-1fdc0691-nav.h3dm-1fdc0691-mobile-mode .h3dm-1fdc0691-item {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 18px;
    border-radius: 10px;
}

.h3dm-1fdc0691-nav.h3dm-1fdc0691-mobile-mode .h3dm-1fdc0691-item:hover:not(.h3dm-1fdc0691-active) {
    transform: translateX(6px) scale(1.02);
}

.h3dm-1fdc0691-nav.h3dm-1fdc0691-mobile-mode .h3dm-1fdc0691-item.h3dm-1fdc0691-active {
    transform: translateX(10px) scale(1.05) perspective(600px) rotateY(-3deg);
    box-shadow:
        8px 6px 24px rgba(233, 69, 96, 0.4),
        2px 2px 10px rgba(233, 69, 96, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Mobile bounce animation override */
@keyframes h3dm-1fdc0691-bounce-mobile {
    0%   { transform: translateX(10px) scale(1.05) perspective(600px) rotateY(-3deg); }
    40%  { transform: translateX(16px) scale(1.09) perspective(600px) rotateY(-6deg); }
    60%  { transform: translateX(8px) scale(1.03) perspective(600px) rotateY(-1deg); }
    100% { transform: translateX(10px) scale(1.05) perspective(600px) rotateY(-3deg); }
}

.h3dm-1fdc0691-nav.h3dm-1fdc0691-mobile-mode .h3dm-1fdc0691-item.h3dm-1fdc0691-pop {
    animation: h3dm-1fdc0691-bounce-mobile 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.h3dm-1fdc0691-nav.h3dm-1fdc0691-mobile-mode .h3dm-1fdc0691-item.h3dm-1fdc0691-active::before {
    bottom: auto;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40%;
}

.h3dm-1fdc0691-nav.h3dm-1fdc0691-mobile-mode .h3dm-1fdc0691-label {
    display: inline;
}
