/* ============================================================
   SHARED NAV STYLES – Cyberace Subpages
   Matches the premium header of index.html
   ============================================================ */

/* Glass Panel */
.glass-panel {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(16, 185, 129, 0.05);
    position: relative;
    overflow: visible;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    animation: shimmer 8s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 100%; }
}

.glass-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.2),
        rgba(5, 150, 105, 0.1),
        rgba(16, 185, 129, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-panel:hover::after {
    opacity: 1;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(-50%); }
    50%       { transform: translateY(-8px) translateX(-50%); }
}

#main-nav {
    animation: float 6s ease-in-out infinite;
}

/* Nav Link Premium */
.nav-link-premium {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-premium::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link-premium:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-link-premium:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

/* Lösungen Dropdown */
.solutions-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 460px;
    background: rgba(6, 10, 24, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: 1.25rem;
    border: 1px solid rgba(16, 185, 129, 0.18);
    box-shadow: 0 28px 70px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.04);
    padding: 0.875rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
    z-index: 60;
}

.solutions-dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
}

.solutions-dropdown-grid a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.6rem 0.7rem;
    border-radius: 0.75rem;
    font-size: 0.78rem;
    color: #cbd5e1;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.solutions-dropdown-grid a:hover {
    background: rgba(16, 185, 129, 0.09);
    border-color: rgba(16, 185, 129, 0.22);
    color: #f1f5f9;
}

.solutions-dropdown .item-icon {
    width: 30px;
    height: 30px;
    border-radius: 0.5rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #10b981;
    transition: all 0.15s ease;
}

.solutions-dropdown-grid a:hover .item-icon {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.38);
}

.solutions-dropdown .item-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.solutions-dropdown .item-title {
    font-weight: 500;
    font-size: 0.78rem;
    line-height: 1.3;
}

.solutions-dropdown .item-subtitle {
    font-size: 0.67rem;
    color: #475569;
    margin-top: 1px;
    transition: color 0.15s ease;
}

.solutions-dropdown-grid a:hover .item-subtitle {
    color: #64748b;
}

.solutions-dropdown-footer {
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.solutions-dropdown-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.45rem;
    border-radius: 0.625rem;
    font-size: 0.73rem;
    font-weight: 500;
    color: #10b981;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.solutions-dropdown-footer a:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.18);
}

        .nav-solutions-group:hover .solutions-dropdown,
        .nav-solutions-group.open .solutions-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s;
}


/* Logo Glow */
.logo-glow {
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-glow:hover {
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.6)) brightness(1.1);
    transform: scale(1.05);
}

/* Nav Particles */
.nav-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.3;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.8), transparent);
    border-radius: 50%;
    animation: particle-float 15s infinite ease-in-out;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    50%  {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.5;
    }
}

/* Contact Button Premium */
.btn-contact-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #000;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 15px rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(16, 185, 129, 0.1) inset;
}

.btn-contact-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-contact-premium:hover::before {
    width: 300px;
    height: 300px;
}

.btn-contact-premium:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(16, 185, 129, 0.2) inset,
        0 0 40px rgba(16, 185, 129, 0.3);
}

.btn-contact-premium:active {
    transform: translateY(0) scale(0.98);
}

/* Scroll Progress */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #34d399);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Shrunk Header */
#main-nav.shrunk {
    top: 2px;
    width: 95%;
}

#nav-container.shrunk {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 1.5rem;
}

#nav-brand.shrunk {
    margin-bottom: 0.25rem;
}

#brand-logo.shrunk {
    height: 2rem !important;
    min-height: 2rem !important;
    max-height: 2rem;
}

#nav-links.shrunk {
    gap: 0.75rem;
    padding-top: 0.5rem;
}

#nav-links.shrunk .nav-link-premium,
#nav-links.shrunk .btn-contact-premium {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

/* Burger Icon */
.burger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger-line + .burger-line { margin-top: 5px; }
.burger-btn.is-open .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger-btn.is-open .burger-line:nth-child(2) {
    opacity: 0;
}
.burger-btn.is-open .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}
.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: #030712;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 320px);
    height: 100%;
    background: #030712;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
}
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.mobile-menu-close-icon {
    position: relative;
    width: 18px;
    height: 18px;
}
.mobile-menu-close-icon::before,
.mobile-menu-close-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}
.mobile-menu-close-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-menu-close-icon::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.mobile-menu-nav {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mobile-menu-item {
    display: block;
    padding: 1rem 1.25rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: #e2e8f0;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
}
.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.mobile-menu-item-cta {
    margin-top: 0.75rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #000;
    font-weight: 700;
    text-align: center;
}
.mobile-menu-item-cta:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #000;
}
/* Mobile Lösungen Akkordeon */
.mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: #e2e8f0;
    border-radius: 12px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: left;
}
.mobile-submenu-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.mobile-submenu-toggle.open {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
}
.mobile-submenu-chevron {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.mobile-submenu-toggle.open .mobile-submenu-chevron {
    transform: rotate(180deg);
    opacity: 1;
}
.mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 1px;
    padding: 0.25rem 0 0.25rem 0.75rem;
    border-left: 2px solid rgba(16, 185, 129, 0.25);
    margin: 0 0.25rem 0 1.25rem;
}
.mobile-submenu.open {
    display: flex;
}
.mobile-submenu a {
    display: block;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #cbd5e1;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.mobile-submenu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.mobile-submenu a .sub-label {
    display: block;
    font-size: 0.7rem;
    color: #475569;
    margin-top: 1px;
}
