/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    background-color: #000000;
    color: #0F0;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

/* Starry Sky Background */
.starry-sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.star.small {
    width: 1px;
    height: 1px;
}

.star.medium {
    width: 2px;
    height: 2px;
}

.star.large {
    width: 3px;
    height: 3px;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: shootMove 3s linear;
}

.shooting-star::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
    left: -150px;
    top: 0;
    transform-origin: right center;
}

@keyframes shootMove {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(var(--angle, 45deg));
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--end-x, 500px), var(--end-y, 500px)) rotate(var(--angle, 45deg));
    }
}

/* Title Styles */
@keyframes shimmer {
    0% {
        background-position: -200% 0%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        background-position: 200% 0%;
        opacity: 0;
    }
}

@keyframes titlePulse {
    0% {
        opacity: 0.4;
        text-shadow: 0 0 10px rgba(0, 102, 204, 0.5);
    }
    25% {
        opacity: 0.8;
        text-shadow: 0 0 15px rgba(0, 102, 204, 0.8);
    }
    50% {
        opacity: 0.4;
        text-shadow: 0 0 10px rgba(0, 102, 204, 0.5);
    }
    75% {
        opacity: 0.2;
        text-shadow: 0 0 5px rgba(0, 102, 204, 0.3);
    }
    100% {
        opacity: 0.4;
        text-shadow: 0 0 10px rgba(0, 102, 204, 0.5);
    }
}

.title {
    position: relative;
    color: #0066cc;
    text-shadow: 0 0 10px rgba(0, 102, 204, 0.5);
    opacity: 0.4;
    font-size: 1.8rem;
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    width: 100%;
    padding: 1rem;
    z-index: 100;
    animation: titlePulse 12s ease-in-out infinite;
    animation-delay: 7s;
}

.title::after {
    content: attr(data-text);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: calc(100% - 2rem);
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 6s linear forwards;
    animation-delay: 1s;
    mix-blend-mode: screen;
    opacity: 0;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

@keyframes neonFlicker {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(138, 43, 226, 0.3)) drop-shadow(0 0 8px rgba(138, 43, 226, 0.2)) drop-shadow(0 0 5px rgba(173, 216, 230, 0.4)) drop-shadow(0 0 10px rgba(173, 216, 230, 0.25));
    }
    25% {
        filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.4)) drop-shadow(0 0 10px rgba(138, 43, 226, 0.25)) drop-shadow(0 0 6px rgba(173, 216, 230, 0.5)) drop-shadow(0 0 12px rgba(173, 216, 230, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 3px rgba(138, 43, 226, 0.25)) drop-shadow(0 0 6px rgba(138, 43, 226, 0.15)) drop-shadow(0 0 4px rgba(173, 216, 230, 0.35)) drop-shadow(0 0 8px rgba(173, 216, 230, 0.2));
    }
    75% {
        filter: drop-shadow(0 0 4.5px rgba(138, 43, 226, 0.35)) drop-shadow(0 0 9px rgba(138, 43, 226, 0.22)) drop-shadow(0 0 5.5px rgba(173, 216, 230, 0.45)) drop-shadow(0 0 11px rgba(173, 216, 230, 0.28));
    }
}

.header-logo {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    max-width: 120px;
    width: auto;
    height: auto;
    z-index: 95;
    animation: neonFlicker 6s ease-in-out infinite;
    transition: filter 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.header-logo:hover {
    filter: drop-shadow(0 0 12px rgba(138, 43, 226, 0.8)) drop-shadow(0 0 20px rgba(138, 43, 226, 0.6)) drop-shadow(0 0 15px rgba(173, 216, 230, 1)) drop-shadow(0 0 30px rgba(173, 216, 230, 0.8)) drop-shadow(0 0 40px rgba(173, 216, 230, 0.6)) drop-shadow(0 0 50px rgba(173, 216, 230, 0.4));
    transform: translateX(-50%) scale(1.05);
}

.header-logo:active {
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 1)) drop-shadow(0 0 25px rgba(138, 43, 226, 0.8)) drop-shadow(0 0 20px rgba(173, 216, 230, 1)) drop-shadow(0 0 35px rgba(173, 216, 230, 1)) drop-shadow(0 0 50px rgba(173, 216, 230, 0.9)) drop-shadow(0 0 60px rgba(173, 216, 230, 0.7));
    transform: translateX(-50%) scale(1.02);
}

