/* ==========================================
   TAHA'S SPACE - PORTFOLIO

   A multi-view portfolio with three display modes:
   1. Canvas View - Infinite draggable canvas (Figma-style)
   2. List View - Traditional scrollable layout
   3. Stage View - macOS Stage Manager style

   Author: Taha Alfiza
   Last Updated: 2024
   ========================================== */

/* ===========================================
   TABLE OF CONTENTS
   ===========================================
   1. CSS Variables (Design Tokens)
   2. Typography & Fonts
   3. Reset & Base Styles
   4. Layout Components
   5. Navigation
   6. Canvas View (View 1)
   7. List View (View 2)
   8. Stage View (View 3)
   9. Projects Section & Finder
   10. Project Cards (Folder & Image views)
   11. Blog/Notes Section
   12. About Section
   13. Contact Section
   14. Overlays & Modals
   15. Animations & Transitions
   16. Responsive Breakpoints
   =========================================== */


/* ===========================================
   1. CSS VARIABLES (DESIGN TOKENS)

   Edit these values to customize the theme.
   All colors, spacing, and typography are
   controlled from here.
   =========================================== */

:root {
    /* --- Colors: Backgrounds --- */
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #fafafa;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-solid: #ffffff;
    --bg-hover: #f0f0f2;
    --bg-hover-subtle: rgba(0, 0, 0, 0.04);
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --bg-overlay-light: rgba(0, 0, 0, 0.06);

    /* --- Colors: Accents --- */
    --accent-primary: #2d2d2d;
    --accent-secondary: #4a4a4a;
    --accent-tertiary: #6b6b6b;
    --accent-blue: #007aff;
    --accent-green: #28c840;
    --accent-red: #ff3b30;
    --accent-yellow: #ffcc00;
    --accent-purple: #6366f1;

    /* --- Colors: Text --- */
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-muted: #999999;
    --text-disabled: #c7c7cc;
    --text-inverse: #ffffff;
    --text-link: var(--accent-blue);

    /* --- Colors: Grays (for common hardcoded values) --- */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-300: #e0e0e0;
    --gray-400: #d1d1d6;
    --gray-500: #aaa;
    --gray-600: #888;
    --gray-700: #666;
    --gray-800: #333;
    --gray-900: #1a1a1a;

    /* --- Colors: Borders --- */
    --border-light: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.12);
    --border-heavy: rgba(0, 0, 0, 0.15);
    --border-divider: #e5e5e5;
    --border-input: #d1d1d6;

    /* --- Colors: Shadows --- */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);

    /* --- Colors: Finder/Folder --- */
    --folder-tab: #5eb3f7;
    --folder-body: #6dc1fd;
    --finder-sidebar: #f5f5f7;
    --finder-toolbar: #fafafa;
    --finder-border: #e5e5e5;

    /* --- Colors: Status --- */
    --status-success: #28c840;
    --status-warning: #ff9500;
    --status-error: #ff3b30;
    --status-info: var(--accent-blue);

    /* --- Spacing Scale (8px base) --- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* --- Border Radius --- */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* --- Canvas Dimensions --- */
    --canvas-width: 2800px;
    --canvas-height: 2000px;

    /* --- Z-Index Scale --- */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-overlay: 400;
    --z-tooltip: 500;

    /* --- Transitions --- */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* --- Typography --- */
    --font-main: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    --font-arabic: 'IBM Plex Sans Arabic', 'SF Arabic', -apple-system, BlinkMacSystemFont, 'Geeza Pro', 'Tahoma', sans-serif;
    --font-mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --font-pixel: 'Pixelify Sans', 'Press Start 2P', monospace;

    /* --- Font Sizes --- */
    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 15px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 32px;
    --text-4xl: 40px;
}


/* ===========================================
   2. TYPOGRAPHY & FONTS
   =========================================== */

/* Import Inter, IBM Plex Sans Arabic, and Press Start 2P (pixel font) from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&family=Press+Start+2P&display=swap');

/* SF Pro and SF Arabic font faces */
@font-face {
    font-family: 'SF Pro Display';
    src: local('SF Pro Display'), local('.SF NS Display'), local('SFProDisplay-Regular');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Display';
    src: local('SF Pro Display Medium'), local('.SF NS Display Medium'), local('SFProDisplay-Medium');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Display';
    src: local('SF Pro Display Semibold'), local('.SF NS Display Semibold'), local('SFProDisplay-Semibold');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Display';
    src: local('SF Pro Display Bold'), local('.SF NS Display Bold'), local('SFProDisplay-Bold');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Text';
    src: local('SF Pro Text'), local('.SF NS Text'), local('SFProText-Regular');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Text';
    src: local('SF Pro Text Medium'), local('.SF NS Text Medium'), local('SFProText-Medium');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'SF Arabic';
    src: local('SF Arabic'), local('.SF Arabic'), local('SFArabic-Regular');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SF Arabic';
    src: local('SF Arabic Medium'), local('.SF Arabic Medium'), local('SFArabic-Medium');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'SF Arabic';
    src: local('SF Arabic Semibold'), local('.SF Arabic Semibold'), local('SFArabic-Semibold');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'SF Arabic';
    src: local('SF Arabic Bold'), local('.SF Arabic Bold'), local('SFArabic-Bold');
    font-weight: 700;
    font-style: normal;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
    /* Crisp rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Arabic text support - RTL and proper font */
[lang="ar"],
[dir="rtl"],
.rtl,
.arabic-text {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
}

/* Mixed content - allow inline RTL within LTR */
.mixed-text {
    unicode-bidi: plaintext;
}

/* Auto-detect text direction */
[dir="auto"] {
    unicode-bidi: plaintext;
}

/* Blog content Arabic support */
.blog-body [lang="ar"],
.blog-body .arabic-text,
.notes-preview-content [lang="ar"],
.notes-preview-content .arabic-text {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
    line-height: 1.8;
}

/* Proper Arabic line height and spacing */
.arabic-text p,
[lang="ar"] p {
    line-height: 1.9;
    margin-bottom: 1.2em;
}

/* ==========================================
   CURSORS - Use system defaults
   ========================================== */

/* Pointer cursor for clickable elements */
a, button, [onclick], .mac-folder, .nav-btn, .zoom-btn, .view-btn, .stage-thumb, .sidebar-item, .note-item {
    cursor: pointer;
}

/* Keep canvas content crisp at any zoom */
.canvas {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

svg {
    shape-rendering: geometricPrecision;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Mobile nav - hidden on desktop */
.mobile-nav {
    display: none;
}

/* ==========================================
   LOADING SCREEN - Smooth and fast
   ========================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-logo {
    color: var(--text-primary);
    animation: logo-fade-in 0.6s ease-out forwards;
    opacity: 0;
    transform: scale(0.9);
}

.loader-logo svg {
    width: 80px;
    height: 80px;
}

@keyframes logo-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logo-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.loader-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 200px;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--text-primary);
    border-radius: 3px;
    transition: width 0.1s ease-out;
}

.progress-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* ==========================================
   OLD CUSTOM CURSOR (DISABLED - Using CSS view-specific cursors instead)
   ========================================== */
.custom-cursor {
    display: none !important;
}

/* ==========================================
   BOTTOM NAVIGATION - Simple Icon Style
   ========================================== */
.navbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    z-index: 1000;
    transition: all var(--transition-medium);
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border-light);
    margin: 0 4px;
}

.nav-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.nav-btn svg {
    width: 22px;
    height: 22px;
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-btn.active {
    color: white;
    background: var(--accent-primary);
}

/* Tooltip on hover */
.nav-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 6px 12px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    margin-bottom: 8px;
}

.nav-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border-light);
}

.nav-btn:hover .nav-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Theme Toggle */
.nav-btn.theme-toggle {
    position: relative;
}

.theme-icon-light,
.theme-icon-dark {
    position: absolute;
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="light"] .theme-icon-light {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="light"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg);
}

/* ==========================================
   ZOOM CONTROLS
   ========================================== */
.zoom-controls {
    position: fixed;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    z-index: 1000;
}


.zoom-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.zoom-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.zoom-level {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    min-width: 50px;
    text-align: center;
}

.zoom-divider {
    width: 1px;
    height: 20px;
    background: var(--border-light);
    margin: 0 4px;
}

.zoom-btn svg {
    width: 16px;
    height: 16px;
}

/* View Switcher Icons - iOS Style */
.view-switcher {
    display: flex;
    gap: 4px;
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.view-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.view-btn svg {
    width: 18px;
    height: 18px;
}

/* ==========================================
   LIST VIEW - Grid Layout
   ========================================== */
.list-view {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 900;
    display: none;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding-bottom: 100px;
}

.list-view.active {
    display: block;
}

/* Block Container - Full width */
.block-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px 60px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Block Rows - Side by side layout */
.block-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Block Items */
.block-item {
    flex: 0 0 auto;
}

.block-item-large {
    flex: 1;
}

/* Hero Section in block view */
.list-view .hero-section {
    min-width: 280px;
    max-width: 280px;
    padding: 32px;
}

.list-view .hero-section .hero-logo svg {
    width: 80px;
    height: 80px;
}

.list-view .hero-section .hero-greeting {
    font-size: 16px;
    margin-bottom: 4px;
}

.list-view .hero-section .title-line {
    font-size: 48px;
}

.list-view .hero-section .hero-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
}

.list-view .hero-section .hero-cta {
    flex-direction: column;
    gap: 10px;
}

.list-view .hero-section .hero-cta .btn {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
}

.list-view .hero-section .scroll-indicator {
    display: none;
}

/* Make Home section height similar to Projects section */
.list-view #list-home .hero-section {
    min-height: 300px;
}

/* About Card in block view */
.list-view .about-card-modern {
    max-width: 320px;
    width: 100%;
}

.list-view .about-card-modern .about-photo-topleft {
    width: 100px;
    height: 100px;
    border-radius: 12px;
}

/* Finder Window in block view */
.list-view .finder-window {
    width: 100%;
    min-height: 300px;
}

/* Notes App Window in block view */
.list-view .notes-app-window {
    width: 100%;
}

.list-view .notes-body {
    height: 350px;
}

/* Make Canvas View (View 1) and Stage View (View 3) blogs look like List View */
.canvas-container .notes-list,
.stage-view .notes-list {
    width: 350px !important;
    min-width: 350px !important;
}

