/* ================================================
   DARK NINTENDO POWER DESIGN SYSTEM
   Inverted 90s Gaming Magazine Aesthetic
   Dark Backgrounds + Vibrant Neon Text
   ================================================ */

/* ============================================
   CSS VARIABLES - Dark Nintendo Power Theme
   ============================================ */
:root {
    /* Dark Backgrounds */
    --bg-primary: #0A0A0A;          /* Near black */
    --bg-secondary: #1A1A1A;        /* Dark gray */
    --bg-card: #151515;             /* Card background */
    --bg-elevated: #202020;         /* Elevated elements */

    /* Vibrant Nintendo Power Neon Colors */
    --np-red: #FF0033;              /* Neon red */
    --np-blue: #00D4FF;             /* Neon blue/cyan */
    --np-yellow: #FFEE00;           /* Neon yellow */
    --np-green: #00FF66;            /* Neon green */
    --np-purple: #AA44FF;           /* Neon purple */
    --np-orange: #FF6600;           /* Neon orange */
    --np-pink: #FF00AA;             /* Neon pink */
    --np-cyan: #00FFFF;             /* Bright cyan */

    /* Text Colors - Vibrant on Dark */
    --text-primary: #FFFFFF;        /* Pure white */
    --text-secondary: #CCCCCC;      /* Light gray */
    --text-tertiary: #999999;       /* Medium gray */
    --text-neon: var(--np-cyan);    /* Neon accent text */

    /* Accent Colors */
    --accent: var(--np-red);
    --accent-light: var(--np-yellow);
    --accent-hover: var(--np-pink);

    /* Dark Box Backgrounds with Color Accents */
    --box-red: rgba(255, 0, 51, 0.15);      /* Dark red tint */
    --box-blue: rgba(0, 212, 255, 0.15);    /* Dark blue tint */
    --box-yellow: rgba(255, 238, 0, 0.15);  /* Dark yellow tint */
    --box-green: rgba(0, 255, 102, 0.15);   /* Dark green tint */
    --box-purple: rgba(170, 68, 255, 0.15); /* Dark purple tint */

    /* Functional Colors */
    --border-color: var(--np-cyan);
    --border-thick: 3px;
    --border-focus: var(--np-yellow);
    --shadow-color: rgba(0, 212, 255, 0.3); /* Cyan glow */
    --shadow-neon: 0 0 20px var(--shadow-color);

    /* Typography - Bold 90s Gaming Fonts */
    --font-display: 'Orbitron', 'Arial Black', sans-serif;
    --font-body: 'Nunito', 'Arial', sans-serif;
    --font-pixel: 'Press Start 2P', monospace;
    --font-accessible: 'Atkinson Hyperlegible', 'Arial', sans-serif;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   DYSLEXIA-FRIENDLY MODE
   Uses Atkinson Hyperlegible for improved readability
   ============================================ */
body.dyslexia-mode {
    --font-body: var(--font-accessible);
    --font-display: var(--font-accessible);
    font-family: var(--font-accessible);
    letter-spacing: 0.03em;
    word-spacing: 0.1em;
    line-height: 1.8;
}

body.dyslexia-mode h1,
body.dyslexia-mode h2,
body.dyslexia-mode h3,
body.dyslexia-mode h4,
body.dyslexia-mode h5,
body.dyslexia-mode h6,
body.dyslexia-mode .hero-title,
body.dyslexia-mode .hero-subtitle,
body.dyslexia-mode .np-sidebar-title,
body.dyslexia-mode .np-card-compact-title,
body.dyslexia-mode .condensed-title,
body.dyslexia-mode .curriculum-title,
body.dyslexia-mode .curriculum-card-title {
    font-family: var(--font-accessible) !important;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.dyslexia-mode p,
body.dyslexia-mode span,
body.dyslexia-mode div,
body.dyslexia-mode li,
body.dyslexia-mode a {
    font-family: var(--font-accessible);
}

/* Improved contrast for dyslexia mode */
body.dyslexia-mode .intro-text-block p,
body.dyslexia-mode .paragraph-text,
body.dyslexia-mode .curriculum-summary p {
    font-size: 1.1rem;
    line-height: 1.9;
}

/* Global scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-left: 2px solid var(--np-cyan);
}

::-webkit-scrollbar-thumb {
    background: var(--np-cyan);
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--np-yellow);
    box-shadow: 0 0 10px rgba(255, 238, 0, 0.5);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--np-cyan) var(--bg-primary);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    min-height: 44px;
    min-width: 44px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.theme-toggle:focus-visible {
    outline: 3px solid var(--border-focus);
    outline-offset: 3px;
}

.theme-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.theme-label {
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        padding: 0.625rem 1rem;
    }

    .theme-label {
        display: none;
    }
}

/* ============================================
   TYPOGRAPHY - Neon Nintendo Power Style
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Hero Subtitle (appears FIRST on home page) */
.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.25rem);
    color: var(--np-cyan);
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

/* Hero Title (Home page) - Vibrant Neon with reduced glow */
.hero-title {
    font-size: clamp(3rem, 12vw, 7rem);
    color: var(--np-yellow);
    margin-bottom: 1.5rem;
    text-shadow:
        0 0 5px rgba(255, 238, 0, 0.6),
        0 0 15px rgba(255, 238, 0, 0.3),
        3px 3px 0px rgba(255, 0, 51, 0.4);
    animation: fadeInUp 0.8s ease-out;
    font-weight: 900;
    letter-spacing: 0.02em;
}

/* Page Title (Listing pages) */
.page-title {
    font-size: clamp(3rem, 10vw, 5.5rem);
    color: var(--np-red);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow:
        0 0 5px rgba(230, 0, 18, 0.5),
        3px 3px 0px rgba(255, 238, 0, 0.3);
    font-weight: 900;
}

.page-subtitle {
    font-size: clamp(1.125rem, 3vw, 2rem);
    color: var(--np-blue);
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

/* Story Title (Project detail pages) */
.story-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--np-yellow);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow:
        0 0 5px rgba(255, 238, 0, 0.6),
        3px 3px 0px rgba(255, 0, 51, 0.3);
    font-weight: 900;
}

.story-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.75rem);
    color: var(--np-cyan);
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.story-header {
    background: var(--box-red);
    padding: 2rem;
    border-radius: 0;
    margin-bottom: 2rem;
    border: 3px solid var(--np-red);
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.5);
}

/* ============================================
   TEXT EFFECTS - Neon Glow
   ============================================ */
.emphasis {
    font-style: italic;
    color: var(--np-pink);
    font-weight: 700;
    text-shadow: 0 0 3px rgba(255, 0, 170, 0.4);
}

.glow-green {
    color: var(--np-green);
    text-shadow:
        0 0 4px rgba(0, 255, 102, 0.5);
}

.text-center {
    text-align: center;
}

/* Intro text styling */
.intro-text {
    text-align: left;
}

.intro-text p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    text-align: left;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    min-height: 100vh;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-left: 200px;
    padding: 2rem;
    position: relative;
}

.listing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

/* ============================================
   BACKDROP SYSTEM
   ============================================ */
.backdrop-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.backdrop {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    transition: opacity 0.5s ease-in-out;
}

[data-theme="light"] .backdrop {
    opacity: 0.08;
}

/* ============================================
   BACK LINK BUTTON
   ============================================ */
.back-link-container {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.back-link:hover {
    color: var(--accent);
    background: var(--bg-secondary);
}

.back-link:focus-visible {
    outline: 3px solid var(--border-focus);
    outline-offset: 3px;
}

.back-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-4px);
}

/* ============================================
   VIEW TOGGLE (Summary/Story)
   ============================================ */
.view-toggle-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.view-toggle {
    padding: 0.875rem 2rem;
    min-height: 44px;
    min-width: 44px;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
    background-color: transparent;
    color: var(--np-cyan);
    border: 3px solid var(--np-cyan);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 900;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    text-shadow: 0 0 10px var(--np-cyan);
}

.view-toggle:hover {
    color: var(--np-pink);
    border-color: var(--np-pink);
    box-shadow: 0 0 25px rgba(255, 0, 170, 0.5);
    text-shadow: 0 0 10px var(--np-pink);
}

.view-toggle:focus-visible {
    outline: 3px solid var(--np-yellow);
    outline-offset: 4px;
}

.view-toggle.active {
    background-color: var(--np-yellow);
    color: var(--bg-primary);
    border-color: var(--np-yellow);
    font-weight: 900;
    box-shadow:
        0 0 30px rgba(255, 238, 0, 0.7),
        0 0 50px rgba(255, 238, 0, 0.4);
    text-shadow: none;
}

/* ============================================
   CONTENT PARAGRAPHS
   ============================================ */
.story-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.content-paragraph {
    margin-bottom: 2rem;
}

.paragraph-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Summary view - more compact */
.summary-view .content-paragraph {
    margin-bottom: 1.5rem;
}

/* Story view - more spacious */
.story-view .content-paragraph {
    margin-bottom: 2.5rem;
}

/* ============================================
   IMAGE HANDLING
   ============================================ */
.paragraph-image-container {
    margin: 2rem 0;
    text-align: center;
}

.paragraph-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.paragraph-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.paragraph-image:focus-visible {
    outline: 3px solid var(--border-focus);
    outline-offset: 4px;
}

.image-caption {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    font-style: italic;
}

/* ============================================
   VIDEO CONTAINER
   ============================================ */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 3rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   CATEGORY/PROJECT CARDS - Dark Neon Style
   ============================================ */
