body,
button,
input,
select,
textarea {
    font-family: 'Inter', sans-serif !important;
}
.blog-page {
    font-family: 'Inter', sans-serif !important;
}

.blog-page h1,
.blog-page h2,
.blog-page h3,
.blog-page h4,
.blog-page h5,
.blog-page h6,
.blog-page strong,
.blog-page b,
.blog-page button,
.blog-page input,
.blog-page select,
.blog-page textarea,
.blog-page label,
.blog-page .prose {
    font-family: inherit !important;
}
/* Skip to main content link - hidden by default, visible on focus */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.sr-only:focus {
    position: fixed;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background-color: white;
    color: black;
    z-index: 100;
    border-radius: 0.25rem;
}
.aspect-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}
.aspect-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.aspect-video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Side panel styles */
.side-panel {
    position: fixed;
    top: 0;
    left: -100%; /* Start off-screen on the left */
    width: 100%;
    max-width: 320px;
    height: 100vh; /* Full viewport height */
    background-color: #1a202c; /* Matches bg-gray-900 */
    z-index: 1100;
    transition: left 0.3s ease-in-out;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5); /* Shadow on the right side of the panel */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Allow scrolling if content is long */
    overflow-x: hidden;
}
.side-panel.open {
    left: 0; /* Slide into view */
    /* Ensure panel stays visible when scrolling */
    position: fixed;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0s 0.3s;
}
.overlay.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out;
}

/* Twitch embed container transition */
#twitch-embed-container {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Twitch embed content collapse/expand animation */
#twitch-embed-content {
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

.twitch-content-expanded {
    max-height: 1000px;
    opacity: 1;
}

.twitch-content-collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

