/* ============================================ */
        /* TECH PERIPHERALS - TOP & SIDE RIBBON TABS */
        /* ============================================ */
        .ribbon-tab:focus { outline: none !important; box-shadow: none !important; }
        
        .ribbon-container {
            display: flex;
            gap: 0;
            margin: 20px 0 30px;
            min-height: 400px;
        }

        /* ============================================ */
        /* TOP RIBBON - Horizontal Bookmark Tabs - ALL VISIBLE */
        /* ============================================ */
        .ribbon-top {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            padding-left: 0;
            border-bottom: 2px solid var(--border-light, #e8e8e8);
            margin-bottom: 20px;
            position: relative;
        }

        .ribbon-tab-top {
            position: relative;
            padding: 10px 20px 8px 20px;
            background: var(--bg-card-front, #ffffff);
            border: 1px solid var(--border-light, #e8e8e8);
            border-bottom: none;
            border-radius: 8px 8px 0 0;
            font-family: var(--font-primary, 'Georgia', serif);
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary, #555555);
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: -2px;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .ribbon-tab-top::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-top: 10px solid var(--bg-card-front, #ffffff);
            opacity: 0;
            transition: all 0.3s ease;
        }

        .ribbon-tab-top.active {
            background: var(--gold, #c9a84c);
            color: #ffffff;
            border-color: var(--gold, #c9a84c);
            box-shadow: 0 -4px 15px rgba(201, 168, 76, 0.2);
            z-index: 2;
        }

        .ribbon-tab-top.active::after {
            opacity: 1;
            border-top-color: var(--gold, #c9a84c);
        }

        .ribbon-tab-top:hover:not(.active) {
            background: var(--gold-light, #e8d5a3);
            border-color: var(--gold, #c9a84c);
            color: var(--text-primary, #1a1a1a);
            transform: translateY(-2px);
        }

        .ribbon-tab-top:hover:not(.active)::after {
            opacity: 0.5;
            border-top-color: var(--gold-light, #e8d5a3);
        }

        .ribbon-tab-top i {
            font-size: 14px;
            flex-shrink: 0;
        }

        .ribbon-tab-top.active i {
            color: #ffffff;
        }

        /* ============================================ */
        /* CONTENT AREA */
        /* ============================================ */
        .ribbon-content-area {
            flex: 1;
            background: var(--bg-card-front, #ffffff);
            border: 1px solid var(--border-light, #e8e8e8);
            border-radius: 8px 0 0 8px;
            padding: 30px 35px;
            box-shadow: 0 4px 20px var(--shadow-light, rgba(0,0,0,0.04));
            min-height: 400px;
            position: relative;
            z-index: 1;
            overflow-x: hidden;
        }

        .ribbon-content-area .category-header {
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--border-light, #e8e8e8);
        }

        .ribbon-content-area .category-header h2 {
            font-family: var(--font-primary, 'Georgia', serif);
            font-size: 24px;
            font-weight: 700;
            color: var(--text-primary, #1a1a1a);
            margin: 0;
        }

        .ribbon-content-area .category-header h2 span {
            color: var(--gold, #c9a84c);
        }

        .ribbon-content-area .category-header p {
            font-size: 14px;
            color: var(--text-secondary, #555555);
            font-family: var(--font-primary, 'Georgia', serif);
            font-style: italic;
            margin: 5px 0 0;
        }

        /* ============================================ */
        /* RIBBON SIDE - Vertical Navigation */
        /* ============================================ */
        .ribbon-side {
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding-left: 0;
            flex-shrink: 0;
            width: 170px;
            position: relative;
            z-index: 2;
            padding-top: 10px;
        }

        .ribbon-tab {
            position: relative;
            padding: 14px 20px 12px 18px;
            background: var(--bg-card-front, #ffffff);
            border: 1px solid var(--border-light, #e8e8e8);
            border-left: none;
            border-radius: 0 8px 8px 0;
            font-family: var(--font-primary, 'Georgia', serif);
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary, #555555);
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            text-align: left;
            box-shadow: 2px 2px 8px var(--shadow-light, rgba(0,0,0,0.04));
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;
            min-height: 48px;
            border: none;
            width: 100%;
            background: var(--bg-card-front, #ffffff);
            border: 1px solid var(--border-light, #e8e8e8);
            border-left: none;
            border-radius: 0 8px 8px 0;
            text-decoration: none !important;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .ribbon-tab::after {
            content: '';
            position: absolute;
            left: -12px;
            top: 0;
            width: 12px;
            height: 100%;
            background: inherit;
            clip-path: polygon(100% 0, 0 50%, 100% 100%);
            border-left: 1px solid var(--border-light, #e8e8e8);
            border-top: 1px solid var(--border-light, #e8e8e8);
            border-bottom: 1px solid var(--border-light, #e8e8e8);
            border-radius: 4px 0 0 4px;
        }

        .ribbon-tab::before {
            content: '';
            position: absolute;
            bottom: -8px;
            right: 0;
            width: 100%;
            height: 10px;
            background: inherit;
            clip-path: polygon(100% 0, 50% 100%, 0 0);
            border: 1px solid var(--border-light, #e8e8e8);
            border-top: none;
            border-radius: 0 0 4px 4px;
            opacity: 0;
            transition: all 0.3s ease;
        }

        .ribbon-tab.active {
            background: var(--gold, #c9a84c);
            color: #ffffff;
            border-color: var(--gold, #c9a84c);
            box-shadow: 4px 4px 20px rgba(201, 168, 76, 0.25);
            transform: translateX(4px);
            z-index: 3;
        }

        .ribbon-tab.active::after {
            border-color: var(--gold, #c9a84c);
            background: var(--gold, #c9a84c);
        }

        .ribbon-tab.active::before {
            opacity: 1;
            border-color: var(--gold, #c9a84c);
            background: var(--gold-dark, #a8893a);
        }

        .ribbon-tab:hover:not(.active) {
            background: var(--gold-light, #e8d5a3);
            border-color: var(--gold, #c9a84c);
            color: var(--text-primary, #1a1a1a);
            transform: translateX(4px);
        }

        .ribbon-tab i {
            font-size: 16px;
            min-width: 20px;
            text-align: center;
        }

        .ribbon-tab.active i {
            color: #ffffff;
        }

        /* ============================================ */
        /* IMAGE CAROUSEL - LARGE BANNER */
        /* ============================================ */
        .image-carousel-wrapper {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            border: 1px solid var(--border-light, #e8e8e8);
            background: #1a1a1a;
            -webkit-overflow-scrolling: touch;
        }

        .image-carousel {
            display: flex;
            transition: transform 0.5s ease;
            will-change: transform;
        }

        .image-carousel .slide {
            flex: 0 0 100%;
            aspect-ratio: 16 / 9;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            cursor: pointer;
            background: #1a1a1a;
            -webkit-tap-highlight-color: transparent;
        }

        .image-carousel .slide img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            -webkit-user-drag: none;
            user-select: none;
            pointer-events: none;
        }

        .image-carousel .slide .slide-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            padding: 40px 30px 20px;
            color: #fff;
            pointer-events: none;
        }

        .image-carousel .slide .slide-overlay .slide-title {
            font-family: var(--font-primary, 'Georgia', serif);
            font-size: 22px;
            font-weight: 700;
            margin: 0;
        }

        .image-carousel .slide .slide-overlay .slide-title span {
            color: var(--gold, #c9a84c);
        }

        .image-carousel .slide .slide-overlay .slide-subtitle {
            font-size: 14px;
            opacity: 0.8;
            margin: 4px 0 0;
            font-family: 'Segoe UI', sans-serif;
        }

        .image-carousel .slide .slide-overlay .latest-badge {
            display: inline-block;
            background: #ff4444;
            color: #fff;
            font-size: 10px;
            font-weight: 700;
            padding: 2px 10px;
            border-radius: 12px;
            margin-bottom: 4px;
            text-transform: uppercase;
            font-family: 'Segoe UI', sans-serif;
        }

        .image-carousel .slide .zoom-hint {
            position: absolute;
            bottom: 20px;
            right: 20px;
            background: rgba(0,0,0,0.7);
            color: #fff;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-family: 'Segoe UI', sans-serif;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .image-carousel .slide:hover .zoom-hint {
            opacity: 1;
        }

        .carousel-dots {
            display: flex !important;
            justify-content: center;
            align-items: center;
            gap: 10px;
            padding: 12px 0;
            background: rgba(0,0,0,0.7);
            flex-wrap: wrap;
        }

        .carousel-dots .dot {
            display: inline-block !important;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255,255,255,0.3);
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            min-width: 10px;
            min-height: 10px;
            padding: 0;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .carousel-dots .dot.active {
            background: var(--gold, #c9a84c);
            transform: scale(1.2);
        }

        .carousel-dots .dot:hover {
            background: rgba(255,255,255,0.6);
        }

        .carousel-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 5;
            background: rgba(0,0,0,0.5);
            color: #fff;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .carousel-arrow:hover {
            background: var(--gold, #c9a84c);
        }

        .carousel-arrow-left { left: 10px; }
        .carousel-arrow-right { right: 10px; }

        /* ============================================ */
        /* NO PROJECTS STATE */
        /* ============================================ */
        .no-projects {
            text-align: center;
            padding: 60px 20px;
            color: #999;
        }

        .no-projects .empty-icon {
            font-size: 60px;
            color: var(--gold, #c9a84c);
            opacity: 0.2;
            display: block;
            margin-bottom: 20px;
        }

        .no-projects h3 {
            font-size: 20px;
            color: #666;
            font-weight: 300;
        }

        .no-projects p {
            font-size: 14px;
            color: #999;
        }

        /* ============================================ */
        /* IMAGE MODAL */
        /* ============================================ */
        .image-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.92);
            z-index: 99999;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .image-modal.show {
            display: flex !important;
        }

        .modal-container {
            position: relative;
            max-width: 90%;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            padding: 8px;
            background: transparent;
        }

        .modal-image-wrapper {
            position: relative;
            max-height: 80vh;
            overflow: hidden;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            touch-action: none;
        }

        .modal-image-wrapper img {
            max-width: 100%;
            max-height: 80vh;
            object-fit: contain;
            border-radius: 8px;
            display: block;
            cursor: grab;
            user-select: none;
            -webkit-user-drag: none;
            touch-action: none;
        }

        .modal-image-wrapper img:active {
            cursor: grabbing;
        }

        .modal-close {
            position: absolute;
            top: 10px;
            right: 10px;
            color: #fff;
            font-size: 20px;
            background: rgba(0,0,0,0.7);
            border: 2px solid rgba(255,255,255,0.2);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .modal-close:hover {
            background: #dc3545;
            transform: rotate(90deg) scale(1.1);
        }

        .modal-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background: rgba(0,0,0,0.6);
            color: #fff;
            border: 2px solid rgba(255,255,255,0.15);
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .modal-nav:hover {
            background: var(--gold, #c9a84c);
            border-color: var(--gold, #c9a84c);
            transform: translateY(-50%) scale(1.1);
        }

        .modal-nav-left { left: 10px; }
        .modal-nav-right { right: 10px; }

        .modal-counter {
            color: rgba(255,255,255,0.4);
            font-size: 13px;
            margin-top: 10px;
            font-weight: 300;
        }

        .modal-counter span {
            color: var(--gold, #c9a84c);
            font-weight: 600;
        }

        .modal-title {
            color: rgba(255,255,255,0.8);
            font-size: 16px;
            margin-top: 8px;
            font-weight: 400;
            font-family: var(--font-primary, 'Georgia', serif);
            text-align: center;
        }

        /* ============================================ */
        /* RESPONSIVE - ALL BUTTONS VISIBLE */
        /* ============================================ */

        /* Prevent horizontal scroll */
        body {
            overflow-x: hidden;
            max-width: 100vw;
        }

        .book-wrapper {
            max-width: 100%;
            overflow-x: hidden;
        }

        /* Tablet */
        @media (max-width: 1024px) {
            .ribbon-side { width: 140px; }
            .ribbon-tab { font-size: 12px; padding: 12px 16px 10px 14px; min-height: 44px; }
            .ribbon-tab i { font-size: 15px; min-width: 18px; }
            .ribbon-content-area { padding: 25px 28px; }
            .ribbon-tab-top { padding: 8px 14px 6px 14px; font-size: 12px; }
        }

        @media (max-width: 992px) {
            .ribbon-side { width: 130px; }
            .ribbon-tab { font-size: 11px; padding: 10px 12px 8px 10px; min-height: 38px; gap: 6px; }
            .ribbon-tab i { font-size: 13px; min-width: 14px; }
            .ribbon-content-area { padding: 20px 24px; }
            .ribbon-tab-top { padding: 7px 12px 5px 12px; font-size: 11px; gap: 5px; }
            .ribbon-tab-top i { font-size: 11px; }
        }

        /* Mobile - Top ribbon wraps properly */
        @media (max-width: 820px) {
            .ribbon-top {
                gap: 3px;
                flex-wrap: wrap;
                overflow-x: visible;
                padding-bottom: 2px;
            }
            
            .ribbon-tab-top {
                padding: 6px 10px 4px 10px;
                font-size: 10px;
                gap: 4px;
                flex-shrink: 1;
                white-space: nowrap;
            }
            
            .ribbon-tab-top i {
                font-size: 10px;
            }
            
            .ribbon-tab-top::after {
                display: none;
            }
            
            .ribbon-tab-top.active {
                box-shadow: 0 -2px 10px rgba(201, 168, 76, 0.15);
            }
            
            .ribbon-side {
                width: auto;
                padding: 10px 0 8px 0;
                flex-direction: row;
                flex-wrap: wrap;
                gap: 5px;
                border-bottom: 2px solid var(--border-light, #e8e8e8);
                margin-bottom: 10px;
            }
            
            .ribbon-tab {
                padding: 6px 14px 6px 14px;
                font-size: 11px;
                min-height: 30px;
                border-radius: 20px;
                border: 1px solid var(--border-light, #e8e8e8);
                border-left: 1px solid var(--border-light, #e8e8e8);
                box-shadow: none;
                width: auto;
                flex: 0 0 auto;
                transform: none;
                background: #f5f5f5;
            }
            
            .ribbon-tab i {
                font-size: 11px;
                min-width: 12px;
                color: var(--text-secondary, #555555);
            }
            
            .ribbon-tab::after, .ribbon-tab::before { display: none; }
            
            .ribbon-tab.active {
                background: var(--gold, #c9a84c);
                color: #ffffff;
                border-color: var(--gold, #c9a84c);
                transform: none;
                box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
            }
            
            .ribbon-tab.active i { color: #ffffff; }
            
            .ribbon-tab:hover:not(.active) {
                background: var(--gold-light, #e8d5a3);
                border-color: var(--gold, #c9a84c);
                color: var(--text-primary, #1a1a1a);
                transform: none;
            }
            
            .ribbon-content-area {
                border-radius: 8px 8px 0 0;
                padding: 18px 18px;
            }
            
            .ribbon-container {
                flex-direction: column-reverse;
                margin: 15px 0 20px;
                min-height: auto;
            }
            
            .ribbon-content-area .category-header h2 { font-size: 20px; }
            .ribbon-content-area .category-header p { font-size: 13px; }
        }

        /* Small Mobile */
        @media (max-width: 580px) {
            .ribbon-tab-top {
                padding: 5px 8px 4px 8px;
                font-size: 9px;
                gap: 3px;
            }
            
            .ribbon-tab-top i {
                font-size: 9px;
            }
            
            .ribbon-side { gap: 4px; padding: 6px 0 4px 0; }
            .ribbon-tab { font-size: 10px; padding: 5px 10px 5px 10px; min-height: 24px; border-radius: 16px; gap: 4px; }
            .ribbon-tab i { font-size: 10px; min-width: 10px; }
            .ribbon-content-area { padding: 14px 12px; }
            .ribbon-content-area .category-header h2 { font-size: 18px; }
            .ribbon-content-area .category-header p { font-size: 12px; }
        }

        @media (max-width: 480px) {
            .ribbon-tab-top {
                padding: 4px 6px 3px 6px;
                font-size: 8px;
                gap: 2px;
            }
            
            .ribbon-tab-top i {
                font-size: 8px;
            }
            
            .ribbon-side { gap: 3px; padding: 4px 0 3px 0; }
            .ribbon-tab { font-size: 9px; padding: 4px 8px 4px 8px; min-height: 20px; border-radius: 14px; gap: 3px; }
            .ribbon-tab i { font-size: 9px; min-width: 8px; }
            .ribbon-content-area { padding: 12px 8px; }
            .ribbon-content-area .category-header h2 { font-size: 16px; }
        }

        @media (max-width: 400px) {
            .ribbon-tab-top {
                padding: 3px 5px 2px 5px;
                font-size: 7px;
                gap: 2px;
            }
            
            .ribbon-tab-top i {
                font-size: 7px;
            }
            
            .ribbon-side { gap: 2px; padding: 3px 0 2px 0; }
            .ribbon-tab { font-size: 8px; padding: 3px 6px 3px 6px; min-height: 18px; border-radius: 12px; gap: 2px; }
            .ribbon-tab i { font-size: 8px; min-width: 6px; }
            .ribbon-content-area { padding: 10px 6px; }
        }

        /* ============================================ */
        /* IMAGE CAROUSEL RESPONSIVE */
        /* ============================================ */
        @media (max-width: 768px) {
            .image-carousel .slide { aspect-ratio: 4 / 3; }
            .carousel-arrow { width: 34px; height: 34px; font-size: 14px; }
            .carousel-arrow-left { left: 6px; }
            .carousel-arrow-right { right: 6px; }
            .carousel-dots { padding: 8px 0; gap: 5px; }
            .carousel-dots .dot { width: 8px !important; height: 8px !important; min-width: 8px !important; min-height: 8px !important; }
            .image-carousel .slide .zoom-hint { display: none; }
            .image-carousel .slide .slide-overlay .slide-title { font-size: 18px; }
            .image-carousel .slide .slide-overlay .slide-subtitle { font-size: 12px; }
            .image-carousel .slide .slide-overlay { padding: 30px 20px 15px; }
        }

        @media (max-width: 480px) {
            .image-carousel .slide { aspect-ratio: 1 / 1; }
            .carousel-arrow { width: 28px; height: 28px; font-size: 12px; }
            .carousel-dots { padding: 6px 0; gap: 4px; }
            .carousel-dots .dot { width: 6px !important; height: 6px !important; min-width: 6px !important; min-height: 6px !important; }
            .image-carousel-wrapper { border-radius: 8px; }
            .image-carousel .slide .slide-overlay .slide-title { font-size: 15px; }
            .image-carousel .slide .slide-overlay .slide-subtitle { font-size: 11px; }
            .image-carousel .slide .slide-overlay { padding: 20px 15px 12px; }
        }

        /* ============================================ */
        /* MODAL RESPONSIVE */
        /* ============================================ */
        @media (max-width: 768px) {
            .modal-container { max-width: 95%; max-height: 95vh; padding: 4px; }
            .modal-image-wrapper { max-height: 60vh; }
            .modal-image-wrapper img { max-height: 60vh; }
            .modal-nav { width: 34px; height: 34px; font-size: 14px; }
            .modal-nav-left { left: 4px; }
            .modal-nav-right { right: 4px; }
            .modal-close { width: 34px; height: 34px; font-size: 16px; top: 6px; right: 6px; }
            .modal-counter { font-size: 12px; margin-top: 8px; }
            .modal-title { font-size: 14px; }
        }

        @media (max-width: 480px) {
            .modal-container { max-width: 98%; max-height: 98vh; padding: 2px; }
            .modal-image-wrapper { max-height: 50vh; }
            .modal-image-wrapper img { max-height: 50vh; }
            .modal-nav { width: 30px; height: 30px; font-size: 12px; }
            .modal-nav-left { left: 2px; }
            .modal-nav-right { right: 2px; }
            .modal-close { width: 30px; height: 30px; font-size: 14px; top: 4px; right: 4px; }
            .modal-counter { font-size: 11px; margin-top: 6px; }
            .modal-title { font-size: 12px; }
        }

        /* ============================================ */
        /* LANDSCAPE PHONES */
        /* ============================================ */
        @media (max-height: 500px) and (orientation: landscape) {
            .ribbon-container { min-height: auto; margin: 10px 0 15px; }
            .ribbon-content-area { padding: 15px 20px; min-height: 200px; }
            .ribbon-tab { font-size: 10px; padding: 4px 10px 4px 10px; min-height: 22px; }
            .ribbon-tab-top { padding: 4px 10px 3px 10px; font-size: 10px; }
            .image-carousel .slide { aspect-ratio: 16 / 9; max-height: 50vh; }
            .image-carousel .slide .slide-overlay { padding: 20px 20px 12px; }
            .image-carousel .slide .slide-overlay .slide-title { font-size: 16px; }
            .carousel-dots { padding: 4px 0; }
            .carousel-dots .dot { width: 6px !important; height: 6px !important; min-width: 6px !important; min-height: 6px !important; }
            .modal-image-wrapper { max-height: 60vh; }
            .modal-image-wrapper img { max-height: 60vh; }
        }

        /* ============================================ */
        /* ACCESSIBILITY */
        /* ============================================ */
        @media (prefers-reduced-motion: reduce) {
            .image-carousel { transition: none !important; }
            .ribbon-tab-top { transition: none !important; }
            .ribbon-tab { transition: none !important; }
            .carousel-arrow { transition: none !important; }
            .modal-close { transition: none !important; }
            .modal-nav { transition: none !important; }
        }

        @media (prefers-color-scheme: dark) {
            .image-carousel-wrapper { border-color: #333; }
            .carousel-dots { background: rgba(0,0,0,0.9); }
        }

        
        .ribbon-tab:focus { outline: none !important; box-shadow: none !important; }
        
        .ribbon-container {
            display: flex;
            gap: 0;
            margin: 20px 0 30px;
            min-height: 400px;
        }

        .ribbon-content-area {
            flex: 1;
            background: var(--bg-card-front, #ffffff);
            border: 1px solid var(--border-light, #e8e8e8);
            border-radius: 8px 0 0 8px;
            padding: 30px 35px;
            box-shadow: 0 4px 20px var(--shadow-light, rgba(0,0,0,0.04));
            min-height: 400px;
            position: relative;
            z-index: 1;
            overflow-x: hidden;
        }

        .ribbon-content-area .category-header {
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--border-light, #e8e8e8);
        }

        .ribbon-content-area .category-header h2 {
            font-family: var(--font-primary, 'Georgia', serif);
            font-size: 24px;
            font-weight: 700;
            color: var(--text-primary, #1a1a1a);
            margin: 0;
        }

        .ribbon-content-area .category-header h2 span {
            color: var(--gold, #c9a84c);
        }

        .ribbon-content-area .category-header p {
            font-size: 14px;
            color: var(--text-secondary, #555555);
            font-family: var(--font-primary, 'Georgia', serif);
            font-style: italic;
            margin: 5px 0 0;
        }

        /* ============================================ */
        /* TOP RIBBON - Horizontal Navigation */
        /* ============================================ */
        .ribbon-top {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            padding-left: 0;
            border-bottom: 2px solid var(--border-light, #e8e8e8);
            margin-bottom: 20px;
            position: relative;
        }

        .ribbon-tab-top {
            position: relative;
            padding: 10px 20px 8px 20px;
            background: var(--bg-card-front, #ffffff);
            border: 1px solid var(--border-light, #e8e8e8);
            border-bottom: none;
            border-radius: 8px 8px 0 0;
            font-family: var(--font-primary, 'Georgia', serif);
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary, #555555);
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: -2px;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .ribbon-tab-top::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-top: 10px solid var(--bg-card-front, #ffffff);
            opacity: 0;
            transition: all 0.3s ease;
        }

        .ribbon-tab-top.active {
            background: var(--gold, #c9a84c);
            color: #ffffff;
            border-color: var(--gold, #c9a84c);
            box-shadow: 0 -4px 15px rgba(201, 168, 76, 0.2);
            z-index: 2;
        }

        .ribbon-tab-top.active::after {
            opacity: 1;
            border-top-color: var(--gold, #c9a84c);
        }

        .ribbon-tab-top:hover:not(.active) {
            background: var(--gold-light, #e8d5a3);
            border-color: var(--gold, #c9a84c);
            color: var(--text-primary, #1a1a1a);
            transform: translateY(-2px);
        }

        .ribbon-tab-top:hover:not(.active)::after {
            opacity: 0.5;
            border-top-color: var(--gold-light, #e8d5a3);
        }

        .ribbon-tab-top i {
            font-size: 14px;
            flex-shrink: 0;
        }

        .ribbon-tab-top.active i {
            color: #ffffff;
        }

        /* ============================================ */
        /* RIBBON SIDE - Vertical Navigation */
        /* ============================================ */
        .ribbon-side {
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding-left: 0;
            flex-shrink: 0;
            width: 160px;
            position: relative;
            z-index: 2;
            padding-top: 10px;
        }

        .ribbon-tab {
            position: relative;
            padding: 12px 18px 12px 16px;
            background: var(--bg-card-front, #ffffff);
            border: 1px solid var(--border-light, #e8e8e8);
            border-left: none;
            border-radius: 0 8px 8px 0;
            font-family: var(--font-primary, 'Georgia', serif);
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary, #555555);
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            text-align: left;
            box-shadow: 2px 2px 8px var(--shadow-light, rgba(0,0,0,0.04));
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;
            min-height: 44px;
            border: none;
            width: 100%;
            background: var(--bg-card-front, #ffffff);
            border: 1px solid var(--border-light, #e8e8e8);
            border-left: none;
            border-radius: 0 8px 8px 0;
            text-decoration: none !important;
            line-height: 1.3;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .ribbon-tab::after {
            content: '';
            position: absolute;
            left: -12px;
            top: 0;
            width: 12px;
            height: 100%;
            background: inherit;
            clip-path: polygon(100% 0, 0 50%, 100% 100%);
            border-left: 1px solid var(--border-light, #e8e8e8);
            border-top: 1px solid var(--border-light, #e8e8e8);
            border-bottom: 1px solid var(--border-light, #e8e8e8);
            border-radius: 4px 0 0 4px;
        }

        .ribbon-tab::before {
            content: '';
            position: absolute;
            bottom: -8px;
            right: 0;
            width: 100%;
            height: 10px;
            background: inherit;
            clip-path: polygon(100% 0, 50% 100%, 0 0);
            border: 1px solid var(--border-light, #e8e8e8);
            border-top: none;
            border-radius: 0 0 4px 4px;
            opacity: 0;
            transition: all 0.3s ease;
        }

        .ribbon-tab.active {
            background: var(--gold, #c9a84c);
            color: #ffffff;
            border-color: var(--gold, #c9a84c);
            box-shadow: 4px 4px 20px rgba(201, 168, 76, 0.25);
            transform: translateX(4px);
            z-index: 3;
        }

        .ribbon-tab.active::after {
            border-color: var(--gold, #c9a84c);
            background: var(--gold, #c9a84c);
        }

        .ribbon-tab.active::before {
            opacity: 1;
            border-color: var(--gold, #c9a84c);
            background: var(--gold-dark, #a8893a);
        }

        .ribbon-tab:hover:not(.active) {
            background: var(--gold-light, #e8d5a3);
            border-color: var(--gold, #c9a84c);
            color: var(--text-primary, #1a1a1a);
            transform: translateX(4px);
        }

        .ribbon-tab i {
            font-size: 15px;
            min-width: 18px;
            text-align: center;
        }

        .ribbon-tab.active i {
            color: #ffffff;
        }

        /* ============================================ */
        /* PROJECTS SECTION */
        /* ============================================ */
        .projects-section {
            max-width: 1200px;
            margin: 0 auto 50px;
            padding: 0 20px;
        }
        
        .projects-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 25px;
        }
        
        .projects-header h1 {
            font-size: 28px;
            font-weight: 300;
            color: #1a1a1a;
            margin: 0;
        }
        
        .projects-header h1 span {
            color: #c9a84c;
            font-weight: 700;
        }
        
        /* ============================================ */
        /* FILTER AND SEARCH BAR - MOBILE FRIENDLY */
        /* ============================================ */
        .filter-search-bar {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 20px;
            padding: 12px 16px;
            background: #f8f8f8;
            border-radius: 10px;
            border: 1px solid #e8e8e8;
        }

        .filter-search-bar .filter-group {
            display: flex;
            align-items: center;
            gap: 6px;
            flex: 0 0 auto;
        }

        .filter-search-bar .filter-group label {
            font-size: 12px;
            color: #666;
            margin: 0;
            font-weight: 500;
            font-family: 'Segoe UI', sans-serif;
            white-space: nowrap;
        }

        .filter-search-bar .filter-group select {
            padding: 5px 10px;
            border: 2px solid #e8e8e8;
            border-radius: 6px;
            font-size: 12px;
            background: #fff;
            color: #333;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 100px;
            font-family: 'Segoe UI', sans-serif;
            height: 34px;
        }

        .filter-search-bar .filter-group select:focus {
            outline: none;
            border-color: #c9a84c;
            box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
        }

        .filter-search-bar .search-group {
            display: flex;
            align-items: center;
            gap: 5px;
            flex: 1;
            min-width: 150px;
        }

        .filter-search-bar .search-group input {
            flex: 1;
            padding: 5px 10px;
            border: 2px solid #e8e8e8;
            border-radius: 6px;
            font-size: 12px;
            background: #fff;
            color: #333;
            transition: all 0.3s ease;
            min-width: 80px;
            font-family: 'Segoe UI', sans-serif;
            height: 34px;
        }

        .filter-search-bar .search-group input:focus {
            outline: none;
            border-color: #c9a84c;
            box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
        }

        .filter-search-bar .search-group input::placeholder {
            color: #aaa;
            font-size: 12px;
        }

        .filter-search-bar .search-group .search-btn {
            padding: 5px 12px;
            background: #c9a84c;
            color: #fff;
            border: none;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
            font-family: 'Segoe UI', sans-serif;
            height: 34px;
            flex-shrink: 0;
        }

        .filter-search-bar .search-group .search-btn:hover {
            background: #b8973a;
        }

        .filter-search-bar .search-group .search-btn i {
            font-size: 12px;
        }

        .filter-search-bar .clear-search-btn {
            padding: 5px 8px;
            background: transparent;
            color: #999;
            border: none;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: none;
            align-items: center;
            gap: 3px;
            font-family: 'Segoe UI', sans-serif;
            height: 34px;
            flex-shrink: 0;
        }

        .filter-search-bar .clear-search-btn:hover {
            color: #dc3545;
        }

        .filter-search-bar .clear-search-btn.visible {
            display: flex;
        }

        .filter-search-bar .results-count {
            font-size: 12px;
            color: #999;
            margin-left: auto;
            white-space: nowrap;
            font-family: 'Segoe UI', sans-serif;
        }

        .filter-search-bar .results-count span {
            color: #c9a84c;
            font-weight: 600;
        }

        /* ============================================ */
        /* PROJECT CARDS */
        /* ============================================ */
        .project-card {
            background: #ffffff;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid #e8e8e8;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            margin-bottom: 25px;
            transition: all 0.3s ease;
        }

        .project-card:hover {
            box-shadow: 0 6px 25px rgba(0,0,0,0.08);
            border-color: #c9a84c;
        }

        .project-card .project-title {
            padding: 14px 22px 8px;
            font-size: 18px;
            font-weight: 600;
            color: #1a1a1a;
            border-bottom: 1px solid #f0f0f0;
        }

        .project-card .project-images {
            position: relative;
            padding: 12px 22px 18px;
            overflow: hidden;
        }

        .project-card .carousel-wrapper {
            position: relative;
            overflow: hidden;
            border-radius: 6px;
            width: 100%;
        }

        .project-card .image-carousel {
            display: flex;
            gap: 12px;
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: transform;
            width: auto;
        }

        .project-card .image-item {
            flex: 0 0 calc(25% - 9px);
            min-width: calc(25% - 9px);
            max-width: calc(25% - 9px);
            aspect-ratio: 1 / 1;
            border-radius: 6px;
            overflow: hidden;
            border: 1px solid #e8e8e8;
            cursor: pointer;
            transition: all 0.3s ease;
            flex-shrink: 0;
            background: #f5f5f5;
        }

        .project-card .image-item:hover {
            transform: scale(1.05);
            border-color: #c9a84c;
            box-shadow: 0 3px 12px rgba(0,0,0,0.1);
            z-index: 2;
        }

        .project-card .image-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            -webkit-user-drag: none;
            user-select: none;
        }

        .project-card .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
            background: rgba(0,0,0,0.7);
            color: #fff;
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .project-card .carousel-btn:hover {
            background: #c9a84c;
            transform: translateY(-50%) scale(1.1);
        }

        .project-card .carousel-btn-left {
            left: 4px;
        }

        .project-card .carousel-btn-right {
            right: 4px;
        }

        .project-card .carousel-btn.hidden {
            display: none;
        }

        .no-results-message {
            text-align: center;
            padding: 40px 20px;
            color: #999;
            display: none;
        }
        
        .no-results-message i {
            font-size: 48px;
            opacity: 0.3;
            display: block;
            margin-bottom: 15px;
        }
        
        .no-results-message h3 {
            font-size: 20px;
            color: #666;
            font-weight: 300;
        }
        
        .no-results-message h3 span {
            color: #c9a84c;
            font-weight: 600;
        }
        
        .no-results-message p {
            font-size: 14px;
            color: #999;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px 50px;
            color: #999;
        }
        
        .empty-state .empty-icon {
            font-size: 60px;
            color: #c9a84c;
            opacity: 0.2;
            display: block;
            margin-bottom: 20px;
        }
        
        .empty-state h2 {
            font-size: 24px;
            color: #666;
            font-weight: 300;
            margin-bottom: 8px;
        }
        
        .empty-state h2 span {
            color: #c9a84c;
            font-weight: 600;
        }
        
        .empty-state p {
            font-size: 15px;
            color: #999;
            max-width: 450px;
            margin: 0 auto 15px;
            line-height: 1.6;
        }

        /* ============================================ */
        /* IMAGE MODAL */
        /* ============================================ */
        .image-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.92);
            z-index: 99999;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .image-modal.show {
            display: flex !important;
        }

        .modal-container {
            position: relative;
            max-width: 90%;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            padding: 8px;
            background: transparent;
        }

        .modal-image-wrapper {
            position: relative;
            max-height: 80vh;
            overflow: hidden;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            touch-action: none;
        }

        .modal-image-wrapper img {
            max-width: 100%;
            max-height: 80vh;
            object-fit: contain;
            border-radius: 8px;
            display: block;
            cursor: grab;
            user-select: none;
            -webkit-user-drag: none;
            touch-action: none;
        }

        .modal-image-wrapper img:active {
            cursor: grabbing;
        }

        .modal-close {
            position: absolute;
            top: 10px;
            right: 10px;
            color: #fff;
            font-size: 20px;
            background: rgba(0,0,0,0.7);
            border: 2px solid rgba(255,255,255,0.2);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .modal-close:hover {
            background: #dc3545;
            transform: rotate(90deg) scale(1.1);
        }

        .modal-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background: rgba(0,0,0,0.6);
            color: #fff;
            border: 2px solid rgba(255,255,255,0.15);
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .modal-nav:hover {
            background: var(--gold, #c9a84c);
            border-color: var(--gold, #c9a84c);
            transform: translateY(-50%) scale(1.1);
        }

        .modal-nav-left { left: 10px; }
        .modal-nav-right { right: 10px; }

        .modal-counter {
            color: rgba(255,255,255,0.4);
            font-size: 13px;
            margin-top: 10px;
            font-weight: 300;
        }

        .modal-counter span {
            color: var(--gold, #c9a84c);
            font-weight: 600;
        }

        .modal-title {
            color: rgba(255,255,255,0.8);
            font-size: 16px;
            margin-top: 8px;
            font-weight: 400;
            font-family: var(--font-primary, 'Georgia', serif);
            text-align: center;
        }

        /* ============================================ */
        /* RESPONSIVE - MOBILE FRIENDLY */
        /* ============================================ */
        @media (max-width: 1024px) {
            .ribbon-content-area { padding: 25px 20px; }
            .ribbon-tab-top { padding: 8px 14px 6px 14px; font-size: 12px; }
            .ribbon-tab-top i { font-size: 12px; }
        }

        @media (max-width: 992px) {
            .filter-search-bar {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
                padding: 12px 14px;
            }
            
            .filter-search-bar .filter-group {
                width: 100%;
            }
            
            .filter-search-bar .filter-group select {
                flex: 1;
                min-width: 80px;
            }
            
            .filter-search-bar .search-group {
                max-width: 100%;
                margin-left: 0;
                width: 100%;
            }
            
            .filter-search-bar .search-group input {
                min-width: 60px;
            }
            
            .filter-search-bar .results-count {
                margin-left: 0;
                text-align: center;
                width: 100%;
                font-size: 11px;
            }
            
            .ribbon-side { width: 130px; }
            .ribbon-tab { 
                font-size: 12px; 
                padding: 10px 14px 10px 12px; 
                min-height: 38px;
            }
            .ribbon-tab i { font-size: 13px; min-width: 16px; }
            .ribbon-content-area { padding: 20px 24px; }
            .ribbon-tab-top { padding: 7px 12px 5px 12px; font-size: 11px; gap: 5px; }
            .ribbon-tab-top i { font-size: 11px; }
            .project-card .image-item {
                flex: 0 0 calc(25% - 9px);
                min-width: calc(25% - 9px);
                max-width: calc(25% - 9px);
            }
        }

        @media (max-width: 820px) {
            .ribbon-tab-top { padding: 6px 10px 5px 10px; font-size: 10px; gap: 4px; }
            .ribbon-tab-top i { font-size: 10px; }
            .ribbon-top { gap: 3px; }
        }

        @media (max-width: 768px) {
            .ribbon-container { 
                flex-direction: column-reverse; 
                margin: 15px 0 20px;
            }
            
            .ribbon-side {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                width: 100%;
                padding: 8px 0 6px 0;
                gap: 5px;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                -ms-overflow-style: none;
                justify-content: flex-start;
                border-bottom: 2px solid var(--border-light, #e8e8e8);
                margin-bottom: 5px;
                background: transparent;
                box-shadow: none;
            }
            
            .ribbon-side::-webkit-scrollbar {
                display: none;
            }
            
            .ribbon-tab {
                position: relative;
                padding: 6px 14px 6px 14px;
                background: #f5f5f5;
                border: 1px solid var(--border-light, #e8e8e8);
                border-radius: 20px;
                font-family: var(--font-primary, 'Georgia', serif);
                font-size: 11px;
                font-weight: 600;
                color: var(--text-secondary, #555555);
                text-decoration: none;
                transition: all 0.3s ease;
                cursor: pointer;
                text-align: center;
                box-shadow: none;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 5px;
                min-height: 30px;
                white-space: nowrap;
                flex: 0 0 auto;
                width: auto;
                border-radius: 20px;
                transform: none;
                line-height: 1.2;
            }
            
            .ribbon-tab i {
                font-size: 11px;
                min-width: 12px;
                color: var(--text-secondary, #555555);
            }
            
            .ribbon-tab::after,
            .ribbon-tab::before { 
                display: none; 
            }
            
            .ribbon-tab.active {
                background: var(--gold, #c9a84c);
                color: #ffffff;
                border-color: var(--gold, #c9a84c);
                transform: none;
                box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
            }
            
            .ribbon-tab.active i {
                color: #ffffff;
            }
            
            .ribbon-tab:hover:not(.active) {
                background: var(--gold-light, #e8d5a3);
                border-color: var(--gold, #c9a84c);
                color: var(--text-primary, #1a1a1a);
                transform: none;
            }
            
            .ribbon-content-area {
                border-radius: 8px 8px 0 0;
                padding: 20px 18px;
                min-height: auto;
            }

            .ribbon-top {
                gap: 4px;
                padding: 6px 0 8px 0;
                border-bottom: 2px solid var(--border-light, #e8e8e8);
                margin-bottom: 0;
                flex-wrap: wrap;
                overflow-x: visible;
            }
            
            .ribbon-tab-top {
                padding: 6px 12px 5px 12px;
                font-size: 10px;
                gap: 4px;
                border-radius: 16px;
                background: #f5f5f5;
                border: 1px solid var(--border-light, #e8e8e8);
                border-bottom: 1px solid var(--border-light, #e8e8e8);
                margin-bottom: 0;
                white-space: nowrap;
                flex-shrink: 1;
            }
            
            .ribbon-tab-top i {
                font-size: 10px;
                color: var(--text-secondary, #555555);
            }
            
            .ribbon-tab-top::after {
                display: none;
            }
            
            .ribbon-tab-top.active {
                background: var(--gold, #c9a84c);
                color: #ffffff;
                border-color: var(--gold, #c9a84c);
                box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
            }
            
            .ribbon-tab-top.active i {
                color: #ffffff;
            }
            
            .ribbon-tab-top:hover:not(.active) {
                background: var(--gold-light, #e8d5a3);
                border-color: var(--gold, #c9a84c);
                color: var(--text-primary, #1a1a1a);
                transform: none;
            }
            
            .ribbon-content-area .category-header h2 {
                font-size: 18px;
            }

            .project-card .image-item {
                flex: 0 0 calc(50% - 6px);
                min-width: calc(50% - 6px);
                max-width: calc(50% - 6px);
            }
            
            .project-card .project-title {
                font-size: 16px;
                padding: 12px 16px 6px;
            }
            
            .project-card .project-images {
                padding: 8px 16px 14px;
            }
            
            .project-card .carousel-btn {
                width: 28px;
                height: 28px;
                font-size: 12px;
            }

            .modal-nav {
                width: 34px;
                height: 34px;
                font-size: 14px;
            }
            
            .modal-nav-left { left: 4px; }
            .modal-nav-right { right: 4px; }
            
            .modal-close {
                width: 34px;
                height: 34px;
                font-size: 16px;
                top: 6px;
                right: 6px;
            }
            
            .modal-counter {
                font-size: 12px;
            }
            
            .modal-image-wrapper {
                max-height: 60vh;
            }
            
            .modal-image-wrapper img {
                max-height: 60vh;
            }

            .modal-title {
                font-size: 14px;
            }
            
            .projects-header h1 {
                font-size: 22px;
            }
        }

        @media (max-width: 580px) {
            .ribbon-top { gap: 3px; padding: 4px 0 6px 0; }
            .ribbon-tab-top { 
                padding: 5px 8px 4px 8px;
                font-size: 9px;
                gap: 3px;
                border-radius: 12px;
            }
            .ribbon-tab-top i { font-size: 9px; }
            .ribbon-content-area { padding: 14px 10px; }
        }

        @media (max-width: 480px) {
            .ribbon-side {
                gap: 4px;
                padding: 6px 0 4px 0;
            }
            
            .ribbon-tab { 
                font-size: 10px; 
                padding: 5px 10px 5px 10px; 
                min-height: 26px;
                gap: 4px;
                border-radius: 14px;
            }
            
            .ribbon-tab i { 
                font-size: 10px; 
                min-width: 10px; 
            }
            
            .ribbon-content-area { 
                padding: 14px 12px; 
            }
            
            .ribbon-content-area .category-header h2 { 
                font-size: 18px; 
            }
            
            .ribbon-top { gap: 3px; padding: 4px 0 5px 0; }
            .ribbon-tab-top { 
                padding: 4px 7px 4px 7px;
                font-size: 8px;
                gap: 3px;
                border-radius: 10px;
            }
            .ribbon-tab-top i { font-size: 8px; }

            .project-card .image-item {
                flex: 0 0 calc(50% - 5px);
                min-width: calc(50% - 5px);
                max-width: calc(50% - 5px);
            }
            
            .project-card .project-title {
                font-size: 14px;
                padding: 10px 14px 5px;
            }
            
            .project-card .project-images {
                padding: 6px 14px 12px;
            }
            
            .project-card .carousel-btn {
                width: 24px;
                height: 24px;
                font-size: 10px;
            }
            
            .modal-nav {
                width: 30px;
                height: 30px;
                font-size: 12px;
            }
            
            .modal-nav-left { left: 2px; }
            .modal-nav-right { right: 2px; }
            
            .modal-close {
                width: 30px;
                height: 30px;
                font-size: 14px;
                top: 4px;
                right: 4px;
            }
            
            .modal-counter {
                font-size: 11px;
                margin-top: 6px;
            }
            
            .modal-image-wrapper {
                max-height: 50vh;
            }
            
            .modal-image-wrapper img {
                max-height: 50vh;
            }

            .modal-title {
                font-size: 12px;
            }
            
            .projects-header h1 {
                font-size: 20px;
            }
        }

        @media (max-width: 400px) {
            .ribbon-top { gap: 2px; padding: 3px 0 4px 0; }
            .ribbon-tab-top { 
                padding: 3px 6px 3px 6px;
                font-size: 7.5px;
                gap: 2px;
                border-radius: 8px;
            }
            .ribbon-tab-top i { font-size: 7px; }
        }

        @media (max-width: 360px) {
            .ribbon-content-area { 
                padding: 10px 8px; 
            }
            
            .ribbon-side {
                gap: 3px;
                padding: 4px 0 3px 0;
            }
            
            .ribbon-tab { 
                font-size: 9px; 
                padding: 4px 8px 4px 8px; 
                min-height: 22px;
                gap: 3px;
                border-radius: 12px;
            }
            
            .ribbon-tab i { 
                font-size: 9px; 
                min-width: 9px; 
            }

            .ribbon-top { gap: 2px; padding: 2px 0 3px 0; }
            .ribbon-tab-top { 
                padding: 3px 5px 3px 5px;
                font-size: 7px;
                gap: 2px;
                border-radius: 6px;
            }
            .ribbon-tab-top i { font-size: 7px; }

            .project-card .image-item {
                flex: 0 0 calc(50% - 4px);
                min-width: calc(50% - 4px);
                max-width: calc(50% - 4px);
            }
            
            .project-card .project-title {
                font-size: 13px;
                padding: 8px 10px 4px;
            }
            
            .project-card .carousel-btn {
                width: 22px;
                height: 22px;
                font-size: 9px;
            }

            .modal-nav {
                width: 26px;
                height: 26px;
                font-size: 10px;
            }
            
            .modal-nav-left { left: 2px; }
            .modal-nav-right { right: 2px; }
            
            .modal-close {
                width: 26px;
                height: 26px;
                font-size: 12px;
                top: 4px;
                right: 4px;
            }
            
            .modal-counter {
                font-size: 10px;
                margin-top: 4px;
            }
            
            .modal-image-wrapper {
                max-height: 40vh;
            }
            
            .modal-image-wrapper img {
                max-height: 40vh;
            }

            .modal-title {
                font-size: 10px;
            }
        }

        /* ============================================ */
        /* ACCESSIBILITY */
        /* ============================================ */
        @media (prefers-reduced-motion: reduce) {
            .image-carousel { transition: none !important; }
            .ribbon-tab-top { transition: none !important; }
            .ribbon-tab { transition: none !important; }
            .carousel-btn { transition: none !important; }
            .modal-close { transition: none !important; }
            .modal-nav { transition: none !important; }
        }

        @media (prefers-color-scheme: dark) {
            .image-carousel-wrapper { border-color: #333; }
            .carousel-dots { background: rgba(0,0,0,0.9); }
        }