/* Mobile-specific styles for title */
@media screen and (max-width: 480px) {
    /* Enable horizontal scrolling on mobile for nested dropdowns */
    html {
        overflow-x: auto !important;
    }
    
    body {
        overflow-x: auto !important;
    }
    
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 100 !important;
    }
    
    .title {
        font-size: 1rem;
        letter-spacing: -0.5px;
        padding: 0.5rem 10px;
        top: 0;
        position: relative;
    }
    
    .title::after {
        left: 10px;
        top: 0.5rem;
        width: calc(100% - 20px);
    }
    
    .header-logo {
        max-width: 75px;
        top: 2rem;
        position: fixed !important;
    }
    
    /* Fix category descriptions for Earth Oracle and Body & Mind Oracle on mobile */
    .category-item:nth-child(2) .category-description,
    .category-item:nth-child(3) .category-description {
        max-width: 90%;
        font-size: 1.1rem;
        line-height: 1.8;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        display: block;
        text-align: center;
        padding: 0 0.5rem;
    }
}

/* iPad and tablet styles */
@media screen and (min-width: 481px) and (max-width: 1024px) {
    /* Enable horizontal scrolling for tablets too */
    html {
        overflow-x: auto !important;
    }
    
    body {
        overflow-x: auto !important;
    }
    
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 100 !important;
    }
    
    .header-logo {
        position: fixed !important;
    }
    
    .nav-container {
        position: fixed !important;
    }
}

/* Mobile and tablet - enable horizontal scrolling for nested dropdowns */
@media screen and (max-width: 768px) {
    html {
        overflow-x: auto !important;
        overflow-y: auto !important;
        width: 100%;
    }
    
    body {
        overflow-x: auto !important;
        overflow-y: auto !important;
        min-width: 100%;
        width: 100%;
        position: relative;
    }
    
    /* Ensure main containers allow horizontal extension */
    main {
        min-width: 100%;
        position: relative;
        z-index: 1;
    }
    
    .nav-container {
        overflow: visible !important;
        position: relative;
    }
    
    /* Ensure dropdown containers don't clip nested dropdowns */
    .dropdown-content {
        overflow: visible !important;
    }
}