/* Testimonials Grid in block view - 3x2 grid */
.testimonials-grid-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.testimonials-grid-block .sticky-note {
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.testimonials-grid-block .sticky-note:nth-child(2) {
    transform: rotate(1deg);
}

.testimonials-grid-block .sticky-note:nth-child(3) {
    transform: rotate(-0.5deg);
}

.testimonials-grid-block .sticky-note:nth-child(4) {
    transform: rotate(0.5deg);
}

.testimonials-grid-block .sticky-note:nth-child(5) {
    transform: rotate(-1.5deg);
}

.testimonials-grid-block .sticky-note:nth-child(6) {
    transform: rotate(1.5deg);
}

.testimonials-grid-block .sticky-note:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Contact Section in block view */
.list-view .contact-section {
    min-width: auto;
    width: auto;
}

/* Hire Form in block view */
.list-view .hire-form-window {
    width: 100%;
    max-width: 320px;
}

/* Loading */
.list-loading {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Mobile Responsive for Block Layout */
@media (max-width: 1024px) {
    .block-row {
        flex-direction: column;
    }

    .list-view .hero-section {
        min-width: auto;
        max-width: 100%;
    }

    .list-view .about-card-modern {
        max-width: 100%;
    }

    .list-view .hire-form-window {
        max-width: 100%;
    }

    .testimonials-grid-block {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   STAGE VIEW - macOS Stage Manager Style
   ========================================== */
.stage-view {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 900;
    display: none;
    overflow: visible;
}

.stage-view.active {
    display: flex;
}

/* Stage Sidebar - Left thumbnails */
.stage-sidebar {
    width: 300px;
    min-width: 300px;
    height: 100%;
    padding: 100px 140px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    overflow-x: visible;
    background: transparent;
    /* Hide scrollbar but keep scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari */
.stage-sidebar::-webkit-scrollbar {
    display: none;
}

/* Stage Thumb - macOS Stage Manager Style with Mini Preview */
.stage-thumb {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: visible;
}

/* Mini Preview Container - Keeps original aspect ratio */
.thumb-preview {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: perspective(800px) rotateY(-8deg) translateX(6px);
    transform-origin: left center;
    overflow: hidden;
}

/* Mini section content - scaled down keeping exact original structure */
.thumb-content {
    transform: scale(0.35);
    transform-origin: top left;
    pointer-events: none;
}

/* Remove shadows from cloned elements to keep it clean */
.thumb-content > * {
    box-shadow: none !important;
}

/* Icon Badge - Hidden */
.thumb-icon-badge {
    display: none;
}

/* Tooltip - Shows section name on hover */
.thumb-tooltip {
    position: absolute;
    left: 60%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    background: rgba(30, 30, 30, 0.95);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    pointer-events: none;
}

.thumb-tooltip::before {
    display: none;
}

/* Hover state */
.stage-thumb:hover .thumb-preview {
    transform: perspective(800px) rotateY(-4deg) translateX(4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.12);
}

.stage-thumb:hover .thumb-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Active state */
.stage-thumb.active .thumb-preview {
    transform: perspective(800px) rotateY(0deg) translateX(0) scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stage-thumb.active .thumb-icon-badge {
    background: var(--accent-primary);
}

.stage-thumb.active .thumb-icon-badge svg {
    color: white;
}

/* Stage Main - Center content */
.stage-main {
    flex: 1;
    height: 100%;
    padding: 80px 40px 100px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    overflow-x: visible;
}

/* Allow overflow for hire section shadows */
.stage-main:has(.no-bg) {
    overflow: visible;
    align-items: center;
}

.stage-content {
    width: 100%;
    max-width: 900px;
    height: 100%;
    max-height: calc(100vh - 180px);
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: stageSlideIn 0.4s ease;
    position: relative;
    transition: box-shadow 0.3s ease;
}

/* Section highlight effect when navigating via navbar in List View (2nd view) only */
@keyframes navHighlightPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.6); }
    50% { box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.3); }
    100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}

.list-view .block-item.nav-highlight-animate {
    animation: navHighlightPulse 0.6s ease-out forwards;
    border-radius: 12px;
}

/* Home section has different styling */
.list-view .block-item#list-home.nav-highlight-animate {
    border-radius: 24px;
}

/* No background container for hire section */
.stage-content.no-bg {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible !important;
    max-height: none;
    height: auto;
}

.stage-content.no-bg .stage-content-inner {
    overflow: visible !important;
    padding: 40px;
}

/* Stage Hire Section - allow shadow space */
.stage-view .stage-section.stage-hire {
    overflow: visible !important;
}

.stage-view .stage-section.stage-hire .hire-form-window {
    box-shadow: 0 22px 70px 4px rgba(0, 0, 0, 0.15);
}

@keyframes stageSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateX(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* Stage Content Inner Wrapper */
.stage-content-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
}

/* Stage View scroll/swipe animations - Desktop */
#stageContent .stage-content-inner {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

#stageContent.transitioning .stage-content-inner {
    opacity: 0.5;
}

/* Vertical slide animations for section transitions */
#stageContent.slide-up .stage-content-inner {
    transform: translateY(-50px);
    opacity: 0;
}

#stageContent.slide-down .stage-content-inner {
    transform: translateY(50px);
    opacity: 0;
}

#stageContent.slide-in-up .stage-content-inner {
    animation: stageSlideInFromUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

