/* ===================================
   HUB PAGE STYLES
   =================================== */

/* Global & Layout */
* {
    box-sizing: border-box;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

:root {
    --container-padding: clamp(1.5rem, 3vw, 3rem);
    --max-width: 1400px;
    --coral: #F96F6E;
    --color-coral: #F96F6E;
    --teal: #2ED3C6;
    --coral-primary: #F96F6E;
    --teal-primary: #2ED3C6;
    --text-body: rgba(255, 255, 255, 0.7);
    --text-primary: #ffffff;
    --gray-border: rgba(255, 255, 255, 0.1);
    --black: #000;
    
    /* Typography */
    --font-accent: 'Big Shoulders Display', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --hero-headline: clamp(3.5rem, 8vw, 6.5rem);
    --body-large: clamp(1.125rem, 2vw, 1.35rem);
    
    /* Spacing */
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-3xl: 8rem;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 3vw, 3rem);
}

/* Dark Mode Backgrounds */
[data-theme="dark"] body {
    background: #0F0F10;
    color: white;
}

/* Light Mode - elegant cream + white scheme */
[data-theme="light"] {
    --bg-primary: #FAF7F2;        /* Cloud Dancer cream */
    --bg-secondary: #FFFFFF;       /* Pure white for cards */
    --bg-tertiary: #F5F1EA;        /* Slightly darker cream */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-tertiary: #737373;
}

[data-theme="light"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .hub-expertise {
    background: #1a1a1a;
}

[data-theme="dark"] .hub-roadmap {
    background: #0F0F10;
}

/* Navigation */
.primary-nav {
    background-color: #1a1a1a;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 3vw, 3rem);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo .desktop-logo {
    display: block;
    height: 48px;
    width: auto;
}

.nav-logo .mobile-logo {
    display: none;
    height: 40px;
    width: auto;
}

@media (max-width: 768px) {
    .nav-logo .desktop-logo { display: none; }
    .nav-logo .mobile-logo { display: block; }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    opacity: 0.7;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--coral-primary);
    opacity: 1;
}

/* Header nav - consistent colors regardless of theme */
[data-theme="light"] .primary-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Hub Logo Compound Styles */
.hub-logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.hub-logo-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
}