/* Carousel styles */
.carousel-container {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.featured-carousel-card {
    scroll-snap-align: start;
    flex-shrink: 0;
}

.carousel-nav-btn {
    opacity: 0.9;
    transition: opacity 0.3s ease-in-out;
}

.carousel-nav-btn:hover {
    opacity: 1;
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive carousel */
@media (max-width: 640px) {
    .featured-carousel-card {
        width: 85%;
    }
    
    .carousel-nav-btn {
        padding: 0.5rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .featured-carousel-card {
        width: 45%;
    }
}

@media (min-width: 1025px) {
    .featured-carousel-card {
        width: 30%;
    }
}

/* Elegant Header with Glassmorphism */
.elegant-header {
    position: relative;
    z-index: 10;
}

.elegant-header,
.header-glass-container,
.header-content-wrapper,
.tab-nav-list {
    overflow: visible !important;
}

.header-glass-container {
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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(168, 85, 247, 0.1);
    transition: all 0.3s ease-in-out;
    animation: headerFadeIn 0.6s ease-out;
}

/* Gradient overlay removed - was causing visual artifacts */

.header-content-wrapper {
    position: relative;
    z-index: 2;
}

/* Tab navigation within header */
.header-content-wrapper .tab-nav-list {
    position: relative;
    z-index: 2;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 0.5rem;
}

.header-content-wrapper .tab-nav-list::-webkit-scrollbar {
    display: none;
}

/* Menu Button Styles */
.header-menu-btn {
    position: relative;
    overflow: hidden;
}

.header-menu-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.header-menu-btn:hover::before {
    width: 300px;
    height: 300px;
}

.header-menu-btn svg {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Logo Styles */
.logo-link {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

.header-logo {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease-in-out;
}

.logo-link:hover .header-logo {
    filter: drop-shadow(0 8px 16px rgba(168, 85, 247, 0.5));
}

/* Tagline Styles */
.header-tagline {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
    transition: color 0.3s ease-in-out;
}

/* Social Icons Container */
.header-social-container {
    position: relative;
}

.header-social-container a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(55, 65, 81, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.header-social-container a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.header-social-container a:hover::before {
    width: 100px;
    height: 100px;
}

.header-social-container a:hover {
    transform: translateY(-2px) scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(168, 85, 247, 0.3);
}

.header-social-container a i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease-in-out;
}

.header-social-container a:hover i {
    transform: scale(1.2);
}

/* YouTube hover */
.header-social-container a:hover.hover\:text-red-500,
.header-social-container a[href*="youtube"]:hover {
    color: #ef4444 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Twitch hover */
.header-social-container a:hover.hover\:text-purple-500,
.header-social-container a[href*="twitch"]:hover {
    color: #a855f7 !important;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* Discord hover */
.header-social-container a:hover.hover\:text-indigo-500,
.header-social-container a[href*="discord"]:hover {
    color: #6366f1 !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* Shop hover */
.header-social-container a:hover.hover\:text-green-400,
.header-social-container a[href*="shop"]:hover {
    color: #4ade80 !important;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
}

/* Animations */
@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 8px 16px rgba(168, 85, 247, 0.6));
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .header-glass-container {
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .header-menu-btn {
        padding: 0.75rem;
    }
    
    .header-social-container a {
        width: 40px;
        height: 40px;
    }
    
    .header-tagline {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .header-content-wrapper .tab-nav-list {
        gap: 0.5rem;
        padding-top: 0.75rem;
    }
    
    .header-content-wrapper .tab-nav-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .header-glass-container {
        padding: 1.5rem 2rem;
    }
    
    .header-content-wrapper .tab-nav-button {
        padding: 0.625rem 1rem;
    }
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(20px)) {
    .header-glass-container {
        background: rgba(17, 24, 39, 0.9);
    }
    
    .header-social-container a {
        background: rgba(55, 65, 81, 0.8);
    }
}

/* Enhanced hover states */
.header-glass-container:hover {
    box-shadow: 
        0 12px 40px 0 rgba(0, 0, 0, 0.45),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(168, 85, 247, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Smooth transitions for all interactive elements */
.header-glass-container,
.header-menu-btn,
.logo-link,
.header-social-container a {
    will-change: transform;
}

.tab-nav-list {
    position: relative;
    z-index: 2;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow: visible;
}

.tab-nav-list::-webkit-scrollbar {
    display: none;
}

.tab-nav-button {
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.tab-nav-dropdown {
    position: relative;
    z-index: 40;
}

.tab-nav-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.9rem;
}

.tab-nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-nav-dropdown-icon {
    transition: transform 0.2s ease-in-out;
}

.tab-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    min-width: 220px;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 60;
}

.tab-nav-dropdown.open .tab-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.tab-nav-dropdown.lock-closed .tab-nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
}

.tab-nav-dropdown:hover .tab-nav-dropdown-menu,
.tab-nav-dropdown:focus-within .tab-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.tab-nav-dropdown:hover .tab-nav-dropdown-icon,
.tab-nav-dropdown:focus-within .tab-nav-dropdown-icon {
    transform: rotate(180deg);
}

.tab-nav-dropdown.open .tab-nav-dropdown-icon {
    transform: rotate(180deg);
}

.tab-nav-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: rgba(209, 213, 219, 0.95);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tab-nav-dropdown-item:hover,
.tab-nav-dropdown-item:focus {
    background: rgba(168, 85, 247, 0.2);
    color: #ffffff;
    transform: translateX(2px);
    outline: none;
}

@media (max-width: 640px) {
    .tab-nav-list {
        overflow-x: auto;
        overflow-y: visible;
    }

    .tab-nav-dropdown-menu {
        left: auto;
        right: 0;
        min-width: 180px;
    }
}

/* Other projects grid layout */
.other-projects-masonry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .other-projects-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .other-projects-masonry {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.project-card__cover {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
}

.project-card__cover img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.project-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.85rem;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-card__tag {
    padding: 0.25rem 0.6rem;
    border-radius: 0.6rem;
    font-size: 0.75rem;
    background: rgba(55, 65, 81, 0.6);
    color: rgba(226, 232, 240, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.project-card--featured {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 45px rgba(168, 85, 247, 0.25);
}

.tab-nav-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    pointer-events: none;
}

.tab-nav-button:hover::before {
    width: 200px;
    height: 200px;
}

/* Active tab styling */
.tab-nav-active {
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.5);
    color: #ffffff;
    box-shadow: 
        0 4px 16px rgba(168, 85, 247, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(168, 85, 247, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tab-nav-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(168, 85, 247, 0.8) 0%,
        rgba(236, 72, 153, 0.8) 50%,
        rgba(59, 130, 246, 0.8) 100%);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

/* Inactive tab styling */
.tab-nav-inactive {
    background: rgba(55, 65, 81, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(209, 213, 219, 0.9);
}

.tab-nav-inactive:hover {
    background: rgba(75, 85, 99, 0.4);
    border-color: rgba(168, 85, 247, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(168, 85, 247, 0.2);
}

.tab-nav-inactive:focus {
    outline: 2px solid rgba(168, 85, 247, 0.5);
    outline-offset: 2px;
}

.tab-nav-active:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Responsive tab navigation */
@media (max-width: 640px) {
    
    .tab-nav-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .tab-nav-list {
        gap: 0.5rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .tab-nav-button {
        padding: 0.625rem 1rem;
    }
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(20px)) {
    
    .tab-nav-button {
        background: rgba(55, 65, 81, 0.8);
    }
    
    .tab-nav-active {
        background: rgba(168, 85, 247, 0.6);
    }
    
    .tab-nav-inactive {
        background: rgba(55, 65, 81, 0.6);
    }
}

/* Smooth transitions */
.tab-nav-button,
.tab-nav-glass-container {
    will-change: transform, box-shadow, background;
}

/* Side Panel Tab Navigation Links */
.side-panel-tab-link {
    position: relative;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.side-panel-tab-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, 
        rgba(168, 85, 247, 0.8) 0%,
        rgba(236, 72, 153, 0.8) 50%,
        rgba(59, 130, 246, 0.8) 100%);
    border-radius: 0 2px 2px 0;
    transition: height 0.3s ease-in-out;
}

.side-panel-tab-active {
    color: #ffffff !important;
    background: rgba(168, 85, 247, 0.15) !important;
    border-left: 3px solid;
    border-image: linear-gradient(180deg, 
        rgba(168, 85, 247, 0.8) 0%,
        rgba(236, 72, 153, 0.8) 50%,
        rgba(59, 130, 246, 0.8) 100%) 1;
    box-shadow: inset 4px 0 8px rgba(168, 85, 247, 0.2);
}

.side-panel-tab-active::before {
    height: 80%;
}

.side-panel-tab-inactive {
    color: rgba(209, 213, 219, 0.9);
}

.side-panel-tab-inactive:hover {
    color: #ffffff;
    background: rgba(55, 65, 81, 0.5);
    transform: translateX(4px);
}

.side-panel-tab-inactive:hover::before {
    height: 60%;
}

.side-panel-tab-link i {
    width: 20px;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out;
}

.side-panel-tab-active i {
    opacity: 1;
}

.side-panel-tab-link:focus {
    outline: 2px solid rgba(168, 85, 247, 0.5);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Side panel scrolling behavior */
.side-panel {
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
}

.side-panel::-webkit-scrollbar {
    width: 6px;
}

.side-panel::-webkit-scrollbar-track {
    background: transparent;
}

.side-panel::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 3px;
}

.side-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.5);
}

/* ========================================
   COMPACT HEADER STYLES
   ======================================== */

.compact-header {
    position: relative;
    z-index: 60;
}

.compact-header-glass {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 20px 0 rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease-in-out;
    animation: headerFadeIn 0.6s ease-out;
}

.compact-header-glass:hover {
    box-shadow:
        0 6px 24px 0 rgba(0, 0, 0, 0.35),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(168, 85, 247, 0.2);
}


/* Compact Logo */
.header-logo-compact {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease-in-out;
}

/* Compact Menu Button */
.header-menu-btn-compact {
    position: relative;
    overflow: hidden;
}

.header-menu-btn-compact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.header-menu-btn-compact:hover::before {
    width: 200px;
    height: 200px;
}

.header-menu-btn-compact svg {
    position: relative;
    z-index: 1;
}

/* Navigation Links */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(209, 213, 219, 0.9);
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-link:hover {
    color: white;
    background: rgba(75, 85, 99, 0.4);
}

/* Remove the gradient underline from nav-link buttons when tab-nav-active is added by JS */
.nav-link.tab-nav-active::after,
.nav-link.tab-nav-inactive::after {
    content: none !important;
    display: none !important;
}

.nav-link-active {
    color: white;
    background: rgba(168, 85, 247, 0.25);
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.3);
}

.nav-link-active:hover {
    background: rgba(168, 85, 247, 0.35);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    z-index: 40;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.75rem;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown-icon {
    transition: transform 0.2s ease-in-out;
    opacity: 0.7;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    margin-top: 0.5rem;
    min-width: 180px;
    z-index: 70;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* When closing: keep visible during opacity fade, then hide */
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s ease 0.2s;
    z-index: 60;
}

/* Bridge the margin-top gap so hover doesn't drop between button and menu */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    /* When opening: visibility snaps on immediately so the bridge works at once */
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.nav-dropdown:focus-within .nav-dropdown-icon,
.nav-dropdown.open .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown.lock-closed .nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    pointer-events: none;
}

.nav-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
    background: rgba(168, 85, 247, 0.2);
    color: #ffffff;
    outline: none;
}

.nav-dropdown-item-active {
    background: rgba(168, 85, 247, 0.15);
    color: white;
}

/* Rich multi-column dropdown */

/* Escape the nav-dropdown positioning context so the menu can
   position itself relative to the full-width header-content-wrapper */
.nav-dropdown:has(.nav-dropdown-menu--rich),
.nav-dropdown:has(.nav-dropdown-menu--hw2) {
    position: static;
}

.nav-dropdown-menu--rich {
    min-width: 760px;
    padding: 1.25rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-8px);
}

.nav-dropdown.open .nav-dropdown-menu--rich,
.nav-dropdown:focus-within .nav-dropdown-menu--rich {
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown.lock-closed .nav-dropdown-menu--rich {
    transform: translateX(-50%) translateY(-8px);
}

.nav-dropdown-menu--hw2 {
    width: min(1120px, calc(100vw - 5rem));
    padding: 1.35rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-8px);
    margin-top: 0.9rem;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(8, 20, 40, 0.98), rgba(17, 24, 39, 0.98));
    border: 1px solid rgba(56, 189, 248, 0.18);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.48),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.nav-dropdown-menu--hw2::before {
    top: -0.9rem;
    height: 0.9rem;
}

.nav-dropdown.open .nav-dropdown-menu--hw2,
.nav-dropdown:focus-within .nav-dropdown-menu--hw2 {
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown.lock-closed .nav-dropdown-menu--hw2 {
    transform: translateX(-50%) translateY(-8px);
}

.nav-dropdown-hw2-shell {
    position: relative;
    overflow: hidden;
    border-radius: 0.95rem;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(12, 74, 110, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.82), rgba(10, 15, 27, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-dropdown-hw2-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
}

.nav-dropdown-hw2-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-dropdown-hw2-kicker,
.nav-dropdown-hw2-tools-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(125, 211, 252, 0.92);
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.26);
    background: rgba(8, 47, 73, 0.4);
}

.nav-dropdown-hw2-title {
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 0.3rem;
}

.nav-dropdown-hw2-copy {
    max-width: 46rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.78);
    margin: 0;
}

.nav-dropdown-hw2-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 0.95fr);
    gap: 0.9rem;
    align-items: stretch;
}

.nav-dropdown-hw2-zone,
.nav-dropdown-hw2-tools {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 15, 27, 0.58);
    padding: 0.9rem;
}

.nav-dropdown-hw2-zone-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(34, 211, 238, 0.92);
    margin-bottom: 0.3rem;
}

.nav-dropdown-hw2-zone-copy {
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgba(203, 213, 225, 0.72);
    margin: 0 0 0.7rem;
}

.nav-dropdown-hw2-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: -0.05rem 0 0.6rem;
}

.nav-dropdown-hw2-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(186, 230, 253, 0.92);
    background: rgba(14, 116, 144, 0.24);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.nav-dropdown-hw2-chip--banished {
    color: rgba(254, 215, 170, 0.95);
    background: rgba(154, 52, 18, 0.2);
    border-color: rgba(249, 115, 22, 0.22);
}

.nav-dropdown-hw2-zone .nav-dropdown-item {
    margin-top: 0.18rem;
}

.nav-dropdown-hw2-tools {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(8, 47, 73, 0.62), rgba(15, 23, 42, 0.95)),
        linear-gradient(145deg, rgba(14, 116, 144, 0.2), transparent 45%);
    border-color: rgba(34, 211, 238, 0.18);
}