/* Navigation Container - Top */
.nav-container {
    position: fixed;
    top: 8.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    z-index: 90;
    padding: 1rem;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.nav-button {
    position: relative;
    width: 280px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
}


/* Button text display - show name by default, category on hover */

.button-name {
    display: inline-block;
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.button-category {
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1.5s ease, transform 1.5s ease;
    white-space: nowrap;
}

.nav-button:hover .button-name {
    opacity: 0;
    transform: translateY(-10px);
}

.nav-button:hover .button-category {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Button-specific colors - Logo colors: red, yellow, green, dark blue, light blue (faded/muted) */
.nav-button[data-color="#daa520"] .button-name,
.nav-button[data-color="#daa520"] .button-category {
    color: #D4AF37; /* Faded Yellow */
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.nav-button[data-color="#20b2aa"] .button-name,
.nav-button[data-color="#20b2aa"] .button-category {
    color: #7CB342; /* Faded Green */
    text-shadow: 0 0 5px rgba(124, 179, 66, 0.5);
}

.nav-button[data-color="#ff1493"] .button-name,
.nav-button[data-color="#ff1493"] .button-category {
    color: #C62828; /* Faded Red */
    text-shadow: 0 0 5px rgba(198, 40, 40, 0.5);
}

.nav-button[data-color="#1e90ff"] .button-name,
.nav-button[data-color="#1e90ff"] .button-category {
    color: #1976D2; /* Faded Dark Blue */
    text-shadow: 0 0 5px rgba(25, 118, 210, 0.5);
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.6),
        0 0 40px rgba(255, 0, 255, 0.4),
        0 0 60px rgba(255, 255, 0, 0.3);
    animation: energyPulse 2s ease-in-out infinite;
}

.nav-button:hover::before {
    background: rgba(255, 255, 255, 0.2);
}

.nav-button.active {
    z-index: 100;
}

/* Dropdown Content - Base */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-radius: 0;
    margin-top: 0.7rem;
    padding: 0.7rem;
    opacity: 0;
    visibility: hidden;
    transition: none;
    z-index: 2000;
    pointer-events: none;
    transform-origin: top center;
    transform: scaleY(0) translateY(-30px) rotateX(-15deg);
    overflow: visible;
    bottom: auto !important;
}

/* Earth Oracle Dropdown - Teal */
.nav-button[data-color="#20b2aa"] .dropdown-content {
    background: 
        linear-gradient(90deg, rgba(32, 178, 170, 0.1) 0%, rgba(32, 178, 170, 0.05) 50%, rgba(32, 178, 170, 0.1) 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(32, 178, 170, 0.03) 2px, rgba(32, 178, 170, 0.03) 4px),
        radial-gradient(circle at 20% 20%, rgba(32, 178, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(32, 178, 170, 0.08) 0%, transparent 50%),
        rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(32, 178, 170, 0.6);
    box-shadow: 
        0 0 20px rgba(32, 178, 170, 0.3),
        inset 0 0 20px rgba(32, 178, 170, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.8);
}

/* Body & Mind Oracle Dropdown - Pink */
.nav-button[data-color="#ff1493"] .dropdown-content {
    background: 
        linear-gradient(90deg, rgba(255, 20, 147, 0.1) 0%, rgba(255, 20, 147, 0.05) 50%, rgba(255, 20, 147, 0.1) 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 20, 147, 0.03) 2px, rgba(255, 20, 147, 0.03) 4px),
        radial-gradient(circle at 20% 20%, rgba(255, 20, 147, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 20, 147, 0.08) 0%, transparent 50%),
        rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(255, 20, 147, 0.6);
    box-shadow: 
        0 0 20px rgba(255, 20, 147, 0.3),
        inset 0 0 20px rgba(255, 20, 147, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.8);
}

/* World Oracle Dropdown - Blue */
.nav-button[data-color="#1e90ff"] .dropdown-content {
    background: 
        linear-gradient(90deg, rgba(30, 144, 255, 0.1) 0%, rgba(30, 144, 255, 0.05) 50%, rgba(30, 144, 255, 0.1) 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(30, 144, 255, 0.03) 2px, rgba(30, 144, 255, 0.03) 4px),
        radial-gradient(circle at 20% 20%, rgba(30, 144, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 144, 255, 0.08) 0%, transparent 50%),
        rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(30, 144, 255, 0.6);
    box-shadow: 
        0 0 20px rgba(30, 144, 255, 0.3),
        inset 0 0 20px rgba(30, 144, 255, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.8);
}

/* Scan Bar - Earth Oracle (Teal) */
.nav-button[data-color="#20b2aa"] .dropdown-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(32, 178, 170, 0.8) 20%, 
        rgba(32, 178, 170, 1) 50%, 
        rgba(32, 178, 170, 0.8) 80%, 
        transparent 100%);
    animation: mechanicalScan 2s linear infinite;
}

/* Scan Bar - Body & Mind Oracle (Pink) */
.nav-button[data-color="#ff1493"] .dropdown-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 20, 147, 0.8) 20%, 
        rgba(255, 20, 147, 1) 50%, 
        rgba(255, 20, 147, 0.8) 80%, 
        transparent 100%);
    animation: mechanicalScan 2s linear infinite;
}