.category-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    display: block;
    text-decoration: none;
    background-color: var(--bg-card);
    border: 3px solid var(--np-cyan);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 0, 51, 0.1),
        rgba(0, 212, 255, 0.1),
        rgba(170, 68, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.category-card:hover {
    border-color: var(--np-pink);
    box-shadow:
        0 0 30px rgba(255, 0, 170, 0.6),
        0 0 50px rgba(255, 0, 170, 0.3);
    transform: translateY(-4px);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:focus-visible {
    outline: 3px solid var(--np-yellow);
    outline-offset: 4px;
}

.card-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    border-bottom: 3px solid var(--np-cyan);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: saturate(1.4) contrast(1.2) brightness(0.9);
}

.category-card:hover .card-image {
    transform: scale(1.08);
    filter: saturate(1.6) contrast(1.3) brightness(1);
}

.card-content {
    padding: 1.25rem;
    background: var(--bg-card);
}

.card-title {
    font-size: 1.4rem;
    color: var(--np-yellow);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-shadow: 0 0 4px rgba(255, 238, 0, 0.4);
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-family: var(--font-body);
    font-weight: 600;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease-out;
    isolation: isolate;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    min-height: 44px;
    min-width: 44px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0.5rem;
}

.lightbox-close:hover {
    color: var(--accent-light);
}

.lightbox-close:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 4px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    min-height: 44px;
    min-width: 44px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid transparent;
    color: #FFFFFF;
    font-size: 2.5rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    line-height: 1;
}

.lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: var(--accent-light);
}

.lightbox-nav:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 4px;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-main-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Notecard - Sketchbook Journal Style */
.sticky-note {
    position: relative;
    width: 300px;
    min-height: 220px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fefefe;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-radius: 3px;
    border: 1px solid #d0d0d0;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08);
    transform: rotate(1.5deg);
    transition: all 0.3s ease;
}

/* Lined paper effect */
.sticky-note::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        transparent 0px,
        transparent 27px,
        #c5d8e8 27px,
        #c5d8e8 28px
    );
    pointer-events: none;
    border-radius: 0 0 3px 3px;
}

/* Red margin line */
.sticky-note::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    width: 1px;
    background: rgba(220, 100, 100, 0.4);
    pointer-events: none;
}

.sticky-note:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.1);
}

.sticky-note-date {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a4a7a;
    margin-bottom: 0.5rem;
    text-align: right;
    position: relative;
    z-index: 1;
}

.sticky-note-text {
    font-family: 'Caveat', cursive;
    font-size: 1.35rem;
    line-height: 1.95;
    color: #1a3d6e;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Scribbled out text - crossed out with messy line */
.sticky-note-text .scribble {
    text-decoration: line-through;
    text-decoration-color: #1a3d6e;
    text-decoration-thickness: 2px;
    opacity: 0.5;
    margin-right: 0.3rem;
}

/* Rewritten/replacement text - slightly emphasized */
.sticky-note-text .rewrite {
    color: #2255a4;
    font-weight: 600;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 1024px) {
    .lightbox-main-container {
        flex-direction: column;
        align-items: center;
    }

    .sticky-note {
        width: 90%;
        max-width: 400px;
        transform: rotate(-1deg);
    }
}

.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #FFFFFF;
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
    font-size: 1.125rem;
    font-family: var(--font-body);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-content:hover .lightbox-caption {
    opacity: 1;
}

/* Lightbox Action Buttons */
.lightbox-actions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 100;
}

.lightbox-action-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    border: 2px solid;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lightbox-action-button .button-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px currentColor);
}

.itch-button {
    background: rgba(250, 92, 92, 0.9);
    border-color: #fa5c5c;
    color: #FFFFFF;
}

.itch-button:hover {
    background: #fa5c5c;
    border-color: #ff7070;
    box-shadow: 0 0 20px rgba(250, 92, 92, 0.8);
    transform: scale(1.05);
}

.youtube-button {
    background: rgba(255, 0, 0, 0.9);
    border-color: #ff0000;
    color: #FFFFFF;
}

.youtube-button:hover {
    background: #ff0000;
    border-color: #ff3333;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    transform: scale(1.05);
}

.lightbox-counter {
    position: absolute;
    top: -50px;
    left: 0;
    color: #FFFFFF;
    font-size: 1rem;
    font-family: var(--font-display);
}

/* ============================================
   INTRO TEXT
   ============================================ */
.intro-text {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.intro-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ============================================
   HEADER SECTIONS
   ============================================ */
.hero-header,
.page-header,
.story-header {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */
.loading,
.error {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-primary);
}

.error h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.error a {
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-display);
    letter-spacing: 0.1em;
}

.error a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.error a:focus-visible {
    outline: 3px solid var(--border-focus);
    outline-offset: 3px;
}

/* ============================================
   SIDE NAVIGATION
   ============================================ */
.side-nav {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-link-side {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.875rem 1.125rem;
    min-height: 44px;
    min-width: 44px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.nav-link-side:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateX(5px);
    background: var(--bg-secondary);
}

.nav-link-side:focus-visible {
    outline: 3px solid var(--border-focus);
    outline-offset: 3px;
}

.nav-link-side.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--bg-secondary);
    font-weight: 600;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    transition: all 0.3s ease;
    scroll-margin-top: 6rem;
}

.content-section:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.section-subtitle {
    color: var(--text-tertiary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.section-content-scrollable {
    max-height: 500px;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: inset 0 2px 8px var(--shadow-color);
}

.section-content-scrollable p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.section-content-scrollable p:last-child {
    margin-bottom: 0;
}

/* Custom Scrollbar */
.section-content-scrollable::-webkit-scrollbar {
    width: 10px;
}

.section-content-scrollable::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 5px;
}

.section-content-scrollable::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.section-content-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Firefox scrollbar */
.section-content-scrollable {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-primary);
}

/* ============================================
   COLLAPSIBLE SECTIONS
   ============================================ */
.collapsible-section {
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    min-height: 44px;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.section-header:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.section-header:focus-visible {
    outline: 3px solid var(--border-focus);
    outline-offset: 3px;
}

.section-header.expanded {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
    user-select: none;
}

.toggle-icon.expanded {
    transform: rotate(180deg);
}

.section-body {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 0 2rem 1.5rem 2rem;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.section-body.expanded {
    max-height: 600px;
    padding: 1rem 2rem 1.5rem 2rem;
}

.projects-grid-container {
    /* No max-height for projects - show all cards */
}

/* ============================================
   GAME ARTIFACTS GALLERY
   ============================================ */
.artifacts-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.artifact-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.artifact-item:hover {
    transform: translateY(-4px);
}

.artifact-item:focus-visible {
    outline: 3px solid var(--border-focus);
    outline-offset: 4px;
}

.artifact-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.artifact-item:hover .artifact-thumbnail {
    border-color: var(--accent);
}

.artifact-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artifact-item:hover .artifact-thumbnail img {
    transform: scale(1.05);
}

.artifact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.artifact-item:hover .artifact-overlay {
    opacity: 1;
}

.view-icon {
    font-size: 2rem;
    color: #FFFFFF;
}

.artifact-title {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

/* Artifact Lightbox */
.artifact-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.artifact-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artifact-display {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    width: 100%;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 2.5rem;
    max-height: 85vh;
}

.artifact-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.artifact-image-container img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.artifact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    max-height: 70vh;
    padding-right: 1rem;
}

.artifact-lightbox-title {
    font-size: 2rem;
    color: var(--accent);
    font-family: var(--font-display);
    margin: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.artifact-description {
    color: var(--text-primary);
    font-size: 1.125rem;
    line-height: 1.8;
    font-family: var(--font-body);
}

.artifact-close {
    position: absolute;
    top: -50px;
    right: 0;
    min-height: 44px;
    min-width: 44px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0.5rem;
}

.artifact-close:hover {
    color: var(--accent-light);
}

.artifact-close:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 4px;
}

.artifact-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    min-height: 44px;
    min-width: 44px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid transparent;
    color: #FFFFFF;
    font-size: 2.5rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    line-height: 1;
}

.artifact-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: var(--accent-light);
}

.artifact-nav:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 4px;
}

.artifact-prev {
    left: 0;
}

.artifact-next {
    right: 0;
}

.artifact-counter {
    position: absolute;
    top: -50px;
    left: 0;
    color: #FFFFFF;
    font-size: 1rem;
    font-family: var(--font-display);
}

/* ============================================
   HOME PAGE LAYOUT
   ============================================ */
.home-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.home-hero-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-hero-text .hero-title {
    text-align: left;
    margin-bottom: 0;
}

.home-hero-text .hero-subtitle {
    text-align: left;
    margin-bottom: 0;
}

.home-portrait {
    width: 300px;
    height: 300px;
    border-radius: 16px;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 8px 32px var(--shadow-color);
}

/* ============================================
   FULL-SCREEN CENTERED LAYOUT
   ============================================ */
.np-fullscreen-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-bottom: 5rem;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Ceramics backdrop positioned behind all content */
.ceramics-backdrop {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 60%;
    max-width: 700px;
    z-index: 1;
    opacity: 0.6;
}

.ceramics-backdrop .ceramics-image {
    width: 100%;
    height: auto;
    display: block;
    mask-image: radial-gradient(ellipse 80% 80% at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 40%, transparent 100%);
}

.np-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1400px;
    width: 100%;
    position: relative;
}

/* Main Content Area */
.np-main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

/* Subtitle with bold black background */
.hero-subtitle-box {
    background: rgba(0, 0, 0, 0.85);
    padding: 0.5rem 1.25rem;
    display: inline-block;
    align-self: flex-start;
}

.hero-subtitle-box .hero-subtitle {
    margin: 0;
}

/* Title with bold black background */
.hero-title-box {
    background: rgba(0, 0, 0, 0.85);
    padding: 0.75rem 1.25rem;
    display: inline-block;
    align-self: flex-start;
    margin-top: -0.5rem;
}

.hero-title-box .hero-title {
    margin: 0;
    white-space: nowrap;
}

/* N64 Ceramics Banner Image */
/* Old ceramics banner style - now using ceramics-backdrop */