.nav-dropdown-hw2-tools::after {
    content: '';
    position: absolute;
    inset: auto -15% 8% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 68%);
    pointer-events: none;
}

.nav-dropdown-hw2-tools-title {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    line-height: 1.1;
    font-weight: 800;
    color: #f8fafc;
    margin: 0.55rem 0 0.45rem;
}

.nav-dropdown-hw2-tools-copy {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.82);
    margin: 0 0 0.9rem;
}

.nav-dropdown-hw2-tools-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.nav-dropdown-hw2-tools-list span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.75rem;
    color: rgba(224, 242, 254, 0.88);
}

.nav-dropdown-hw2-tools-list i {
    color: rgba(125, 211, 252, 0.92);
}

.nav-dropdown-hw2-tools-cta,
.nav-dropdown-hw2-tools-secondary {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 2.75rem;
    border-radius: 0.75rem;
    font-size: 0.86rem;
    font-weight: 700;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-dropdown-hw2-tools-cta {
    margin-top: auto;
    color: #06121d;
    background: linear-gradient(135deg, #67e8f9, #38bdf8);
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.22);
}

.nav-dropdown-hw2-tools-cta:hover,
.nav-dropdown-hw2-tools-cta:focus {
    transform: translateY(-1px);
    color: #06121d;
    background: linear-gradient(135deg, #a5f3fc, #38bdf8);
}

.nav-dropdown-hw2-tools-secondary {
    margin-top: 0.6rem;
    color: rgba(224, 242, 254, 0.9);
    border: 1px solid rgba(125, 211, 252, 0.18);
    background: rgba(7, 15, 27, 0.35);
}

.nav-dropdown-hw2-tools-secondary:hover,
.nav-dropdown-hw2-tools-secondary:focus,
.nav-dropdown-hw2-tools-secondary-active {
    color: #fff;
    border-color: rgba(125, 211, 252, 0.3);
    background: rgba(14, 116, 144, 0.18);
}

/* HW2 mega-dropdown responsive: collapse to 2-column + stacked tools on tablets */
@media (max-width: 1024px) {
    .nav-dropdown-hw2-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .nav-dropdown-hw2-tools {
        grid-column: 1 / -1;
    }
}

/* Single-column rich dropdown variant — positions relative to its own button */
/* Reusable rich hub dropdowns for desktop nav */
.nav-dropdown:has(.nav-dropdown-menu--hub) {
    position: static;
}

.nav-dropdown-menu--hub {
    width: min(1080px, calc(100vw - 5rem));
    padding: 1.35rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-8px);
    margin-top: 0.9rem;
    background:
        radial-gradient(circle at top left, var(--hub-glow-a), transparent 30%),
        radial-gradient(circle at bottom right, var(--hub-glow-b), transparent 28%),
        linear-gradient(135deg, rgba(8, 20, 40, 0.98), rgba(17, 24, 39, 0.98));
    border: 1px solid var(--hub-border);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.48),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    --hub-glow-a: rgba(45, 212, 191, 0.12);
    --hub-glow-b: rgba(245, 158, 11, 0.12);
    --hub-border: rgba(45, 212, 191, 0.18);
    --hub-shell-topwash: rgba(15, 118, 110, 0.14);
    --hub-grid-line: rgba(45, 212, 191, 0.06);
    --hub-kicker-color: rgba(153, 246, 228, 0.95);
    --hub-kicker-border: rgba(45, 212, 191, 0.28);
    --hub-kicker-bg: rgba(17, 94, 89, 0.36);
    --hub-copy-color: rgba(226, 232, 240, 0.8);
    --hub-label-color: rgba(94, 234, 212, 0.94);
    --hub-zone-copy-color: rgba(203, 213, 225, 0.72);
    --hub-zone-border: rgba(255, 255, 255, 0.06);
    --hub-zone-bg: rgba(7, 15, 27, 0.58);
    --hub-rail-border: rgba(45, 212, 191, 0.2);
    --hub-rail-bg:
        linear-gradient(180deg, rgba(17, 94, 89, 0.62), rgba(15, 23, 42, 0.95)),
        linear-gradient(145deg, rgba(245, 158, 11, 0.18), transparent 45%);
    --hub-rail-orb: rgba(245, 158, 11, 0.16);
    --hub-rail-copy-color: rgba(226, 232, 240, 0.84);
    --hub-rail-icon-color: rgba(153, 246, 228, 0.94);
    --hub-cta-text: #041310;
    --hub-cta-bg: linear-gradient(135deg, #99f6e4, #2dd4bf);
    --hub-cta-bg-hover: linear-gradient(135deg, #ccfbf1, #5eead4);
    --hub-cta-shadow: 0 10px 22px rgba(20, 184, 166, 0.22);
    --hub-secondary-color: rgba(240, 253, 250, 0.92);
    --hub-secondary-border: rgba(153, 246, 228, 0.2);
    --hub-secondary-bg: rgba(7, 15, 27, 0.35);
    --hub-secondary-bg-active: rgba(17, 94, 89, 0.2);
}

.nav-dropdown-menu--hub::before {
    top: -0.9rem;
    height: 0.9rem;
}

.nav-dropdown.open .nav-dropdown-menu--hub,
.nav-dropdown:focus-within .nav-dropdown-menu--hub {
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown.lock-closed .nav-dropdown-menu--hub {
    transform: translateX(-50%) translateY(-8px);
}

.nav-dropdown-menu--hub-projects {
    width: min(1080px, calc(100vw - 5rem));
}

.nav-dropdown-menu--hub-about {
    width: min(920px, calc(100vw - 6rem));
    --hub-glow-a: rgba(96, 165, 250, 0.12);
    --hub-glow-b: rgba(244, 114, 182, 0.12);
    --hub-border: rgba(96, 165, 250, 0.18);
    --hub-shell-topwash: rgba(37, 99, 235, 0.14);
    --hub-grid-line: rgba(96, 165, 250, 0.06);
    --hub-kicker-color: rgba(191, 219, 254, 0.95);
    --hub-kicker-border: rgba(96, 165, 250, 0.26);
    --hub-kicker-bg: rgba(30, 64, 175, 0.34);
    --hub-label-color: rgba(147, 197, 253, 0.94);
    --hub-rail-border: rgba(244, 114, 182, 0.22);
    --hub-rail-bg:
        linear-gradient(180deg, rgba(30, 64, 175, 0.58), rgba(15, 23, 42, 0.95)),
        linear-gradient(145deg, rgba(244, 114, 182, 0.16), transparent 46%);
    --hub-rail-orb: rgba(244, 114, 182, 0.18);
    --hub-rail-icon-color: rgba(191, 219, 254, 0.94);
    --hub-cta-text: #07111f;
    --hub-cta-bg: linear-gradient(135deg, #bfdbfe, #60a5fa);
    --hub-cta-bg-hover: linear-gradient(135deg, #dbeafe, #93c5fd);
    --hub-cta-shadow: 0 10px 22px rgba(59, 130, 246, 0.22);
    --hub-secondary-color: rgba(239, 246, 255, 0.92);
    --hub-secondary-border: rgba(191, 219, 254, 0.2);
    --hub-secondary-bg-active: rgba(59, 130, 246, 0.16);
}

.nav-dropdown-hub-shell {
    position: relative;
    overflow: hidden;
    border-radius: 0.95rem;
    padding: 1rem;
    background:
        linear-gradient(180deg, var(--hub-shell-topwash), transparent 32%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.82), rgba(10, 15, 27, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-dropdown-hub-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--hub-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--hub-grid-line) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
}

.nav-dropdown-hub-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-dropdown-hub-kicker,
.nav-dropdown-hub-rail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--hub-kicker-color);
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--hub-kicker-border);
    background: var(--hub-kicker-bg);
}

.nav-dropdown-hub-title {
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 0.3rem;
}

.nav-dropdown-hub-copy {
    max-width: 46rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--hub-copy-color);
    margin: 0;
}

.nav-dropdown-hub-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.9rem;
    align-items: stretch;
}