.hub-logo-text {
    font-family: 'Big Shoulders Display', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

[data-theme="light"] .hub-logo-divider {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .hub-logo-text {
    color: var(--text-primary);
}

/* Theme toggle stays consistent */

[data-theme="light"] .nav-logo img {
    filter: brightness(0);
}

/* Theme Toggle Icons */
.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

/* Sub-Navigation */
.sub-nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: 48px;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
    backdrop-filter: blur(10px);
}

/* Sub-nav light mode */
[data-theme="light"] .sub-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .sub-link {
    color: var(--text-secondary);
}

[data-theme="light"] .sub-link:hover,
[data-theme="light"] .sub-link.active {
    color: var(--coral-primary);
    background: rgba(232, 93, 74, 0.05);
}

/* Simplified Hub Footer */
.hub-footer {
    background-color: #0F0F10;
    padding: 6rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.hub-footer-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.hub-footer-logo {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hub-footer-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.hub-footer-logo .divider {
    color: rgba(255,255,255,0.2);
    font-weight: 300;
}

.hub-footer-logo .brand-name {
    font-weight: 400;
    text-transform: uppercase;
}

.hub-footer-logo .hub-name {
    font-weight: 700;
}

.hub-footer-logo .coral {
    color: var(--coral);
}

.hub-footer-nav {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
}

.hub-footer-nav a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.hub-footer-nav a:hover {
    color: var(--coral);
}

.hub-footer-copyright {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Footer light mode */
[data-theme="light"] .hub-footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hub-footer-logo {
    color: var(--black);
}

[data-theme="light"] .hub-footer-logo img {
    filter: brightness(0);
}

[data-theme="light"] .hub-footer-logo .divider {
    color: rgba(0,0,0,0.2);
}

[data-theme="light"] .hub-footer-nav a {
    color: rgba(0,0,0,0.6);
}

[data-theme="light"] .hub-footer-nav a:hover {
    color: var(--coral-primary);
}

[data-theme="light"] .hub-footer-copyright {
    color: rgba(0,0,0,0.4);
}

[data-theme="dark"] .sub-nav {
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sub-nav .nav-container {
    justify-content: flex-start;
    gap: 2rem;
}

.sub-nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 3vw, 3rem);
    height: 100%;
    display: flex;
    gap: 30px;
    align-items: center;
}

.sub-link {
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.sub-link:hover { 
    color: rgba(255,255,255,0.9);
}

.sub-link.active {
    color: var(--color-coral);
    font-weight: 700;
}

/* Mobile Controls */
.mobile-controls {
    display: none;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Mobile Drawer Styles */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: #fff; /* Light mode default */
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .mobile-menu-overlay {
    background: #0A0A0A;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 80px;
    border-bottom: 1px solid var(--gray-border);
}

.mobile-drawer-logo {
    height: 32px;
    width: auto;
}

[data-theme="light"] .mobile-drawer-logo {
    filter: invert(1);
}

.drawer-close-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    color: var(--black);
    cursor: pointer;
    transition: all 0.2s;
}

[data-theme="dark"] .drawer-close-btn {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.mobile-drawer-content {
    padding: 40px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-group-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-body);
    margin-bottom: 16px;
    opacity: 0.7;
}

.mobile-link {
    display: block;
    text-decoration: none;
    color: var(--black);
    transition: color 0.2s;
}

[data-theme="dark"] .mobile-link {
    color: white;
}

.mobile-link.main {
    font-family: 'Big Shoulders Display', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
}

.mobile-link.sub {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-body);
    transition: all 0.2s;
}

.mobile-link:hover { 
    color: var(--color-coral); 
}

.mobile-link.active,
.mobile-link.main.active,
.mobile-link.sub.active,
[data-theme="dark"] .mobile-link.active,
[data-theme="light"] .mobile-link.active,
[data-theme="dark"] .mobile-link.main.active,
[data-theme="light"] .mobile-link.main.active {
    color: var(--color-coral) !important;
}

.mobile-link.active-parent { 
    color: var(--color-coral) !important; 
}

.mobile-link.sub.active {
    color: var(--color-coral);
    font-weight: 700;
    padding-left: 12px;
    border-left: 3px solid var(--color-coral);
}

.mobile-divider {
    height: 1px;
    width: 100%;
    background: var(--gray-border);
}

@media (max-width: 768px) {
    .mobile-link.main {
        font-size: 2rem;
    }
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover {
    opacity: 1;
}

.sun-icon, 
.sun-icon svg { 
    display: none; 
}

.moon-icon, 
.moon-icon svg { 
    display: block; 
}

[data-theme="dark"] .sun-icon,
[data-theme="dark"] .sun-icon svg { 
    display: block; 
}

[data-theme="dark"] .moon-icon,
[data-theme="dark"] .moon-icon svg { 
    display: none; 
}

/* Hero Section */
.hub-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 140px; /* Adjusted for double nav */
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: scaleIn 1.5s ease-out forwards;
}

@keyframes scaleIn {
    from { transform: scale(1.1); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,15,16,0.75) 0%, rgba(15,15,16,0.85) 100%);
}

[data-theme="dark"] .hero-overlay {
    background: linear-gradient(135deg, rgba(15,15,16,0.85) 0%, rgba(15,15,16,0.92) 100%);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(249,111,110,0.12) 0%, transparent 70%);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
}

.hero-title {
    font-family: 'Big Shoulders Display', sans-serif;
    font-size: var(--hero-headline);
    font-weight: 800;
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: clamp(1.5rem, 4vh, 2rem);
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.gradient-text {
    background: linear-gradient(135deg, 
        var(--coral-primary) 0%, 
        var(--teal-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    filter: drop-shadow(0 2px 10px rgba(249,111,110,0.3));
}

[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, 
        #E85D4A 0%,  /* Darker coral for better visibility */ 
        #0A7C7A 100%); /* Darker teal for better visibility */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--body-large);
    color: rgba(255,255,255,0.95);
    max-width: 700px;
    margin: 0 auto clamp(2rem, 5vh, 3rem);
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.highlight {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: var(--font-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-coral);
    color: white;
    box-shadow: 0 0 40px -10px rgba(249, 111, 110, 0.5);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 60px -15px rgba(249, 111, 110, 0.6);
    background: hsl(1, 95%, 65%);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    z-index: 10;
    animation: fadeIn 1s ease 1.5s forwards;
    opacity: 0;
}

.scroll-indicator span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--text-primary), transparent);
}

/* Expertise Section */
.hub-expertise {
    padding: var(--space-3xl) 0;
    position: relative;
    z-index: 10;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

.expertise-card {
    position: relative;
    height: 360px;
    border-radius: 16px;
    overflow: hidden;
    background: #0A0A0A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.expertise-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.card-bg {
    position: absolute;
    inset: 0;
}

.card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: transform 1s ease, opacity 0.5s ease;
}

.expertise-card:hover .card-bg img {
    transform: scale(1.1);
    opacity: 0.5;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0A0A0A, rgba(10, 10, 10, 0.8), transparent);
}

.card-content {
    position: relative;
    z-index: 10;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
}

.card-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.expertise-card:hover .card-icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(249, 111, 110, 0.3);
}

