/* ============================================================================
   MOBILE PROJECTS PAGE STYLES
   Optimized for mobile screens
   Theme: Red, Black, White, Engineering Grid, Architectural
   ============================================================================ */

/* Projects Hero */
.projects-hero {
    position: relative;
    padding: 30px 0 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(204, 0, 0, 0.1), transparent);
    border-bottom: 2px solid var(--border-primary);
    text-align: center;
}

.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(204, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 0, 0, 0.12) 0%, transparent 60%);
    animation: heroFloat 15s ease-in-out infinite alternate;
}

@keyframes heroFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-15px, 15px) scale(1.05); }
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.hero-title i {
    color: var(--primary-red);
    font-size: 1.5rem;
}

.hero-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95), 
        rgba(20, 0, 0, 0.85),
        rgba(0, 0, 0, 0.95)
    );
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 6px rgba(0, 0, 0, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(139, 0, 0, 0.02) 10px,
            rgba(139, 0, 0, 0.02) 11px
        );
    pointer-events: none;
}

.stat-card i {
    position: relative;
    font-size: 28px;
    color: #CC0000;
    filter: drop-shadow(0 2px 4px rgba(204, 0, 0, 0.3));
    z-index: 1;
}

.stat-card:active {
    transform: scale(0.98);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.08);
    border-color: rgba(204, 0, 0, 0.5);
}

.stat-number {
    position: relative;
    font-size: 1.5rem;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
    z-index: 1;
}

.stat-label {
    position: relative;
    font-size: 11px;
    color: rgba(180, 180, 180, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* Search Section */
.search-section {
    padding: 20px 0 16px;
}

.search-bar {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-red);
    font-size: 18px;
}

.search-input {
    width: 100%;
    padding: 14px 14px 14px 48px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95), 
        rgba(15, 0, 0, 0.9)
    );
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 12px;
    color: #E8E8E8;
    font-size: 15px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(139, 0, 0, 0.6);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(139, 0, 0, 0.15);
}

.search-input::placeholder {
    color: rgba(140, 140, 140, 0.7);
}

/* Filter Section */
.filter-section {
    padding: 8px 0 20px;
    overflow: visible;
}

.filter-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: visible;
    padding-bottom: 4px;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    flex: 0 0 calc(33.333% - 5.5px);
    min-height: 52px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95), 
        rgba(15, 0, 0, 0.9)
    );
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 12px;
    color: rgba(200, 200, 200, 0.9);
    font-size: 12px;
    font-weight: 600;
    white-space: normal;
    cursor: pointer;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.filter-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(139, 0, 0, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-chip i {
    position: relative;
    font-size: 18px;
    color: #CC0000;
    flex-shrink: 0;
    z-index: 1;
}

.filter-chip-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.15;
    position: relative;
    z-index: 1;
    flex: 1;
}

.filter-main {
    font-size: 12px;
    font-weight: 700;
    color: rgba(200, 200, 200, 0.95);
    line-height: 1.2;
}

.filter-sub {
    font-size: 10px;
    font-weight: 500;
    color: rgba(160, 160, 160, 0.85);
    line-height: 1.2;
}

.filter-chip.active {
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.5), 
        rgba(0, 0, 0, 0.8)
    );
    border-color: rgba(139, 0, 0, 0.7);
    color: #FFFFFF;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(139, 0, 0, 0.3);
}

.filter-chip.active i {
    color: #FFFFFF;
}

.filter-chip.active .filter-main,
.filter-chip.active .filter-sub {
    color: #FFFFFF;
}

.filter-chip:active {
    transform: scale(0.95);
}

.filter-chip:active::before {
    opacity: 1;
}

/* Projects Section */
.projects-section {
    padding: 20px 0 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Project Card */
.project-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95), 
        rgba(20, 0, 0, 0.9),
        rgba(0, 0, 0, 0.95)
    );
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(139, 0, 0, 0.03) 20px,
            rgba(139, 0, 0, 0.03) 21px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(139, 0, 0, 0.03) 20px,
            rgba(139, 0, 0, 0.03) 21px
        );
    pointer-events: none;
    z-index: 0;
}