/* Intro text blocks with overlapping black backgrounds */
.intro-text-blocks {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.intro-text-block {
    background: rgba(0, 0, 0, 0.85);
    padding: 0.75rem 1.25rem;
    margin-bottom: -0.5rem;
}

.intro-text-block:first-child {
    margin-top: 0;
}

.intro-text-block p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Right Sidebar */
.np-sidebar {
    position: relative;
}

/* Bottom Left Navigation - Filled Background Tabs */
.np-nav-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.np-nav-tab {
    padding: 0.875rem 1.25rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 3px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: none;
    letter-spacing: 0.05em;
}

.np-nav-tab:hover {
    transform: translateY(-4px);
    filter: brightness(1.2);
}

/* Services tab - Orange background */
.np-nav-tab-services {
    background: var(--np-orange);
    color: var(--bg-primary);
    border-color: var(--np-orange);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.5);
}

.np-nav-tab-services:hover {
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.8);
}

.np-nav-tab-services.active {
    box-shadow:
        0 0 40px rgba(255, 102, 0, 0.9),
        inset 0 0 20px rgba(255, 102, 0, 0.3);
}

/* Games/Collaborations tab - Purple background */
.np-nav-tab-games {
    background: var(--np-purple);
    color: white;
    border-color: var(--np-purple);
    box-shadow: 0 0 20px rgba(170, 68, 255, 0.5);
}

.np-nav-tab-games:hover {
    box-shadow: 0 0 30px rgba(170, 68, 255, 0.8);
}

.np-nav-tab-games.active {
    box-shadow:
        0 0 40px rgba(170, 68, 255, 0.9),
        inset 0 0 20px rgba(170, 68, 255, 0.3);
}

/* Interactive tab - Cyan background */
.np-nav-tab-interactive {
    background: var(--np-blue);
    color: var(--bg-primary);
    border-color: var(--np-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.np-nav-tab-interactive:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
}

.np-nav-tab-interactive.active {
    box-shadow:
        0 0 40px rgba(0, 212, 255, 0.9),
        inset 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Teaching tab - Green background */
.np-nav-tab-teaching {
    background: var(--np-green);
    color: var(--bg-primary);
    border-color: var(--np-green);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.5);
}

.np-nav-tab-teaching:hover {
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.8);
}

.np-nav-tab-teaching.active {
    box-shadow:
        0 0 40px rgba(0, 255, 102, 0.9),
        inset 0 0 20px rgba(0, 255, 102, 0.3);
}

/* Right Sidebar Cards Container */
.np-sidebar {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.np-sidebar-header {
    background: var(--bg-card);
    border: 3px solid var(--np-purple);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: -3px;
    z-index: 2;
    position: relative;
}

.np-sidebar-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--np-yellow);
    margin: 0;
    letter-spacing: 0.1em;
    text-shadow: 0 0 3px rgba(255, 238, 0, 0.3);
}

/* Animated Arrow Indicator */
.sidebar-arrow-indicator {
    position: absolute;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow-text {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--np-cyan);
    text-shadow:
        0 0 15px rgba(0, 212, 255, 1),
        0 0 25px rgba(0, 212, 255, 0.8),
        0 0 35px rgba(0, 212, 255, 0.6);
    letter-spacing: 0.2em;
    margin-bottom: 0.25rem;
    animation: pulseGlow 2s ease-in-out infinite;
}

.arrow-icon {
    font-size: 2rem;
    color: var(--np-yellow);
    text-shadow:
        0 0 15px rgba(255, 238, 0, 1),
        0 0 25px rgba(255, 238, 0, 0.8),
        0 0 35px rgba(255, 238, 0, 0.6);
    filter: drop-shadow(0 0 10px rgba(255, 238, 0, 0.8));
    animation: bounceArrow 1.5s ease-in-out infinite;
    display: block;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(15px);
        opacity: 0.6;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow:
            0 0 15px rgba(0, 212, 255, 1),
            0 0 25px rgba(0, 212, 255, 0.8),
            0 0 35px rgba(0, 212, 255, 0.6);
    }
    50% {
        text-shadow:
            0 0 20px rgba(0, 212, 255, 1),
            0 0 35px rgba(0, 212, 255, 1),
            0 0 50px rgba(0, 212, 255, 0.8);
    }
}

.np-sidebar .np-cards-scroll {
    background: var(--bg-card);
    border: 3px solid var(--np-purple);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 0 20px rgba(170, 68, 255, 0.4);
    padding: 1rem;
    overflow-y: auto;
    min-height: 450px;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Compact card for right sidebar - Horizontal layout */
.np-card-compact {
    display: flex;
    flex-direction: row;
    background: rgba(30, 30, 30, 0.95);
    border: 3px solid var(--np-cyan);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    text-decoration: none;
    position: relative;
    align-items: stretch;
}

.np-card-compact:hover {
    transform: translateY(-2px);
    border-color: var(--np-yellow);
    box-shadow:
        0 0 25px rgba(255, 238, 0, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.5);
}

.np-card-compact-image {
    width: 120px;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    border-right: 3px solid var(--np-cyan);
    flex-shrink: 0;
    filter: saturate(1.3) contrast(1.15) brightness(0.95);
    display: block;
}

.np-card-compact:hover .np-card-compact-image {
    filter: saturate(1.5) contrast(1.2) brightness(1);
}

.np-card-compact-content {
    padding: 0.875rem 1rem;
    padding-right: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    margin-right: 0.5rem;
}

.np-card-compact-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--np-yellow);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow:
        0 0 8px rgba(255, 238, 0, 0.8),
        0 0 3px rgba(255, 238, 0, 0.5);
    display: block;
}

.np-card-compact-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: #DDDDDD;
    display: block;
}

/* ============================================
   DARK MAGAZINE-STYLE MULTI-COLUMN LAYOUT
   ============================================ */
.magazine-layout {
    column-count: 2;
    column-gap: 2rem;
    column-rule: 3px solid var(--np-purple);
}

.magazine-layout p {
    margin-bottom: 1rem;
    break-inside: avoid;
    color: var(--text-secondary);
}

.magazine-box {
    background: var(--box-red);
    border: 3px solid var(--np-red);
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
    break-inside: avoid;
}

.magazine-box.red {
    background: var(--box-red);
    border-color: var(--np-red);
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
}

.magazine-box.blue {
    background: var(--box-blue);
    border-color: var(--np-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.magazine-box.yellow {
    background: var(--box-yellow);
    border-color: var(--np-yellow);
    box-shadow: 0 0 20px rgba(255, 238, 0, 0.3);
}

.magazine-box.green {
    background: var(--box-green);
    border-color: var(--np-green);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
}

.magazine-box.purple {
    background: var(--box-purple);
    border-color: var(--np-purple);
    box-shadow: 0 0 20px rgba(170, 68, 255, 0.3);
}

.magazine-box.pink {
    background: rgba(255, 0, 170, 0.15);
    border-color: var(--np-pink);
    box-shadow: 0 0 20px rgba(255, 0, 170, 0.3);
}

.magazine-box.orange {
    background: rgba(255, 102, 0, 0.15);
    border-color: var(--np-orange);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

.magazine-box-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--np-yellow);
    margin-bottom: 0.75rem;
    border-bottom: 3px solid var(--np-yellow);
    padding-bottom: 0.5rem;
    text-shadow: 0 0 4px rgba(255, 238, 0, 0.5);
}

/* Project External Links */
.project-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(0, 255, 102, 0.1);
    border: 2px solid var(--np-green);
    color: var(--np-green);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.project-link:hover {
    background: rgba(0, 255, 102, 0.25);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.4);
    transform: translateX(5px);
}

.project-link .link-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.project-link:hover .link-arrow {
    transform: translateX(5px);
}

/* ============================================
   DARK IMAGE COLLAGE GALLERY
   ============================================ */
.image-collage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem;
    position: relative;
}

.collage-item {
    position: relative;
    cursor: pointer;
    border: 2px solid var(--np-cyan);
    overflow: hidden;
    transition: all 0.3s ease;
    aspect-ratio: 1;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.collage-item:hover {
    z-index: 100;
    transform: scale(2) rotate(3deg);
    border-color: var(--np-pink);
    box-shadow:
        0 0 40px rgba(255, 0, 170, 0.8),
        0 0 80px rgba(255, 0, 170, 0.4);
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.4) contrast(1.2) brightness(0.9);
}

.collage-item:hover img {
    filter: saturate(1.6) contrast(1.3) brightness(1);
}

.collage-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: var(--np-yellow);
    padding: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 3px rgba(255, 238, 0, 0.4);
}

.collage-item:hover .collage-caption {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.np-footer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1400px;
    width: calc(100% - 4rem);
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--np-purple), var(--np-pink));
    border-top: 4px solid var(--np-pink);
    box-shadow: 0 -5px 30px rgba(255, 0, 170, 0.5);
    text-align: center;
    z-index: 100;
}

.np-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.np-footer-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.np-footer-date {
    color: var(--np-yellow);
    text-shadow: 0 0 3px rgba(255, 238, 0, 0.4);
}

.np-footer-divider {
    color: var(--np-cyan);
    margin: 0 0.5rem;
}

/* Social Links with Neon Icons */
.np-footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.np-footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.np-footer-link-text {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.neon-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.8))
            drop-shadow(0 0 15px rgba(255, 0, 255, 0.6))
            drop-shadow(0 0 20px rgba(255, 0, 170, 0.4));
    animation: neonPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.np-footer-link:hover .neon-icon {
    filter: drop-shadow(0 0 12px rgba(0, 255, 255, 1))
            drop-shadow(0 0 20px rgba(255, 0, 255, 0.9))
            drop-shadow(0 0 30px rgba(255, 0, 170, 0.7));
    transform: scale(1.15) rotate(-5deg);
}

