:root {
    /* Light Mode Base Colors */
    --background-light: #FFF;
    --nav-color: rgba(0, 0, 0, 0.8);
    --nav-hover-color: #000000;
    --text-secondary: #86868B;
    --text-primary: #1d1d1f;
    --card-background: #ffffff;
    --footer-background: #f5f5f7;
    --footer-textColor: #515154;
    --footer-textColor-hover: #1d1d1f;

    /* Accent Colors */
    --accent-primary: 42, 82, 152;        /* RGB values for button color */
    --accent-primary-hover: 32, 72, 142;  /* RGB values for button hover */
    --accent-white: 255, 255, 255;        /* RGB values for white */
    --accent-black: 0, 0, 0;              /* RGB values for black */

    /* Transparency Levels */
    --alpha-high: 0.9;      /* 90% opacity */
    --alpha-medium: 0.8;    /* 80% opacity */
    --alpha-low: 0.15;      /* 15% opacity */
    --alpha-minimal: 0.05;  /* 5% opacity */
    --alpha-micro: 0.1;     /* 10% opacity */

    /* Navigation Backgrounds */
    --nav-background: rgba(var(--accent-white), var(--alpha-medium));
    --nav-background-hover: rgba(var(--accent-white), var(--alpha-high));
    --nav-background-subtle: rgba(var(--accent-black), var(--alpha-minimal));

    /* Button Backgrounds */
    --button-color: rgb(var(--accent-primary));
    --button-hover-color: rgb(var(--accent-primary-hover));
    --button-translucent: rgba(var(--accent-primary), var(--alpha-medium));
    --button-translucent-hover: rgba(var(--accent-primary-hover), var(--alpha-medium));
    --button-solid: rgb(var(--accent-primary));
    --button-solid-hover: rgb(var(--accent-primary-hover));

    /* Borders and Shadows */
    --border-color: rgba(var(--accent-black), var(--alpha-low));
    --border-light: rgba(var(--accent-black), var(--alpha-micro));
    --border-white: rgba(var(--accent-white), var(--alpha-low));
    --shadow-color: rgba(var(--accent-black), var(--alpha-micro));
    --button-shadow: rgba(0, 113, 227, 0.3);

    /* Backdrop Filters */
    --backdrop-blur: saturate(250%) blur(20px);

    /* Font Sizes */
    --font-xs: 12px;
    --font-sm: 14px;
    --font-base: 16px;
    --font-lg: 20px;
    --font-xl: 22px;
    --font-2xl: 24px;

    /* Line Heights */
    --line-height-large: 170%;

    /* Border Radius */
    --border-radius: 12px;
    --border-radius-full: 50px;

    /* Font Families */
    --font-family-heading: "Helvetica Neue", -apple-system, "Helvetica Neue",
        Arial, sans-serif;
    --font-family-body: "Helvetica Neue", -apple-system, "Helvetica Neue",
        Arial, sans-serif;
}

/* Dark Mode Colors */
[data-theme="dark"],
[data-actual-theme="dark"] {
    /* Dark Mode Base Colors */
    --background-light: #1c1c1e;
    --nav-color: rgba(255, 255, 255, 0.8);
    --nav-hover-color: #ffffff;
    --text-secondary: #98989d;
    --text-primary: #f2f2f7;
    --card-background: #2c2c2e;
    --footer-background: #1c1c1e;
    --footer-textColor: #98989d;
    --footer-textColor-hover: #f2f2f7;

    /* Dark Mode Accent Colors - RGB values bleiben gleich */
    --accent-white: 28, 28, 30;              /* RGB values for dark background */
    --accent-black: 255, 255, 255;           /* RGB values for light text */

    /* Dark Mode Backgrounds */
    --nav-background: rgba(var(--accent-white), var(--alpha-medium));
    --nav-background-hover: rgba(var(--accent-white), var(--alpha-high));
    --nav-background-subtle: rgba(var(--accent-black), var(--alpha-minimal));

    /* Dark Mode Borders and Shadows */
    --border-color: rgba(var(--accent-black), var(--alpha-low));
    --border-light: rgba(var(--accent-black), var(--alpha-micro));
    --border-white: rgba(var(--accent-white), var(--alpha-low));
    --shadow-color: rgba(var(--accent-black), var(--alpha-micro));
}