.card-icon {
    width: 32px;
    height: 32px;
    color: var(--color-coral);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.card-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.card-content h3 {
    font-family: var(--font-accent);
    font-size: 1.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.expertise-card:hover .card-content h3 {
    color: var(--color-coral);
}

.card-content p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.expertise-card:hover .card-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* Roadmap Section */
.hub-roadmap {
    padding: var(--space-3xl) 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.roadmap-glow {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(249, 111, 110, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.roadmap-content h2 {
    font-family: var(--font-accent);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: var(--space-lg);
}

.roadmap-content .highlight {
    color: var(--color-coral);
}

.roadmap-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    max-width: 500px;
}

.roadmap-list {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.roadmap-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.check-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(249, 111, 110, 0.1);
    border: 1px solid rgba(249, 111, 110, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-coral);
}

.check-icon svg {
    width: 16px;
    height: 16px;
}

.btn-white {
    background: white;
    color: black;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 50px;
    font-family: var(--font-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.roadmap-visual {
    position: relative;
}

.visual-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transform: rotate(5deg);
    transition: transform 1s ease;
}

.roadmap-visual:hover .visual-container {
    transform: rotate(0deg);
}

.visual-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.roadmap-visual:hover .visual-container img {
    transform: scale(1.05);
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(249, 111, 110, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.7s ease;
}

.roadmap-visual:hover .visual-overlay {
    opacity: 1;
}

.visual-decor {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
}

.visual-decor.top-right {
    top: -40px;
    right: -40px;
    background: rgba(249, 111, 110, 0.2);
}

.visual-decor.bottom-left {
    bottom: -40px;
    left: -40px;
    background: rgba(46, 211, 198, 0.2);
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    to { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 1024px) {
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   GOLDEN MASTER NAVIGATION (Added for Consistency)
   ======================================== */
.primary-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 64px;
    background: rgba(14, 14, 15, 0.9); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10000;
}

.primary-nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 1rem;
    height: 64px; display: flex; align-items: center; justify-content: space-between;
    position: relative;
}

.nav-links { display: flex; gap: 24px; align-items: center; justify-content: flex-end; margin-left: auto; }
@media (max-width: 768px) { .nav-links { gap: 16px; } }

.nav-link {
    color: rgba(255, 255, 255, 0.7); text-decoration: none;
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; position: relative; transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active { color: #ffffff; }

.nav-link.active::after {
    content: ''; position: absolute; bottom: -23px; left: 0; right: 0;
    height: 3px; background: #F96F6E;
}

/* HUB SUB-NAVIGATION (Level 2) */
.portfolio-subnav {
    position: fixed; top: 64px; left: 0; width: 100%;
    background: #0E0E0F;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 9999; transition: background 0.3s ease;
}

.portfolio-subnav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 2rem;
    height: 48px; display: flex; align-items: center; gap: 2rem;
}

.subnav-link {
    color: #A0A0A0; text-decoration: none;
    font-size: 14px; font-weight: 500; transition: color 0.2s ease;
    padding: 0.5rem 0; position: relative;
}
.subnav-link:hover { color: #F96F6E; }
.subnav-link.active { color: #F5F5F5; font-weight: 700; }

/* Settings Button */
.settings-btn {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; margin-left: 0.5rem; color: #ffffff;
    transition: all 0.3s ease;
}
.settings-btn:hover { background: #2ED3C6; border-color: #2ED3C6; transform: rotate(90deg); }

@media (max-width: 1024px) {
    .primary-nav-container { padding: 0 1rem; }
    .nav-links, .portfolio-subnav { display: none; }
    .mobile-controls { display: flex; }

    .roadmap-grid {
        gap: 4rem;
    }
    
    .roadmap-visual {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .roadmap-content h2 {
        font-size: 2.5rem;
    }
    
    .sub-nav-container {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .sub-nav-container::-webkit-scrollbar {
        display: none;
    }
    .sub-nav-link {
        font-size: 0.75rem;
    }
}

/* ===================================
   LIGHT MODE OVERRIDES
   =================================== */

/* Hero section light mode */
[data-theme="light"] .hub-hero {
    background: var(--bg-primary);
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(250, 247, 242, 0.4) 0%,
        rgba(250, 247, 242, 0.9) 100%
    );
}

[data-theme="light"] .hero-description {
    color: var(--text-secondary);
    text-shadow: none;
}

/* Expertise cards light mode - white cards on cream */
[data-theme="light"] .expertise-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .card-content h3 {
    color: var(--text-primary);
}

[data-theme="light"] .card-content p {
    color: var(--text-secondary);
}

[data-theme="light"] .card-icon-wrapper {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .card-overlay {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.95) 100%
    );
}

/* Roadmap section light mode */
[data-theme="light"] .hub-roadmap {
    background: linear-gradient(
        180deg,
        var(--bg-primary) 0%,
        var(--bg-secondary) 50%,
        var(--bg-primary) 100%
    );
}

[data-theme="light"] .visual-container {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* Buttons in light mode */
[data-theme="light"] .btn-primary {
    background: var(--coral-primary);
    color: white;
}

[data-theme="light"] .btn-outline {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

[data-theme="light"] .btn-outline:hover {
    background: var(--text-primary);
    color: white;
}

[data-theme="light"] .btn-white {
    background: var(--text-primary);
    color: white;
}

[data-theme="light"] .btn-white:hover {
    background: var(--coral-primary);
}