.np-footer-link:hover .np-footer-link-text {
    color: var(--np-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

@keyframes neonPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.8))
                drop-shadow(0 0 15px rgba(255, 0, 255, 0.6))
                drop-shadow(0 0 20px rgba(255, 0, 170, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(0, 255, 255, 1))
                drop-shadow(0 0 20px rgba(255, 0, 255, 0.8))
                drop-shadow(0 0 25px rgba(255, 0, 170, 0.6));
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .home-container {
        margin-left: 0;
    }

    .side-nav {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 2rem;
        left: auto;
        top: auto;
    }

    .nav-link-side {
        font-size: 0.75rem;
        padding: 0.75rem 1rem;
    }

    /* Full-screen layout adjustments */
    .np-content-wrapper {
        grid-template-columns: 1fr 260px;
        gap: 2rem;
    }

    .np-nav-tab {
        font-size: 0.95rem;
        padding: 0.875rem 1.25rem;
    }

    .magazine-layout {
        column-count: 1;
    }

    .ceramics-image {
        max-height: 400px;
        object-fit: cover;
    }

    /* Arrow indicator adjustments */
    .sidebar-arrow-indicator {
        top: -55px;
    }

    .arrow-text {
        font-size: 0.75rem;
    }

    .arrow-icon {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .content-container,
    .home-container,
    .listing-container {
        padding: 1rem;
    }

    .category-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .view-toggle-container {
        flex-direction: column;
        align-items: stretch;
    }

    .view-toggle {
        width: 100%;
    }

    .lightbox-nav,
    .artifact-nav {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }

    .lightbox-close,
    .artifact-close {
        top: -40px;
        font-size: 2rem;
    }

    .home-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
        gap: 2rem;
    }

    .home-hero-text .hero-title,
    .home-hero-text .hero-subtitle {
        text-align: center;
    }

    .home-portrait {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .content-section {
        padding: 1.25rem 1.5rem;
    }

    .section-content-scrollable {
        max-height: 400px;
        padding: 1.25rem;
    }

    .side-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-link-side {
        font-size: 0.7rem;
        padding: 0.625rem 0.875rem;
        min-width: auto;
    }

    .artifact-display {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .artifact-image-container img {
        max-height: 40vh;
    }

    .artifact-info {
        max-height: none;
    }

    /* Full-screen mobile layout */
    .np-fullscreen-container {
        padding: 1rem;
    }

    .np-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .np-sidebar .np-cards-scroll {
        max-height: 400px;
    }

    .np-nav-tabs {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .np-nav-tab {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        flex: 1 1 auto;
    }

    .intro-text-block {
        padding: 1rem;
    }

    .collage-item:hover {
        transform: scale(1.5) rotate(2deg);
    }

    .image-collage {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    /* Arrow on smaller tablets */
    .sidebar-arrow-indicator {
        top: -50px;
    }

    .arrow-text {
        font-size: 0.7rem;
    }

    .arrow-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 1rem;
    }

    .paragraph-text {
        font-size: 1.0625rem;
    }

    .intro-text p {
        font-size: 1.0625rem;
    }

    .np-nav-tab {
        font-size: 0.8rem;
        padding: 0.625rem 0.875rem;
    }

    .hero-title-box,
    .hero-subtitle-box {
        padding: 0.75rem 1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .artifacts-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    /* Hide arrow on mobile to save screen space */
    .sidebar-arrow-indicator {
        display: none;
    }
}

/* ============================================
   ACCESSIBILITY - WCAG 2.2 AA COMPLIANT
   ============================================ */

/* Focus Indicators - Enhanced for WCAG 2.2 */
:focus-visible {
    outline: 3px solid var(--border-focus);
    outline-offset: 4px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--border-focus);
    outline-offset: 4px;
}

/* Ensure all interactive elements meet minimum touch target size (24x24px WCAG 2.2) */
button,
a,
input,
select,
textarea {
    min-height: 24px;
    min-width: 24px;
}

/* Keyboard Navigation Helper */
.keyboard-nav-only:focus-visible {
    outline: 3px dashed var(--accent);
    outline-offset: 5px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-color: currentColor;
    }

    .category-card,
    .content-section,
    .section-header {
        border-width: 3px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   ARTIFACTS GALLERY - NINTENDO POWER MAGAZINE COLLAGE
   E3-Inspired Chaotic Image Grid
   ============================================ */
.artifacts-page {
    background: var(--bg-primary);
    min-height: 100vh;
    padding-bottom: 4rem;
}

.artifacts-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    position: relative;
}

.artifacts-header-box {
    background: rgba(0, 0, 0, 0.9);
    border: 4px solid var(--np-cyan);
    padding: 2rem 3rem;
    display: inline-block;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.artifacts-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--np-yellow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    text-shadow:
        0 0 10px rgba(255, 238, 0, 0.8),
        0 0 20px rgba(255, 238, 0, 0.4);
}

.artifacts-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--np-cyan);
    text-transform: uppercase;
    font-weight: 800;
    margin: 1rem 0 0;
    letter-spacing: 0.08em;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.artifacts-intro {
    max-width: 1600px;
    margin: 1rem auto;
    padding: 0 2rem;
    text-align: center;
}

.artifacts-intro-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* NINTENDO POWER MAGAZINE COLLAGE GRID */
/* Inspired by E3 Sneak Peek spreads with varied tile sizes */
.np-magazine-collage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 150px;
    grid-auto-flow: dense;
    gap: 0.75rem;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.np-collage-tile {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 3px solid var(--np-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--bg-secondary);
}

/* VARIED TILE SIZES - Creates E3 Magazine Chaos */
.tile-small {
    grid-column: span 1;
    grid-row: span 1;
}

.tile-medium {
    grid-column: span 2;
    grid-row: span 2;
}

.tile-large {
    grid-column: span 3;
    grid-row: span 3;
}

.tile-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.tile-tall {
    grid-column: span 1;
    grid-row: span 2;
}

.np-collage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.6) contrast(1.3) brightness(0.85);
    transition: all 0.4s ease;
}

/* DRAMATIC HOVER EFFECTS */
.np-collage-tile:hover {
    z-index: 200;
    transform: scale(1.15) rotate(-2deg);
    border-color: var(--np-pink);
    box-shadow:
        0 0 50px rgba(255, 0, 170, 0.9),
        0 0 100px rgba(255, 0, 170, 0.5),
        0 0 150px rgba(255, 0, 170, 0.3);
}

.np-collage-tile:hover .np-collage-image {
    filter: saturate(2) contrast(1.5) brightness(1.1);
    transform: scale(1.05);
}

/* CAPTION OVERLAY */
.np-collage-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(0, 0, 0, 0.9) 60%,
        transparent 100%);
    padding: 1.5rem 0.75rem 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.np-collage-tile:hover .np-collage-caption {
    opacity: 1;
}

.caption-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--np-yellow);
    text-transform: uppercase;
    text-align: center;
    display: block;
    letter-spacing: 0.05em;
    text-shadow: 0 0 5px rgba(255, 238, 0, 0.6);
    line-height: 1.3;
}

/* BACK BUTTON */
.artifacts-footer {
    text-align: center;
    padding: 3rem 2rem;
}

.np-back-button {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 3px solid var(--np-green);
    padding: 1rem 2.5rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
}

.np-back-button:hover {
    background: var(--np-green);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow:
        0 5px 30px rgba(0, 255, 102, 0.6),
        0 0 50px rgba(0, 255, 102, 0.4);
}

/* RESPONSIVE COLLAGE ADJUSTMENTS */
@media (max-width: 1024px) {
    .np-magazine-collage {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        grid-auto-rows: 120px;
        gap: 0.5rem;
    }

    .tile-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .np-collage-tile:hover {
        transform: scale(1.1) rotate(-1deg);
    }
}

@media (max-width: 768px) {
    .np-magazine-collage {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        grid-auto-rows: 100px;
    }

    .artifacts-header-box {
        padding: 1.5rem 2rem;
    }

    .artifacts-title {
        font-size: clamp(2rem, 8vw, 4rem);
    }
}

/* ============================================
   INLINE TEACHING CONTENT (HOME PAGE)
   Displays teaching details without navigating
   ============================================ */

.teaching-detail-inline {
    max-height: calc(100vh - 350px);
    overflow-y: auto;
    padding-right: 1rem;
    margin-bottom: 1.5rem;
}

/* Custom scrollbar for teaching content */
.teaching-detail-inline::-webkit-scrollbar {
    width: 8px;
}

.teaching-detail-inline::-webkit-scrollbar-track {
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
}

.teaching-detail-inline::-webkit-scrollbar-thumb {
    background: var(--np-cyan);
    border-radius: 4px;
}

.teaching-detail-inline::-webkit-scrollbar-thumb:hover {
    background: var(--np-pink);
}

.teaching-detail-header {
    margin-bottom: 2rem;
}

.teaching-detail-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--np-yellow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem;
    text-shadow:
        0 0 8px rgba(255, 238, 0, 0.6),
        0 0 15px rgba(255, 238, 0, 0.3);
    line-height: 1.1;
}

.teaching-detail-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--np-cyan);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0;
    text-shadow: 0 0 4px rgba(0, 212, 255, 0.4);
}

/* View Toggle for Inline Display */
.view-toggle-container-inline {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.view-toggle {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 2px solid var(--np-cyan);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.view-toggle:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--np-pink);
    color: var(--text-primary);
}