#stageContent.slide-in-down .stage-content-inner {
    animation: stageSlideInFromDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes stageSlideInFromUp {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes stageSlideInFromDown {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Stage Section Styles */
.stage-view .stage-section {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Stage Home Section */
.stage-view .stage-home {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.stage-view .stage-home .hero-logo svg {
    width: 100px;
    height: 100px;
}

.stage-view .stage-home .hero-avatar {
    margin-bottom: 10px;
}

.stage-view .stage-home .hero-avatar svg {
    width: 120px;
    height: 120px;
}

.stage-view .stage-home .hero-greeting {
    font-size: 18px;
    margin-top: 20px;
}

.stage-view .stage-home .hero-title {
    margin: 10px 0 20px;
}

.stage-view .stage-home .title-line {
    font-size: 64px;
    display: block;
}

.stage-view .stage-home .hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.stage-view .stage-home .hero-cta {
    display: flex;
    gap: 16px;
}

.stage-view .stage-home .scroll-indicator {
    display: none;
}

/* Stage About Section */
.stage-view .stage-about {
    padding: 50px;
    overflow-y: visible;
    height: auto;
    min-height: 100%;
}

.stage-view .stage-about .about-card-modern {
    max-width: 100%;
    box-shadow: none;
    background: transparent;
    border: none;
}

.stage-view .stage-about .about-bio-text {
    font-size: 22px;
    line-height: 1.7;
}

/* Allow stage-content to expand for About section */
.stage-content:has(.stage-about) {
    height: auto;
    max-height: none;
    overflow-y: auto;
}

.stage-content:has(.stage-about) .stage-content-inner {
    height: auto;
    min-height: 100%;
}

/* Text formatting toolbar - macOS style */
.text-format-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 6px 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    flex-wrap: nowrap;
}

.text-format-toolbar.visible {
    opacity: 1;
    visibility: visible;
}

.text-format-toolbar::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.95);
}

.format-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    color: var(--gray-800);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.format-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.format-btn.active {
    background: var(--accent-blue);
    color: white;
}

.format-btn svg {
    width: 14px;
    height: 14px;
}

/* Size buttons */
.format-btn.size-btn {
    width: 22px;
    height: 26px;
}

/* Color buttons */
.format-btn.color-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.format-btn.color-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.format-divider {
    width: 1px;
    height: 18px;
    background: rgba(0, 0, 0, 0.12);
    margin: 0 4px;
}

/* Size Control Group */
.size-control-group {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    padding: 2px 4px;
}

.size-control-group .format-btn {
    width: 22px;
    height: 22px;
}

.size-display {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-800);
    min-width: 32px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

/* Color Control Group */
.color-control-group {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    padding: 2px 6px;
}

.color-preview {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.color-preview:hover {
    transform: scale(1.1);
}

.color-picker-input {
    width: 0;
    height: 0;
    padding: 0;
    border: none;
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.color-hex-input {
    width: 60px;
    height: 22px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    color: var(--gray-800);
    background: rgba(255, 255, 255, 0.8);
    outline: none;
    transition: all 0.15s ease;
}

.color-hex-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.color-hex-input::placeholder {
    color: var(--text-muted);
}

/* Highlight colors */
.highlight-yellow { background: #FFEB3B; padding: 2px 4px; border-radius: 3px; }
.highlight-green { background: #A5D6A7; padding: 2px 4px; border-radius: 3px; }
.highlight-blue { background: #90CAF9; padding: 2px 4px; border-radius: 3px; }
.highlight-pink { background: #F48FB1; padding: 2px 4px; border-radius: 3px; }
.highlight-orange { background: #FFCC80; padding: 2px 4px; border-radius: 3px; }
.highlight-purple { background: #CE93D8; padding: 2px 4px; border-radius: 3px; }

/* Stage Projects Section - transparent background, just show finder */
.stage-content:has(.stage-projects) {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible !important;
    max-width: none;
}

.stage-content:has(.stage-projects) .stage-content-inner {
    overflow: visible !important;
}

.stage-view .stage-projects {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: visible;
}

/* Finder window in Stage View - same as View 1 */
.stage-view .stage-projects .finder-window {
    width: auto;
    min-width: 900px;
    max-width: 1000px;
    height: 580px;
    max-height: calc(100vh - 200px);
    box-shadow: 0 22px 70px 4px rgba(0, 0, 0, 0.15), inset 0 0 0 1px #d1d1d6;
}

/* Ensure sidebar items are clickable */
.stage-view .stage-projects .finder-sidebar {
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.stage-view .stage-projects .sidebar-item {
    pointer-events: auto;
    cursor: pointer;
}

/* Stage Blog Section */
.stage-view .stage-blog {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stage-view .stage-blog .notes-app-window {
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    box-shadow: none;
}

/* Stage View Blog Thumbnails - ensure square with zoom-to-fill */
.stage-view .note-item-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #e0e0e0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-view .note-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Stage Contact Section */
.stage-view .stage-contact {
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.stage-view .stage-contact .contact-card {
    max-width: 500px;
    text-align: center;
}

.stage-view .stage-contact .contact-card h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.stage-view .stage-contact .contact-links {
    margin-top: 30px;
}

/* Stage View Responsive */
@media (max-width: 768px) {
    .stage-view {
        flex-direction: column-reverse; /* Sidebar at bottom for better mobile UX */
        position: fixed;
        height: 100%;
        height: 100dvh; /* Dynamic viewport height for mobile browsers */
    }

    .stage-sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        max-height: 56px;
        flex-direction: row;
        padding: 6px 12px;
        padding-bottom: max(6px, env(safe-area-inset-bottom)); /* iOS safe area */
        gap: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        align-items: center;
        border-right: none;
        border-bottom: none;
        border-top: 1px solid var(--border-light); /* Border on top instead */
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        background: var(--bg-primary); /* Ensure solid background */
    }

    .stage-sidebar::-webkit-scrollbar {
        display: none;
    }

    .stage-thumb {
        min-width: auto;
        flex-shrink: 0;
        gap: 2px;
    }

    .thumb-preview {
        width: 36px;
        height: 26px;
        border-radius: 4px;
    }

    .thumb-label {
        font-size: 8px;
        max-width: 40px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .thumb-icon-badge {
        width: 14px;
        height: 14px;
        top: -4px;
        right: -4px;
    }

    .thumb-icon-badge svg {
        width: 7px;
        height: 7px;
    }

    .stage-main {
        padding: 12px;
        padding-top: 60px; /* Space for top navbar */
        flex: 1;
        min-height: 0;
    }

    .stage-content {
        border-radius: 12px;
        max-height: calc(100vh - 140px);
    }

    .stage-content-inner {
        padding: 20px;
    }

    .stage-view .stage-home .hero-logo svg {
        width: 60px;
        height: 60px;
    }

    .stage-view .stage-home .title-line {
        font-size: 32px;
    }

    .stage-view .stage-home .hero-subtitle {
        font-size: 14px;
    }

    .stage-view .stage-home .hero-cta .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .stage-view .stage-home,
    .stage-view .stage-about,
    .stage-view .stage-contact {
        padding: 24px 16px;
    }

    /* Stage About mobile */
    .stage-view .stage-about .about-photo-topleft {
        width: 70px;
        height: 70px;
    }

    .stage-view .stage-about .about-bio-text {
        font-size: 13px;
    }

    /* Stage View inherits mobile grid styles from main mobile section */
    .stage-view .stage-projects {
        padding: 0 !important;
        position: relative;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Ensure mobile filter header comes first */
    .stage-view .stage-projects .mobile-filter-header {
        order: 1 !important;
    }

    .stage-view .stage-projects .mobile-category-filter {
        order: 2 !important;
    }

    .stage-view .stage-projects .finder-window {
        order: 3 !important;
    }

    .stage-view .stage-blog {
        padding: 0;
    }

    /* Stage Contact mobile */
    .stage-view .stage-contact {
        padding: 24px 16px;
    }

    .stage-view .stage-contact .contact-card h2 {
        font-size: 24px;
    }

    .stage-view .stage-contact .contact-link {
        padding: 12px 16px;
        font-size: 13px;
    }

    /* Stage Hire mobile */
    .stage-view .stage-section.stage-hire .hire-form-window {
        width: 100%;
        max-width: 100%;
    }

    .stage-view .stage-section.stage-hire .hire-form-content {
        padding: 20px;
    }

    .stage-view .stage-section.stage-hire .hire-header h2 {
        font-size: 20px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .stage-sidebar {
        padding: 4px 8px;
        padding-bottom: max(4px, env(safe-area-inset-bottom));
        max-height: 50px;
    }

    .stage-thumb {
        min-width: auto;
        gap: 1px;
    }

    .thumb-preview {
        width: 32px;
        height: 22px;
        border-radius: 3px;
    }

    .thumb-label {
        font-size: 7px;
        max-width: 36px;
    }

    .stage-main {
        padding: 12px;
    }

    .stage-content {
        max-height: calc(100vh - 160px);
    }

    .stage-view .stage-home .title-line {
        font-size: 28px;
    }
}

/* Stage View Scroll to Start Button - for sidebar horizontal scroll */
.stage-scroll-start {
    position: fixed;
    bottom: 80px; /* Position above the bottom sidebar */
    bottom: calc(80px + env(safe-area-inset-bottom)); /* iOS safe area */
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.25s ease;
    display: none;
}

.stage-scroll-start svg {
    color: var(--gray-700);
}

.stage-scroll-start:active {
    transform: translateX(0) scale(0.9);
}

.stage-scroll-start.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Only show on mobile when stage view is active */
@media (max-width: 768px) {
    .stage-view.active .stage-scroll-start {
        display: flex;
    }
}

/* Dark mode */
[data-theme="dark"] .stage-scroll-start {
    background: rgba(60, 60, 60, 0.95);
}

[data-theme="dark"] .stage-scroll-start svg {
    color: #ccc;
}

[data-theme="dark"] .stage-scroll-top:hover {
    background: rgba(80, 80, 80, 0.98);
}

@media (max-width: 768px) {
    .block-container {
        padding: 80px 16px 100px;
        gap: 16px;
    }

    .list-view .hero-section {
        padding: 32px 20px;
        min-height: auto;
    }

    .list-view .hero-section .hero-logo svg {
        width: 60px;
        height: 60px;
    }

    .list-view .hero-section .title-line {
        font-size: 36px;
    }

    .list-view .hero-section .hero-subtitle {
        font-size: 13px;
    }

    .list-view .hero-section .hero-cta .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* List View inherits mobile styles from main mobile section */

    /* About card mobile */
    .list-view .about-card-modern {
        padding: 24px;
    }

    .list-view .about-card-modern .about-photo-topleft {
        width: 80px;
        height: 80px;
    }

    .list-view .about-bio-text {
        font-size: 14px;
    }

    /* Testimonials mobile */
    .testimonials-grid-block {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .testimonials-grid-block .sticky-note {
        padding: 16px;
        min-height: auto;
    }

    .testimonials-grid-block .sticky-note p {
        font-size: 12px;
    }

    .testimonials-grid-block .note-author {
        font-size: 10px;
    }

    /* Hire form mobile */
    .list-view .hire-form-window {
        max-width: 100%;
    }

    .list-view .hire-form-content {
        padding: 20px;
    }

    .list-view .hire-header h2 {
        font-size: 20px;
    }

    /* Contact section mobile */
    .list-view .contact-section {
        padding: 24px;
    }

    .list-view .contact-card h2 {
        font-size: 20px;
    }

    .list-view .contact-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .block-container {
        padding: 70px 12px 100px;
    }

    .list-view .hero-section .title-line {
        font-size: 28px;
    }

    .testimonials-grid-block {
        grid-template-columns: 1fr;
    }

    /* Keep list items nicely sized on small screens */
    .mac-folder {
        padding: 16px !important;
    }

    .note-item {
        padding: 16px !important;
    }

    .folder-name {
        font-size: 16px !important;
    }

    .note-item-title {
        font-size: 16px !important;
    }

    /* Contact section smaller screens */
    .contact-card h2 {
        font-size: 24px !important;
    }

    .contact-card > p {
        font-size: 15px !important;
    }

    .contact-link {
        padding: 16px !important;
    }

    .contact-link span {
        font-size: 15px !important;
    }
}

/* ==========================================
   MINI MAP - Improved accuracy and control
   ========================================== */
.minimap {
    position: fixed;
    top: 80px;
    left: 24px;
    width: 160px;
    height: 120px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    z-index: 1000;
    overflow: hidden;
    cursor: crosshair;
}

.minimap-viewport {
    position: absolute;
    border: 2px solid var(--accent-primary);
    border-radius: 3px;
    background: rgba(139, 92, 246, 0.15);
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3);
}

.minimap-marker {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border: 2px solid var(--bg-card-solid);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

/* Larger clickable area for markers */
.minimap-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

.minimap-marker:hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
}

.minimap-marker.active {
    background: var(--accent-primary);
    box-shadow: 0 0 6px var(--accent-primary);
    transform: translate(-50%, -50%) scale(1.3);
}

/* ==========================================
   CANVAS CONTAINER
   ========================================== */
.canvas-container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.canvas-container:active {
    cursor: grabbing;
}

.canvas {
    width: var(--canvas-width);
    height: var(--canvas-height);
    position: absolute;
    background: var(--bg-primary);
    transform-origin: 0 0;
    will-change: transform;
    transition: background 0.3s ease;
}

/* Canvas Grid - Subtle 20% visible */
.canvas-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.2;
}

/* ==========================================
   PARTICLES
   ========================================== */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 20s infinite linear;
}

@keyframes float-particle {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* ==========================================
   CANVAS SECTIONS
   ========================================== */
.canvas-section {
    position: absolute;
    transition: transform 0.3s ease;
}

.canvas-section:hover {
    z-index: 10;
}

.section-content {
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all var(--transition-medium);
}

.section-content:hover {
    border-color: var(--border-accent);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.label-number {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-primary);
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    font-weight: 600;
}

.label-text {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    text-align: center;
    min-width: 500px;
}

.hero-logo {
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.hero-logo svg {
    width: 120px;
    height: 120px;
    /* Keep SVG crisp at any zoom */
    shape-rendering: geometricPrecision;
}

.hero-title {
    margin-bottom: 16px;
}

.hero-greeting {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 10px;
    letter-spacing: 0;
}

.title-line {
    display: block;
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
}

.title-line.accent {
    color: var(--accent-primary);
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: -7px;
    margin-bottom: 24px;
}

/* ==========================================
   PIXEL AVATAR & TAHA'S SPACE STYLING
   ========================================== */

/* Pixel Avatar */
.pixel-avatar {
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-img {
    width: 140px;
    height: auto;
    color: #000000;
}

[data-theme="dark"] .avatar-img {
    color: #f5f5f5;
}

/* Waving Hand Animation */
.wave-hand {
    display: inline-block;
    animation: wave 2.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* Pixel Text Styling - No animation */
.pixel-title {
    position: relative;
}

.pixel-text {
    font-family: 'Press Start 2P', monospace !important;
    font-size: 28px !important;
    letter-spacing: 1px !important;
    color: #000000;
    text-transform: uppercase;
    line-height: 1.5 !important;
}

/* TAHA'S SPACE SVG Logo */
.hero-title-svg {
    margin: -15px 0 -15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tahas-space-container {
    position: relative;
    cursor: pointer;
    user-select: none;
    padding: 8px;
}

.tahas-space-logo {
    width: 450px;
    height: auto;
    max-width: 100%;
    overflow: visible;
    color: #000000;
}

/* Dark theme support */
[data-theme="dark"] .tahas-space-logo {
    color: #f5f5f5;
}

/* Typing cursor animation */
.typing-cursor {
    transition: opacity 0.15s ease;
}

.tahas-space-container:hover .typing-cursor {
    animation: cursor-blink 0.7s step-end infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px var(--shadow-color);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.scroll-indicator span {
    font-size: 20px;
}

.scroll-indicator small {
    font-size: 11px;
    font-family: var(--font-mono);
}

/* ==========================================
   ABOUT SECTION - Modern Card Style
   ========================================== */
.about-card-modern {
    position: relative;
    max-width: 420px;
    padding: 40px;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-card-modern:hover {
    border-color: var(--border-light);
    box-shadow: 0 2px 6px var(--shadow-color);
}

/* Photo at top left */
.about-photo-topleft {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.about-photo-topleft img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.about-card-modern:hover .about-photo-topleft img {
    filter: grayscale(0%);
}

/* Bio text */
.about-bio-text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.about-bio-text strong {
    font-weight: 700;
}

/* Country Flags */
.about-flags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.flag-item {
    position: relative;
    font-size: 24px;
    cursor: default;
    transition: transform 0.2s ease;
}

.flag-item:hover {
    transform: scale(1.15);
}

/* Flag tooltip on hover */
.flag-item::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    padding: 6px 12px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    margin-bottom: 4px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.flag-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Legacy styles for compatibility */
.about-modern {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    max-width: 700px;
    padding: 48px;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-modern:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 2px 6px var(--shadow-color);
}

.about-photo-modern {
    width: 180px;
    height: 180px;
    border-radius: 24px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.about-photo-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.about-modern:hover .about-photo-modern img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.about-text-modern {
    flex: 1;
}

.about-headline {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    margin-bottom: 20px;
}

.about-headline strong {
    font-weight: 700;
}

/* About CTA Inline Button */
.about-cta-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-cta-inline:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(45, 45, 45, 0.08);
}

.about-cta-inline svg {
    transition: transform 0.3s ease;
}

.about-cta-inline:hover svg {
    transform: translateX(4px);
}

/* Experience Preview on About Section */
.experience-preview {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 28px;
    margin-bottom: 28px;
}

.exp-preview-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exp-preview-title {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.exp-preview-title strong {
    font-weight: 700;
}

.exp-preview-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* About CTA Outline Button - Pill Style */
.about-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--text-primary);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-cta-outline:hover {
    background: var(--text-primary);
    color: var(--bg-card);
}

/* ==========================================
   ABOUT OVERLAY
   ========================================== */
.about-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.about-overlay.active {
    opacity: 1;
    visibility: visible;
}

.about-overlay .overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.about-overlay-container {
    position: relative;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    background: var(--bg-primary);
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-overlay.active .about-overlay-container {
    transform: translateY(0) scale(1);
}

.about-overlay .overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.about-overlay-content {
    display: flex;
    height: 90vh;
    max-height: 90vh;
    overflow: hidden;
}

/* Main Content Area */
.about-main-content {
    flex: 1;
    padding: 40px 60px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Profile Header */
.about-profile-header {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
}

.profile-photo-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.profile-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.profile-title {
    font-size: 18px;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-location {
    font-size: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Download CV Button */
.download-cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--accent-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.download-cv-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-cv-btn svg {
    width: 18px;
    height: 18px;
}

/* About Sections */
.about-section {
    margin-bottom: 48px;
}

.about-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.about-full-bio {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
}

/* Highlights */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: 16px;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.highlight-content {
    flex: 1;
}

.highlight-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.highlight-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Experience Cards - New Style */
.experience-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.exp-card {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.exp-card:last-child {
    border-bottom: none;
}

.exp-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
}

.exp-card.no-expand .exp-card-header {
    cursor: default;
}

.exp-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.exp-card-logo-placeholder {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.exp-card-logo-placeholder span {
    color: white;
    font-size: 22px;
    font-weight: 700;
}

.exp-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exp-card-logo svg {
    width: 28px;
    height: 28px;
    color: var(--text-muted);
}

.exp-card-content {
    flex: 1;
    min-width: 0;
}

.exp-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
}

.exp-card-title .exp-card-at {
    color: var(--text-muted);
    font-weight: 400;
    margin: 0 4px;
}

.exp-card-title .company-link {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.exp-card-title .company-link:hover {
    color: var(--accent-primary);
}

.exp-card-expand {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: var(--text-muted);
}

.exp-card-expand:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.exp-card-expand svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.exp-card.expanded .exp-card-expand svg {
    transform: rotate(45deg);
}

.exp-card-meta {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.exp-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.exp-card-meta .separator {
    color: var(--border-light);
}

.exp-card-description {
    margin-top: 20px;
    margin-left: 72px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    display: none;
}

.exp-card.expanded .exp-card-description {
    display: block;
}

.exp-card-description p {
    margin-bottom: 16px;
}

.exp-achievements {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.exp-achievements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.exp-achievements li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.exp-card-images {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.exp-card-images:first-child {
    margin-top: 0;
}

.exp-card-images img {
    height: 120px;
    width: auto;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-card-images img:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Education Cards */
.education-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.edu-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
}

.edu-card:last-child {
    border-bottom: none;
}

.edu-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.edu-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edu-card-logo svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.edu-card-content {
    flex: 1;
}

.edu-card-logo-placeholder {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}

.edu-card-logo-placeholder span {
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.edu-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.edu-card-title .edu-card-at {
    color: var(--text-muted);
    font-weight: 400;
    margin: 0 4px;
}

.edu-card-title .company-link {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.edu-card-title .company-link:hover {
    color: var(--accent-primary);
}

.edu-card-degree {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.edu-card-institution {
    font-size: 14px;
    color: var(--text-secondary);
}

.edu-card-institution a {
    color: var(--accent-primary);
    text-decoration: none;
}

.edu-card-institution a:hover {
    text-decoration: underline;
}

.edu-card-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.edu-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .exp-card {
        padding: 20px 0;
    }

    .exp-card-header {
        gap: 12px;
    }

    .exp-card-logo {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .exp-card-logo-placeholder span {
        font-size: 18px;
    }

    .exp-card-title {
        font-size: 15px;
    }

    .exp-card-description {
        margin-left: 56px;
    }

    .exp-card-images img {
        height: 100px;
    }

    .exp-card-expand {
        width: 28px;
        height: 28px;
    }

    .edu-card {
        gap: 12px;
        padding: 18px 0;
    }

    .edu-card-logo {
        width: 40px;
        height: 40px;
    }

    .edu-card-title {
        font-size: 14px;
    }
}

/* Legacy Experience List - Keep for compatibility */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.experience-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.experience-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.experience-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.experience-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-logo svg {
    width: 28px;
    height: 28px;
    color: var(--text-muted);
}

.experience-details {
    flex: 1;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.experience-role {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.experience-duration {
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 600;
    background: rgba(45, 45, 45, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
}

.experience-company {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.experience-company a {
    color: var(--accent-primary);
    text-decoration: none;
}

.experience-company a:hover {
    text-decoration: underline;
}

.experience-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.experience-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.experience-achievements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-achievements li {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.experience-achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.experience-year-marker {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

/* Education List */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: 16px;
}

.education-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.education-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.education-logo svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.education-details {
    flex: 1;
}

.education-degree {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.education-institution {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.education-institution a {
    color: var(--accent-primary);
    text-decoration: none;
}

.education-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.education-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* About Overlay Mobile Responsive */
@media (max-width: 768px) {
    .about-overlay-container {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .about-overlay-content {
        flex-direction: column;
        height: 100vh;
    }

    .about-main-content {
        padding: 80px 24px 40px;
    }

    .about-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-photo-large {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 28px;
    }

    .profile-location {
        justify-content: center;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .experience-item {
        flex-direction: column;
        gap: 16px;
    }

    .experience-header {
        flex-direction: column;
        gap: 8px;
    }

    .experience-duration {
        align-self: flex-start;
    }
}

/* Inline Flags */
.flag-inline {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin: 0 4px;
    position: relative;
    cursor: pointer;
}

.flag-inline svg {
    width: 26px;
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flag-inline:hover svg {
    transform: scale(1.2) translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Flag Label - Country Name */
.flag-label {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    margin-bottom: 6px;
}

.flag-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-primary);
}

.flag-inline:hover .flag-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================
   PROJECTS SECTION - macOS FINDER STYLE
   ========================================== */
.projects-section {
    min-width: 700px;
}

/* ==========================================
   BLOG SECTION - Canvas Position
   ========================================== */
.canvas-section.blog {
    z-index: 5;
}

/* ==========================================
   NOTES APP (Blog Section) - macOS Style
   ========================================== */
.notes-app-window {
    background: #ffffff;
    border-radius: 12px;
    border: none;
    overflow: clip;
    box-shadow:
        0 22px 70px 4px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px #d1d1d6;
    width: 900px;
    height: 580px;
    display: flex;
    flex-direction: column;
    /* Prevent scroll from affecting canvas pan */
    touch-action: pan-x pan-y;
}

/* Notes Title Bar */
.notes-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(180deg, #f6f6f6 0%, #e8e8e8 100%);
    border-bottom: 1px solid #d1d1d6;
    min-height: 52px;
    position: relative;
}

.notes-buttons {
    display: flex;
    gap: 8px;
}

.notes-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.notes-btn.red { background: #ff5f57; }
.notes-btn.yellow { background: #febc2e; }
.notes-btn.green { background: #28c840; }

.notes-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.notes-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.blog-count-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-700);
    background: #e0e0e0;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Notes Body - Two Column Layout */
.notes-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0; /* Important for flex child scrolling */
    border-radius: 0 0 11px 11px;
}

/* Notes List - Left Column */
.notes-list {
    width: 350px;
    background: var(--bg-primary);
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
    overscroll-behavior: contain; /* Prevent scroll from bubbling to parent */
    border-radius: 0 0 0 11px;
}

.notes-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    background: var(--bg-primary);
}

.notes-search svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.notes-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    color: var(--gray-800);
    background: transparent;
}

.notes-search input::placeholder {
    color: var(--gray-500);
}

/* Blog Category Filter */
.blog-category-filter {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
    background: var(--bg-primary);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blog-category-filter::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 4px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 16px;
    background: #fff;
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-btn:hover {
    border-color: var(--text-muted);
    color: var(--gray-800);
}

.category-btn.active {
    background: var(--accent-primary, var(--accent-blue));
    border-color: var(--accent-primary, var(--accent-blue));
    color: #fff;
}

[data-theme="dark"] .blog-category-filter {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

[data-theme="dark"] .category-btn {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: var(--gray-500);
}

[data-theme="dark"] .category-btn:hover {
    border-color: var(--gray-700);
    color: #fff;
}

[data-theme="dark"] .category-btn.active {
    background: var(--accent-primary, var(--accent-blue));
    border-color: var(--accent-primary, var(--accent-blue));
    color: #fff;
}

.notes-items {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    cursor: grab;
}

.notes-items:active {
    cursor: grabbing;
}

/* Custom scrollbar - always visible and prominent */
.notes-items,
.notes-preview-content {
    scrollbar-width: thin;
    scrollbar-color: #888 #e0e0e0;
}

.notes-items::-webkit-scrollbar,
.notes-preview-content::-webkit-scrollbar {
    width: 10px;
    display: block !important;
}

.notes-items::-webkit-scrollbar-track,
.notes-preview-content::-webkit-scrollbar-track {
    background: #e8e8e8;
    border-radius: 5px;
    margin: 4px 0;
}

.notes-items::-webkit-scrollbar-thumb,
.notes-preview-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a0a0a0, #888);
    border-radius: 5px;
    border: 2px solid #e8e8e8;
    min-height: 40px;
}

.notes-items::-webkit-scrollbar-thumb:hover,
.notes-preview-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #888, #666);
}

.notes-items::-webkit-scrollbar-thumb:active,
.notes-preview-content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #666, #555);
}

[data-theme="dark"] .notes-items,
[data-theme="dark"] .notes-preview-content {
    scrollbar-color: #666 #2a2a2a;
}

[data-theme="dark"] .notes-items::-webkit-scrollbar-track,
[data-theme="dark"] .notes-preview-content::-webkit-scrollbar-track {
    background: #2a2a2a;
}

[data-theme="dark"] .notes-items::-webkit-scrollbar-thumb,
[data-theme="dark"] .notes-preview-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #666, #555);
    border-color: #2a2a2a;
}

[data-theme="dark"] .notes-items::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .notes-preview-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #777, #666);
}

/* Notes Preview needs position relative for the drag handle */
.notes-preview {
    position: relative;
}

/* Drag Scroll Handle - Hidden (scroll functionality preserved via JS) */
.drag-scroll-handle {
    display: none !important;
}

/* Dark theme for text format toolbar */
[data-theme="dark"] .text-format-toolbar {
    background: rgba(40, 40, 45, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .text-format-toolbar::after {
    border-top-color: rgba(40, 40, 45, 0.98);
}

[data-theme="dark"] .format-btn {
    color: #e0e0e0;
}

[data-theme="dark"] .format-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .size-control-group,
[data-theme="dark"] .color-control-group {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .size-display {
    color: #e0e0e0;
}

[data-theme="dark"] .color-hex-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
}

[data-theme="dark"] .color-hex-input:focus {
    border-color: var(--accent-blue);
}

[data-theme="dark"] .format-divider {
    background: rgba(255, 255, 255, 0.15);
}

.notes-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* Empty State for Notes/Blog */
.notes-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.notes-empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.notes-empty-state p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.notes-empty-state span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Individual Note Item in List - Thumbnail left, title right */
.note-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 2px;
    background: transparent;
}

.note-item:hover {
    background: #e8e8e8;
}

.note-item.active {
    background: var(--accent-blue);
}

.note-item.active .note-item-title,
.note-item.active .note-item-date {
    color: white;
}

.note-item.active .note-item-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.note-item.active .note-item-thumb svg {
    color: white;
}

.note-item-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #e0e0e0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.note-item-thumb svg {
    width: 24px;
    height: 24px;
    color: var(--gray-500);
}

.note-item-thumb-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.note-item-thumb-placeholder svg {
    width: 20px;
    height: 20px;
    color: #ccc;
}

.note-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.note-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.note-item-date {
    font-size: 12px;
    color: var(--gray-600);
}

/* Notes Preview - Right Panel */
.notes-preview {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0; /* Important for flex child scrolling */
    position: relative; /* Required for absolute drag handle */
    border-radius: 0 0 11px 0;
}

.notes-preview-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    gap: 12px;
}

.notes-preview-empty svg {
    width: 48px;
    height: 48px;
}

.notes-preview-empty p {
    font-size: 14px;
}

/* Note Content Display */
.notes-preview-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    touch-action: pan-y;
    cursor: grab;
}

.notes-preview-content:active {
    cursor: grabbing;
}

/* RTL support for notes preview */
.notes-preview-content[dir="rtl"],
.notes-preview-content[lang="ar"] {
    direction: rtl;
    text-align: right;
}

.notes-preview-content[dir="rtl"] .notes-preview-title,
.notes-preview-content[lang="ar"] .notes-preview-title {
    font-family: var(--font-arabic);
}

.notes-preview-body[dir="rtl"],
.notes-preview-body[lang="ar"] {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
    line-height: 1.9;
}

/* Blog Password Prompt in Preview */
.blog-password-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    height: 100%;
}

.blog-password-prompt svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.blog-password-prompt h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.blog-password-prompt p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 280px;
}

.blog-password-input {
    width: 100%;
    max-width: 280px;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 12px;
}

.blog-password-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.blog-password-submit {
    width: 100%;
    max-width: 280px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--accent-blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-password-submit:hover {
    background: #0066d6;
}

.blog-password-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 12px;
    display: none;
}

/* Preview Toolbar with Open Button */
.notes-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
    background: var(--bg-tertiary);
}

.blog-open-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.blog-open-btn:hover {
    background: #0066d6;
}

.blog-open-btn svg {
    width: 14px;
    height: 14px;
}

.notes-preview-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.notes-preview-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.notes-preview-meta {
    font-size: 12px;
    color: var(--gray-600);
}

.notes-preview-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-800);
}

.notes-preview-body p {
    margin-bottom: 16px;
}

.notes-preview-body h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.notes-preview-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.notes-preview-body ul,
.notes-preview-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.notes-preview-body li {
    margin-bottom: 8px;
}

.notes-preview-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.notes-preview-body blockquote {
    border-left: 3px solid var(--accent-blue);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--accent-secondary);
    font-style: italic;
}

.notes-preview-body code {
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
}

.notes-preview-body pre {
    background: var(--bg-primary);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.notes-preview-body pre code {
    background: none;
    padding: 0;
}

/* Legacy scroll-hint (hidden, replaced by drag-scroll-handle) */
.scroll-hint {
    display: none;
}

/* Read More Button */
.notes-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notes-read-more:hover {
    background: #0066d6;
    transform: translateY(-1px);
}

.notes-read-more svg {
    width: 14px;
    height: 14px;
}

/* Notes App Mobile Responsive */
@media (max-width: 900px) {
    .notes-app-window {
        width: 700px;
        height: 450px;
    }

    .notes-sidebar {
        display: none;
    }

    .notes-list {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .notes-app-window {
        width: 320px;
        height: 400px;
    }

    .notes-body {
        flex-direction: column;
    }

    .notes-sidebar {
        display: none;
    }

    .notes-list {
        width: 100%;
        height: 150px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .notes-preview {
        flex: 1;
    }

    .notes-preview-content {
        padding: 16px;
    }

    .notes-preview-title {
        font-size: 18px;
    }
}

/* Finder Window */
.finder-window {
    background: var(--bg-primary);
    border-radius: 12px;
    border: none;
    overflow: clip;
    min-width: 1000px;
    max-width: 1100px;
    height: 580px;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 22px 70px 4px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px #d1d1d6;
}

/* Finder Title Bar */
.finder-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(180deg, #f6f6f6 0%, #e8e8e8 100%);
    border-bottom: 1px solid #d1d1d6;
    position: relative;
}

.finder-buttons {
    display: flex;
    gap: 8px;
}

.finder-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: default;
}

.finder-btn.red {
    background: #ff5f57;
}

.finder-btn.yellow {
    background: #febc2e;
}

.finder-btn.green {
    background: #28c840;
}

.finder-title {
    font-size: 13px;
    font-weight: 500;
    color: #3d3d3d;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.finder-actions {
    display: flex;
    gap: 8px;
}

.finder-view-icon {
    width: 18px;
    height: 18px;
    color: #6e6e73;
}

/* Finder Body */
.finder-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    border-radius: 0 0 11px 11px;
}

/* Finder Sidebar */
.finder-sidebar {
    width: 180px;
    background: rgba(245, 245, 247, 0.95);
    border-right: 1px solid #d1d1d6;
    padding: 12px 0;
    flex-shrink: 0;
    border-radius: 0 0 0 11px;
}

.sidebar-section {
    padding: 0 12px;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 8px 6px;
    display: block;
}

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

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.sidebar-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.sidebar-item.active {
    background: var(--accent-blue);
    color: white;
}

.sidebar-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sidebar-item.active svg {
    stroke: white;
}

/* Finder Content Area */
.finder-content {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0 0 11px 0;
}

.finder-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-divider);
    flex-shrink: 0;
}

.finder-path {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    margin-right: 12px;
}

.finder-count {
    font-size: 11px;
    color: var(--text-secondary);
    margin-right: auto;
}

/* View Toggle Buttons */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding-left: 12px;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.view-btn:hover {
    background: #e5e5e5;
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--accent-blue);
    color: white;
}

.view-btn.active svg {
    stroke: white;
}

.view-btn svg {
    width: 16px;
    height: 16px;
}

[data-theme="dark"] .view-btn {
    color: var(--text-secondary);
}

[data-theme="dark"] .view-btn:hover {
    background: #3a3a3a;
    color: #fff;
}

[data-theme="dark"] .view-btn.active {
    background: #0a84ff;
    color: white;
}

/* Image Stack View for Projects */
.folders-grid.image-view {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px;
}

.folders-grid.image-view .mac-folder {
    display: none;
}

.folders-grid.image-view .project-image-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--card-bg, #f5f5f7);
    display: flex;
    flex-direction: column;
}

.folders-grid.image-view .project-image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.folders-grid.image-view .project-image-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.folders-grid.image-view .project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.folders-grid.image-view .project-image-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}

.folders-grid.image-view .project-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.folders-grid.image-view .project-image-info {
    padding: 10px 12px;
    background: var(--card-bg, #fff);
    flex-shrink: 0;
}

.folders-grid.image-view .project-image-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #1d1d1f);
    margin: 0 0 4px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folders-grid.image-view .project-image-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary, #86868b);
}

.folders-grid.image-view .project-image-category {
    background: var(--tag-bg, rgba(0, 0, 0, 0.05));
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.folders-grid.image-view .project-image-date {
    opacity: 0.8;
}

.folders-grid.image-view .project-image-year {
    font-size: 11px;
    color: var(--text-muted, #86868b);
}

.folders-grid.image-view .project-card-lock {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folders-grid.image-view .project-card-lock svg {
    width: 16px;
    height: 16px;
    color: white;
}

/* Dark mode for image view */
[data-theme="dark"] .folders-grid.image-view .project-image-card {
    background: #2c2c2e;
}

[data-theme="dark"] .folders-grid.image-view .project-image-info {
    background: #2c2c2e;
}

[data-theme="dark"] .folders-grid.image-view .project-image-title {
    color: #f5f5f7;
}

[data-theme="dark"] .folders-grid.image-view .project-image-meta {
    color: #a1a1a6;
}

[data-theme="dark"] .folders-grid.image-view .project-image-category {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive image view */
@media (max-width: 1400px) {
    .folders-grid.image-view {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .folders-grid.image-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .folders-grid.image-view {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
}

/* Finder Empty State */
.finder-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.finder-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    min-height: 300px;
    height: 100%;
}

.finder-empty-state svg {
    width: 48px;
    height: 48px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    opacity: 0.6;
}

.finder-empty-state p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.finder-empty-state span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==========================================
   macOS STYLE FOLDERS WITH POPUP IMAGES
   ========================================== */
.folders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 50px;
    padding: 60px 50px 80px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    align-content: start;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Folders grid scrollbar - matching notes style */
.folders-grid {
    scrollbar-width: thin;
    scrollbar-color: #888 #e0e0e0;
}

.folders-grid::-webkit-scrollbar {
    width: 10px;
    display: block !important;
}

.folders-grid::-webkit-scrollbar-track {
    background: #e8e8e8;
    border-radius: 5px;
    margin: 4px 0;
}

.folders-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a0a0a0, #888);
    border-radius: 5px;
    border: 2px solid #e8e8e8;
    min-height: 40px;
}

.folders-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #888, #666);
}

.folders-grid::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #666, #555);
}

[data-theme="dark"] .folders-grid {
    scrollbar-color: #666 #2a2a2a;
}

[data-theme="dark"] .folders-grid::-webkit-scrollbar-track {
    background: #2a2a2a;
}

[data-theme="dark"] .folders-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #666, #555);
    border-color: #2a2a2a;
}

[data-theme="dark"] .folders-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #777, #666);
}

/* When only empty state is present, center it */
.folders-grid:has(.finder-empty-state:only-child) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mac-folder {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

/* Folder Wrapper - contains folder and popup images */
.folder-wrapper {
    position: relative;
    width: 110px;
    height: 130px;
    margin: 0 auto 12px;
}

/* Popup Images Container */
.popup-images {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Individual Popup Images */
.popup-img {
    position: absolute;
    width: 65px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(20px) scale(0.8);
}

/* Image positions - stacked in folder initially */
.popup-img.img-1 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 3;
}

.popup-img.img-2 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 2;
}

.popup-img.img-3 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 1;
}

/* Hover state - images fan out */
.mac-folder:hover .popup-img {
    opacity: 1;
}

.mac-folder:hover .popup-img.img-1 {
    transform: translate(-130%, -120%) rotate(-15deg) scale(1);
    transition-delay: 0.05s;
}

.mac-folder:hover .popup-img.img-2 {
    transform: translate(-50%, -140%) rotate(0deg) scale(1);
    transition-delay: 0.1s;
}

.mac-folder:hover .popup-img.img-3 {
    transform: translate(30%, -120%) rotate(15deg) scale(1);
    transition-delay: 0.15s;
}

/* Folder Icon - macOS style */
.folder-icon {
    width: 110px;
    height: 90px;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

.mac-folder:hover .folder-icon {
    transform: scale(0.95);
}

/* Folder Tab (top part) */
.folder-tab {
    position: absolute;
    top: 0;
    left: 8px;
    width: 40px;
    height: 14px;
    background: linear-gradient(180deg, #7DC8FB 0%, #5AB4F5 100%);
    border-radius: 4px 4px 0 0;
    z-index: 1;
}

/* Folder Body */
.folder-body {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #7DC8FB 0%, #4BA3E3 50%, #3D8FD1 100%);
    border-radius: 3px 10px 10px 10px;
    box-shadow:
        0 2px 6px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Folder Lock Icon for protected projects */
.folder-lock {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.folder-lock svg {
    width: 14px;
    height: 14px;
    stroke: #6366f1;
}

.mac-folder.protected:hover .folder-lock {
    background: rgba(99, 102, 241, 1);
}

.mac-folder.protected:hover .folder-lock svg {
    stroke: white;
}

/* Folder color variations */
.folder-icon.blue .folder-tab {
    background: linear-gradient(180deg, #60A5FA 0%, #3B82F6 100%);
}

.folder-icon.blue .folder-body {
    background: linear-gradient(180deg, #60A5FA 0%, #2563EB 50%, #1D4ED8 100%);
}

.folder-icon.yellow .folder-tab {
    background: linear-gradient(180deg, #FCD34D 0%, #F59E0B 100%);
}

.folder-icon.yellow .folder-body {
    background: linear-gradient(180deg, #FCD34D 0%, #D97706 50%, #B45309 100%);
}

/* Folder Name - Now first, uppercase, centered with folder */
.folder-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    width: 110px;
    margin: 0 auto 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Folder Info - Duration and Year below name, centered with folder */
.folder-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 110px;
    margin: 0 auto;
}

.folder-duration {
    font-size: 10px;
    font-weight: 500;
    color: #6e6e73;
}

.folder-date {
    font-size: 10px;
    color: var(--text-secondary);
}


/* ==========================================
   CAREER SECTION - CV Style
   ========================================== */
.career-card {
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px;
    min-width: 500px;
    max-width: 600px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.career-section {
    margin-bottom: 32px;
}

.career-section:last-child {
    margin-bottom: 0;
}

.career-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.career-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.career-item:last-child {
    border-bottom: none;
}

.career-item:hover {
    background: var(--bg-hover);
    margin: 0 -16px;
    padding: 12px 16px;
    border-radius: 8px;
}

.career-date {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    white-space: nowrap;
}

.career-details h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
}

.career-details .company-link {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--border-light);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.career-details .company-link:hover {
    text-decoration-color: var(--accent-primary);
    color: var(--accent-primary);
}

.career-details .company-link::after {
    content: ' ↗';
    font-size: 11px;
    opacity: 0.6;
}

.career-location {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================
   STICKY NOTES (Testimonials)
   ========================================== */
.floating-note {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: grab;
}

.floating-note:hover {
    transform: scale(1.05) rotate(-2deg);
    z-index: 100;
}

.floating-note.dragging {
    cursor: grabbing;
    z-index: 1000;
    transition: none;
}

.floating-note.dragging .sticky-note {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: scale(1.05) rotate(-1deg);
}

.sticky-note {
    padding: 24px;
    border-radius: 4px;
    width: 220px;
    box-shadow: 0 2px 6px var(--shadow-color);
    transform: rotate(var(--rotation, 0deg));
}

.sticky-note.yellow {
    background: #fef08a;
    color: #1a1a1a;
    --rotation: -3deg;
}

.sticky-note.pink {
    background: #fda4af;
    color: #1a1a1a;
    --rotation: 2deg;
}

.sticky-note.blue {
    background: #93c5fd;
    color: #1a1a1a;
    --rotation: -1deg;
}

.sticky-note p {
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 12px;
}

.note-author {
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    min-width: 400px;
}

.contact-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.contact-card > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.contact-link:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-primary);
    transform: translateX(8px);
}

.contact-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.contact-link:hover .contact-icon {
    color: var(--accent-primary);
}

/* Decorative elements removed - using subtle grid instead */

/* ==========================================
   HIRE ME SECTION - Contact Form
   ========================================== */
.canvas-section.hire {
    z-index: 5;
}

.hire-form-window {
    background: #ffffff;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    box-shadow: 0 22px 70px 4px rgba(0, 0, 0, 0.15);
    width: 420px;
    display: flex;
    flex-direction: column;
}

.hire-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(180deg, #f6f6f6 0%, #e8e8e8 100%);
    border-bottom: 1px solid #d1d1d6;
    min-height: 52px;
    position: relative;
}

.hire-buttons {
    display: flex;
    gap: 8px;
}

.hire-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.hire-btn.red { background: #ff5f57; }
.hire-btn.yellow { background: #febc2e; }
.hire-btn.green { background: #28c840; }

.hire-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.hire-actions {
    width: 52px;
}

.hire-form-content {
    padding: 28px;
    background: #ffffff;
}

.hire-header {
    margin-bottom: 24px;
}

.hire-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.hire-header p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
}

.hire-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: #fff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-group textarea {
    resize: none;
    line-height: 1.5;
}

.hire-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--accent-blue);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.hire-submit-btn:hover {
    background: #0066d6;
    transform: translateY(-1px);
}

.hire-submit-btn:active {
    transform: translateY(0);
}

.hire-submit-btn svg {
    width: 18px;
    height: 18px;
}

/* Success State */
.hire-success {
    text-align: center;
    padding: 40px 20px;
}

.hire-success svg {
    width: 56px;
    height: 56px;
    color: #28c840;
    margin-bottom: 20px;
}

.hire-success h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.hire-success p {
    font-size: 14px;
    color: var(--gray-700);
}

/* ==========================================
   RESPONSIVE - Mobile Experience
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-section {
        min-width: 420px;
    }

    .title-line {
        font-size: 56px;
    }

    .about-modern {
        max-width: 480px;
        padding: 32px;
    }

    .about-headline {
        font-size: 24px;
    }

    .career-card {
        min-width: 420px;
        padding: 32px;
    }

    .folders-grid {
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Hide custom cursor on mobile */
    .custom-cursor {
        display: none !important;
    }

    body {
        cursor: auto;
    }

    .canvas-container {
        cursor: grab;
        touch-action: none;
    }

    .canvas-container:active {
        cursor: grabbing;
    }

    /* Navigation - Floating bottom bar for mobile */
    .navbar {
        position: fixed !important;
        bottom: 24px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 9999 !important;
        padding: 8px 12px !important;
        gap: 8px !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border: none !important;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15) !important;
    }

    [data-theme="dark"] .navbar {
        background: rgba(40, 40, 40, 0.98) !important;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
    }

    /* Hide Home, Blog, Hire, and Contact buttons on mobile - only show About and Projects */
    .nav-btn[data-target="home"],
    .nav-btn[data-target="blog"],
    .nav-btn[data-target="hire"],
    .nav-btn[data-target="contact"] {
        display: none !important;
    }

    /* Nav buttons with icon + label side by side */
    .nav-btn {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: auto !important;
        height: auto !important;
        padding: 12px 20px !important;
        border-radius: 14px !important;
        background: transparent !important;
        transition: all 0.2s ease !important;
    }

    .nav-btn.active {
        background: #000 !important;
    }

    .nav-btn.active svg {
        color: #fff !important;
    }

    .nav-btn.active::after {
        color: #fff !important;
    }

    [data-theme="dark"] .nav-btn.active {
        background: #fff !important;
    }

    [data-theme="dark"] .nav-btn.active svg {
        color: #000 !important;
    }

    [data-theme="dark"] .nav-btn.active::after {
        color: #000 !important;
    }

    .nav-btn svg {
        width: 22px !important;
        height: 22px !important;
        flex-shrink: 0 !important;
    }

    /* Show labels next to icons on mobile */
    .nav-btn::after {
        content: attr(data-target);
        font-size: 15px;
        font-weight: 600;
        text-transform: capitalize;
        color: var(--text-primary);
        letter-spacing: -0.01em;
    }

    .nav-tooltip {
        display: none !important;
    }

    /* Zoom controls - Compact for mobile */
    .zoom-controls {
        top: 60px;
        bottom: auto;
        left: auto;
        right: 16px;
        padding: 6px;
        border-radius: 14px;
        flex-direction: row;
        gap: 4px;
    }

    /* Hide loading screen on mobile */
    .loading-screen {
        display: none !important;
    }

    /* Hide zoom controls on mobile */
    .zoom-controls {
        display: none !important;
    }

    /* Hide view switcher on mobile - Stage View only */
    .view-switcher {
        display: none !important;
    }

    /* Hide list and canvas views on mobile - Stage View is default */
    .list-view,
    .canvas-view {
        display: none !important;
    }

    /* Ensure stage view is always visible on mobile */
    .stage-view {
        display: flex !important;
        overflow: visible !important;
    }

    /* Hide stage sidebar thumbnails on mobile - navigation via navbar only */
    .stage-sidebar {
        display: none !important;
    }

    /* Make stage main take full width on mobile */
    .stage-main {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 !important;
        height: 100%;
        background: transparent !important;
    }

    /* Stage content wrapper - smooth scrolling on mobile */
    .stage-content {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        max-height: none !important;
        height: 100vh !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        background: var(--bg-primary) !important;
        box-shadow: none !important;
    }

    /* Stage content - smooth scrollable */
    #stageContent {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        height: 100vh !important;
        height: 100dvh !important;
        padding-bottom: 120px !important;
        touch-action: pan-y !important;
    }

    /* No transitions on mobile - instant page changes */
    #stageContent .stage-content-inner {
        transition: none !important;
        animation: none !important;
        overflow: visible !important;
        height: auto !important;
        opacity: 1 !important;
        transform: none !important;
    }

    #stageContent.transitioning .stage-content-inner,
    #stageContent.slide-up .stage-content-inner,
    #stageContent.slide-down .stage-content-inner,
    #stageContent.slide-in-up .stage-content-inner,
    #stageContent.slide-in-down .stage-content-inner {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Mobile-optimized Stage View sections */
    .stage-section {
        padding: 0;
    }

    .stage-home {
        text-align: center;
        padding: 40px 20px;
    }

    .stage-home .hero-avatar {
        width: 100px;
        height: 100px;
        margin: 0 auto 24px;
    }

    .stage-home .hero-avatar svg,
    .stage-home .hero-avatar img {
        width: 100px;
        height: 100px;
    }

    .stage-home .hero-title .title-line {
        font-size: 36px;
    }

    .stage-home .hero-greeting {
        font-size: 14px;
    }

    .stage-home .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .stage-home .hero-cta {
        flex-direction: row;
        gap: 12px;
        justify-content: center;
    }

    .stage-home .hero-cta .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Mobile Stage About section */
    .stage-about .about-card-modern {
        padding: 24px;
        border-radius: 20px;
    }

    .stage-about .about-photo-topleft {
        width: 70px;
        height: 70px;
    }

    .stage-about .about-bio-text {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Mobile Stage Projects grid */
    .stage-projects .project-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stage-projects .project-card {
        border-radius: 16px;
    }

    /* Mobile Stage Blog */
    .stage-blog .blog-posts-list {
        gap: 12px;
    }

    .stage-blog .blog-post-card {
        padding: 16px;
        border-radius: 14px;
    }

    /* Mobile Stage Contact */
    .stage-contact {
        padding: 24px 16px;
    }

    .stage-contact h2 {
        font-size: 28px;
    }

    /* Mobile navbar touch-friendly */
    .navbar .nav-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        color: var(--text-secondary);
        border: none;
        border-radius: 12px;
        transition: all 0.2s ease;
    }

    .navbar .nav-btn svg {
        width: 22px;
        height: 22px;
    }

    /* Mobile navbar active state - dark background with white icon */
    .navbar .nav-btn.active {
        background: var(--accent-primary) !important;
        color: white !important;
    }

    /* Mobile navbar tap/touch state */
    .navbar .nav-btn:active {
        transform: scale(0.95);
        background: var(--bg-hover);
    }

    /* Hide tooltips on mobile */
    .navbar .nav-tooltip {
        display: none !important;
    }

    /* Hide minimap on mobile */
    .minimap {
        display: none !important;
    }

    /* Hide separate mobile nav - use main navbar */
    .mobile-nav {
        display: none !important;
    }

    /* Ensure main navbar shows on mobile - floating style */
    .navbar {
        display: flex !important;
        position: fixed;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-light);
        border-radius: 16px;
        z-index: 1000;
    }

    [data-theme="dark"] .navbar {
        background: rgba(17, 17, 17, 0.95);
    }

    /* No extra padding needed for canvas container */
    #canvasContainer {
        padding-bottom: 0;
    }

    /* Canvas sections - Mobile optimized */
    .section-content {
        padding: 24px;
        border-radius: 20px;
    }

    /* Hero Section - Mobile */
    .hero-section {
        min-width: 280px;
        max-width: 320px;
        padding: 24px;
    }

    .hero-logo svg {
        width: 80px;
        height: 80px;
    }

    .hero-logo {
        margin-bottom: 24px;
    }

    .title-line {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .hero-greeting {
        font-size: 16px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 13px;
        width: 100%;
        text-align: center;
    }

    .scroll-indicator {
        display: none;
    }

    /* About Section - Mobile */
    .about-modern {
        flex-direction: column;
        max-width: 320px;
        padding: 28px;
        gap: 24px;
        text-align: center;
    }

    .about-photo-modern {
        width: 140px;
        height: 140px;
        border-radius: 20px;
        margin: 0 auto;
    }

    .about-headline {
        font-size: 17px;
        line-height: 1.6;
    }

    .flag-inline svg {
        width: 22px;
        height: 16px;
    }

    /* =============================================
       MOBILE FULL ABOUT SECTION
       ============================================= */
    .mobile-full-about {
        padding: 20px !important;
    }

    .mobile-about-content {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .mobile-about-header {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .mobile-profile-photo {
        width: 80px;
        height: 80px;
        border-radius: 20px;
        overflow: hidden;
        flex-shrink: 0;
        background: var(--bg-secondary, #f0f0f0);
    }

    .mobile-profile-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: var(--bg-secondary, #f0f0f0);
    }

    /* Hide broken image icon */
    .mobile-profile-photo img[src=""],
    .mobile-profile-photo img:not([src]) {
        display: none;
    }

    .mobile-profile-info {
        flex: 1;
    }

    .mobile-profile-name {
        font-size: 24px;
        font-weight: 700;
        margin: 0 0 4px 0;
        color: var(--text-primary);
    }

    .mobile-profile-title {
        font-size: 14px;
        color: var(--text-secondary);
        margin: 0 0 2px 0;
    }

    .mobile-profile-location {
        font-size: 13px;
        color: var(--text-tertiary);
        margin: 0;
    }

    .mobile-about-section {
        padding: 0;
    }

    .mobile-about-section .mobile-section-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0 0 12px 0;
    }

    .mobile-about-bio {
        font-size: 15px;
        line-height: 1.6;
        color: var(--text-secondary);
        margin: 0;
    }

    .mobile-experience-list,
    .mobile-education-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-exp-item,
    .mobile-edu-item {
        padding: 16px;
        background: var(--bg-secondary, #f5f5f5);
        border-radius: 12px;
    }

    .mobile-exp-header,
    .mobile-edu-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 4px;
    }

    .mobile-exp-role,
    .mobile-edu-degree {
        font-size: 15px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
        flex: 1;
    }

    .mobile-exp-date,
    .mobile-edu-date {
        font-size: 12px;
        color: var(--text-tertiary);
        white-space: nowrap;
    }

    .mobile-exp-company,
    .mobile-edu-school {
        font-size: 13px;
        color: var(--text-secondary);
        margin: 0;
    }

    .mobile-cv-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 24px;
        background: var(--text-primary);
        color: var(--bg-primary);
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        margin-top: 8px;
    }

    .mobile-cv-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Mobile Contact Links */
    .mobile-contact-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
        padding-bottom: 100px;
    }

    .mobile-contact-link {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px 20px;
        background: var(--bg-secondary, #f5f5f5);
        border-radius: 14px;
        text-decoration: none;
        color: var(--text-primary);
        transition: all 0.2s ease;
    }

    .mobile-contact-link:active {
        transform: scale(0.98);
        opacity: 0.8;
    }

    .mobile-contact-link svg {
        width: 22px;
        height: 22px;
        color: var(--text-secondary);
        flex-shrink: 0;
    }

    .mobile-contact-link span {
        font-size: 16px;
        font-weight: 500;
    }

    /* =============================================
       MOBILE PROJECTS - 2 Column Grid Layout
       ============================================= */

    /* Projects section layout */
    .stage-projects {
        display: block !important;
        position: relative !important;
    }

    /* Sticky header at top */
    .stage-projects .mobile-filter-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
        background: var(--bg-primary) !important;
    }

    /* Hide finder window chrome on mobile */
    .finder-window {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .finder-titlebar,
    .finder-toolbar,
    .finder-sidebar {
        display: none !important;
    }

    .finder-content {
        width: 100%;
        border-radius: 0;
        background: transparent !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Projects as 2-column grid */
    .folders-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 16px !important;
        padding-bottom: 100px !important;
        max-height: none !important;
        overflow: visible !important;
        background: transparent !important;
    }

    /* Each project as a card */
    .mac-folder {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        padding: 0 !important;
        border: none !important;
        text-align: center !important;
        width: 100% !important;
        background: transparent !important;
    }

    /* Thumbnail container */
    .folder-wrapper {
        width: 100% !important;
        height: 120px !important;
        margin: 0 !important;
        position: relative !important;
        border-radius: 12px !important;
        overflow: visible !important;
        background: transparent !important;
    }

    /* Hide the folder icon on mobile */
    .folder-icon {
        display: none !important;
    }

    /* Popup images container for stacked cards */
    .popup-images {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
    }

    /* Stacked card effect for thumbnails */
    .popup-img {
        display: block !important;
        position: absolute !important;
        width: 90% !important;
        height: 85% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        opacity: 1 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
    }

    /* Back card - bottom of stack */
    .popup-img.img-3 {
        top: 0 !important;
        left: 5% !important;
        z-index: 1 !important;
        transform: rotate(-2deg) !important;
    }

    /* Middle card */
    .popup-img.img-2 {
        top: 4% !important;
        left: 2.5% !important;
        z-index: 2 !important;
        transform: rotate(1deg) !important;
    }

    /* Front card - top of stack */
    .popup-img.img-1 {
        top: 8% !important;
        left: 0 !important;
        z-index: 3 !important;
        transform: rotate(-1deg) !important;
    }

    /* Project name below thumbnail */
    .folder-name {
        font-size: 14px !important;
        font-weight: 600 !important;
        width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        text-align: center !important;
        color: var(--text-primary) !important;
    }

    /* Hide folder info */
    .folder-info {
        display: none !important;
    }

    /* Lock icon positioning for grid */
    .folder-lock {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 8px !important;
        z-index: 5 !important;
        background: rgba(0, 0, 0, 0.5) !important;
    }

    .folder-lock svg {
        width: 14px !important;
        height: 14px !important;
        color: white !important;
    }

    /* Mobile Filter Header for Projects - Floating pill style */
    .mobile-filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 100px;
        padding: 12px 12px 12px 28px;
        position: sticky;
        top: 16px;
        left: 16px;
        right: 16px;
        margin: 16px;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 50px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        z-index: 100;
    }

    [data-theme="dark"] .mobile-filter-header {
        background: rgba(40, 40, 40, 0.98) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-section-title {
        font-size: 20px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
        text-align: left;
        flex: 1;
    }

    .mobile-filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: #000;
        border: none;
        border-radius: 50%;
        color: #fff;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-left: 60px;
    }

    [data-theme="dark"] .mobile-filter-btn {
        background: #fff;
        color: #000;
    }

    .mobile-filter-btn:active {
        transform: scale(0.95);
    }

    .mobile-filter-btn svg {
        width: 20px;
        height: 20px;
    }

    .mobile-filter-btn .filter-label {
        display: none;
    }

    .mobile-filter-btn.active {
        background: var(--accent-primary, var(--accent-blue));
        border-color: var(--accent-primary, var(--accent-blue));
        color: white;
    }

    .mobile-filter-btn.active svg {
        stroke: white;
    }

    /* Mobile Category Filter Dropdown */
    .mobile-category-filter {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        background: var(--bg-card-solid, #fff);
        border: 1px solid var(--border-light, rgba(128, 128, 128, 0.2));
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 100;
        min-width: 160px;
    }

    .mobile-category-filter.active {
        display: flex;
    }

    .category-chip {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 16px;
        background: transparent;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 500;
        color: var(--text-primary);
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: left;
    }

    .category-chip-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: rgba(0, 0, 0, 0.06);
        border-radius: 50%;
        flex-shrink: 0;
    }

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

    .category-chip:hover {
        background: var(--bg-secondary, rgba(128, 128, 128, 0.1));
    }

    .category-chip.active {
        background: var(--accent-primary, var(--accent-blue));
        color: white;
    }

    .category-chip.active .category-chip-icon {
        background: rgba(255, 255, 255, 0.2);
    }

    .category-chip.active .category-chip-icon svg {
        stroke: white;
    }

    /* Career Section - Mobile */
    .career-card {
        min-width: 280px;
        max-width: 320px;
        padding: 24px;
    }

    .career-title {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .career-item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 0;
    }

    .career-date {
        font-size: 11px;
        color: var(--accent-primary);
        font-weight: 500;
    }

    .career-details h3 {
        font-size: 13px;
    }

    .career-location {
        font-size: 11px;
    }

    .career-item:hover {
        margin: 0;
        padding: 12px 0;
        background: transparent;
    }

    /* Testimonials - Mobile */
    .sticky-note {
        width: 180px;
        padding: 16px;
    }

    .sticky-note p {
        font-size: 12px;
    }

    .note-author {
        font-size: 10px;
    }

    /* Finder Window - Canvas Mobile */
    .finder-window {
        min-width: 320px;
        max-width: 360px;
    }

    .finder-sidebar {
        display: none;
    }

    .finder-content {
        width: 100%;
    }

    .finder-toolbar {
        padding: 8px 12px;
    }

    /* =============================================
       MOBILE BLOGS - Thumbnail + Title list
       ============================================= */

    /* Hide notes window chrome on mobile */
    .notes-app-window {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .notes-titlebar {
        display: none !important;
    }

    /* Hide search bar and category filter on mobile */
    .notes-search,
    .notes-toolbar,
    .blog-category-filter {
        display: none !important;
    }

    .notes-body {
        flex-direction: column;
        min-height: auto;
        border-radius: 0;
    }

    .notes-list {
        width: 100% !important;
        max-height: none !important;
        border-right: none !important;
        border-bottom: none !important;
        background: transparent !important;
    }

    .notes-items {
        padding: 0 !important;
        overflow: visible !important;
    }

    /* Hide preview panel on mobile */
    .notes-preview {
        display: none !important;
    }

    /* Blog items with thumbnail + title */
    .note-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 16px 20px !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
        border-bottom: 1px solid var(--border-light, #e5e5e5);
        background: transparent !important;
        gap: 16px !important;
        cursor: pointer;
    }

    .note-item:last-child {
        border-bottom: none;
    }

    /* No hover effects on mobile */
    .note-item:hover,
    .note-item.active {
        background: transparent !important;
        transform: none !important;
    }

    .note-item.active .note-item-title,
    .note-item.active .note-item-date {
        color: var(--text-primary) !important;
    }

    /* Show blog thumbnail on mobile */
    .note-item-thumb {
        display: block !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 8px !important;
        overflow: hidden;
        flex-shrink: 0;
        background: var(--bg-secondary);
    }

    .note-item-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .note-item-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center;
        gap: 4px !important;
        flex: 1;
        min-width: 0;
    }

    .note-item-title {
        font-size: 16px !important;
        font-weight: 600;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100%;
    }

    .note-item-date {
        font-size: 13px !important;
        color: var(--text-secondary) !important;
    }

    /* Hide arrow on mobile */
    .note-item-arrow {
        display: none !important;
    }

    /* =============================================
       MOBILE HIRE FORM - Full width, no window chrome
       ============================================= */
    .hire-form-window {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .hire-form-window .finder-titlebar,
    .hire-form-window .notes-titlebar,
    .hire-titlebar {
        display: none !important;
    }

    .hire-form-content {
        padding: 24px 20px !important;
        background: transparent !important;
    }

    .hire-header h2 {
        font-size: 24px !important;
        margin-bottom: 8px;
    }

    .hire-header p {
        font-size: 15px !important;
        color: var(--text-secondary);
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 14px !important;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important;
        padding: 14px 16px !important;
        border-radius: 12px !important;
    }

    .hire-form-content .btn {
        font-size: 16px !important;
        padding: 16px 24px !important;
        width: 100%;
    }

    /* =============================================
       MOBILE ABOUT CARD - Larger and cleaner
       ============================================= */
    .about-card-modern {
        max-width: 100% !important;
        width: 100% !important;
        padding: 28px 20px !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .about-photo-topleft {
        width: 100px !important;
        height: 100px !important;
        border-radius: 16px !important;
    }

    .about-bio-text {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    .about-flags {
        top: 28px;
        right: 20px;
    }

    .flag-item {
        font-size: 22px;
    }

    .experience-preview {
        margin: 20px 0;
    }

    .about-cta-outline {
        padding: 14px 24px !important;
        font-size: 15px !important;
        width: 100%;
        justify-content: center;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 100 !important;
        cursor: pointer !important;
    }

    /* =============================================
       MOBILE CONTACT - Full width, bigger text
       ============================================= */
    .contact-section {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 24px 20px !important;
    }

    .contact-card {
        background: transparent !important;
        padding: 0 !important;
    }

    .contact-card h2 {
        font-size: 28px !important;
        margin-bottom: 12px;
    }

    .contact-card > p {
        font-size: 16px !important;
        margin-bottom: 32px;
        line-height: 1.5;
    }

    .contact-links {
        gap: 12px !important;
        flex-direction: column !important;
    }

    .contact-link {
        padding: 18px 20px !important;
        gap: 16px !important;
        border-radius: 14px !important;
        background: var(--bg-secondary, #f5f5f5) !important;
        width: 100%;
    }

    .contact-icon {
        width: 24px !important;
        height: 24px !important;
    }

    .contact-link span {
        font-size: 16px !important;
        font-weight: 500;
    }

    /* =============================================
       MOBILE SECTION LABELS - Hide or minimize
       ============================================= */
    .section-label {
        display: none !important;
    }

    /* =============================================
       MOBILE GENERAL - Bigger touch targets
       ============================================= */

    /* Mac folder hover effects disabled on mobile */
    .mac-folder:hover,
    .mac-folder:active {
        transform: none !important;
    }

    /* Make blog items bigger - no hover effects */
    .note-item {
        padding: 20px !important;
        gap: 18px !important;
    }

    .note-item:hover,
    .note-item:active {
        transform: none !important;
        background: transparent !important;
    }

    .note-item-thumb {
        width: 60px !important;
        height: 60px !important;
        border-radius: 10px !important;
    }

    .note-item-title {
        font-size: 18px !important;
        font-weight: 600 !important;
    }

    .note-item-date {
        font-size: 14px !important;
    }

    /* Hide overlays on mobile - navigate to page instead */
    .project-overlay,
    .about-overlay {
        display: none !important;
    }

    /* Make scrollable content areas work better */
    .stage-content-inner {
        overflow: visible !important;
        max-height: none !important;
        padding-bottom: 40px;
        touch-action: pan-y !important;
    }
}

/* ==========================================
   PROJECT OVERLAY
   ========================================== */
.project-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.overlay-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--bg-card-solid);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(40px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-overlay.active .overlay-container {
    transform: translateY(0) scale(1);
}

.overlay-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.overlay-open-page,
.overlay-close {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    text-decoration: none;
}

.overlay-open-page:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: scale(1.05);
}

.overlay-close:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: rotate(90deg);
}

.overlay-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px;
}

/* Custom scrollbar for overlay */
.overlay-content::-webkit-scrollbar {
    width: 8px;
}

.overlay-content::-webkit-scrollbar-track {
    background: transparent;
}

.overlay-content::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

.overlay-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.overlay-header {
    margin-bottom: 40px;
}

.overlay-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.overlay-client {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
    padding: 6px 14px;
    background: rgba(45, 45, 45, 0.08);
    border-radius: 20px;
}

.overlay-date {
    font-size: 13px;
    color: var(--text-muted);
}

.overlay-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.overlay-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 700px;
}

.overlay-details {
    display: flex;
    gap: 40px;
    padding: 24px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.detail-tools {
    flex: 1;
    min-width: 200px;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-tag {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.overlay-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.gallery-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-image:hover img {
    transform: scale(1.02);
}

/* Content Blocks */
.content-block {
    margin-bottom: 32px;
}

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

.content-block.full-width {
    width: 100%;
}

.content-block.contained-width {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.block-caption {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* Video Block */
.video-block {
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.video-wrapper iframe,
.video-wrapper video,
.video-wrapper embed,
.video-wrapper object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 16px;
}

/* Text Block */
.text-block {
    padding: 32px 0;
}

.text-block-heading {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.text-block-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-line;
}

/* Hide details if empty */
.detail-item:empty,
.detail-item.hidden {
    display: none;
}

/* More Projects Section */
.more-projects {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

.more-projects-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.more-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.more-project-card {
    cursor: pointer;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.more-project-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.more-project-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: var(--bg-primary);
}

.more-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.more-project-card:hover .more-project-image img {
    transform: scale(1.1);
}

.more-project-info {
    padding: 16px;
}

.more-project-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.more-project-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Small Mobile */
@media (max-width: 375px) {
    .navbar {
        padding: 6px 8px;
    }

    .nav-btn {
        width: 44px;
        height: 44px;
    }

    .hero-section {
        min-width: 260px;
        max-width: 280px;
    }

    .title-line {
        font-size: 36px;
    }

    .about-modern {
        max-width: 260px;
    }

    .about-headline {
        font-size: 16px;
    }

    .career-card {
        min-width: 260px;
        max-width: 280px;
    }

    .folders-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .contact-section {
        min-width: 260px;
        max-width: 280px;
    }
}

/* Landscape Mobile - Optimize for horizontal view */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        bottom: 8px;
        padding: 6px 10px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .zoom-controls {
        bottom: 60px;
        flex-direction: row;
    }

    .hero-section {
        min-width: 400px;
    }

    .title-line {
        font-size: 48px;
    }

    .hero-cta {
        flex-direction: row;
    }
}

/* Overlay Mobile Responsive */
@media (max-width: 768px) {
    .overlay-container {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .overlay-content {
        padding: 24px;
        padding-top: 60px;
    }

    .overlay-actions {
        top: 12px;
        right: 12px;
        gap: 8px;
    }

    .overlay-open-page,
    .overlay-close {
        width: 40px;
        height: 40px;
    }

    .overlay-title {
        font-size: 28px;
    }

    .overlay-description {
        font-size: 15px;
    }

    .overlay-details {
        gap: 24px;
    }

    .detail-tools {
        width: 100%;
    }

    .more-projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .more-project-image {
        height: 140px;
    }

    /* Content blocks mobile */
    .content-block.contained-width {
        max-width: 100%;
    }

    .text-block {
        padding: 24px 0;
    }

    .text-block-heading {
        font-size: 20px;
    }

    .text-block-content {
        font-size: 15px;
    }

    .video-wrapper {
        border-radius: 12px;
    }

    .video-wrapper iframe,
    .video-wrapper video {
        border-radius: 12px;
    }
}

/* ==========================================
   TOUCH DEVICE - Disable hover effects
   ========================================== */
@media (hover: none) and (pointer: coarse) {
    /* Disable all hover transforms and effects on touch devices */
    .nav-btn:hover,
    .zoom-btn:hover,
    .canvas-section:hover,
    .section-content:hover,
    .btn-primary:hover,
    .btn-ghost:hover,
    .about-card-modern:hover,
    .about-modern:hover,
    .about-cta-inline:hover,
    .about-cta-outline:hover,
    .download-cv-btn:hover,
    .skill-tag:hover,
    .exp-card-expand:hover,
    .experience-item:hover,
    .note-item:hover,
    .blog-open-btn:hover,
    .notes-read-more:hover,
    .sidebar-item:hover,
    .mac-folder:hover,
    .career-item:hover,
    .floating-note:hover,
    .contact-link:hover,
    .hire-submit-btn:hover,
    .overlay-open-page:hover,
    .overlay-close:hover,
    .tool-tag:hover,
    .gallery-image:hover,
    .more-project-card:hover,
    .flag-item:hover,
    .flag-inline:hover {
        transform: none !important;
        background: inherit;
    }

    /* Reset specific hover background colors */
    .nav-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .zoom-btn:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .note-item:hover {
        background: transparent;
    }

    .sidebar-item:hover {
        background: transparent;
    }

    .experience-item:hover {
        background: transparent;
    }

    .career-item:hover {
        background: transparent;
        transform: none;
    }

    /* Note: Popup images visible on mobile as thumbnails - no hover effects needed */

    /* Disable image zoom on hover */
    .gallery-image:hover img,
    .more-project-card:hover .more-project-image img,
    .exp-card-images img:hover {
        transform: none !important;
    }

    /* Disable tooltip on hover */
    .nav-btn:hover .nav-tooltip {
        opacity: 0;
        visibility: hidden;
    }

    /* Disable sticky note hover */
    .testimonials-grid-block .sticky-note:hover {
        transform: none !important;
    }

    /* Disable about photo hover effects */
    .about-card-modern:hover .about-photo-topleft img,
    .about-modern:hover .about-photo-modern img {
        transform: none !important;
    }

    /* Ensure tap targets are properly sized */
    .nav-btn,
    .zoom-btn,
    .btn-primary,
    .btn-ghost,
    .mac-folder,
    .note-item,
    .sidebar-item,
    .contact-link {
        min-height: 44px;
        min-width: 44px;
    }

    /* Add active states for touch feedback */
    .nav-btn:active,
    .zoom-btn:active,
    .btn-primary:active,
    .btn-ghost:active,
    .mac-folder:active,
    .note-item:active,
    .sidebar-item:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* ==========================================
   PASSWORD PROTECTION OVERLAY
   ========================================== */

.password-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.password-overlay.active {
    opacity: 1;
    visibility: visible;
}

.password-container {
    position: relative;
    width: 90%;
    max-width: 420px;
    background: var(--bg-card-solid);
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    text-align: center;
}

.password-overlay.active .password-container {
    transform: translateY(0) scale(1);
}

.password-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.password-close svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
}

.password-close:hover {
    background: var(--bg-tertiary);
}

.password-close:hover svg {
    stroke: var(--text-primary);
}

.password-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary, #6366f1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-icon svg {
    width: 36px;
    height: 36px;
    stroke: white;
}

.password-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.password-subtitle {
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.password-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 28px;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    width: 100%;
    padding: 14px 48px 14px 18px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
}

.password-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(var(--accent-primary-rgb, 99, 102, 241), 0.15);
}

.password-input::placeholder {
    color: var(--text-tertiary);
}

.password-toggle {
    position: absolute;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-tertiary);
    transition: stroke 0.2s ease;
}

.password-toggle:hover svg {
    stroke: var(--text-secondary);
}

.password-error {
    color: #ef4444;
    font-size: 0.85rem;
    min-height: 20px;
    margin: -8px 0;
}

.password-submit {
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary, #6366f1));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.password-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-primary-rgb, 99, 102, 241), 0.35);
}

.password-submit:active {
    transform: translateY(0);
}

/* Mobile adjustments for password overlay */
@media (max-width: 768px) {
    .password-container {
        padding: 36px 24px;
        margin: 16px;
    }

    .password-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .password-icon svg {
        width: 28px;
        height: 28px;
    }

    .password-title {
        font-size: 1.3rem;
    }

    .password-description {
        font-size: 0.85rem;
        margin-bottom: 24px;
    }
}