/* Scan Bar - World Oracle (Blue) */
.nav-button[data-color="#1e90ff"] .dropdown-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(30, 144, 255, 0.8) 20%, 
        rgba(30, 144, 255, 1) 50%, 
        rgba(30, 144, 255, 0.8) 80%, 
        transparent 100%);
    animation: mechanicalScan 2s linear infinite;
}

@keyframes mechanicalScan {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.nav-button.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scaleY(1) translateY(0) rotateX(0deg);
}

.dropdown-content a {
    display: block;
    padding: 0.7rem;
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    margin-bottom: 0.4rem;
    transition: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    position: relative;
    z-index: 52;
    color: #7CB342; /* Faded Green */
    text-shadow: 0 0 3px rgba(124, 179, 66, 0.5);
}

.nav-button[data-color="#20b2aa"] .dropdown-content a:hover {
    color: #64B5F6; /* Faded Light Blue */
    text-shadow: 0 0 5px rgba(100, 181, 246, 0.6);
    background-color: rgba(124, 179, 66, 0.1);
}

/* Coming Soon Styling */
.coming-soon {
    display: block;
    padding: 0.7rem;
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    z-index: 52;
}

.nav-button[data-color="#ff1493"] .dropdown-content .coming-soon {
    color: #C62828; /* Faded Red */
    text-shadow: 0 0 3px rgba(198, 40, 40, 0.5);
}

.nav-button[data-color="#1e90ff"] .dropdown-content .coming-soon {
    color: #1976D2; /* Faded Dark Blue */
    text-shadow: 0 0 3px rgba(25, 118, 210, 0.5);
}

.dropdown-content a:last-child {
    margin-bottom: 0;
}

/* Nested Dropdown Styles */
.dropdown-item {
    position: relative;
    margin-bottom: 0.4rem;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item-title {
    display: block;
    padding: 0.7rem;
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    transition: none;
    text-transform: uppercase;
    cursor: pointer;
    color: #1976D2; /* Faded Dark Blue */
    text-shadow: 0 0 3px rgba(25, 118, 210, 0.5);
}

.dropdown-item-title:hover {
    color: #64B5F6; /* Faded Light Blue */
    text-shadow: 0 0 5px rgba(100, 181, 246, 0.6);
    background-color: rgba(30, 144, 255, 0.1);
}

.nested-dropdown-content {
    position: absolute;
    right: 100%;
    top: 0;
    margin-right: 0.5rem;
    min-width: 200px;
    padding: 0.7rem;
    background: 
        linear-gradient(90deg, rgba(30, 144, 255, 0.1) 0%, rgba(30, 144, 255, 0.05) 50%, rgba(30, 144, 255, 0.1) 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(30, 144, 255, 0.03) 2px, rgba(30, 144, 255, 0.03) 4px),
        radial-gradient(circle at 20% 20%, rgba(30, 144, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 144, 255, 0.08) 0%, transparent 50%),
        rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(30, 144, 255, 0.6);
    box-shadow: 
        0 0 20px rgba(30, 144, 255, 0.3),
        inset 0 0 20px rgba(30, 144, 255, 0.1),
        0 0 40px rgba(30, 144, 255, 0.2);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: right;
    transition: none;
    z-index: 1000;
}

.dropdown-item.active .nested-dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scaleX(1);
}

.nested-dropdown-content a {
    display: block;
    padding: 0.7rem;
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    margin-bottom: 0.4rem;
    transition: none;
    text-transform: uppercase;
    color: #1976D2; /* Faded Dark Blue */
    text-shadow: 0 0 3px rgba(25, 118, 210, 0.5);
}

.nested-dropdown-content a:hover {
    color: #64B5F6; /* Faded Light Blue */
    text-shadow: 0 0 5px rgba(100, 181, 246, 0.6);
    background-color: rgba(30, 144, 255, 0.1);
}

.nested-dropdown-content a:last-child {
    margin-bottom: 0;
}