.view-toggle.active {
    background: var(--np-cyan);
    color: var(--bg-primary);
    border-color: var(--np-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Teaching Content Display */
.teaching-detail-content {
    margin-bottom: 2rem;
}

.teaching-paragraph {
    margin-bottom: 1.5rem;
}

.teaching-paragraph p {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.teaching-image-container {
    margin: 2rem 0;
    border: 3px solid var(--np-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background: var(--bg-secondary);
    overflow: hidden;
}

.teaching-image {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(1.3) contrast(1.2);
}

.teaching-image-caption {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--np-yellow);
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    margin: 0;
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
    letter-spacing: 0.05em;
}

/* Video Embed for Teaching Content */
.teaching-video-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(170, 68, 255, 0.15);
    border: 3px solid var(--np-purple);
    box-shadow: 0 0 20px rgba(170, 68, 255, 0.3);
}

.teaching-video-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--np-purple);
    text-transform: uppercase;
    margin: 0 0 1rem;
    text-shadow: 0 0 5px rgba(170, 68, 255, 0.5);
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--np-purple);
}

/* Clickable Teaching Cards */
.np-card-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.np-card-clickable:hover {
    transform: translateX(8px);
    border-left-color: var(--np-pink);
    box-shadow: 0 0 25px rgba(255, 0, 170, 0.4);
}

.np-card-clickable.active {
    border-left-color: var(--np-yellow);
    background: rgba(255, 238, 0, 0.1);
    box-shadow: 0 0 25px rgba(255, 238, 0, 0.4);
}

.np-card-clickable.active .np-card-compact-title {
    color: var(--np-yellow);
}

/* ABOUT Button Styling */
.np-nav-tab-about {
    background: linear-gradient(135deg, var(--np-purple), var(--np-pink));
    border-color: var(--np-pink);
}

.np-nav-tab-about:hover {
    background: linear-gradient(135deg, var(--np-pink), var(--np-purple));
    box-shadow: 0 0 30px rgba(255, 0, 170, 0.6);
}

/* Responsive Adjustments for Inline Teaching */
@media (max-width: 1024px) {
    .teaching-detail-inline {
        max-height: calc(100vh - 400px);
    }

    .teaching-detail-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .teaching-paragraph p {
        font-size: 1.0625rem;
    }
}

@media (max-width: 768px) {
    .teaching-detail-inline {
        max-height: calc(100vh - 450px);
    }

    .view-toggle-container-inline {
        flex-direction: column;
    }

    .view-toggle {
        width: 100%;
        text-align: center;
    }

    .teaching-video-container {
        padding: 1rem;
    }
}

/* ============================================
   CONTENT OVERLAY SYSTEM
   ============================================ */

/* Overlay backdrop */
.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

/* Content container */
.content-overlay-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background: var(--bg-dark);
    border: 2px solid var(--np-cyan);
    border-radius: 8px;
    padding: 3rem 2rem 2rem 2rem;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

/* Slide in animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close button */
.content-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 2px solid var(--np-cyan);
    color: var(--np-cyan);
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.content-close-btn:hover {
    background: var(--np-cyan);
    color: var(--bg-dark);
    transform: rotate(90deg);
}

/* Custom scrollbar for overlay */
.content-overlay-container::-webkit-scrollbar {
    width: 10px;
}

.content-overlay-container::-webkit-scrollbar-track {
    background: var(--bg-warm);
    border-radius: 5px;
}

.content-overlay-container::-webkit-scrollbar-thumb {
    background: var(--np-cyan);
    border-radius: 5px;
}

.content-overlay-container::-webkit-scrollbar-thumb:hover {
    background: var(--np-blue);
}

/* ============================================
   CONDENSED CONTENT VIEW
   ============================================ */

.condensed-content {
    padding: 1rem 0;
}

/* Title and subtitle */
.condensed-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--np-yellow);
    text-shadow: 0 0 10px rgba(255, 238, 0, 0.5);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.condensed-subtitle {
    font-size: 1.1rem;
    color: var(--np-cyan);
    margin-bottom: 2rem;
    font-style: italic;
}

/* Content paragraphs */
.condensed-content .content-paragraph {
    margin-bottom: 1.5rem;
}

.condensed-content .paragraph-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--parchment);
}

.condensed-content .text-center {
    text-align: center;
}

/* Images in condensed view */
.content-image-wrapper {
    margin: 2rem 0;
    text-align: center;
}

.content-image {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    border: 2px solid var(--np-cyan);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.content-image-wrapper .image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--ink-faded);
    font-style: italic;
}

/* Video container */
.video-container-condensed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 2rem 0;
    border: 2px solid var(--np-cyan);
    border-radius: 4px;
    overflow: hidden;
}

.video-container-condensed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* PDF embed container */
.pdf-embed-container {
    margin: 2rem 0;
    width: 100%;
}

.pdf-embed-object,
.pdf-embed-fallback {
    width: 100%;
    height: 800px;
    min-height: 600px;
    border: 3px solid var(--np-cyan);
    border-radius: 4px;
    background: #525659;
    display: block;
}

.pdf-download-link {
    margin-top: 1.5rem;
    text-align: center;
}

.pdf-download-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--np-cyan);
    color: var(--bg-dark);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--np-cyan);
}

.pdf-download-button:hover {
    background: transparent;
    color: var(--np-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Responsive PDF sizing */
@media (max-width: 768px) {
    .pdf-embed-object,
    .pdf-embed-fallback {
        height: 600px;
        min-height: 400px;
    }
}

/* Loading state */
.condensed-loading {
    text-align: center;
    padding: 3rem;
    color: var(--np-cyan);
    font-size: 1.2rem;
}

/* External Links Section */
.condensed-links-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--np-green);
}

.condensed-links-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--np-green);
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.5);
}

.condensed-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.condensed-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(0, 255, 102, 0.1);
    border: 2px solid var(--np-green);
    color: var(--np-green);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.condensed-link:hover {
    background: rgba(0, 255, 102, 0.25);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.4);
    transform: translateX(5px);
}

.condensed-link .link-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.condensed-link:hover .link-arrow {
    transform: translateX(5px);
}

/* ============================================
   CURRICULUM GALLERY
   ============================================ */
.curriculum-gallery {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.curriculum-header {
    text-align: center;
    margin-bottom: 2rem;
}

.curriculum-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--np-cyan);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.curriculum-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.curriculum-summary {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid var(--np-cyan);
    border-radius: 0 8px 8px 0;
}

.curriculum-summary p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.curriculum-summary p:last-child {
    margin-bottom: 0;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.curriculum-card {
    background: rgba(30, 30, 35, 0.9);
    border: 2px solid var(--np-cyan);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.curriculum-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

/* Color variants */
.curriculum-card-purple {
    border-color: var(--np-purple);
}
.curriculum-card-purple:hover {
    box-shadow: 0 8px 30px rgba(170, 68, 255, 0.3);
}
.curriculum-card-purple .curriculum-card-icon {
    color: var(--np-purple);
    background: rgba(170, 68, 255, 0.15);
}

.curriculum-card-blue {
    border-color: var(--np-cyan);
}
.curriculum-card-blue:hover {
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}
.curriculum-card-blue .curriculum-card-icon {
    color: var(--np-cyan);
    background: rgba(0, 212, 255, 0.15);
}

.curriculum-card-green {
    border-color: var(--np-green);
}
.curriculum-card-green:hover {
    box-shadow: 0 8px 30px rgba(0, 255, 102, 0.3);
}
.curriculum-card-green .curriculum-card-icon {
    color: var(--np-green);
    background: rgba(0, 255, 102, 0.15);
}

.curriculum-card-orange {
    border-color: var(--np-orange);
}
.curriculum-card-orange:hover {
    box-shadow: 0 8px 30px rgba(255, 102, 0, 0.3);
}
.curriculum-card-orange .curriculum-card-icon {
    color: var(--np-orange);
    background: rgba(255, 102, 0, 0.15);
}

.curriculum-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--np-cyan);
    background: rgba(0, 212, 255, 0.15);
}

.curriculum-card-icon svg {
    width: 32px;
    height: 32px;
}

.curriculum-card-content {
    flex: 1;
}

.curriculum-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.curriculum-card-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.curriculum-card-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--np-cyan);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
}

.curriculum-card-action .arrow-icon {
    transition: transform 0.3s ease;
}

.curriculum-card:hover .curriculum-card-action .arrow-icon {
    transform: translateX(5px);
}

/* Yellow variant for constellation */
.curriculum-card-yellow {
    border-color: #FFEE00;
}
.curriculum-card-yellow:hover {
    box-shadow: 0 8px 30px rgba(255, 238, 0, 0.3);
}
.curriculum-card-yellow .curriculum-card-icon {
    color: #FFEE00;
    background: rgba(255, 238, 0, 0.15);
}

/* Curriculum list layout (hierarchical) */
.curriculum-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.curriculum-parent {
    display: flex;
    flex-direction: column;
}

/* Main/parent card styling */
.curriculum-card-main {
    position: relative;
}

/* Sub-materials section */
.curriculum-submaterials {
    margin-top: 1rem;
    margin-left: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.submaterials-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.submaterials-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}

.submaterials-line:last-child {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
}

.submaterials-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.submaterials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* Sub-item cards - smaller styling */
.curriculum-card-sub {
    padding: 1rem 1.25rem;
}

.curriculum-card-sub .curriculum-card-title {
    font-size: 1rem;
}

.curriculum-card-sub .curriculum-card-description {
    font-size: 0.85rem;
}

.curriculum-card-icon-small {
    width: 45px;
    height: 45px;
}

.curriculum-card-icon-small svg {
    width: 24px;
    height: 24px;
}

/* Preview badge for sub-items */
.preview-badge-corner-small {
    padding: 3px 8px;
    font-size: 0.6rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .curriculum-submaterials {
        margin-left: 0;
        padding-left: 1rem;
        border-left-width: 3px;
    }

    .submaterials-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CURRICULUM VIEWER (Full-screen iframe)
   ============================================ */
.curriculum-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.curriculum-viewer-container {
    width: 100%;
    max-width: 1400px;
    height: 95vh;
    background: var(--bg-dark);
    border: 2px solid var(--np-cyan);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.3);
}

