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: 50;
    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: 40;
    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 masonry layout */
.other-projects-masonry {
    column-count: 1;
    column-gap: 2rem;
}

@media (min-width: 768px) {
    .other-projects-masonry {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .other-projects-masonry {
        column-count: 3;
    }
}

.other-projects-masonry .project-card {
    break-inside: avoid;
    margin-bottom: 2rem;
}

.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: 10;
}

.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;
    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;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 60;
}

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

.nav-dropdown:hover .nav-dropdown-icon,
.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: rgba(209, 213, 219, 0.95);
    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;
}

/* 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);
    }
}