.project-card:active {
    transform: scale(0.98);
    border-color: rgba(139, 0, 0, 0.6);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 12px rgba(139, 0, 0, 0.25);
}

.project-image {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.1), 
        rgba(0, 0, 0, 0.5)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project Thumbnail (used in dynamically loaded cards) */
.project-thumbnail {
    position: relative;
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.1), 
        rgba(0, 0, 0, 0.5)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-thumbnail i {
    font-size: 48px;
    opacity: 0.4;
}

/* Category-specific thumbnail styles */
.project-thumbnail.solidworks-model {
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.15), 
        rgba(0, 0, 0, 0.6)
    );
}

.project-thumbnail.solidworks-model i {
    color: #CC0000;
}

.project-thumbnail.matlab-project {
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.15), 
        rgba(0, 0, 0, 0.6)
    );
}

.project-thumbnail.matlab-project i {
    color: #64B5F6;
}

.project-thumbnail.electronics-tool {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.15), 
        rgba(0, 0, 0, 0.6)
    );
}

.project-thumbnail.electronics-tool i {
    color: #FFD54F;
}

.project-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9), 
        rgba(20, 0, 0, 0.85)
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 0, 0, 0.4);
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    color: #CC0000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.project-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: rgba(204, 0, 0, 0.5);
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 2;
}

.project-card:active .project-arrow {
    color: #CC0000;
    transform: translateY(-50%) translateX(4px);
}

.project-desc {
    font-size: 13px;
    color: rgba(200, 200, 200, 0.9);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tags .tag {
    padding: 4px 8px;
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.15), 
        rgba(0, 0, 0, 0.5)
    );
    border: 1px solid rgba(139, 0, 0, 0.25);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    color: #CC0000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.project-icon {
    font-size: 48px;
    color: #CC0000;
    opacity: 0.4;
}

.project-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9), 
        rgba(20, 0, 0, 0.85)
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 0, 0, 0.4);
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    color: #CC0000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.project-content {
    position: relative;
    padding: 16px;
    z-index: 1;
}

.project-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #FFFFFF;
    line-height: 1.4;
    padding-top: 12px;
    padding-bottom: 8px;
}

.project-description {
    font-size: 13px;
    color: rgba(200, 200, 200, 0.9);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: rgba(170, 170, 170, 0.8);
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-meta-item i {
    color: #CC0000;
    font-size: 12px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.project-tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.15), 
        rgba(0, 0, 0, 0.5)
    );
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #CC0000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.project-footer {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(80, 0, 0, 0.3);
}

.project-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.15), 
        rgba(0, 0, 0, 0.5)
    );
    border: 1px solid rgba(139, 0, 0, 0.4);
    border-radius: 8px;
    color: #CC0000;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.project-btn:active {
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.25), 
        rgba(0, 0, 0, 0.6)
    );
    transform: scale(0.97);
    box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.08);
}

.project-btn.primary {
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.5), 
        rgba(0, 0, 0, 0.8)
    );
    color: #FFFFFF;
    border-color: rgba(139, 0, 0, 0.7);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-dim);
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 14px;
    color: var(--text-dim);
}