.curriculum-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid var(--np-cyan);
}

.curriculum-viewer-title-area {
    flex: 1;
}

.curriculum-viewer-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--np-cyan);
    margin: 0 0 0.25rem 0;
}

.curriculum-viewer-description {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.curriculum-viewer-close {
    width: 44px;
    height: 44px;
    border: 2px solid var(--np-pink);
    background: transparent;
    color: var(--np-pink);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.curriculum-viewer-close:hover {
    background: var(--np-pink);
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 170, 0.5);
}

.curriculum-viewer-close .close-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.curriculum-viewer-content {
    flex: 1;
    position: relative;
    background: white;
}

.curriculum-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.curriculum-viewer-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border-top: 1px solid var(--np-cyan);
}

.curriculum-open-external {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--np-green);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid var(--np-green);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.curriculum-open-external:hover {
    background: rgba(0, 255, 102, 0.15);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.3);
}

.curriculum-open-external .external-icon {
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .curriculum-gallery {
        padding: 1rem;
    }

    .curriculum-title {
        font-size: 1.8rem;
    }

    .curriculum-grid {
        grid-template-columns: 1fr;
    }

    .curriculum-viewer-overlay {
        padding: 10px;
    }

    .curriculum-viewer-container {
        height: 98vh;
        border-radius: 8px;
    }

    .curriculum-viewer-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .curriculum-viewer-close {
        margin-left: 0;
    }

    .curriculum-viewer-title {
        font-size: 1.1rem;
    }
}

/* Story Mode - Two Column Layout */
.story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.story-text-column {
    text-align: left;
}

.story-text-column .condensed-title {
    text-align: left;
}

.story-text-column .condensed-subtitle {
    text-align: left;
}

.story-image-column {
    position: relative;
    height: fit-content;
}

.story-images-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.story-image-wrapper {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.story-image {
    width: 100%;
    height: auto;
    border: 2px solid var(--np-cyan);
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-image:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.story-image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--ink-faded);
    font-style: italic;
    text-align: center;
}

/* Responsive: Stack columns on mobile */
@media (max-width: 768px) {
    .story-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-image-column {
        position: relative;
        top: 0;
        max-height: none;
    }
}

/* ============================================
   RESPONSIVE - CONTENT OVERLAY
   ============================================ */

@media (max-width: 1024px) {
    .content-overlay-container {
        width: 92%;
        max-height: 90vh;
        padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    }

    .condensed-title {
        font-size: 1.75rem;
    }

    .condensed-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .content-overlay-container {
        width: 95%;
        max-height: 95vh;
        padding: 2rem 1rem 1rem 1rem;
        border-radius: 4px;
    }

    .condensed-title {
        font-size: 1.5rem;
    }

    .condensed-subtitle {
        font-size: 0.95rem;
    }

    .condensed-content .paragraph-text {
        font-size: 1rem;
    }

    .content-image {
        max-height: 300px;
    }

    .content-close-btn {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .content-overlay-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .condensed-title {
        font-size: 1.25rem;
        letter-spacing: 0.05em;
    }
}

/* ============================================
   ARTIFACTS GALLERY
   ============================================ */

.artifacts-gallery-container {
    padding: 2rem 1rem;
}

.artifacts-gallery-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--np-cyan);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.artifacts-gallery-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-faded);
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Grouped collage layout */
.artifacts-collage {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Artifact groups */
.artifact-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.artifact-group-label {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--np-purple);
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(170, 68, 255, 0.4);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--np-purple);
    margin-bottom: 0.5rem;
}

.artifact-group-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
}

/* Uniform smaller tiles with card pile effect */
.artifact-tile {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid var(--np-cyan);
    background: var(--bg-warm);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: rotate(var(--rotation, 0deg));
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 200px;
}

.artifact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.artifact-tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 1.5rem 1rem 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.artifact-tile-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--np-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* Hover effects - subtle pop-up and glow */
.artifact-tile:hover {
    transform: translateY(-8px) scale(1.03) rotate(var(--rotation, 0deg));
    box-shadow:
        0 10px 40px rgba(0, 212, 255, 0.4),
        0 0 20px rgba(0, 212, 255, 0.6);
    border-color: var(--np-yellow);
    z-index: 10;
}

.artifact-tile:hover .artifact-image {
    transform: scale(1.05);
}

.artifact-tile:hover .artifact-tile-overlay {
    opacity: 1;
}

.artifacts-loading {
    text-align: center;
    padding: 3rem;
    color: var(--np-cyan);
    font-size: 1.2rem;
}

/* ============================================
   ARTIFACT DETAIL VIEW
   ============================================ */

.artifact-detail-layout {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left side - Image with caption */
.artifact-detail-image-section {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
}

.artifact-detail-image-wrapper {
    position: relative;
    width: 100%;
    border: 3px solid var(--np-cyan);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-dark);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.artifact-detail-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    object-fit: contain;
}

.artifact-detail-caption {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--np-yellow);
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
    background: var(--bg-warm);
    border: 2px solid var(--np-yellow);
    border-radius: 4px;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(255, 238, 0, 0.4);
}

/* Right side - Prototyping notes */
.artifact-detail-notes-section {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
}

.artifact-detail-notes-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--np-purple);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(170, 68, 255, 0.4);
    border-bottom: 2px solid var(--np-purple);
    padding-bottom: 0.5rem;
}

.artifact-detail-notes-content {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--parchment);
    overflow-y: auto;
    max-height: 70vh;
    padding-right: 1rem;
}

.artifact-detail-notes-content p {
    margin-bottom: 1rem;
}

.artifact-detail-notes-content .emphasis {
    color: var(--np-yellow);
    font-style: italic;
    font-weight: 600;
}

/* Custom scrollbar for notes */
.artifact-detail-notes-content::-webkit-scrollbar {
    width: 8px;
}

.artifact-detail-notes-content::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

.artifact-detail-notes-content::-webkit-scrollbar-thumb {
    background: var(--np-cyan);
    border-radius: 4px;
}

.artifact-detail-notes-content::-webkit-scrollbar-thumb:hover {
    background: var(--np-yellow);
}

/* ============================================
   RESPONSIVE - ARTIFACTS
   ============================================ */

@media (max-width: 1024px) {
    .artifacts-collage {
        gap: 2rem;
    }

    .artifact-group-tiles {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .artifact-tile {
        max-width: 180px;
    }

    .artifact-detail-layout {
        flex-direction: column;
    }

    .artifact-detail-image-section,
    .artifact-detail-notes-section {
        flex: 1 1 auto;
    }

    .artifact-detail-notes-content {
        max-height: 40vh;
    }
}

@media (max-width: 768px) {
    .artifacts-gallery-title {
        font-size: 1.5rem;
    }

    .artifacts-gallery-subtitle {
        font-size: 0.9rem;
    }

    .artifacts-collage {
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .artifact-group-label {
        font-size: 1rem;
    }

    .artifact-group-tiles {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.75rem;
    }

    .artifact-tile {
        max-width: 150px;
    }

    .artifact-detail-caption {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    .artifact-detail-notes-title {
        font-size: 1.1rem;
    }

    .artifact-detail-notes-content {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .artifacts-collage {
        gap: 1rem;
    }

    .artifact-group-label {
        font-size: 0.9rem;
    }

    .artifact-group-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .artifact-tile {
        max-width: none; /* Allow tiles to fill grid */
    }

    .artifact-tile:hover {
        transform: translateY(-4px) scale(1.02) rotate(var(--rotation, 0deg));
    }

    .artifact-detail-layout {
        padding: 0.5rem;
        gap: 1rem;
    }

    .artifact-detail-image-wrapper {
        border-width: 2px;
    }

    .artifact-detail-caption {
        font-size: 0.85rem;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }

    .artifact-detail-notes-content {
        max-height: 50vh;
        font-size: 0.9rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .theme-toggle,
    .side-nav,
    .back-link,
    .view-toggle-container,
    .content-overlay {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .category-card,
    .content-section {
        page-break-inside: avoid;
    }

    .accessibility-toggle {
        display: none;
    }
}

/* ============================================
   ACCESSIBILITY TOGGLE
   ============================================ */
.accessibility-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
}

.accessibility-main-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--np-purple);
    background: var(--bg-secondary);
    color: var(--np-purple);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(170, 68, 255, 0.3);
}

.accessibility-main-btn:hover {
    background: var(--np-purple);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(170, 68, 255, 0.6);
}

.accessibility-icon {
    width: 28px;
    height: 28px;
}

.accessibility-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-secondary);
    border: 2px solid var(--np-purple);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(170, 68, 255, 0.3);
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accessibility-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 2px solid var(--np-cyan);
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
}

.accessibility-option:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--np-cyan);
}

.accessibility-option.active {
    background: rgba(0, 255, 102, 0.15);
    border-color: var(--np-green);
}

.accessibility-option .option-icon {
    font-family: var(--font-accessible);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--np-cyan);
    width: 30px;
    text-align: center;
}

.accessibility-option.active .option-icon {
    color: var(--np-green);
}

.accessibility-option .option-label {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
}

.accessibility-option .option-status {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.accessibility-option.active .option-status {
    background: var(--np-green);
    color: var(--bg-primary);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .accessibility-toggle {
        bottom: 15px;
        right: 15px;
    }

    .accessibility-main-btn {
        width: 44px;
        height: 44px;
    }

    .accessibility-icon {
        width: 24px;
        height: 24px;
    }

    .accessibility-options {
        padding: 10px;
    }

    .accessibility-option {
        min-width: 180px;
        padding: 8px 12px;
    }
}

/* ============================================
   SERVICES VIEW
   ============================================ */
.services-view {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    margin-bottom: 2rem;
}

.services-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--np-orange);
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px rgba(255, 102, 0, 0.6);
    margin-bottom: 0.5rem;
}

