/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100vw;
    position: relative;
}

/* --- CORTEX CONTAINER --- */
.cortex-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    perspective: 1000px;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- PAGE HEADER --- */
.page-header {
    width: 100%;
    padding: 60px 20px 40px;
    text-align: center;
    z-index: 1;
}

.page-title {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #4dd0e1 0%, #b19cd9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(77, 208, 225, 0.5),
                 0 0 80px rgba(177, 156, 217, 0.5);
    filter: drop-shadow(0 0 20px rgba(77, 208, 225, 0.8));
    letter-spacing: -0.02em;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1em;
    line-height: 1.8;
    color: #cccccc;
    text-shadow: 0 0 10px rgba(77, 208, 225, 0.3);
}

/* Browse All Projects Link */
.browse-all-link {
    display: none; /* Hidden on desktop */
    text-align: center;
    color: #4dd0e1;
    text-decoration: none;
    font-size: 0.9em;
    margin-top: 15px;
    padding: 10px 20px;
    border: 1px solid rgba(77, 208, 225, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.browse-all-link:hover {
    border-color: rgba(77, 208, 225, 0.6);
    background: rgba(77, 208, 225, 0.1);
    box-shadow: 0 0 15px rgba(77, 208, 225, 0.3);
}

/* Mobile Helper Text */
.mobile-helper-text {
    display: none; /* Hidden on desktop */
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #4dd0e1;
    font-size: 0.85em;
    text-align: center;
    text-shadow: 0 0 10px rgba(77, 208, 225, 0.6);
    opacity: 0;
    animation: fadeInOut 4s ease-in-out;
    pointer-events: none;
    white-space: nowrap;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Browse All Modal */
.browse-all-modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.browse-all-modal-body {
    background: rgba(10, 10, 10, 0.95);
    border-radius: 12px;
    padding: 30px;
}

.browse-all-section {
    margin-bottom: 30px;
}

.browse-all-section h3 {
    color: #4dd0e1;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(77, 208, 225, 0.5);
}

.browse-all-section.gradient h3 {
    background: linear-gradient(135deg, #4dd0e1 0%, #b19cd9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.browse-all-section.purple h3 {
    color: #b19cd9;
    text-shadow: 0 0 10px rgba(177, 156, 217, 0.5);
}

.browse-all-project-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.browse-all-project-item {
    margin-bottom: 12px;
}

.browse-all-project-link {
    display: block;
    padding: 12px 20px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(77, 208, 225, 0.3);
    border-radius: 6px;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1em;
}

.browse-all-project-link:hover {
    border-color: rgba(77, 208, 225, 0.6);
    background: rgba(77, 208, 225, 0.1);
    color: #4dd0e1;
    transform: translateX(5px);
}

.browse-all-section.gradient .browse-all-project-link {
    border-color: rgba(127, 182, 221, 0.3);
}

.browse-all-section.gradient .browse-all-project-link:hover {
    border-color: rgba(127, 182, 221, 0.6);
    background: rgba(127, 182, 221, 0.1);
    color: #7fb6dd;
}

.browse-all-section.purple .browse-all-project-link {
    border-color: rgba(177, 156, 217, 0.3);
}

.browse-all-section.purple .browse-all-project-link:hover {
    border-color: rgba(177, 156, 217, 0.6);
    background: rgba(177, 156, 217, 0.1);
    color: #b19cd9;
}

/* --- NAVIGATION DROPDOWNS --- */
.nav-dropdowns {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-dropdown {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

.dropdown-toggle {
    width: 100%;
    padding: 20px 25px;
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.dropdown-toggle span:first-child {
    font-size: 1.2em;
}

.dropdown-subtitle {
    font-size: 0.85em;
    font-weight: 400;
    opacity: 0.8;
}

.dropdown-arrow {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Left Hemisphere - Cyan */
.dropdown-left .dropdown-toggle {
    border-color: rgba(77, 208, 225, 0.5);
    box-shadow: 0 0 20px rgba(77, 208, 225, 0.3);
}

.dropdown-left .dropdown-toggle:hover {
    border-color: rgba(77, 208, 225, 0.8);
    box-shadow: 0 0 30px rgba(77, 208, 225, 0.6);
    background: rgba(10, 10, 10, 0.9);
}

.dropdown-left .dropdown-toggle span:first-child {
    color: #4dd0e1;
}

/* Center - Gradient */
.dropdown-center .dropdown-toggle {
    border-color: rgba(127, 182, 221, 0.5);
    box-shadow: 0 0 20px rgba(127, 182, 221, 0.3);
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.8) 100%);
}

.dropdown-center .dropdown-toggle:hover {
    border-color: rgba(127, 182, 221, 0.8);
    box-shadow: 0 0 30px rgba(127, 182, 221, 0.6);
}

.dropdown-center .dropdown-toggle span:first-child {
    background: linear-gradient(135deg, #4dd0e1 0%, #b19cd9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Right Hemisphere - Purple */
.dropdown-right .dropdown-toggle {
    border-color: rgba(177, 156, 217, 0.5);
    box-shadow: 0 0 20px rgba(177, 156, 217, 0.3);
}

.dropdown-right .dropdown-toggle:hover {
    border-color: rgba(177, 156, 217, 0.8);
    box-shadow: 0 0 30px rgba(177, 156, 217, 0.6);
    background: rgba(10, 10, 10, 0.9);
}

.dropdown-right .dropdown-toggle span:first-child {
    color: #b19cd9;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid;
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(10px);
    max-height: 400px;
    overflow-y: auto;
}

.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-left .dropdown-menu {
    border-color: rgba(77, 208, 225, 0.5);
    box-shadow: 0 0 20px rgba(77, 208, 225, 0.4);
}

.dropdown-center .dropdown-menu {
    border-color: rgba(127, 182, 221, 0.5);
    box-shadow: 0 0 20px rgba(127, 182, 221, 0.4);
}

.dropdown-right .dropdown-menu {
    border-color: rgba(177, 156, 217, 0.5);
    box-shadow: 0 0 20px rgba(177, 156, 217, 0.4);
}

.dropdown-item {
    display: block;
    padding: 12px 25px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 30px;
}

.dropdown-item.placeholder {
    color: #666;
    cursor: default;
}

.dropdown-item.placeholder:hover {
    background: transparent;
    padding-left: 25px;
}

.dropdown-left .dropdown-item:hover {
    color: #4dd0e1;
    text-shadow: 0 0 10px rgba(77, 208, 225, 0.6);
}

.dropdown-center .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(77, 208, 225, 0.1) 0%, rgba(177, 156, 217, 0.1) 100%);
    text-shadow: 0 0 10px rgba(127, 182, 221, 0.6);
}

.dropdown-right .dropdown-item:hover {
    color: #b19cd9;
    text-shadow: 0 0 10px rgba(177, 156, 217, 0.6);
}

/* --- BRAIN WRAPPER (3D Rotation Container) --- */
.brain-wrapper {
    position: relative;
    width: 900px;
    height: 900px;
    max-width: 95vw;
    max-height: 95vh;
    margin: 50px auto 0;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    cursor: grab;
    /* Ensure hotspots scale with wrapper */
    contain: layout style;
}

.brain-wrapper:active {
    cursor: grabbing;
}

/* --- BRAIN IMAGE --- */
.brain-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 40px rgba(77, 208, 225, 0.4));
    user-select: none;
    pointer-events: none;
    display: block;
}

/* --- HOTSPOT MARKERS --- */
.hotspot {
    position: absolute;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.2s ease;
    /* Use relative units for better scaling */
    min-width: 40px;
    min-height: 40px;
}

.hotspot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s infinite;
    top: 0;
    left: 0;
}

.hotspot-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 15px rgba(77, 208, 225, 0.8);
    z-index: 11;
}

.hotspot-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    z-index: 12;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

/* LEFT HEMISPHERE (Cyan - Business/Entrepreneur) */
.hotspot-left .hotspot-pulse {
    background: rgba(77, 208, 225, 0.4);
}

.hotspot-left .hotspot-core {
    background: #4dd0e1;
    box-shadow: 0 0 15px rgba(77, 208, 225, 0.8);
}

/* CENTER/CROSSOVER (Gradient cyan-to-purple) */
.hotspot-center .hotspot-pulse {
    background: linear-gradient(135deg, rgba(77, 208, 225, 0.4) 0%, rgba(177, 156, 217, 0.4) 100%);
}

.hotspot-center .hotspot-core {
    background: linear-gradient(135deg, #4dd0e1 0%, #b19cd9 100%);
    box-shadow: 0 0 15px rgba(127, 182, 221, 0.8);
}

/* RIGHT HEMISPHERE (Purple - Creative) */
.hotspot-right .hotspot-pulse {
    background: rgba(177, 156, 217, 0.4);
}

.hotspot-right .hotspot-core {
    background: #b19cd9;
    box-shadow: 0 0 15px rgba(177, 156, 217, 0.8);
}

.hotspot-tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid rgba(77, 208, 225, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hotspot:hover .hotspot-tooltip,
.hotspot.active .hotspot-tooltip {
    opacity: 1;
    pointer-events: auto; /* Allow clicks when tooltip is visible */
}

.hotspot.active .hotspot-tooltip {
    visibility: visible;
}

.tooltip-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.hotspot-tooltip span {
    line-height: 1;
}

.hotspot:hover .hotspot-tooltip {
    opacity: 1;
}

.hotspot:hover .hotspot-core {
    transform: translate(-50%, -50%) scale(1.3);
    transition: transform 0.2s ease;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* --- MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
    z-index: 1001;
}

.modal-close:hover {
    transform: rotate(90deg);
}

/* --- PROJECT CARD MODAL (Reusing old style) --- */
.project-card-modal {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-title-area {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.project-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.project-title {
    margin: 0;
    font-size: 1.8em;
    line-height: 1;
}

.project-description {
    color: #666;
    font-size: 1em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sub-links-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sub-link-button {
    display: block;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s, transform 0.2s;
}

.sub-link-button:hover {
    transform: translateY(-2px);
}

/* Project-specific modal styles */
.project-card-modal[data-project="neurorhythm"] {
    background-color: #261247;
    border: 2px solid #9bf3dd;
    color: #9bf3dd;
}

.project-card-modal[data-project="neurorhythm"] .project-description {
    color: #ffffff;
}

.project-card-modal[data-project="neurorhythm"] .sub-link-button {
    background-color: #9bf3dd;
    color: #261247;
}

.project-card-modal[data-project="neurorhythm"] .sub-link-button:hover {
    background-color: #6edfd4;
}

.project-card-modal[data-project="www"] {
    background-color: #000000;
    border: 2px solid #FFC107;
    color: #FFC107;
}

.project-card-modal[data-project="www"] .project-title {
    color: #FFC107;
}

.project-card-modal[data-project="www"] .project-description {
    color: #ffffff;
}

.project-card-modal[data-project="www"] .sub-link-button {
    background-color: #FFC107;
    color: #000000;
}

.project-card-modal[data-project="www"] .sub-link-button:hover {
    background-color: #ffda7a;
}

.project-card-modal[data-project="bestrong"] {
    background: linear-gradient(135deg, #5470fc 0%, #8b51fc 100%);
    border: 2px solid #8b51fc;
    color: #ffffff;
}

.project-card-modal[data-project="bestrong"] .project-title {
    color: #ffffff;
}

.project-card-modal[data-project="bestrong"] .project-description {
    color: #ffffff;
}

.project-card-modal[data-project="bestrong"] .sub-link-button {
    background-color: #8b51fc;
    color: #ffffff;
}

.project-card-modal[data-project="bestrong"] .sub-link-button:hover {
    background-color: #9c62fd;
}

.project-card-modal[data-project="aiwhisperer"] {
    background-color: #0a1628;
    border: 2px solid #00d9ff;
    color: #00d9ff;
}

.project-card-modal[data-project="aiwhisperer"] .project-title {
    color: #00d9ff;
}

.project-card-modal[data-project="aiwhisperer"] .project-description {
    color: #00d9ff;
}

.project-card-modal[data-project="aiwhisperer"] .sub-link-button {
    background-color: #00d9ff;
    color: #0a1628;
}

.project-card-modal[data-project="aiwhisperer"] .sub-link-button:hover {
    background-color: #33e0ff;
}

.project-card-modal[data-project="sensaitriad"] {
    background-color: #673fff;
    border: 2px solid #8b5cff;
    color: #ffffff;
}

.project-card-modal[data-project="sensaitriad"] .project-title {
    color: #ffffff;
}

.project-card-modal[data-project="sensaitriad"] .project-description {
    color: #ffffff;
}

.project-card-modal[data-project="sensaitriad"] .sub-link-button {
    background-color: #673fff;
    color: #ffffff;
}

.project-card-modal[data-project="sensaitriad"] .sub-link-button:hover {
    background-color: #7a52ff;
}

.project-card-modal[data-project="customconvo"] {
    background-color: #1a2332;
    border: 2px solid #b19cd9;
    color: #b19cd9;
}

.project-card-modal[data-project="customconvo"] .project-title {
    color: #b19cd9;
}

.project-card-modal[data-project="customconvo"] .project-description {
    color: #b19cd9;
}

.project-card-modal[data-project="customconvo"] .sub-link-button {
    background-color: #b19cd9;
    color: #1a2332;
}

.project-card-modal[data-project="customconvo"] .sub-link-button:hover {
    background-color: #c4b0e3;
}

.project-card-modal[data-project="coachcloud"] {
    background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 50%, #00d4ff 100%);
    border: 2px solid #00d4ff;
    color: #ffffff;
}

.project-card-modal[data-project="coachcloud"] .project-title {
    color: #ffffff;
}

.project-card-modal[data-project="coachcloud"] .project-description {
    color: #ffffff;
}

.project-card-modal[data-project="coachcloud"] .sub-link-button {
    background-color: #00d4ff;
    color: #1a2332;
}

.project-card-modal[data-project="coachcloud"] .sub-link-button:hover {
    background-color: #33dcff;
}

.project-card-modal[data-project="jdsrants"] {
    background-color: #1a1a1a;
    border: 2px solid #8B0000;
    color: #ffffff;
}

.project-card-modal[data-project="jdsrants"] .project-title {
    color: #ffffff;
}

.project-card-modal[data-project="jdsrants"] .project-description {
    color: #ffffff;
}

.project-card-modal[data-project="jdsrants"] .sub-link-button {
    background-color: #8B0000;
    color: #ffffff;
    font-weight: bold;
}

.project-card-modal[data-project="jdsrants"] .sub-link-button:hover {
    background-color: #A00000;
}

/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
    /* 1. Page Structure & Flow */
    .cortex-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        overflow-x: hidden;
    }
    
    /* 2. Header Section - Order 1 */
    .page-header {
        order: 1;
        width: 100%;
        padding: 30px 15px 30px;
        margin-bottom: 20px !important;
        position: relative !important;
        z-index: auto !important;
    }
    
    .page-title {
        font-size: 2em;
        margin-bottom: 20px;
        line-height: 1.2;
    }
    
    .intro-text {
        font-size: 0.95em;
        padding: 0 15px;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    /* Show Browse All Link on Mobile */
    .browse-all-link {
        display: block !important;
        margin-bottom: 20px;
    }
    
    /* Show Mobile Helper Text */
    .mobile-helper-text {
        display: block !important;
    }
    
    /* Hide dropdowns on mobile - use hotspots instead */
    .nav-dropdowns {
        display: none !important;
    }
    
    /* 2. Brain Section - Order 2 */
    .brain-wrapper {
        order: 2;
        position: relative !important;
        width: 85vw;
        height: 85vw;
        max-width: 400px;
        max-height: 400px;
        min-width: 300px !important;
        min-height: 300px !important;
        margin: 30px auto 20px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: perspective(1000px) rotateY(15deg) rotateX(-5deg) !important;
        transition: none !important; /* Disable transition on mobile for fixed transform */
        cursor: default; /* Disable grab cursor on mobile */
        background: rgba(10, 10, 10, 0.3); /* Fallback background if image doesn't load */
        overflow: hidden; /* Prevent hotspots from escaping */
    }
    
    .brain-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }
    
    /* Show hotspots on mobile with larger touch targets */
    .brain-wrapper .hotspot {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: all !important;
        position: absolute !important;
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        /* Larger hit area for easier tapping */
    }
    
    .brain-wrapper .hotspot-pulse {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .brain-wrapper .hotspot-core {
        width: 24px !important;
        height: 24px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .brain-wrapper .hotspot-number {
        font-size: 14px !important;
        font-weight: bold !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Tooltips on mobile - show on tap */
    .brain-wrapper .hotspot-tooltip {
        position: absolute !important;
        top: -55px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: rgba(0, 0, 0, 0.95) !important;
        color: #fff !important;
        padding: 8px 12px !important;
        border-radius: 6px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        border: 1px solid rgba(77, 208, 225, 0.5) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7) !important;
        z-index: 1000 !important;
        pointer-events: none !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    
    .brain-wrapper .hotspot.active .hotspot-tooltip {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    /* Mobile Helper Text Positioning */
    .mobile-helper-text {
        bottom: -35px !important;
    }
    
    /* Adjust hotspot positioning for mobile to improve tap accuracy */
    /* Left hemisphere hotspots (1-5) - align vertically on the left edge */
    .hotspot[data-project="neurorhythm"] {
        left: 25% !important;
        top: 28% !important;
    }
    
    .hotspot[data-project="customconvo"] {
        left: 25% !important;
        top: 38% !important;
    }
    
    .hotspot[data-project="coachcloud"] {
        left: 25% !important;
        top: 52% !important;
    }
    
    .hotspot[data-project="aiwhisperer"] {
        left: 25% !important;
        top: 66% !important;
    }
    
    .hotspot[data-project="bestrong"] {
        left: 25% !important;
        top: 80% !important;
    }
    
    /* Center hotspots (6-10) - keep as is down the middle at 50% */
    /* These are already positioned correctly, no changes needed */
    
    /* Right hemisphere hotspots (11-15) - align vertically on the right edge */
    .hotspot[data-project="doyoudare"] {
        left: 75% !important;
        top: 28% !important;
    }
    
    /* Target hotspots 12-15 by their inline style positions and override */
    /* Since they don't have data-project attributes, we'll use attribute selectors on their inline styles */
    /* Hotspot 12 - has style="left: 72%; top: 38%;" */
    .hotspot-right[style*="left: 72%"] {
        left: 75% !important;
        top: 38% !important;
    }
    
    /* Hotspot 13 - has style="left: 62%; top: 52%;" */
    .hotspot-right[style*="left: 62%"] {
        left: 75% !important;
        top: 52% !important;
    }
    
    /* Hotspot 14 - has style="left: 74%; top: 66%;" */
    .hotspot-right[style*="left: 74%"] {
        left: 75% !important;
        top: 66% !important;
    }
    
    /* Hotspot 15 - has style="left: 64%; top: 80%;" */
    .hotspot-right[style*="left: 64%"] {
        left: 75% !important;
        top: 80% !important;
    }
    
    /* 4. Follow Section - Order 3 */
    .follow-section {
        order: 3;
        width: 100%;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
        padding: 30px 15px 20px;
        position: relative !important;
        clear: both;
        z-index: auto !important;
    }
    
    /* Featured Writing Section - Order 4 */
    .featured-writing-section {
        order: 4;
        width: 100%;
        padding: 30px 15px;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
        position: relative !important;
        z-index: auto !important;
    }
    
    /* Socials Section - Order 5 */
    .socials-section {
        order: 5;
        width: 100%;
        margin-top: 20px !important;
        padding: 30px 15px;
        position: relative !important;
        z-index: auto !important;
    }
    
    /* Modal Styles */
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .project-card-modal {
        padding: 20px;
    }
}

/* --- FIXED NEURAL LINE FROM BRAIN TO TITLE --- */
.fixed-neural-line {
    position: absolute;
    left: 50%;
    top: 0; /* Will be positioned by JavaScript */
    width: 4px;
    height: 50px; /* Distance to title - reduced spacing */
    background: linear-gradient(to bottom, 
        rgba(77, 208, 225, 1) 0%,
        rgba(77, 208, 225, 0.9) 100%);
    box-shadow: 0 0 20px rgba(77, 208, 225, 1),
                0 0 40px rgba(77, 208, 225, 0.8);
    transform: translateX(-50%);
    z-index: 4;
    pointer-events: none;
}

/* --- FOLLOW JD'S WRITING SECTION --- */
.follow-section {
    position: relative;
    width: 100%;
    padding: 60px 20px 40px;
    text-align: center;
    margin-top: 50px; /* Reduced spacing - closer to brain */
    z-index: 5;
}

.follow-title {
    color: #4dd0e1;
    font-size: 2em;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(77, 208, 225, 0.5);
    font-weight: 600;
}

.neural-links-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: auto;
    padding-top: 20px; /* Reduced padding - line starts closer to brain */
    padding-bottom: 0;
}

.neural-links-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.neural-links-svg line {
    stroke: rgba(77, 208, 225, 0.3);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 3px rgba(77, 208, 225, 0.5));
    animation: neuralPulse 3s ease-in-out infinite;
}

@keyframes neuralPulse {
    0%, 100% {
        opacity: 0.3;
        stroke-width: 1.5;
    }
    50% {
        opacity: 0.6;
        stroke-width: 2;
    }
}

/* Writing Platforms */
.writing-platforms {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 25px;
    z-index: 2;
    padding-top: 20px;
    padding-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.writing-platforms::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.writing-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #4dd0e1;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.platform-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(77, 208, 225, 0.6));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.platform-label {
    font-size: 0.85em;
    color: #4dd0e1;
    text-shadow: 0 0 5px rgba(77, 208, 225, 0.5);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.writing-platform:hover {
    transform: translateY(-5px);
}

.writing-platform:hover .platform-icon {
    filter: drop-shadow(0 0 15px rgba(77, 208, 225, 1));
    transform: scale(1.1);
}

.writing-platform:hover .platform-label {
    color: #6edfd4;
    text-shadow: 0 0 10px rgba(77, 208, 225, 0.8);
}

/* JD's Socials Section */
.socials-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(77, 208, 225, 0.2);
}

.socials-title {
    color: #4dd0e1;
    font-size: 2em;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(77, 208, 225, 0.5);
    font-weight: 600;
}

.social-icons {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    z-index: 2;
}

.social-icon {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.social-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(77, 208, 225, 0.6));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
}

.social-icon:hover .social-icon-img {
    filter: drop-shadow(0 0 15px rgba(77, 208, 225, 1));
    transform: scale(1.1);
}

/* --- FEATURED WRITING SECTION --- */
.featured-writing-section {
    width: 100%;
    padding: 20px 20px 40px;
    margin-top: 0;
    text-align: center;
}

.featured-title {
    color: #4dd0e1;
    font-size: 2em;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(77, 208, 225, 0.5);
    font-weight: 600;
}

.featured-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid rgba(77, 208, 225, 0.3);
    border-radius: 12px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(77, 208, 225, 0.05) 0%, rgba(177, 156, 217, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.featured-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(77, 208, 225, 0.6);
    box-shadow: 0 10px 40px rgba(77, 208, 225, 0.4),
                0 0 30px rgba(177, 156, 217, 0.2);
}

.featured-card:hover::before {
    opacity: 1;
}

.card-platform-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.85em;
    color: #4dd0e1;
}

.badge-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(77, 208, 225, 0.6));
}

.badge-label {
    font-weight: 500;
    text-shadow: 0 0 5px rgba(77, 208, 225, 0.5);
}

.card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #4dd0e1 0%, #b19cd9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    line-height: 1.3;
}

.card-excerpt {
    color: #cccccc;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.card-read-more {
    background: linear-gradient(135deg, rgba(77, 208, 225, 0.2) 0%, rgba(177, 156, 217, 0.2) 100%);
    border: 1px solid rgba(77, 208, 225, 0.5);
    color: #4dd0e1;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(77, 208, 225, 0.5);
}

.card-read-more:hover {
    background: linear-gradient(135deg, rgba(77, 208, 225, 0.3) 0%, rgba(177, 156, 217, 0.3) 100%);
    border-color: rgba(77, 208, 225, 0.8);
    box-shadow: 0 0 15px rgba(77, 208, 225, 0.5);
    transform: translateY(-2px);
}

/* --- WRITING MODAL STYLES --- */
.writing-modal-content {
    max-width: 1000px;
    width: 90vw;
    max-height: 85vh;
}

.writing-modal-body {
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid rgba(77, 208, 225, 0.5);
    border-radius: 12px;
    padding: 30px;
    max-height: calc(85vh - 100px);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
                0 0 40px rgba(77, 208, 225, 0.3);
}

.writing-modal-body iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    background: #ffffff;
}

.writing-modal-body .substack-post-embed {
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.writing-modal-body .substack-post-embed a {
    color: #4dd0e1;
    text-decoration: none;
    border-bottom: 1px solid rgba(77, 208, 225, 0.5);
    transition: all 0.2s ease;
}

.writing-modal-body .substack-post-embed a:hover {
    color: #6edfd4;
    border-bottom-color: rgba(77, 208, 225, 0.8);
}

/* --- CAROUSEL MODAL STYLES --- */
.carousel-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.carousel-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.carousel-modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.carousel-modal-overlay.active .carousel-modal-content {
    transform: scale(1);
}

.carousel-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 1001;
}

.carousel-modal-close:hover {
    transform: rotate(90deg);
    color: #b19cd9;
}

.carousel-modal-body {
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid rgba(177, 156, 217, 0.5);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(177, 156, 217, 0.3);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.carousel-title {
    color: #b19cd9;
    font-size: 2.5em;
    margin: 0;
    text-align: center;
    text-shadow: 0 0 20px rgba(177, 156, 217, 0.6);
    font-weight: 700;
}

.carousel-subtitle {
    color: #d4a5ff;
    font-size: 1.3em;
    margin: -10px 0 0 0;
    text-align: center;
    font-weight: 400;
    opacity: 0.9;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.carousel-slide:hover {
    transform: scale(1.02);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.carousel-slide video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(177, 156, 217, 0.2);
    border: 2px solid rgba(177, 156, 217, 0.5);
    color: #b19cd9;
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-arrow:hover {
    background: rgba(177, 156, 217, 0.4);
    border-color: rgba(177, 156, 217, 0.8);
    color: #d4a5ff;
    box-shadow: 0 0 20px rgba(177, 156, 217, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(177, 156, 217, 0.3);
    border: 1px solid rgba(177, 156, 217, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #b19cd9;
    border-color: #d4a5ff;
    box-shadow: 0 0 10px rgba(177, 156, 217, 0.8);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(177, 156, 217, 0.6);
    transform: scale(1.1);
}

.carousel-description {
    color: #d4a5ff;
    text-align: center;
    font-size: 1.1em;
    margin: 0;
    line-height: 1.6;
}

.carousel-cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #b19cd9 0%, #d4a5ff 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(177, 156, 217, 0.4);
    align-self: center;
}

.carousel-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(177, 156, 217, 0.6);
    background: linear-gradient(135deg, #d4a5ff 0%, #b19cd9 100%);
}

/* Zoom Button for Review Images */
/* Story Carousel Specific Styles */
.story-carousel-container {
    min-height: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.story-slide {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
}

.story-slide:hover {
    transform: scale(1.01);
}

.story-slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 0;
}

.story-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* Mobile adjustments for story carousel */
@media (max-width: 768px) {
    .story-carousel-container {
        min-height: 400px;
        max-height: 70vh;
    }
    
    .story-slide-content {
        padding: 5px;
    }
    
    .story-cover,
    .story-review {
        max-width: 100%;
    }
}

/* Zoom Button for Review Images - positioned relative to carousel-slide */
.zoom-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(177, 156, 217, 0.9);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.zoom-button:hover {
    background: rgba(177, 156, 217, 1);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(177, 156, 217, 0.6);
}

.zoom-button:active {
    transform: scale(0.95);
}

/* Zoom Overlay */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.zoom-overlay.active {
    display: flex;
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(177, 156, 217, 0.9);
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.zoom-close:hover {
    background: rgba(177, 156, 217, 1);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(177, 156, 217, 0.6);
}

.zoomed-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    user-select: none;
    -webkit-user-drag: none;
}

/* Enable pinch-to-zoom on mobile for zoomed image */
@media (max-width: 768px) {
    .zoomed-image {
        touch-action: pan-x pan-y pinch-zoom;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .zoom-button {
        padding: 12px 18px;
        font-size: 16px;
    }
    
    .zoom-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 35px;
    }
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #4dd0e1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(77, 208, 225, 0.2);
    border-top-color: #4dd0e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-indicator p {
    color: #4dd0e1;
    text-shadow: 0 0 10px rgba(77, 208, 225, 0.5);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-indicator.hidden {
    display: none;
}

/* Additional Mobile Styles - Consolidated */
@media (max-width: 768px) {
    /* Follow Section - Already ordered in main mobile section */
    .follow-title {
        font-size: 1.5em;
        margin-bottom: 25px;
        padding: 0 15px;
    }
    
    .neural-links-container {
        min-height: 120px;
        padding-top: 15px;
        padding-bottom: 0;
    }
    
    /* Writing Platforms */
    .writing-platforms {
        gap: 12px;
        padding: 20px 15px 15px;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .platform-icon {
        width: 35px;
        height: 35px;
    }
    
    .platform-label {
        font-size: 0.7em;
    }
    
    /* Featured Writing Section - Already ordered in main mobile section */
    .featured-title {
        font-size: 1.5em;
        margin-bottom: 25px;
        padding: 0 15px;
    }
    
    .featured-cards {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 0 15px;
    }
    
    .featured-card {
        width: 100%;
        max-width: 100%;
        padding: 25px 20px;
    }
    
    .card-title {
        font-size: 1.3em;
        margin-bottom: 12px;
    }
    
    .card-excerpt {
        font-size: 0.95em;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    /* Social Icons - Already ordered in main mobile section */
    .socials-title {
        font-size: 1.5em;
        margin-bottom: 25px;
    }
    
    .social-icons {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        padding: 0 15px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }
    
    /* Fixed Neural Line */
    .fixed-neural-line {
        display: none; /* Hide on mobile for cleaner layout */
    }
    
    /* Modals */
    .writing-modal-content {
        width: 95vw;
        max-height: 90vh;
    }
    
    .writing-modal-body {
        padding: 20px 15px;
    }
    
    .writing-modal-body iframe {
        height: 500px;
    }
    
    /* Carousel Modal Mobile Styles */
    .carousel-modal-content {
        width: 95vw;
        max-height: 90vh;
    }
    
    .carousel-modal-body {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .carousel-title {
        font-size: 1.6em;
    }
    
    .carousel-subtitle {
        font-size: 1em;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .carousel-arrow.prev {
        left: 5px;
    }
    
    .carousel-arrow.next {
        right: 5px;
    }
    
    .carousel-cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
}

/* Extra Small Mobile (iPhone size) */
@media (max-width: 375px) {
    .page-title {
        font-size: 1.8em;
    }
    
    .intro-text {
        font-size: 0.9em;
        padding: 0 10px;
    }
    
    .nav-dropdowns {
        padding: 0 10px;
    }
    
    .brain-wrapper {
        width: 95vw;
        height: 95vw;
        max-width: 350px;
        max-height: 350px;
        margin: 20px auto;
    }
    
    .follow-section {
        padding: 25px 10px 15px;
    }
    
    .featured-writing-section {
        padding: 25px 10px;
    }
    
    .featured-cards {
        padding: 0 10px;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .writing-platforms {
        gap: 10px;
        padding: 15px 10px;
    }
    
    .platform-icon {
        width: 30px;
        height: 30px;
    }
    
    .platform-label {
        font-size: 0.65em;
    }
}