.nav-dropdown-hub-grid--projects {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 0.95fr);
}

.nav-dropdown-hub-grid--about {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1.3fr);
}

.nav-dropdown-hub-zone,
.nav-dropdown-hub-rail {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    border-radius: 0.8rem;
    border: 1px solid var(--hub-zone-border);
    background: var(--hub-zone-bg);
    padding: 0.9rem;
}

.nav-dropdown-hub-zone-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hub-label-color);
    margin-bottom: 0.3rem;
}

.nav-dropdown-hub-zone-copy {
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--hub-zone-copy-color);
    margin: 0 0 0.7rem;
}

.nav-dropdown-hub-zone .nav-dropdown-item {
    margin-top: 0.18rem;
}

.nav-dropdown-hub-rail {
    position: relative;
    overflow: hidden;
    background: var(--hub-rail-bg);
    border-color: var(--hub-rail-border);
}

.nav-dropdown-hub-rail::after {
    content: '';
    position: absolute;
    inset: auto -15% 8% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hub-rail-orb), transparent 68%);
    pointer-events: none;
}

.nav-dropdown-hub-rail-title {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    line-height: 1.1;
    font-weight: 800;
    color: #f8fafc;
    margin: 0.55rem 0 0.45rem;
}

.nav-dropdown-hub-rail-copy {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--hub-rail-copy-color);
    margin: 0 0 0.9rem;
}