.services-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--ink-faded);
    font-style: italic;
}

.services-summary {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-summary p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--parchment);
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Service Card */
.service-card {
    background: var(--bg-warm);
    border: 2px solid var(--np-cyan);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.3);
}

.service-card.expanded {
    border-width: 3px;
}

/* Color variants */
.service-card-cyan {
    border-color: var(--np-cyan);
}

.service-card-cyan:hover,
.service-card-cyan.expanded {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.service-card-purple {
    border-color: var(--np-purple);
}

.service-card-purple:hover,
.service-card-purple.expanded {
    box-shadow: 0 0 30px rgba(170, 68, 255, 0.4);
}

.service-card-orange {
    border-color: var(--np-orange);
}

.service-card-orange:hover,
.service-card-orange.expanded {
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.4);
}

/* Card Header */
.service-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
}

.service-card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.service-card-icon svg {
    width: 30px;
    height: 30px;
}

.service-card-cyan .service-card-icon {
    border: 2px solid var(--np-cyan);
}

.service-card-cyan .service-card-icon svg {
    color: var(--np-cyan);
}

.service-card-purple .service-card-icon {
    border: 2px solid var(--np-purple);
}

.service-card-purple .service-card-icon svg {
    color: var(--np-purple);
}

.service-card-orange .service-card-icon {
    border: 2px solid var(--np-orange);
}

.service-card-orange .service-card-icon svg {
    color: var(--np-orange);
}

.service-card-title-area {
    flex: 1;
    min-width: 0;
}

.service-card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.25rem 0;
}

.service-card-cyan .service-card-title {
    color: var(--np-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.service-card-purple .service-card-title {
    color: var(--np-purple);
    text-shadow: 0 0 10px rgba(170, 68, 255, 0.4);
}

.service-card-orange .service-card-title {
    color: var(--np-orange);
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.4);
}

.service-card-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink-faded);
    margin: 0;
    line-height: 1.4;
}

.service-card-toggle {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--np-cyan);
    transition: all 0.3s ease;
}

.service-card-purple .service-card-toggle {
    border-color: var(--np-purple);
}

.service-card-orange .service-card-toggle {
    border-color: var(--np-orange);
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--parchment);
}

.service-card:hover .service-card-toggle {
    transform: scale(1.1);
}

/* Card Details (expanded content) */
.service-card-details {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: expandIn 0.3s ease-out;
}

@keyframes expandIn {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.service-details-list {
    list-style: none;
    padding: 1rem 0 0 0;
    margin: 0;
}

.service-details-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--parchment);
    line-height: 1.5;
}

.service-details-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--np-cyan);
}

.service-card-purple .service-details-list li::before {
    color: var(--np-purple);
}

.service-card-orange .service-details-list li::before {
    color: var(--np-orange);
}

/* Sample Work Section */
.service-samples {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.samples-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--np-yellow);
    margin: 0 0 1rem 0;
}

.samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.sample-item {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sample-item:hover {
    border-color: var(--np-yellow);
    box-shadow: 0 0 15px rgba(255, 238, 0, 0.2);
}

.sample-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.sample-content {
    padding: 0.75rem;
}

.sample-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--parchment);
    margin: 0 0 0.25rem 0;
}

.sample-description {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--ink-faded);
    margin: 0;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-view {
        padding: 1.5rem 1rem;
    }

    .services-title {
        font-size: 1.8rem;
    }

    .services-subtitle {
        font-size: 1rem;
    }

    .service-card-header {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .service-card-icon {
        width: 44px;
        height: 44px;
    }

    .service-card-icon svg {
        width: 26px;
        height: 26px;
    }

    .service-card-title {
        font-size: 1.1rem;
    }

    .service-card-description {
        font-size: 0.9rem;
    }

    .service-card-toggle {
        width: 36px;
        height: 36px;
    }

    .toggle-icon {
        font-size: 1.25rem;
    }

    .service-card-details {
        padding: 0 1rem 1rem 1rem;
    }

    .service-details-list li {
        font-size: 0.9rem;
    }

    .samples-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .services-title {
        font-size: 1.5rem;
        letter-spacing: 0.1em;
    }

    .service-card-header {
        padding: 0.875rem;
    }

    .service-card-title-area {
        flex: 1 1 100%;
        order: 3;
    }

    .service-card-icon {
        order: 1;
    }

    .service-card-toggle {
        order: 2;
        margin-left: auto;
    }
}

/* ============================================
   MODULES SECTION (within Services)
   ============================================ */
.modules-section {
    margin-top: 3rem;
    padding-top: 2rem;
}

.modules-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 238, 0, 0.4), transparent);
}

.divider-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: #FFEE00;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    white-space: nowrap;
}

.modules-button {
    width: 100%;
    background: rgba(30, 30, 35, 0.9);
    border: 2px solid #FFEE00;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
}

.modules-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 238, 0, 0.3);
    background: rgba(40, 40, 45, 0.95);
}

.modules-button-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #FFEE00;
    background: rgba(255, 238, 0, 0.15);
}

.modules-button-icon svg {
    width: 32px;
    height: 32px;
}

.modules-button-content {
    flex: 1;
}

.modules-button-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: #FFEE00;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modules-button-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.modules-button-arrow {
    color: #FFEE00;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.modules-button:hover .modules-button-arrow {
    transform: translateX(5px);
}

@media (max-width: 600px) {
    .modules-button {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .modules-button-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .modules-button-icon svg {
        width: 28px;
        height: 28px;
    }

    .modules-button-title {
        font-size: 1.1rem;
    }

    .modules-button-arrow {
        display: none;
    }
}

/* ============================================
   CONTACT BUTTON (Navigation)
   ============================================ */
.np-nav-tab-contact {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    border-color: #ff6b9d;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
}

.np-nav-tab-contact:hover {
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.8);
}

.np-nav-tab-contact.active {
    box-shadow:
        0 0 40px rgba(255, 107, 157, 0.9),
        inset 0 0 20px rgba(255, 107, 157, 0.3);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form-container {
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #ff6b9d;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.6);
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-faded);
    line-height: 1.6;
}

/* Success state */
.contact-success {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(0, 255, 102, 0.1);
    border: 2px solid var(--np-green);
    border-radius: 12px;
}

.contact-success .success-icon {
    font-size: 4rem;
    color: var(--np-green);
    margin-bottom: 1rem;
}

.contact-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--np-green);
    margin-bottom: 0.5rem;
}

.contact-success p {
    color: var(--parchment);
    margin-bottom: 1.5rem;
}

/* Form styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--parchment);
}

.form-group .required {
    color: #ff6b9d;
}

.form-input {
    padding: 0.875rem 1rem;
    background: var(--bg-warm);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--parchment);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
}

.form-input::placeholder {
    color: var(--ink-faded);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input option {
    background: var(--bg-warm);
    color: var(--parchment);
}

.validation-error {
    font-size: 0.85rem;
    color: #ff6b6b;
}

.form-error {
    padding: 1rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    color: #ff6b6b;
    text-align: center;
}

/* Honeypot - must be invisible but present */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Buttons */
.contact-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-btn-primary {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    border-color: #ff6b9d;
}

.contact-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 107, 157, 0.6);
}

.contact-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-btn-secondary {
    background: transparent;
    color: var(--np-green);
    border-color: var(--np-green);
}

.contact-btn-secondary:hover {
    background: rgba(0, 255, 102, 0.1);
}

.form-actions {
    align-items: center;
}

/* Alternative contact */
.contact-alternative {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.contact-alternative p {
    font-size: 0.9rem;
    color: var(--ink-faded);
    margin-bottom: 0.5rem;
}

.contact-email {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--np-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: #ff6b9d;
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

/* ============================================
   CURRICULUM PREVIEW MODE
   ============================================ */

/* Preview badge on cards */
.curriculum-card.preview-only {
    position: relative;
}

.preview-badge-corner {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0 12px 0 8px;
    z-index: 2;
}

/* Category tag */
.curriculum-card-category {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid var(--np-cyan);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--np-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Preview badge in viewer header */
.preview-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

/* Footer button for preview mode */
.learn-more-footer {
    background: linear-gradient(135deg, #ff6b9d, #c44569) !important;
    border-color: #ff6b9d !important;
    color: white !important;
}

.learn-more-footer:hover {
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.5) !important;
}

/* Responsive contact form */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem 1rem;
    }

    .contact-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 1.75rem;
    }

    .contact-btn {
        width: 100%;
    }
}

/* ============================================
   COURSE VIEWER COMPONENT
   Unity Learn / Udemy-style course interface
   ============================================ */