/* Style cryptocurrency link with yellow bitcoin symbol */
.nested-dropdown-content a.crypto-link {
    color: #FFD700 !important; /* Gold/Yellow color */
}

.nested-dropdown-content a.crypto-link:hover {
    color: #FFA500 !important; /* Lighter yellow/orange on hover */
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
}

.nav-button[data-color="#1e90ff"] .dropdown-content .coming-soon {
    color: #1976D2; /* Faded Dark Blue */
    text-shadow: 0 0 3px rgba(25, 118, 210, 0.5);
}

/* Enable transitions after page load */
.page-loaded .nested-dropdown-content {
    transition: all 0.3s ease;
}

.page-loaded .dropdown-content {
    transition: all 0.8s linear;
}

.page-loaded .dropdown-content a {
    transition: all 0.3s ease;
}

@keyframes energyPulse {
    0% {
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.6),
            0 0 40px rgba(255, 0, 255, 0.4),
            0 0 60px rgba(255, 255, 0, 0.3);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 0, 255, 0.8),
            0 0 50px rgba(255, 255, 0, 0.6),
            0 0 70px rgba(0, 255, 0, 0.4);
    }
    100% {
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.6),
            0 0 40px rgba(255, 0, 255, 0.4),
            0 0 60px rgba(255, 255, 0, 0.3);
    }
}


/* Intro Section */
.intro-section {
    position: relative;
    margin-top: 20rem;
    padding: 2rem 1rem;
    z-index: 5;
    text-align: center;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: #00f0ff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5), 0 0 15px rgba(0, 240, 255, 0.3);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.intro-text {
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Categories Section */
.categories-section {
    position: relative;
    margin-top: 3rem;
    padding: 2rem 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.category-item {
    margin-bottom: 2.5rem;
    text-align: center;
}

.category-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:nth-child(1) .category-title {
    color: #D4AF37; /* Faded Yellow */
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.category-item:nth-child(1) .category-title:hover {
    color: #FFD700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
    transform: scale(1.05);
}

.category-item:nth-child(2) .category-title {
    color: #7CB342; /* Faded Green */
    text-shadow: 0 0 8px rgba(124, 179, 66, 0.5);
}

.category-item:nth-child(2) .category-title:hover {
    color: #8BC34A;
    text-shadow: 0 0 12px rgba(139, 195, 74, 0.8);
    transform: scale(1.05);
}

.category-item:nth-child(3) .category-title {
    color: #C62828; /* Faded Red */
    text-shadow: 0 0 8px rgba(198, 40, 40, 0.5);
}

.category-item:nth-child(3) .category-title:hover {
    color: #FF5252;
    text-shadow: 0 0 12px rgba(255, 82, 82, 0.8);
    transform: scale(1.05);
}

.category-item:nth-child(4) .category-title {
    color: #1976D2; /* Faded Dark Blue */
    text-shadow: 0 0 8px rgba(25, 118, 210, 0.5);
}

.category-item:nth-child(4) .category-title:hover {
    color: #2196F3;
    text-shadow: 0 0 12px rgba(33, 150, 243, 0.8);
    transform: scale(1.05);
}

.coming-soon-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
}

.category-description {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Old Categories Section (keeping for compatibility) */
.categories-section-old {
    position: relative;
    margin-top: 3rem;
    padding: 2rem 1rem;
    z-index: 5;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.category-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.category-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.category-card#spirituality .category-title {
    color: #daa520;
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.6);
}

.category-card#nature .category-title {
    color: #20b2aa;
    text-shadow: 0 0 10px rgba(32, 178, 170, 0.6);
}

.category-card#wellness .category-title {
    color: #ff1493;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.6);
}

.category-card#knowledge .category-title {
    color: #1e90ff;
    text-shadow: 0 0 10px rgba(30, 144, 255, 0.6);
}

.category-description {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.category-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-features li {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.category-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #daa520;
    text-shadow: 0 0 5px rgba(218, 165, 32, 0.6);
}

.category-card#nature .category-features li::before {
    color: #20b2aa;
    text-shadow: 0 0 5px rgba(32, 178, 170, 0.6);
}