.nav {
    position: relative;
    z-index: 1002;
    display: block;
    font-size: 1.2rem;
    line-height: 170%;
    color: var(--nav-color);
    width: fit-content;
    margin: 20px auto;
    border-radius: 50px;
    background-color: var(--nav-background);
    backdrop-filter: saturate(250%) blur(20px);
    -webkit-backdrop-filter: saturate(250%) blur(20px);
    border: 1px solid var(--border-color);
    font-family: var(--font-family-body);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav:after {
    display: none;
}

.nav-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: center;
}

.mobile-nav-container {
    display: none;
}

.nav-logo {
    width: auto;
    height: 20px;
    filter: brightness(0) opacity(0.8);
    transition: filter 0.3s ease;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-link:hover .nav-logo {
    filter: brightness(0) opacity(1);
}

.nav-link {
    color: var(--nav-color);
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 400;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    font-family: var(--font-family-body);
}

.nav-link:hover {
    color: var(--nav-hover-color);
    text-decoration: none !important;
}

/* Universelle Regel für alle Links in der Navigation */
.nav a, .secondary-nav a, .nav-container a {
    text-decoration: none !important;
}

.secondary-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    left: 0;
    right: 0;
    font-size: 1.2rem;
    line-height: 170%;
    color: var(--nav-color);
    background-color: transparent;
    font-family: var(--font-family-body);
    margin-top: 1px;
}

.secondary-nav .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 12px 0;
    width: 853px;
    max-width: 853px;
    margin: 0 auto;
    gap: 16px;
    overflow: hidden;
}

@media (min-width: 863px) {
    .secondary-nav .nav-container {
        width: 853px;
        max-width: 853px;
    }
}

.nav-capsule {
    background-color: var(--nav-background);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-full);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px var(--shadow-color);
    height: 50px;
    box-sizing: border-box;
}

.nav-left-capsule {
    flex-shrink: 0;
    margin-left: 15px;
}

@media (max-width: 862px) {
    .nav-left-capsule {
        margin-left: 0px;
    }
    
    .user-profile-nav {
        display: none !important;
    }
    
    .mobile-nav-title {
        display: block !important;
    }
    
    .nav-scroll-btn {
        display: none !important;
    }
    
    .nav-scroll-container {
        position: relative;
        flex-direction: row;
        gap: 8px;
    }
    
    .nav-right-capsule {
        max-width: none;
        position: relative;
    }
    
    .nav-right-capsule .mobile-nav-toggle {
        display: flex !important;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--nav-background);
        backdrop-filter: var(--backdrop-blur);
        -webkit-backdrop-filter: var(--backdrop-blur);
        border: 1px solid var(--border-color);
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .nav-right-capsule .mobile-nav-toggle:hover {
        background: var(--nav-background-hover);
    }
    
    .nav-right-capsule .mobile-nav-arrow {
        transition: transform 0.3s ease;
    }
    
    .nav-right-capsule .mobile-nav-arrow.rotated {
        transform: rotate(180deg);
    }
    

    
    .nav-right-capsule .capsule-header .hero-button {
        height: 34px;
        padding: 0 16px;
        font-size: 12px;
        font-weight: 500;
        min-width: 80px;
    }
}

.nav-left-capsule .nav-link {
    font-size: 19px;
    font-weight: 600;
    font-family: var(--font-family-heading);
    color: var(--nav-color);
}

/* User Profile Navigation */
.user-profile-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    line-height: 1.2;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--nav-color);
    font-family: var(--font-family-heading);
}

.profile-email {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    font-family: var(--font-family-body);
    opacity: 0.8;
}

/* Mobile Nav Title (für kleine Bildschirme) */
.mobile-nav-title {
    display: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--nav-color);
    font-family: var(--font-family-heading);
}

.nav-right-capsule {
    flex-shrink: 0;
    margin-right: 0;
    position: relative;
    height: 50px;
}