.nav-dropdown-hub-rail-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.nav-dropdown-hub-rail-list span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.75rem;
    color: rgba(241, 245, 249, 0.9);
}

.nav-dropdown-hub-rail-list i {
    color: var(--hub-rail-icon-color);
}

.nav-dropdown-hub-rail-cta,
.nav-dropdown-hub-rail-secondary {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 2.75rem;
    border-radius: 0.75rem;
    font-size: 0.86rem;
    font-weight: 700;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-dropdown-hub-rail-cta {
    margin-top: auto;
    color: var(--hub-cta-text);
    background: var(--hub-cta-bg);
    box-shadow: var(--hub-cta-shadow);
}

.nav-dropdown-hub-rail-cta:hover,
.nav-dropdown-hub-rail-cta:focus {
    transform: translateY(-1px);
    color: var(--hub-cta-text);
    background: var(--hub-cta-bg-hover);
}

.nav-dropdown-hub-rail-secondary {
    margin-top: 0.6rem;
    color: var(--hub-secondary-color);
    border: 1px solid var(--hub-secondary-border);
    background: var(--hub-secondary-bg);
}

.nav-dropdown-hub-rail-secondary:hover,
.nav-dropdown-hub-rail-secondary:focus,
.nav-dropdown-hub-rail-secondary-active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
    background: var(--hub-secondary-bg-active);
}