.category-card#wellness .category-features li::before {
    color: #ff1493;
    text-shadow: 0 0 5px rgba(255, 20, 147, 0.6);
}

.category-card#knowledge .category-features li::before {
    color: #1e90ff;
    text-shadow: 0 0 5px rgba(30, 144, 255, 0.6);
}

/* CTA Section */
.cta-section {
    position: relative;
    margin-top: 3rem;
    padding: 2rem 1rem;
    z-index: 5;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cta-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.1rem;
    color: #daa520;
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.6);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-text {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    text-align: left;
}

/* Mobile Styles */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem;
        top: 6.5rem;
        position: fixed !important;
    }

    .intro-section {
        margin-top: 16rem;
        padding: 1.5rem 1rem;
    }

    .intro-title {
        font-size: 0.7rem;
    }

    .intro-text {
        font-size: 1.1rem;
    }

    .categories-section {
        margin-top: 2rem;
        padding: 1rem 0.5rem;
    }
    
    .category-item {
        margin-bottom: 2rem;
    }
    
    .category-title {
        font-size: 0.8rem;
    }
    
    .category-description {
        font-size: 1rem;
    }

    .category-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .category-title {
        font-size: 0.8rem;
    }

    .category-description {
        font-size: 1rem;
    }

    .category-features li {
        font-size: 0.95rem;
    }

    .cta-section {
        margin-top: 2rem;
        padding: 1.5rem 1rem;
    }

    .cta-title {
        font-size: 0.9rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .nav-buttons {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .nav-button {
        width: calc(50% - 0.25rem);
        min-width: 140px;
        height: 45px;
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .button-name,
    .button-category {
        text-shadow: none !important;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .nav-button[data-color="#daa520"] .button-name,
    .nav-button[data-color="#daa520"] .button-category {
        color: #D4AF37 !important; /* Faded Yellow */
    }
    
    .nav-button[data-color="#20b2aa"] .button-name,
    .nav-button[data-color="#20b2aa"] .button-category {
        color: #7CB342 !important; /* Faded Green */
    }
    
    .nav-button[data-color="#ff1493"] .button-name,
    .nav-button[data-color="#ff1493"] .button-category {
        color: #C62828 !important; /* Faded Red */
    }
    
    .nav-button[data-color="#1e90ff"] .button-name,
    .nav-button[data-color="#1e90ff"] .button-category {
        color: #1976D2 !important; /* Faded Dark Blue */
    }
    
    /* World Oracle - Show shorter text on mobile */
    .nav-button[data-color="#1e90ff"] .button-category {
        font-size: 0 !important;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        height: auto;
    }
    
    .nav-button[data-color="#1e90ff"] .button-category::after {
        content: "🌐 Insights";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        white-space: nowrap;
        font-size: 0.8rem !important;
        color: #1e90ff !important;
        text-shadow: 0 0 5px rgba(30, 144, 255, 0.6) !important;
        opacity: 0;
        transition: opacity 1.5s ease;
        pointer-events: none;
    }
    
    .nav-button[data-color="#1e90ff"]:hover .button-category,
    .nav-button[data-color="#1e90ff"]:active .button-category,
    .nav-button[data-color="#1e90ff"].active .button-category {
        opacity: 1 !important;
    }
    
    .nav-button[data-color="#1e90ff"]:hover .button-category::after,
    .nav-button[data-color="#1e90ff"]:active .button-category::after,
    .nav-button[data-color="#1e90ff"].active .button-category::after {
        opacity: 1 !important;
    }
    
    /* Dropdown links - prevent word wrapping on mobile */
    .dropdown-content a {
        white-space: nowrap;
        text-align: center;
        font-size: 1rem !important;
    }
    
    /* Allow specific long dropdown links to wrap to two lines on mobile */
    .dropdown-content a[href*="folkloreofnaturalformations"],
    .dropdown-content a[href*="astronomicalobjects"],
    .dropdown-content a[href*="raremedicalconditions"],
    .dropdown-content a[href*="breathingtechniques"],
    .dropdown-content a[href*="chakra-system-guide"],
    .nested-dropdown-content a[href*="abandonedscientifictheories"] {
        white-space: normal;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        padding: 0.6rem 0.5rem;
    }
    
    /* Mobile nested dropdown styles - World Oracle subcategories */
    .nav-button[data-color="#1e90ff"] .dropdown-content .dropdown-item {
        margin-bottom: 0.05rem !important;
    }
    
    .nav-button[data-color="#1e90ff"] .dropdown-content .dropdown-item:last-child {
        margin-bottom: 0 !important;
    }
    
    .nav-button[data-color="#1e90ff"] .dropdown-content .dropdown-item-title {
        font-size: 1rem !important;
        padding: 0.4rem 0.5rem !important;
        margin-bottom: 0 !important;
    }
    
    /* Position nested dropdowns to the LEFT side on mobile (separate dropdowns, not inside) */
    /* Make boxes smaller horizontally so text wraps to two lines and fits on screen */
    .nav-button[data-color="#1e90ff"] .dropdown-content .nested-dropdown-content {
        position: absolute !important;
        left: auto !important;
        right: 100% !important;
        top: 0 !important;
        bottom: auto !important;
        margin-left: 0 !important;
        margin-right: 0.5rem !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        padding: 0.4rem !important;
        transform-origin: right center !important;
        transform: scaleX(0) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: 1001 !important;
    }
    
    /* Active state - opens to the left with horizontal animation */
    .nav-button[data-color="#1e90ff"] .dropdown-content .dropdown-item.active .nested-dropdown-content {
        position: absolute !important;
        left: auto !important;
        right: 100% !important;
        top: 0 !important;
        bottom: auto !important;
        margin-left: 0 !important;
        margin-right: 0.5rem !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        transform-origin: right center !important;
        transform: scaleX(1) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .nav-button[data-color="#1e90ff"] .dropdown-content .nested-dropdown-content a {
        white-space: normal !important;
        word-wrap: break-word !important;
        text-align: center;
        font-size: 0.85rem !important;
        padding: 0.4rem 0.3rem !important;
        margin-bottom: 0.15rem !important;
        line-height: 1.3 !important;
    }
    
    .nav-button[data-color="#1e90ff"] .dropdown-content .nested-dropdown-content a:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Ensure dropdown content container allows horizontal extension for nested dropdowns */
    .nav-button[data-color="#1e90ff"] .dropdown-content {
        overflow: visible !important;
    }
    
    /* Ensure nested dropdowns can extend beyond viewport */
    .nav-button[data-color="#1e90ff"] .dropdown-content .dropdown-item {
        overflow: visible !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.3);
}

/* Contact Email Link */
.contact-email-container {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
}

.contact-email {
    font-family: 'VT323', monospace;
    font-size: 0.75rem;
    color: rgba(0, 255, 0, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.3);
}

.contact-email:hover {
    color: rgba(0, 255, 0, 1);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
    transform: scale(1.05);
}

.copy-email-btn {
    background: transparent;
    border: 1px solid rgba(0, 255, 0, 0.25);
    border-radius: 4px;
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 255, 0, 0.5);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.copy-email-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.6);
    color: rgba(0, 255, 0, 1);
    transform: scale(1.1);
}

.copy-email-btn:active {
    transform: scale(0.95);
}

.copy-email-btn svg {
    display: block;
}

@media (max-width: 480px) {
    .contact-email-container {
        bottom: 0.3rem;
        right: 0.3rem;
        gap: 0.3rem;
    }
    
    .contact-email {
        font-size: 0.65rem;
    }
    
    .copy-email-btn {
        padding: 0.2rem;
    }
    
    .copy-email-btn svg {
        width: 10px;
        height: 10px;
    }
}