/* Desktop: Zeige Navigation-Links direkt */
@media (min-width: 863px) {
    .nav-right-capsule .mobile-nav-toggle {
        display: none;
    }
    
    .nav-right-capsule {
        display: flex;
        align-items: center;
        gap: 8px;
        max-width: calc(853px - 250px); /* Berücksichtigt linke Capsule und Abstände */
        overflow: hidden;
    }
    
    .nav-scroll-container {
        display: flex;
        align-items: center;
        gap: 4px;
        overflow: hidden;
        flex: 1;
        min-width: 0;
    }
    
    .nav-scroll-btn {
        background: var(--nav-background);
        backdrop-filter: var(--backdrop-blur);
        -webkit-backdrop-filter: var(--backdrop-blur);
        border: 1px solid var(--border-light);
        border-radius: 50%;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        color: var(--nav-color);
        opacity: 0;
        visibility: hidden;
        flex-shrink: 0;
    }
    
    .nav-scroll-btn:hover {
        background: var(--nav-background-hover);
        backdrop-filter: var(--backdrop-blur);
        -webkit-backdrop-filter: var(--backdrop-blur);
        border-color: var(--border-color);
    }
    
    .nav-scroll-btn.visible {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-right-capsule .capsule-dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex: 1;
        min-width: 0;
    }
    
    .nav-right-capsule .capsule-dropdown-content::-webkit-scrollbar {
        display: none;
    }
    

    
    .nav-right-capsule .capsule-header .hero-button {
        height: 34px;
        padding: 0 16px;
        font-size: 12px;
        font-weight: 500;
    }
    
    /* Kompakte Navigation wenn kein Scrolling benötigt wird */
    .nav-right-capsule.no-scroll .nav-scroll-container {
        gap: 2px;
    }
    

    
    .nav-right-capsule .capsule-dropdown-item {
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 0;
        transition: all 0.2s ease;
        background: transparent;
        border: 1px solid transparent;
        border-radius: 50px;
        padding: 8px 16px;
        font-size: 12px;
        font-weight: 400;
        width: fit-content;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        white-space: nowrap;
        color: var(--nav-color);
        flex-shrink: 0;
    }
    
    .nav-right-capsule .capsule-dropdown-item.active {
        background: var(--button-solid);
        color: white;
        border: 1px solid var(--button-solid);
        font-weight: 500;
        height: 34px;
        width: fit-content;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        white-space: nowrap;
    }
    
    .nav-right-capsule .capsule-dropdown-item:hover {
        background: var(--button-solid-hover);
        color: white;
        border: 1px solid var(--button-solid-hover);
    }
}