/* Loading State */
.loading-skeleton {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.skeleton-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(90deg, rgba(204, 0, 0, 0.05) 25%, rgba(204, 0, 0, 0.1) 50%, rgba(204, 0, 0, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmerLoad 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 12px;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, rgba(204, 0, 0, 0.05) 25%, rgba(204, 0, 0, 0.1) 50%, rgba(204, 0, 0, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmerLoad 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes shimmerLoad {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================================================
   CATEGORY CARDS SECTION
   ============================================================================ */
.categories-section {
    padding: 24px 0 32px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.category-cards-grid {
    display: grid;
    gap: 16px;
}

.category-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95), 
        rgba(20, 0, 0, 0.9),
        rgba(0, 0, 0, 0.95)
    );
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 16px;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 
        inset 2px 0 0 rgba(139, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(139, 0, 0, 0.03) 20px,
            rgba(139, 0, 0, 0.03) 21px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(139, 0, 0, 0.03) 20px,
            rgba(139, 0, 0, 0.03) 21px
        );
    pointer-events: none;
}

.category-card:active {
    transform: scale(0.98);
    border-color: rgba(139, 0, 0, 0.6);
    box-shadow: 
        inset 2px 0 0 rgba(139, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 12px rgba(139, 0, 0, 0.2);
}

/* Category Icon */
.category-icon {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 28px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 1;
}

.arduino-card .category-icon {
    background: linear-gradient(135deg, 
        rgba(0, 150, 136, 0.2), 
        rgba(0, 0, 0, 0.6)
    );
    border: 1px solid rgba(0, 150, 136, 0.4);
    color: #4DB6AC;
}

.electronics-card .category-icon {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.2), 
        rgba(0, 0, 0, 0.6)
    );
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #FFD54F;
}

.solidworks-card .category-icon {
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.2), 
        rgba(0, 0, 0, 0.6)
    );
    border: 1px solid rgba(139, 0, 0, 0.5);
    color: #CC0000;
}

.matlab-card .category-icon {
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.2), 
        rgba(0, 0, 0, 0.6)
    );
    border: 1px solid rgba(33, 150, 243, 0.4);
    color: #64B5F6;
}

.programming-card .category-icon {
    background: linear-gradient(135deg, 
        rgba(0, 204, 68, 0.2), 
        rgba(0, 0, 0, 0.6)
    );
    border: 1px solid rgba(0, 204, 68, 0.4);
    color: #33FF77;
}

.websites-card .category-icon {
    background: linear-gradient(135deg, 
        rgba(204, 0, 0, 0.2), 
        rgba(0, 0, 0, 0.6)
    );
    border: 1px solid rgba(204, 0, 0, 0.4);
    color: #FF6060;
}

/* Category Content */
.category-content {
    position: relative;
    flex: 1;
    z-index: 1;
}

.category-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #FFFFFF;
}

.category-desc {
    font-size: 13px;
    color: rgba(180, 180, 180, 0.8);
    margin-bottom: 8px;
    line-height: 1.4;
}

.category-count {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.15), 
        rgba(0, 0, 0, 0.5)
    );
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #CC0000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Category Arrow */
.category-arrow {
    position: relative;
    flex-shrink: 0;
    color: rgba(180, 180, 180, 0.5);
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 1;
}

.category-card:active .category-arrow {
    transform: translateX(4px);
    color: #CC0000;
}

.category-card:active {
    transform: scale(0.98);
    border-color: rgba(139, 0, 0, 0.6);
    box-shadow: 
        inset 2px 0 0 rgba(139, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 12px rgba(139, 0, 0, 0.2),
        inset 0 0 32px rgba(255, 255, 255, 0.09);
}

.category-card:active .category-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Quick Stats Section */
.quick-stats-section {
    padding: 24px 0 32px;
    background: rgba(204, 0, 0, 0.02);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
}

.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.quick-stat-card {
    position: relative;
    text-align: center;
    padding: 20px 12px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95), 
        rgba(20, 0, 0, 0.85),
        rgba(0, 0, 0, 0.95)
    );
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.quick-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(139, 0, 0, 0.02) 10px,
            rgba(139, 0, 0, 0.02) 11px
        );
    pointer-events: none;
}

.quick-stat-card:active {
    transform: scale(0.95);
}

.quick-stat-card i {
    position: relative;
    font-size: 32px;
    color: #CC0000;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(204, 0, 0, 0.3));
    z-index: 1;
}

.quick-stat-card:active {
    transform: scale(0.95);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 0 28px rgba(255, 255, 255, 0.08);
}

.stat-value {
    position: relative;
    font-size: 1.75rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 6px;
    z-index: 1;
}