@media (max-width: 1024px) {
    .nav-dropdown-hub-grid--projects,
    .nav-dropdown-hub-grid--about {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .nav-dropdown-hub-rail {
        grid-column: 1 / -1;
    }
}

/* Single-column rich dropdown variant â€” positions relative to its own button */
.nav-dropdown-menu--rich-sm {
    min-width: 320px;
    padding: 1.25rem;
}

.nav-dropdown-rich-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 0.75rem;
}

.nav-dropdown-rich-grid--single {
    grid-template-columns: 1fr;
}

.nav-dropdown-section {
    display: flex;
    flex-direction: column;
    padding: 0 0.25rem;
}

.nav-dropdown-section + .nav-dropdown-section {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0.75rem;
}

.nav-dropdown-section-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(103, 232, 249, 0.85);
    padding: 0 0.25rem 0.35rem;
    margin-bottom: 0.25rem;
}

.nav-dropdown-section-desc {
    font-size: 0.72rem;
    color: #ffffff;
    padding: 0 0.25rem 0.6rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.35rem;
}

/* Icon-style nav item */
.nav-dropdown-item--icon {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.45rem 0.5rem;
}

.nav-dropdown-item-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
    font-size: 0.8rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-item--icon:hover .nav-dropdown-item-icon,
.nav-dropdown-item--icon:focus .nav-dropdown-item-icon {
    background: rgba(6, 182, 212, 0.25);
    color: #fff;
}

/* Compact Social Icons Container */
.header-social-container-compact {
    position: relative;
}

.header-social-container-compact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(55, 65, 81, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease-in-out;
}

.header-social-container-compact a:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* YouTube hover */
.header-social-container-compact a[href*="youtube"]:hover {
    color: #ef4444 !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

/* Twitch hover */
.header-social-container-compact a[href*="twitch"]:hover {
    color: #a855f7 !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

/* Discord hover */
.header-social-container-compact a[href*="discord"]:hover {
    color: #6366f1 !important;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

/* Shop hover */
.header-social-container-compact a[href*="shop"]:hover {
    color: #4ade80 !important;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
}

/* Responsive adjustments for compact header */
@media (max-width: 1024px) {
    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .compact-header-glass {
        padding: 0.75rem 1rem;
        border-radius: 0.75rem;
    }

    .header-logo-compact {
        height: 1.75rem;
    }
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(20px)) {
    .compact-header-glass {
        background: rgba(17, 24, 39, 0.95);
    }

    .header-social-container-compact a {
        background: rgba(55, 65, 81, 0.8);
    }
}