.nav-right-capsule .nav-link.active {
    background: white;
    color: #000;
    border-radius: 980px;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-left a {
    color: var(--nav-color);
    font-size: 19px;
    font-weight: 600;
    &:not(.hero-button) {
        color: var(--nav-color);
        font-size: 19px;
        font-weight: 600;
    }
    font-family: var(--font-family-heading);
}

.nav-left a .subtitle {
    font-size: 12px;
    font-weight: 400;
    margin-top: -8px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-right .nav-link {
    position: relative;
    height: 100%;
    color: var(--nav-color);
    transition: color 0.3s ease;
    text-decoration: none !important;
}

.nav-right .nav-link.active {
    color: var(--nav-hover-color);
}



.hero-button {
    background: var(--button-solid);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    color: white;
    border: none;
    width: auto;
    height: 100%;
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    text-decoration: none;
}

.hero-button:hover {
    background: var(--button-solid-hover);
}

.mobile-back-button {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--nav-color);
}

.mobile-back-button i {
    font-size: 18px;
}

.mobile-nav-title {
    display: none;
    font-family: var(--font-family-heading);
}

.desktop-nav-link {
    display: block !important;
}

@media (max-width: 862px) {
    .secondary-nav {
        display: block;
        overflow: visible !important;
    }
    
    .nav {
        position: relative;
        width: 100%;
        margin: 0;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
    }

    .secondary-nav .nav-container {
        padding: 12px 16px;
        height: auto;
        gap: 16px;
        justify-content: space-between;
        display: flex;
        align-items: center;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .secondary-nav .nav-capsule {
        background-color: rgba(255, 255, 255, 0.8);
        backdrop-filter: saturate(250%) blur(20px);
        -webkit-backdrop-filter: saturate(250%) blur(20px);
        border: 1px solid var(--border-color);
        border-radius: 50px;
        padding: 10px 18px;
        display: flex !important;
        align-items: center;
        gap: 18px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: visible !important;
    }

    .nav-left-capsule {
        flex-shrink: 0;
    }

    .nav-left-capsule .nav-link {
        font-size: 19px;
        font-weight: 600;
        font-family: var(--font-family-heading);
        color: var(--nav-color);
    }

    .nav-right-capsule {
        flex-shrink: 0;
        gap: 4px;
        position: relative;
    }

    .capsule-header {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-direction: row-reverse;
        margin-left: -20px;
    }

    .nav-right-capsule .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
        width: 28px;
        height: 28px;
        background: white;
        border-radius: 50%;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .nav-right-capsule .mobile-nav-arrow {
        font-size: 14px;
        transition: transform 0.3s ease;
        color: #000 !important;
    }

    .nav-right-capsule .mobile-nav-toggle:hover {
        background: #f8f9fa;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        transform: scale(1.05);
    }

    .nav-right-capsule .mobile-nav-toggle.active .mobile-nav-arrow {
        transform: rotate(180deg);
    }

    .nav-right-capsule .hero-button {
        background: var(--button-color);
        color: white;
        border: none;
        width: auto;
        height: 100%;
        border-radius: 980px;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
        text-decoration: none;
        min-width: 80px;
    }

    .nav-right-capsule .hero-button:hover {
        background: var(--button-hover-color);
    }

    .mobile-nav-title {
        display: none;
    }

    .mobile-nav-right {
        display: none;
    }

    .mobile-nav-text {
        display: none;
    }

    .desktop-nav-link {
        display: none !important;
    }

    .nav .nav-container {
        padding: 0;
        height: 48px;
        justify-content: flex-start;
    }

    .nav .nav-link:not(.logo-link) {
        display: none;
    }

    .desktop-only {
        display: none;
    }

    .mobile-nav-container {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
        height: 100%;
    }

    .mobile-nav-container .logo-link {
        height: 36px;
        width: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        backdrop-filter: saturate(250%) blur(20px);
        -webkit-backdrop-filter: saturate(250%) blur(20px);
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .mobile-nav-container .logo-link:hover {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: scale(1.05);
    }

    .mobile-nav-container .nav-logo {
        height: 18px;
        width: auto;
        filter: brightness(0) opacity(0.8);
        transition: filter 0.3s ease;
    }

    .mobile-nav-container .logo-link:hover .nav-logo {
        filter: brightness(0) opacity(1);
    }

    .menu-button {
        display: flex;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid var(--border-color);
        padding: 8px;
        cursor: pointer;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 36px;
        width: 36px;
        border-radius: 50%;
        backdrop-filter: saturate(250%) blur(20px);
        -webkit-backdrop-filter: saturate(250%) blur(20px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        touch-action: manipulation;
    }

    .menu-button:hover {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: scale(1.05);
    }

    .menu-line {
        display: block;
        background-color: var(--nav-color) !important;
        width: 14px;
        height: 1px;
        margin: 3px 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .menu-button.active .menu-line:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .menu-button.active .menu-line:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .nav-container {
        padding: 0;
        gap: 0;
    }
}

/* Anpassungen für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .secondary-nav .nav-container {
        gap: 12px;
        padding: 10px 12px;
    }
    
    .nav-capsule {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .nav-left-capsule .nav-link {
        font-size: 16px;
    }
    
    .nav-right-capsule .mobile-nav-toggle {
        width: 26px;
        height: 26px;
    }
    
    .nav-right-capsule .mobile-nav-arrow {
        font-size: 12px;
    }
    
    .nav-right-capsule .hero-button {
        padding: 0 14px;
        font-size: 11px;
        min-width: 75px;
    }
    
    .capsule-dropdown-item {
        padding: 10px 16px;
        margin: 4px 8px;
        font-size: 11px;
    }
    
    .nav-right-capsule {
        gap: 1px;
    }
}

@media (max-width: 360px) {
    .mobile-nav-container {
        padding: 0 12px;
    }
    
    .mobile-nav-container .logo-link,
    .menu-button {
        height: 32px;
        width: 32px;
    }
    
    .mobile-nav-container .nav-logo {
        height: 16px;
    }
    
    .menu-line {
        width: 12px;
        margin: 2px 0;
    }
    
    .menu-button.active .menu-line:first-child {
        transform: translateY(3px) rotate(45deg);
    }

    .menu-button.active .menu-line:last-child {
        transform: translateY(-3px) rotate(-45deg);
    }
    
    .secondary-nav .nav-container {
        gap: 8px;
        padding: 8px;
    }
    
    .nav-left-capsule .nav-link {
        font-size: 14px;
    }
    
    .nav-capsule {
        padding: 6px 8px;
        gap: 6px;
    }
    
    .capsule-dropdown-item {
        padding: 8px 14px;
        margin: 2px 6px;
        font-size: 10px;
        min-height: 28px;
    }
    
    .nav-right-capsule {
        gap: 0px;
    }
}

/* Mobile Dropdown-Stil nur für kleinere Bildschirme */
@media (max-width: 862px) {
    .capsule-dropdown-content {
        position: absolute !important;
        top: calc(100% + 12px) !important;
        left: -40px !important;
        right: 10px !important;
        min-width: 200px !important;
        width: auto !important;
        background: var(--nav-background) !important;
        backdrop-filter: var(--backdrop-blur) !important;
        -webkit-backdrop-filter: var(--backdrop-blur) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: var(--border-radius) !important;
        box-shadow: 0 4px 20px var(--shadow-color) !important;
        padding: 8px 0 !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.95);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1005 !important;
        overflow: visible !important;
    }
}

@media (max-width: 862px) {
    .nav-right-capsule.show .capsule-dropdown-content {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) scale(1) !important;
        display: block !important;
    }
    
    .nav-right-capsule.show .capsule-dropdown-item {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    .capsule-dropdown-item {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 8px 16px;
        color: var(--nav-color);
        text-decoration: none;
        font-size: 12px;
        font-weight: 400;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-5px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transition-delay: calc(0.1s + var(--item-index) * 0.05s);
        font-family: var(--font-family-body);
        border-radius: var(--border-radius-full);
        margin: 2px 8px;
        white-space: nowrap;
        min-width: 120px;
        width: auto;
        height: 36px;
        box-sizing: border-box;
    }
    
    .capsule-dropdown-item:hover {
        background: var(--nav-background-subtle);
        color: var(--nav-hover-color);
    }
    
    .capsule-dropdown-item.active {
        color: var(--nav-hover-color);
        background: var(--nav-background-hover);
        border: 1px solid var(--border-light);
    }
}



.mobile-nav-arrow.rotated {
    transform: rotate(180deg);
}

.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    z-index: 999;
    pointer-events: none;
}

.content-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-text {
    position: relative;
    padding-left: 0;
}

.dropdown-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background-color: var(--nav-hover-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-dropdown-item.active .dropdown-text::before {
    opacity: 1;
}

.main-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1003;
    pointer-events: none;
    overflow: hidden;
    display: none;
}

.main-dropdown::before {
    content: '';
    position: fixed;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    transform: scale(0);
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: saturate(250%) blur(20px);
    -webkit-backdrop-filter: saturate(250%) blur(20px);
    border: 1px solid var(--border-color);
}

.main-dropdown.show {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.main-dropdown.show::before {
    transform: scale(50);
}

.main-dropdown-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: left;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transform-origin: top center;
    transition: all 0.3s ease 0.3s;
}

.main-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: 48px;
    margin-bottom: 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0s;
}

.main-dropdown-logo {
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    backdrop-filter: saturate(250%) blur(20px);
    -webkit-backdrop-filter: saturate(250%) blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.main-dropdown-logo:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.main-dropdown-logo img {
    height: 18px;
    width: auto;
    filter: brightness(0) opacity(0.8);
    transition: filter 0.3s ease;
}

.main-dropdown-logo:hover img {
    filter: brightness(0) opacity(1);
}

.main-dropdown-close {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: saturate(250%) blur(20px);
    -webkit-backdrop-filter: saturate(250%) blur(20px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.main-dropdown-close:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.main-dropdown-close svg {
    width: 14px;
    height: 14px;
    fill: var(--nav-color);
}

.main-dropdown.show .main-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.main-dropdown.show .main-dropdown-header {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-dropdown-item {
    display: block;
    padding: 16px 20px;
    color: var(--nav-color);
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0s;
    font-family: var(--font-family-heading);
    border-radius: 12px;
    margin: 8px 0;
}

.main-dropdown.show .main-dropdown-item {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.main-dropdown-item:hover {
    color: var(--nav-hover-color);
    background: rgba(0, 0, 0, 0.05);
    padding-left: 30px;
}