.stat-label {
    position: relative;
    font-size: 11px;
    color: rgba(180, 180, 180, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* ============================================================================
   CATEGORY LISTING PAGES
   ============================================================================ */
   
/* Category Header */
.category-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.header-btn {
    padding: 8px 12px;
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.15), 
        rgba(0, 0, 0, 0.5)
    );
    border: 1px solid rgba(139, 0, 0, 0.4);
    border-radius: 8px;
    color: #CC0000;
    font-size: 14px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.header-btn:active {
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.25), 
        rgba(0, 0, 0, 0.6)
    );
}

/* Category Hero */
.category-hero .hero-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.category-badge {
    margin-top: 12px;
}

.category-badge span {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.15), 
        rgba(0, 0, 0, 0.5)
    );
    border: 1px solid rgba(139, 0, 0, 0.4);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #CC0000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Search Clear Button */
.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px;
    background: none;
    border: none;
    color: rgba(150, 150, 150, 0.7);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-clear:active {
    color: #CC0000;
    transform: translateY(-50%) scale(0.9);
}

/* Tool Cards */
.electronics-tool {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.15), 
        rgba(0, 0, 0, 0.6)
    );
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 6px rgba(0, 0, 0, 0.3);
}

.electronics-tool::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 193, 7, 0.03) 10px,
            rgba(255, 193, 7, 0.03) 11px
        );
    pointer-events: none;
}

.electronics-tool i {
    position: relative;
    color: #FFD54F;
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
    z-index: 1;
}

/* Level Sections (for SolidWorks) */
.level-section {
    position: relative;
    padding: 24px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95), 
        rgba(20, 0, 0, 0.9),
        rgba(0, 0, 0, 0.95)
    );
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.4);
}

.level-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(139, 0, 0, 0.03) 20px,
            rgba(139, 0, 0, 0.03) 21px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(139, 0, 0, 0.03) 20px,
            rgba(139, 0, 0, 0.03) 21px
        );
    pointer-events: none;
}

.level-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #FFFFFF;
    z-index: 1;
}

.level-title i {
    color: #CC0000;
    font-size: 20px;
}

.level-desc {
    position: relative;
    font-size: 14px;
    color: rgba(180, 180, 180, 0.8);
    margin-bottom: 16px;
    z-index: 1;
}

.view-level-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.5), 
        rgba(0, 0, 0, 0.8)
    );
    border: 1px solid rgba(139, 0, 0, 0.6);
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 1;
}

.view-level-btn:active {
    transform: scale(0.98);
}

.premium-btn {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.4), 
        rgba(255, 160, 0, 0.3),
        rgba(0, 0, 0, 0.6)
    );
    border-color: rgba(255, 193, 7, 0.5);
    color: #FFD700;
}

/* Footer */
.mobile-footer {
    position: relative;
    text-align: center;
    padding: 24px 16px 16px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95), 
        rgba(15, 0, 0, 0.9),
        rgba(0, 0, 0, 0.95)
    );
    border-top: 2px solid rgba(139, 0, 0, 0.3);
    overflow: hidden;
}

.mobile-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(139, 0, 0, 0.03) 20px,
            rgba(139, 0, 0, 0.03) 21px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(139, 0, 0, 0.03) 20px,
            rgba(139, 0, 0, 0.03) 21px
        );
    pointer-events: none;
}

.footer-text {
    position: relative;
    font-size: 14px;
    color: rgba(200, 200, 200, 0.9);
    margin-bottom: 8px;
    z-index: 1;
}

.footer-credit {
    position: relative;
    font-size: 13px;
    color: rgba(170, 170, 170, 0.8);
    margin-bottom: 4px;
    z-index: 1;
}

.footer-credit strong {
    color: #CC0000;
    font-weight: 700;
}

.footer-tagline {
    position: relative;
    font-size: 12px;
    color: rgba(160, 160, 160, 0.7);
    font-style: italic;
    z-index: 1;
}

/* Small Screens */
@media (max-width: 359px) {
    .stats-grid {
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px 6px;
    }
    
    .stat-card i {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
}

/* Landscape Mode */
@media (min-width: 480px) and (max-width: 767px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