.course-viewer {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Sidebar Navigation */
.course-sidebar {
    background: var(--bg-card);
    border-right: 2px solid var(--np-cyan);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.course-sidebar.collapsed {
    width: 60px;
    min-width: 60px;
}

.sidebar-toggle {
    position: absolute;
    top: 1rem;
    right: -15px;
    width: 30px;
    height: 30px;
    background: var(--bg-card);
    border: 2px solid var(--np-cyan);
    border-radius: 50%;
    color: var(--np-cyan);
    font-size: 0.8rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--np-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.course-sidebar .course-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--np-yellow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
    text-shadow: 0 0 10px rgba(255, 238, 0, 0.3);
}

/* Progress Overview */
.progress-overview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--np-green), var(--np-cyan));
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.4);
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Modules List */
.modules-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.module-item {
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.module-item.complete {
    background: rgba(0, 255, 102, 0.05);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.module-header:hover {
    background: rgba(0, 212, 255, 0.1);
}

.module-status {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--np-cyan);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.module-item.complete .module-status {
    background: var(--np-green);
    border-color: var(--np-green);
}

.check-icon {
    color: var(--bg-primary);
    font-weight: bold;
}

.module-number {
    color: var(--np-cyan);
    font-weight: 600;
}

.module-title {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.expand-icon {
    color: var(--np-cyan);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Lessons List */
.lessons-list {
    padding: 0 0 0.5rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.lesson-item:hover {
    background: rgba(0, 212, 255, 0.08);
}

.lesson-item.active {
    background: rgba(0, 212, 255, 0.15);
    border-left-color: var(--np-cyan);
}

.lesson-item.complete .lesson-status {
    color: var(--np-green);
}

.lesson-status {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon.small {
    font-size: 0.9rem;
    color: var(--np-green);
}

.lesson-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

.lesson-item.complete .lesson-dot {
    background: var(--np-green);
}

.lesson-title {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.lesson-item.active .lesson-title {
    color: var(--np-cyan);
    font-weight: 600;
}

.lesson-item.complete .lesson-title {
    color: var(--np-green);
}

.lesson-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Main Content Area */
.course-content {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Lesson Header */
.lesson-header {
    padding: 2rem 3rem;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--np-cyan);
}

.lesson-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.lesson-breadcrumb .separator {
    color: var(--np-cyan);
}

.lesson-header .lesson-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--np-yellow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 15px rgba(255, 238, 0, 0.3);
}

.lesson-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Lesson Content Area */
.lesson-content-area {
    flex: 1;
    padding: 0;
    min-height: 400px;
}

.lesson-iframe {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: none;
    background: var(--bg-primary);
}

/* Video Embed Container - 16:9 responsive */
.lesson-video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.lesson-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Compact Video Layout with Summary */
.video-with-summary {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.video-panel {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-wrapper .lesson-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.summary-panel {
    background: var(--bg-card);
    border: 2px solid var(--np-cyan);
    border-radius: 12px;
    padding: 1.5rem;
}

.summary-panel h3 {
    font-family: var(--font-display);
    color: var(--np-cyan);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
}

.summary-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-points li {
    position: relative;
    padding: 0.75rem 0 0.75rem 1.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-points li:last-child {
    border-bottom: none;
}

.summary-points li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--np-green);
}

@media (max-width: 900px) {
    .video-with-summary {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .summary-panel {
        margin-top: 0;
    }
}

.lesson-text {
    padding: 2rem 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    max-width: 800px;
}

.lesson-text h2 {
    font-family: var(--font-display);
    color: var(--np-cyan);
    margin-top: 2rem;
}

.lesson-text p {
    margin-bottom: 1rem;
}

/* Lesson Footer */
.lesson-footer {
    padding: 1.5rem 3rem;
    background: var(--bg-card);
    border-top: 2px solid var(--np-cyan);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.time-tracker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.time-icon {
    font-size: 1.1rem;
}

.time-remaining {
    color: var(--np-orange);
    font-size: 0.85rem;
}

.lesson-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Navigation Buttons */
.nav-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--np-cyan);
    border-radius: 8px;
    color: var(--np-cyan);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.nav-btn.ready {
    border-color: var(--np-green);
    color: var(--np-green);
}

.nav-btn.ready:hover {
    background: rgba(0, 255, 102, 0.15);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.3);
}

/* Complete Button */
.complete-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--np-green);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.complete-btn.ready {
    background: var(--np-green);
    color: var(--bg-primary);
}

.complete-btn.ready:hover {
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.5);
    transform: translateY(-2px);
}

.complete-btn.disabled {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    cursor: not-allowed;
    opacity: 0.6;
}

.completed-badge {
    padding: 0.75rem 1.5rem;
    background: rgba(0, 255, 102, 0.15);
    border: 2px solid var(--np-green);
    border-radius: 8px;
    color: var(--np-green);
    font-weight: 600;
}

/* Certificate Button */
.certificate-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--np-yellow), var(--np-orange));
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.certificate-btn:hover {
    box-shadow: 0 0 25px rgba(255, 238, 0, 0.5);
    transform: translateY(-2px);
}

/* Course Overview */
.course-overview {
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.course-overview h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--np-yellow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 238, 0, 0.3);
}

.course-overview .course-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--np-cyan);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.learning-outcomes {
    background: var(--bg-card);
    border: 2px solid var(--np-green);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.learning-outcomes h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--np-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.learning-outcomes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.learning-outcomes li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.learning-outcomes li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--np-green);
    font-weight: bold;
}

.start-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--np-cyan), var(--np-blue));
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-btn:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    transform: translateY(-3px);
}

/* Certificate Modal */
.certificate-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.certificate-content {
    position: relative;
    max-width: 700px;
    width: 100%;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 2px solid var(--np-cyan);
    border-radius: 50%;
    color: var(--np-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--np-cyan);
    color: var(--bg-primary);
}

.certificate {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 4px solid var(--np-yellow);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 238, 0, 0.3);
}

.certificate-header {
    margin-bottom: 2rem;
}

.certificate-label {
    font-family: var(--font-display);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--np-cyan);
}

.certificate-body h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--np-yellow);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(255, 238, 0, 0.4);
}

.certificate-body p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.certificate-body h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--np-green);
    margin: 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.completion-date {
    font-size: 1.1rem !important;
    color: var(--text-primary) !important;
}

.time-invested {
    font-size: 0.9rem !important;
    color: var(--text-tertiary) !important;
}

.certificate-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 238, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.instructor-signature {
    text-align: left;
}

.signature-name {
    display: block;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.signature-title {
    display: block;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.certificate-id {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-family: monospace;
}

/* Course Viewer Responsive */
@media (max-width: 900px) {
    .course-viewer {
        grid-template-columns: 1fr;
    }

    .course-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
        width: 300px;
        border-right: 2px solid var(--np-cyan);
    }

    .course-sidebar:not(.collapsed) {
        transform: translateX(0);
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
    }

    .sidebar-toggle {
        right: -40px;
    }

    .lesson-header,
    .lesson-footer {
        padding: 1.5rem;
    }

    .lesson-header .lesson-title {
        font-size: 1.4rem;
    }

    .course-overview {
        padding: 1.5rem;
    }

    .course-overview h1 {
        font-size: 1.8rem;
    }

    .certificate {
        padding: 2rem;
    }

    .certificate-body h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .lesson-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .lesson-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .certificate-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .instructor-signature {
        text-align: center;
    }
}

/* Course Overlay (full-screen wrapper) */
.course-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg-primary);
}

.course-overlay-close {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 1100;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 2px solid var(--np-cyan);
    border-radius: 50%;
    color: var(--np-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.course-overlay-close:hover {
    background: var(--np-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* ============================================
   COURSE CTA SECTION (in Modules gallery)
   ============================================ */
.course-cta-section {
    margin: 2rem 0;
    padding: 0;
}

.course-cta-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 102, 0.1));
    border: 2px solid var(--np-cyan);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.course-cta-content:hover {
    border-color: var(--np-green);
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.3);
}

.course-cta-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--np-yellow);
    border-radius: 12px;
}

.course-cta-icon svg {
    width: 36px;
    height: 36px;
    color: var(--np-yellow);
}

.course-cta-text {
    flex: 1;
}

.course-cta-text h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--np-yellow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.25rem 0;
    text-shadow: 0 0 10px rgba(255, 238, 0, 0.3);
}

.course-cta-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.course-cta-button {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, var(--np-green), var(--np-cyan));
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.5);
}

.course-cta-button .button-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.course-cta-button:hover .button-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .course-cta-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .course-cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   CURRICULUM SECTION HEADERS
   ============================================ */
.curriculum-section {
    margin-bottom: 2rem;
}

.curriculum-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 1.5rem 0;
}

.section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 238, 0, 0.4), transparent);
}

.section-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--np-yellow);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(255, 238, 0, 0.3);
}

/* Course Badge */
.course-badge-corner {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--np-cyan), var(--np-blue));
    color: var(--bg-primary);
    padding: 0.3rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0 12px 0 8px;
    z-index: 2;
}

.curriculum-card-course {
    border-color: var(--np-cyan);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 102, 0.05));
}

.curriculum-card-course:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.curriculum-card-course .curriculum-card-action {
    color: var(--np-cyan);
}

/* ============================================
   PASSWORD MODAL
   ============================================ */
.password-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.password-modal {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--np-cyan);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.password-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 2px solid var(--np-cyan);
    border-radius: 50%;
    color: var(--np-cyan);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.password-modal-close:hover {
    background: var(--np-cyan);
    color: var(--bg-primary);
}

.password-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--np-cyan);
    border-radius: 50%;
}

.password-modal-icon svg {
    width: 32px;
    height: 32px;
    color: var(--np-cyan);
}

.password-modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--np-yellow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
}

.password-modal-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
}

.password-input-group {
    margin-bottom: 1.5rem;
}

.password-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: var(--np-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.password-input.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

.password-input::placeholder {
    color: var(--text-tertiary);
}

.password-error {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #ff6b6b;
}

.password-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--np-cyan), var(--np-green));
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
}

.password-submit-btn .arrow-icon {
    transition: transform 0.3s ease;
}

.password-submit-btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Course Viewer Password Modal - uses existing overlay */
.course-viewer .password-modal-content {
    text-align: center;
}

.course-viewer .password-modal-content .lock-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.course-viewer .password-modal-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--np-yellow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
}

.course-viewer .password-modal-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.course-viewer .password-modal-content .password-hint {
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

.course-viewer .unlock-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--np-cyan), var(--np-green));
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-viewer .unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
}

/* Protected Module Styling */
.course-viewer .module-item.protected .module-header {
    opacity: 0.8;
}

.course-viewer .module-item.protected .lock-icon {
    font-size: 0.9rem;
}

.course-viewer .module-item.protected .lessons-list {
    opacity: 0.6;
}

.course-viewer .module-item.protected .lesson-item {
    cursor: pointer;
}
