@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+Pro:wght@300;400;500;600&family=Noto+Sans+Bengali:wght@300;400;500;600;700;800;900&family=Noto+Serif+Bengali:wght@400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* =========================
   UNIVERSAL FONTS - Supports Bangla, Emojis, and Multi-language
   ========================= */
html, body, input, textarea, select, button, code, pre {
    font-family: 'Noto Sans Bengali', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

/* Serif font for headings and quotes with Bangla support */
h1, h2, h3, h4, h5, h6, .heading, .serif-font {
    font-family: 'Noto Serif Bengali', 'Playfair Display', 'Noto Sans Bengali', serif !important;
}

/* Code blocks maintain mono-space but with Bangla support */
code, pre, .code, .monospace {
    font-family: 'Courier New', 'Monaco', 'Noto Sans Bengali', monospace !important;
}

/* Preserve Font Awesome icon fonts */
.fa, .fas, .far, .fal, .fad, .fab,
.fa-solid, .fa-regular, .fa-light, .fa-duotone, .fa-brands,
[class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
}

/* Emoji and symbol support for all elements */
body::first-letter,
body * {
    -webkit-font-feature-settings: 'zero' 1;
    font-feature-settings: 'zero' 1;
}

/* =========================
   Navbar (Home + 3 Portals) - OLD NAVBAR (Not for desktop-navbar)
   ========================= */
.hero-deep-note{display:none}
.navbar:not(.desktop-navbar) {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(204, 0, 0, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5), 
        0 2px 12px rgba(204, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar:not(.desktop-navbar)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(204, 0, 0, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

[data-theme="light"] .navbar:not(.desktop-navbar) {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom-color: rgba(204, 0, 0, 0.25);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1), 
        0 2px 8px rgba(204, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo a {
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1;
    position: relative;
}

.nav-logo .brand-logo {
    width: 48px;
    height: 48px;
    display: block;
    padding: 7px;
    border-radius: 14px;
    background:
        radial-gradient(60% 60% at 50% 40%, rgba(204, 0, 0, 0.2) 0%, rgba(204, 0, 0, 0.08) 42%, rgba(204, 0, 0, 0.03) 100%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1.5px solid rgba(204, 0, 0, 0.35);
    box-shadow:
        0 8px 24px rgba(204, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(204, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo a:hover .brand-logo {
    transform: scale(1.08) rotate(360deg);
    filter: drop-shadow(0 0 18px rgba(204,0,0,0.4));
    border-color: rgba(204, 0, 0, 0.55);
    box-shadow:
        0 12px 32px rgba(204, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(204, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 0 24px rgba(204, 0, 0, 0.12);
}

/* Theme-aware logo badge variants */
[data-theme="dark"] .nav-logo .brand-logo {
    background:
        radial-gradient(60% 60% at 50% 40%, rgba(255, 0, 0, 0.25) 0%, rgba(255, 0, 0, 0.1) 40%, rgba(255, 0, 0, 0.04) 100%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}
[data-theme="light"] .nav-logo .brand-logo {
    background:
        radial-gradient(60% 60% at 50% 40%, rgba(255, 180, 180, 0.5) 0%, rgba(255, 180, 180, 0.22) 42%, rgba(255, 180, 180, 0.1) 100%),
        linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
    border-color: rgba(255, 0, 0, 0.4);
    box-shadow:
        0 8px 24px rgba(255, 0, 0, 0.22),
        inset 0 0 16px rgba(255, 0, 0, 0.1);
}

/* Optional: subtle breathing glow on hover only (avoid distraction) */
@keyframes logoPulse {
    0%, 100% { 
        box-shadow: 0 12px 32px rgba(204,0,0,0.25), 
                    0 0 0 3px rgba(204,0,0,0.2), 
                    inset 0 0 20px rgba(204,0,0,0.12); 
    }
    50% { 
        box-shadow: 0 16px 40px rgba(204,0,0,0.35), 
                    0 0 0 4px rgba(204,0,0,0.3), 
                    inset 0 0 28px rgba(204,0,0,0.18); 
    }
}
.nav-logo a:hover .brand-logo { 
    animation: logoPulse 1.8s ease-in-out infinite; 
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    align-items: center;
}



/* Hide project search on desktop by default */
.project-search { display: none; }

.nav-item { display: flex; align-items: center; }

.nav-link:not(.desktop-nav-link) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.02);
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    font-weight: 600;
    letter-spacing: .2px;
    position: relative;
    font-size: 15px;
}

.nav-link:not(.desktop-nav-link) i {
    font-size: 16px;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.nav-link:not(.desktop-nav-link):hover i {
    opacity: 1;
    transform: translateY(-1px);
}

.nav-link:not(.desktop-nav-link)::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:not(.desktop-nav-link).active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:not(.desktop-nav-link):hover {
    color: var(--text-primary);
    background: rgba(204,0,0,0.12);
    border-color: rgba(204,0,0,0.3);
    box-shadow: 0 6px 20px rgba(204,0,0,0.25);
    transform: translateY(-2px);
}

.nav-link:not(.desktop-nav-link).active {
    color: #ffffff;
    background: linear-gradient(135deg, #cc0000, #990000);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 
        0 8px 24px rgba(204,0,0,0.4), 
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.nav-link:not(.desktop-nav-link).active i {
    opacity: 1;
}

/* CV Download Button */
.nav-cta {
    margin-left: 8px;
}

.nav-cv-btn {
    background: linear-gradient(135deg, rgba(204,0,0,0.15), rgba(153,0,0,0.15)) !important;
    border: 1.5px solid rgba(204,0,0,0.4) !important;
    color: #ff6666 !important;
    font-weight: 700;
    padding: 10px 18px !important;
    box-shadow: 
        0 4px 12px rgba(204,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.nav-cv-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.nav-cv-btn:hover::before {
    left: 100%;
}

.nav-cv-btn:hover {
    background: linear-gradient(135deg, #cc0000, #990000) !important;
    border-color: rgba(255,255,255,0.3) !important;
    color: #ffffff !important;
    box-shadow: 
        0 8px 28px rgba(204,0,0,0.45),
        0 0 0 3px rgba(204,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.2) !important;
    transform: translateY(-3px) scale(1.05) !important;
}

.nav-cv-btn i {
    font-size: 15px;
}

.nav-cv-btn:hover i {
    animation: downloadPulse 0.6s ease;
}

@keyframes downloadPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* Only Boss portal crown link */
.nav-crown {
    color: #ffd700;
    font-size: 16px;
    line-height: 1;
    padding: 8px 12px;
    text-shadow: 0 0 8px rgba(255,215,0,0.9), 0 0 16px rgba(255,215,0,0.6);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.nav-crown i { 
    color: inherit;
    font-size: 18px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-crown:hover i {
    animation: crownBounce 0.6s ease;
}

@keyframes crownBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-4px); }
}

.nav-crown span {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-crown:hover {
    color: #ffe680;
    background: rgba(255,215,0,0.12);
    border-color: rgba(255,215,0,0.4);
    box-shadow: 0 8px 24px rgba(255,215,0,0.3), 0 0 20px rgba(255,215,0,0.2);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1001;
    pointer-events: none;
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        #cc0000 0%, 
        #ff3333 25%, 
        #ff6666 50%, 
        #ff3333 75%, 
        #cc0000 100%
    );
    box-shadow: 
        0 0 10px rgba(204, 0, 0, 0.5),
        0 0 20px rgba(204, 0, 0, 0.3);
    transition: width 0.1s ease-out;
    position: relative;
}

.scroll-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    filter: blur(8px);
}

.theme-toggle {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-secondary);
    border-radius: 12px;
    padding: 8px 10px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle i {
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-toggle:active i {
    transform: rotate(360deg);
}

.theme-toggle:hover {
    color: #ffffff;
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

.hamburger { 
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    transition: all 0.3s;
}

.hamburger:hover {
    background: rgba(204,0,0,0.1);
    border-color: rgba(204,0,0,0.3);
}

.hamburger .bar { 
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu slide down */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}   .nav-menu {
        gap: 8px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }


@media (max-width: 768px) {
    .hamburger { 
        display: flex !important;
    }
    
    .nav-container { 
        padding: 10px 16px;
        flex-wrap: wrap;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        border-top: 1px solid rgba(204, 0, 0, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-menu.active {
        max-height: 500px;
        opacity: 1;
    }
    
    [data-theme="light"] .nav-menu {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: 14px 20px;
        border-radius: 8px;
        justify-content: flex-start;
    }
    
    .nav-logo a span { 
        padding: 5px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 8px 12px;
    }
    
    .nav-logo a span {
        display: none;
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
}

/* =========================
   Home Hero Deep Black-Red
   ========================= */
#home.hero {
    /* Subtle, eye-comfort black → red depth */
    background:
        radial-gradient(700px 420px at 85% 15%, rgba(255, 0, 0, 0.08), rgba(0,0,0,0) 60%),
        radial-gradient(800px 520px at 12% 88%, rgba(255, 0, 0, 0.06), rgba(0,0,0,0) 60%),
        linear-gradient(180deg, #0a0a0a 0%, #090909 42%, #0a0000 100%);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-text {
    max-width: 650px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: 
        radial-gradient(circle at center, rgba(204, 0, 0, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse at center, rgba(150, 0, 0, 0.04) 20%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.profile-container {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

/* Tech stack badges */
.tech-stack-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 2rem 0;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(204,0,0,0.08), rgba(204,0,0,0.04));
    border: 1px solid rgba(204, 0, 0, 0.2);
    border-radius: 999px;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: linear-gradient(135deg, rgba(204,0,0,0.14), rgba(204,0,0,0.08));
    border-color: rgba(204, 0, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.2);
}

.tech-icon {
    font-size: 1.2rem;
    color: #ff6666;
}

.tech-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

/* Hero buttons - Redesigned with theme consistency */
.hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 24px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

/* 3D CAD Projects - Red Gradient Primary */
.btn-primary {
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.2), rgba(153, 0, 0, 0.15));
    border: 2px solid rgba(204, 0, 0, 0.5);
    color: #ffffff;
    box-shadow: 
        0 8px 32px rgba(204, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-red), #990000);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary-red);
    box-shadow: 
        0 12px 48px rgba(204, 0, 0, 0.4),
        0 0 60px rgba(204, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover::before {
    opacity: 0.3;
}

/* Educational Videos - Dark with Red Accent */
.btn-secondary {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(26, 0, 0, 0.9));
    border: 2px solid rgba(204, 0, 0, 0.3);
    color: #ffffff;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(26, 0, 0, 0.95), rgba(40, 0, 0, 0.9));
    border-color: rgba(204, 0, 0, 0.6);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 48px rgba(204, 0, 0, 0.3),
        0 0 40px rgba(204, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Arduino Projects - Outline with Red Glow */
.btn-outline {
    background: rgba(10, 10, 10, 0.6);
    border: 2px solid rgba(204, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    background: rgba(26, 0, 0, 0.8);
    border-color: var(--primary-red);
    color: #ffffff;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 48px rgba(204, 0, 0, 0.4),
        0 0 60px rgba(204, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Button Text & Icon Styling */
.btn-text {
    font-weight: 700;
    letter-spacing: 0.3px;
    flex: 1;
    text-align: left;
}

.btn-icon {
    font-size: 1.8rem;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.btn:hover .btn-icon {
    transform: scale(1.15) rotate(5deg);
}

/* Glow Effect for Primary Buttons */
.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.btn-glow:hover::after {
    opacity: 1;
}

/* Modern Effect for Secondary */
.btn-modern {
    overflow: visible;
}

.btn-modern::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(204, 0, 0, 0.2) 50%, 
        transparent 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-modern:hover::before {
    opacity: 1;
}

/* Certificates Button - Minimal Gold Accent */
.btn-certificates {
    background: rgba(255, 215, 0, 0.08);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-shadow: none;
}

.btn-certificates:hover {
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.5);
    color: #ffed4e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.btn-certificates .btn-icon {
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.3));
}

/* Only Boss Portal Button - Special Golden Crown Theme */
.btn-boss-portal {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.04));
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.12);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.btn-boss-portal .btn-icon {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    animation: crownPulse 2s ease-in-out infinite;
}

.btn-boss-portal:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.16), rgba(255, 215, 0, 0.08));
    border-color: rgba(255, 215, 0, 0.55);
    color: #ffe680;
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.25);
    transform: translateY(-3px);
}

@keyframes crownPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    }
    50% { 
        transform: scale(1.1) rotate(-5deg);
        filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.9));
    }
}

/* Expertise showcase */
.expertise-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.expertise-card {
    background: linear-gradient(135deg, rgba(40, 0, 0, 0.5), rgba(20, 0, 0, 0.3));
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(204, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-4px);
    border-color: rgba(204, 0, 0, 0.4);
    box-shadow: 0 8px 24px rgba(204, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(60, 0, 0, 0.6), rgba(40, 0, 0, 0.4));
}

.expertise-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.2), rgba(150, 0, 0, 0.1));
    border-radius: 12px;
    border: 2px solid rgba(204, 0, 0, 0.25);
    font-size: 1.5rem;
    color: #ff6666;
    flex-shrink: 0;
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.3), rgba(180, 0, 0, 0.15));
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.3);
}

.expertise-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.expertise-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .profile-container {
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    #home.hero {
        padding: 80px 0 40px;
    }
    
    .hero-container {
        padding: 0 20px;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    .expertise-showcase {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Tone down reds in light theme for comfort */
[data-theme="light"] #home.hero {
    background:
        radial-gradient(700px 420px at 85% 15%, rgba(255, 0, 0, 0.06), rgba(0,0,0,0) 58%),
        radial-gradient(800px 520px at 12% 88%, rgba(255, 0, 0, 0.04), rgba(0,0,0,0) 58%),
        linear-gradient(180deg, #f7f7f7 0%, #f4f4f4 38%, #faf6f6 100%);
}

/* Optional: enable a touch of yellow accent for micro-highlights (opt-in only) */
.use-yellow-accent #home.hero::after {
    content: '';
    position: absolute;
    inset: -2px;
    pointer-events: none;
    background:
        radial-gradient(400px 240px at 10% 12%, rgba(242, 194, 0, 0.08), transparent 60%),
        radial-gradient(360px 220px at 92% 86%, rgba(242, 194, 0, 0.06), transparent 60%);
}

/* Hero Typography */
.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    color: #ffffff;
}
.hero-title .title-line {
    display: block;
    margin-bottom: 0.5rem;
}
.hero-title .word {
    display: inline-block;
    margin-right: 0.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}
.hero-title .highlight-wrapper {
    display: inline-block;
    position: relative;
}
.hero-title .highlight {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 3.6rem;
    letter-spacing: -0.5px;
    text-shadow: 0 0 40px rgba(204, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}
.hero-title .highlight-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #cc0000 0%, #ff4444 50%, #cc0000 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 2rem 0;
    line-height: 1.5;
}
.hero-subtitle .typing-text {
    display: inline-block;
    background: linear-gradient(135deg, rgba(204,0,0,0.10), rgba(204,0,0,0.04));
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(204, 0, 0, 0.22);
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.12);
    position: relative;
    color: #ffffff;
    overflow: visible;
}

/* FIXED: Removed all typing animations and cursor to prevent text overlap */
/* Clean text display only */

.hero-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 2.5rem 0;
    max-width: 600px;
}
.hero-description .text-highlight {
    color: #ff6666;
    font-weight: 600;
    position: relative;
}
.hero-description .text-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 102, 102, 0.35);
}

/* Zoom-safe desktop hardening for shared hero layout */
@media (max-width: 1360px) {
    .hero-container {
        padding: 0 clamp(18px, 2.2vw, 32px);
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
        gap: clamp(26px, 3vw, 44px);
    }

    .hero-title {
        font-size: clamp(2.5rem, 4.7vw, 3.5rem);
    }

    .hero-title .highlight {
        font-size: clamp(2.8rem, 5.3vw, 4rem);
    }

    .hero-description {
        max-width: 54ch;
        line-height: 1.7;
    }
}

@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-image {
        order: -1;
    }

    .profile-container {
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: clamp(2.2rem, 4.2vw, 3.1rem);
    }

    .hero-title .highlight {
        font-size: clamp(2.45rem, 4.7vw, 3.5rem);
    }
}

/* Responsive hero text */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-title .highlight { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-description { font-size: 0.95rem; }
}

:root {
    /* Professional Color Palette - Red, Black, White Theme */
    --primary-color: #cc0000;
    --secondary-color: #990000;
    --accent-color: #ff4444;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-light: #b0b0b0;
    --background-primary: #0a0a0a;
    --background-secondary: #1a1a1a;
    --border-color: rgba(204, 0, 0, 0.2);
    --shadow-light: rgba(204, 0, 0, 0.1);
    --shadow-medium: rgba(204, 0, 0, 0.2);
    --gradient-professional: linear-gradient(135deg, #0a0a0a 0%, #1a0000 100%);
    --gradient-accent: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    /* Optional secondary accent (not used by default) */
    --accent-yellow: #f2c200;
}

[data-theme="dark"] {
    --primary-color: #cc0000;
    --secondary-color: #990000;
    --accent-color: #ff4444;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-light: #b0b0b0;
    --background-primary: #0a0a0a;
    --background-secondary: #1a1a1a;
    --border-color: rgba(204, 0, 0, 0.2);
    --shadow-light: rgba(204, 0, 0, 0.1);
    --shadow-medium: rgba(204, 0, 0, 0.2);
    --gradient-professional: linear-gradient(135deg, #0a0a0a 0%, #1a0000 100%);
    --gradient-accent: linear-gradient(135deg, #cc0000 0%, #990000 100%);
}

body {
    font-family: 'Source Sans Pro', 'Segoe UI', Arial, sans-serif;
    background: var(--background-secondary);
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 40px auto;
    background: var(--background-primary);
    border-radius: 12px;
    box-shadow: 0 4px 24px var(--shadow-light);
    padding: 32px 24px;
    border: 1px solid var(--border-color);
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}
.project-item:last-child {
    border-bottom: none;
}
.project-title {
    font-size: 1.1rem;
    font-weight: 500;
}
.details-btn {
    background: #0057b8;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.details-btn:hover {
    background: #003e8a;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 32px 28px;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
    text-align: center;
}
.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
.close-btn:hover {
    color: #0057b8;
}

/* 3D Model Viewer Modal */
#model-viewer-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}
#model-viewer-modal[style*="display: flex"] {
    display: flex !important;
}
#model-viewer-modal model-viewer {
    width: 100%;
    height: 70vh;
    background: #222;
    border-radius: 10px;
}
#close-model-viewer {
    position: absolute;
    top: 10px; right: 10px;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Quick links chips - LEGACY (kept for backward compatibility with old chip-style links) */
.sw-chip { --chip-bg:#eef2ff; --chip-color:#1e3a8a; display:inline-block; padding:6px 12px; font-size:0.7rem; letter-spacing:.5px; text-decoration:none; font-weight:600; border-radius:20px; background:var(--chip-bg); color:var(--chip-color); position:relative; transition:background .25s, transform .15s, color .25s; }
.sw-chip:hover { background:#dbeafe; transform:translateY(-2px); }
.sw-chip:active { transform:translateY(0); }

/* Dark mode support (assumes a .dark class on body or html) */
.dark .solidworks-featured { background:linear-gradient(145deg,#1a0000,#0a0a0a); border:1px solid #330000; }
.dark .solidworks-featured p, .dark .solidworks-featured .sw-hint { color:#cbd5e1; }
.dark .sw-chip { --chip-bg:#1a0000; --chip-color:#ff6666; }
.dark .sw-chip:hover { background:#330000; }
.dark .sw-section { background:#1a0000; border-color:#330000; }
.dark .sw-section:hover { background:#220000; border-color:#440000; }
.dark .folder-link { background:linear-gradient(135deg, #ff0000, #cc0000); color:#fff; border:1px solid rgba(255,255,255,0.2); }
.dark .folder-link:hover { background:linear-gradient(135deg, #ff3333, #ff0000); box-shadow:0 4px 15px rgba(255,0,0,0.4); }
.dark .sw-links a { color:#e2e8f0; }
.dark .sw-links a:hover { color:#ff3333; }
.dark .sw-modal-content { background:#0a0a0a; color:#e2e8f0; }
.dark .badge { background:#cc0000; }
.dark .badge-alt { background:#990000; }
.dark .btn.btn-outline { border-color:#ff3333; color:#ff3333; }
.dark .btn.btn-outline:hover { background:#ff0000; color:#fff; }
.dark .btn.btn-secondary { background:#330000; color:#e2e8f0; }
.dark .btn.btn-secondary:hover { background:#440000; }
.dark .sw-close { color:#94a3b8; }
.dark .sw-close:hover { color:#ffffff; }

/* Section appear animation */
.sw-section { opacity:0; transform:translateY(12px); }
.sw-section.sw-in { animation:swFadeSlide .55s cubic-bezier(.25,.8,.25,1) forwards; }
@keyframes swFadeSlide { to { opacity:1; transform:translateY(0); } }

/* Embedded navigation views */
.solidworks-featured { position:relative; }
.projects-grid .solidworks-featured { 
    grid-column: 1 / -1; 
    padding: 2.5rem; 
    background: 
        linear-gradient(135deg, #0a0a0a 0%, #1a0000 100%),
        repeating-linear-gradient(0deg, transparent 0px, transparent 19px, rgba(255, 0, 0, 0.1) 19px, rgba(255, 0, 0, 0.1) 20px),
        repeating-linear-gradient(90deg, transparent 0px, transparent 19px, rgba(255, 0, 0, 0.1) 19px, rgba(255, 0, 0, 0.1) 20px);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 15px; 
    position: relative; 
    overflow: hidden; 
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(255, 0, 0, 0.05);
}

/* Engineering corner brackets */
.projects-grid .solidworks-featured:before { 
    content:""; 
    position: absolute; 
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    border-top: 3px solid #ff0000;
    border-left: 3px solid #ff0000;
    pointer-events: none; 
    opacity: 0.7;
}

.projects-grid .solidworks-featured:after { 
    content:""; 
    position: absolute; 
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-bottom: 3px solid #ff0000;
    border-right: 3px solid #ff0000;
    pointer-events: none; 
    opacity: 0.7;
}

.projects-grid .solidworks-featured:hover { 
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 0, 0, 0.2),
        inset 0 0 80px rgba(255, 0, 0, 0.08);
    border-color: rgba(255, 0, 0, 0.5);
}

.dark .projects-grid .solidworks-featured { 
    background:
        linear-gradient(135deg, #0a0a0a 0%, #1a0000 100%),
        repeating-linear-gradient(0deg, transparent 0px, transparent 19px, rgba(255, 0, 0, 0.15) 19px, rgba(255, 0, 0, 0.15) 20px),
        repeating-linear-gradient(90deg, transparent 0px, transparent 19px, rgba(255, 0, 0, 0.15) 19px, rgba(255, 0, 0, 0.15) 20px);
    border-color: rgba(255, 0, 0, 0.4);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.8),
        inset 0 0 60px rgba(255, 0, 0, 0.08);
}

.dark .projects-grid .solidworks-featured:before,
.dark .projects-grid .solidworks-featured:after { 
    opacity: 0.9;
}

/* Calmer tile aesthetic & focus states */
.sw-tile { 
    background: linear-gradient(135deg, #1a0000, #0a0a0a);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ffffff;
}
.sw-tile:hover { 
    background: linear-gradient(135deg, #2a0000, #1a0000);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.2);
}
.sw-tile:focus-visible { 
    outline: 2px solid #ff0000; 
    outline-offset:3px; 
}
.dark .sw-tile { 
    background:linear-gradient(160deg,#1e293b,#22344a 55%); 
    border-color:#2e445b; 
}
.dark .sw-tile:hover { 
    background:linear-gradient(155deg,#243450,#2d4662 60%); 
    border-color:#3d5d7c; 
    box-shadow:0 6px 20px -6px rgba(0,0,0,.55); 
}
.dark .sw-tile:focus-visible { 
    outline:2px solid #3b82f6; 
    outline-offset:3px; 
}

/* Gentle entrance animation refinement */
.solidworks-featured .sw-view { 
    animation: swViewFadeCalm .55s cubic-bezier(.25,.65,.25,1); 
}
@keyframes swViewFadeCalm { 
    from { opacity:0; transform:translateY(10px) scale(.985); } 
    to { opacity:1; transform:translateY(0) scale(1); } 
}

/* File list link subtle underline effect */
.sw-file-list a { 
    text-decoration:none; 
    background:linear-gradient(currentColor,currentColor) left bottom / 0 1px no-repeat; 
    transition: color .25s, background-size .35s; 
}
.sw-file-list a:hover { 
    background-size: 100% 1px; 
}
.dark .sw-file-list a { 
    background-image:linear-gradient(currentColor,currentColor); 
}
.solidworks-featured .sw-root { display:flex; flex-direction:column; gap:1rem; }
@media (min-width:900px){
    .solidworks-featured .sw-root { flex-direction:row; align-items:flex-start; }
    .solidworks-featured .sw-root > p { max-width:340px; }
    .solidworks-featured .sw-section-buttons { flex:1; }
}
.solidworks-featured .sw-section-buttons { margin-top:4px; }
.solidworks-featured.enlarged-ready { opacity:1 !important; transform:none !important; }
.solidworks-featured .sw-view { animation:swViewFade .35s ease; }
@keyframes swViewFade { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0);} }
.sw-section-buttons { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:16px; margin:18px 0 10px; }
.sw-tile { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:14px 14px 12px; text-align:left; cursor:pointer; display:flex; flex-direction:column; gap:4px; transition:all .3s ease; }
.sw-tile:hover { background:rgba(220,38,38,.08); border-color:rgba(220,38,38,.4); box-shadow:0 6px 20px rgba(220,38,38,.2), inset 0 1px 0 rgba(255,255,255,.08); transform:translateY(-3px); }
.sw-tile:active { transform:translateY(-1px); }
.sw-tile-icon { font-size:1.4rem; color: #ef4444; }
.sw-tile-title { font-weight:700; font-size:1rem; color:#ffffff; letter-spacing: 0.3px; }
.sw-tile-desc { font-size:.75rem; letter-spacing:.5px; text-transform:uppercase; color:rgba(255,255,255,0.6); font-weight: 500; }
.sw-view-header { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:12px; }
.folder-link {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.folder-link:hover {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    box-shadow: 0 4px 15px rgba(255,0,0,0.4);
    transform: translateY(-2px);
}
.sw-back { background:rgba(255,0,0,0.2); border:none; padding:6px 14px; border-radius:20px; cursor:pointer; font-size:.75rem; font-weight:600; letter-spacing:.5px; transition:background .2s; color:#ffffff; border:1px solid rgba(255,0,0,.3); }
.sw-back:hover { background:rgba(255,0,0,0.3); border-color:rgba(255,0,0,.5); }
.sw-view-footer { margin-top:24px; padding-top:18px; border-top:1px solid rgba(255,0,0,0.2); display:flex; justify-content:center; }
.sw-back-bottom { background:linear-gradient(135deg, #ff0000, #cc0000); padding:8px 18px; font-size:.85rem; border-radius:24px; box-shadow:0 2px 8px rgba(255,0,0,0.3); }
.sw-back-bottom:hover { background:linear-gradient(135deg, #ff3333, #ff0000); box-shadow:0 4px 15px rgba(255,0,0,0.5); transform:translateY(-1px); }
.sw-file-list { list-style:none; margin:0 0 10px; padding:0; columns:2; column-gap:28px; }
.sw-file-list li { break-inside:avoid; margin:4px 0; }
.sw-file-list a { text-decoration:none; color:#ffffff; font-size:.9rem; position:relative; padding-left:18px; font-weight: 500; }
.sw-file-list a:before { content:"▸"; position:absolute; left:0; top:0; color:#ff0000; font-weight:700; font-size: 1rem; }
.sw-file-list a:hover { color:#ff6666; }
.sw-note { display:block; margin-top:6px; font-size:.75rem; color:rgba(255,255,255,0.7); font-weight: 500; }

/* New structured layout (enhanced) - Red/Black/White Theme */
.sw-header { display:flex; flex-wrap:wrap; gap:1.2rem; align-items:flex-start; margin-bottom:1.2rem; }
.sw-header-icon { width:54px; height:54px; border-radius:16px; display:flex; align-items:center; justify-content:center; font-size:1.4rem; background:linear-gradient(135deg,#ff0000,#cc0000); color:#fff; box-shadow:0 4px 12px -4px rgba(255,0,0,.4); }
.sw-header-text { flex:1 1 240px; min-width:200px; }
.sw-card-title { margin:0 0 .35rem; font-size:1.3rem; letter-spacing:.5px; display:flex; gap:.6rem; align-items:center; color:#ffffff; font-weight: 700; }
.sw-intro { margin:0; font-size:.95rem; line-height:1.6; color:#ffffff; font-weight: 500; }
.dark .sw-intro { color:#ffffff; }
.sw-badge-new { background:linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.08)); color:#fff; font-size:.55rem; font-weight:700; letter-spacing:.5px; padding:4px 7px 3px; border-radius:6px; text-transform:uppercase; box-shadow:0 2px 8px rgba(0,0,0,.2); position:relative; top:-1px; border:1px solid rgba(255,255,255,.2); }
.dark .sw-badge-new { background:linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.08)); color:#fff; border-color:rgba(255,255,255,.2); }

.sw-meta-counters { display:flex; gap:.75rem; align-items:stretch; }
.sw-meta-item { background:rgba(255,255,255,.05); backdrop-filter:blur(10px); padding:.55rem .7rem .5rem; border-radius:10px; text-align:center; min-width:60px; display:flex; flex-direction:column; justify-content:center; border:1px solid rgba(255,255,255,.1); }
.sw-meta-num { font-size:.95rem; font-weight:700; line-height:1; color:rgba(255,255,255,.9); }
.sw-meta-label { font-size:.55rem; letter-spacing:1px; text-transform:uppercase; color:rgba(255,255,255,0.6); font-weight:600; margin-top:4px; }
.dark .sw-meta-item { background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.1); }
.dark .sw-meta-num { color:rgba(255,255,255,.9); }
.dark .sw-meta-label { color:rgba(255,255,255,0.6); }

.sw-mode-switch { display:inline-flex; gap:.4rem; background:rgba(15,15,20,.6); padding:.4rem; border-radius:14px; border:1px solid rgba(255,255,255,.08); margin-bottom:1rem; backdrop-filter:blur(10px); }
.sw-mode-btn { appearance:none; border:none; background:transparent; padding:.55rem 1rem; border-radius:10px; font-size:.7rem; font-weight:600; letter-spacing:.6px; cursor:pointer; color:rgba(255,255,255,0.6); position:relative; transition:all .3s ease; }
.sw-mode-btn[aria-current="true"], .sw-mode-btn:hover { background:linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.05)); color:#ffffff; box-shadow:0 4px 12px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.1); }
.sw-mode-btn:focus-visible { outline:2px solid rgba(255,255,255,.3); outline-offset:2px; }

/* Statistics badge in mode buttons */
.sw-stats-badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.dark .sw-stats-badge {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .sw-mode-switch { background:rgba(15,15,20,.6); border-color:rgba(255,255,255,.08); }
.dark .sw-mode-btn { color:rgba(255,255,255,0.6); }
.dark .sw-mode-btn[aria-current="true"], .dark .sw-mode-btn:hover { background:linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.05)); color:#ffffff; box-shadow:0 4px 12px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.1); }

.sw-divider { height:1px; background:linear-gradient(90deg,rgba(0,0,0,0),rgba(255,255,255,.15),rgba(0,0,0,0)); margin:.4rem 0 1.1rem; }

/* Quick action buttons (Browse / GitHub / Upload) */
.sw-quick-actions { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    padding: 0 1rem 0.5rem; 
}
.sw-quick-actions .btn-sw-browse,
.sw-quick-actions .btn-sw-download,
.sw-quick-actions .btn-sw-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
    text-decoration: none;
}
.btn-sw-browse { 
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a); 
    color: #ffffff; 
    border-color: rgba(255,0,0,0.35);
}
.btn-sw-download { 
    background: linear-gradient(135deg, #990000, #cc0000); 
    color: #ffffff; 
}
.btn-sw-upload { 
    background: linear-gradient(135deg, #ff0000, #cc0000); 
    color: #ffffff; 
}
.sw-quick-actions .btn-sw-browse:hover,
.sw-quick-actions .btn-sw-download:hover,
.sw-quick-actions .btn-sw-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 0, 0, 0.25);
}
.sw-quick-actions .btn-sw-browse:active,
.sw-quick-actions .btn-sw-download:active,
.sw-quick-actions .btn-sw-upload:active {
    transform: translateY(-1px);
}

/* Quick Actions - strict theme */
.sw-quick-actions { display:flex; gap:10px; flex-wrap:wrap; }
.sw-quick-actions .btn-sw-browse,
.sw-quick-actions .btn-sw-download,
.sw-quick-actions .btn-sw-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,0,0,0.3);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .3s ease, border-color .3s ease;
}
.sw-quick-actions .btn-sw-browse { background: linear-gradient(135deg, #1a1a1a, #0a0a0a); }
.sw-quick-actions .btn-sw-download { background: linear-gradient(135deg, #990000, #cc0000); }
.sw-quick-actions .btn-sw-upload { background: linear-gradient(135deg, #ff0000, #cc0000); }
.sw-quick-actions .btn-sw-browse:hover { border-color: rgba(255,0,0,0.5); box-shadow: 0 6px 18px rgba(255,0,0,0.25); transform: translateY(-2px); }
.sw-quick-actions .btn-sw-download:hover { box-shadow: 0 6px 18px rgba(255,0,0,0.35); transform: translateY(-2px); }
.sw-quick-actions .btn-sw-upload:hover { box-shadow: 0 6px 18px rgba(255,0,0,0.4); transform: translateY(-2px); }
.sw-quick-actions .btn-sw-browse i,
.sw-quick-actions .btn-sw-download i,
.sw-quick-actions .btn-sw-upload i { color: #fff; }

/* Quick Access Links (existing sw-quick-links section) - strict red/deep black/white theme */
.sw-quick-links {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, #0a0a0a, #1a0000);
    border: 1px solid rgba(255,0,0,0.3);
    border-radius: 12px;
    box-shadow: inset 0 0 40px rgba(255,0,0,0.05);
}
.sw-quick-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.8rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sw-quick-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.sw-quick-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 0.9rem 1.1rem;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(255,0,0,0.3);
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.sw-quick-btn:hover {
    background: linear-gradient(135deg, #2a0000, #1a0000);
    border-color: rgba(255,0,0,0.6);
    box-shadow: 0 6px 20px rgba(255,0,0,0.3);
    transform: translateY(-2px);
}
.sw-quick-btn i {
    color: #ef4444;
    font-size: 1.3rem;
}
.sw-quick-btn span {
    font-size: 0.95rem;
    font-weight: 700;
}
.sw-quick-btn small {
    font-size: 0.7rem;
    opacity: 0.75;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Variants for specific quick buttons - Only CW and HW (2 buttons) */
.sw-quick-btn:nth-child(1) { /* All Coursework */
    background: linear-gradient(135deg, #990000, #cc0000);
    border-color: rgba(255,0,0,0.4);
}
.sw-quick-btn:nth-child(1):hover {
    background: linear-gradient(135deg, #cc0000, #ff0000);
    box-shadow: 0 6px 20px rgba(255,0,0,0.4);
}
.sw-quick-btn:nth-child(1) i {
    color: #ffffff;
}

.sw-quick-btn:nth-child(2) { /* All Homework */
    background: linear-gradient(135deg, #cc0000, #ff0000);
    border-color: rgba(255,0,0,0.4);
}
.sw-quick-btn:nth-child(2):hover {
    background: linear-gradient(135deg, #ff0000, #ff3333);
    box-shadow: 0 6px 20px rgba(255,0,0,0.45);
}
.sw-quick-btn:nth-child(2) i {
    color: #ffffff;
}

/* Dark mode support */
.dark .sw-quick-links {
    background: linear-gradient(135deg, #0a0a0a, #1a0000);
    border-color: rgba(255,0,0,0.4);
}
.dark .sw-quick-title {
    color: #ffffff;
}
.dark .sw-quick-btn {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-color: rgba(255,0,0,0.35);
    color: #ffffff;
}
.dark .sw-quick-btn:hover {
    background: linear-gradient(135deg, #2a0000, #1a0000);
    border-color: rgba(255,0,0,0.6);
}
.dark .sw-divider { background:linear-gradient(90deg,rgba(0,0,0,0),rgba(255,255,255,.15),rgba(0,0,0,0)); }

.sw-root-layout { display:grid; gap:2rem; }
@media (min-width:960px){ .sw-root-layout { grid-template-columns: minmax(260px, 1fr) minmax(300px, 360px); align-items:start; } }
.sw-root-info { display:flex; flex-direction:column; gap:1rem; }
.sw-lede { margin:0; font-size:.9rem; line-height:1.6; color:#ffffff; font-weight: 500; }
.dark .sw-lede { color:#ffffff; }
.sw-focus-points { list-style:none; margin:0; padding:0; display:grid; gap:.5rem; font-size:.8rem; letter-spacing:.5px; }
.sw-focus-points li { background:rgba(30,0,0,.6); padding:.6rem .8rem; border-radius:8px; border:1px solid rgba(255,0,0,.3); font-weight: 600; color:#ffffff; }
.dark .sw-focus-points li { background:rgba(30,0,0,.6); border-color:rgba(255,0,0,.3); color:#ffffff; }

.sw-root-panels { display:flex; flex-direction:column; gap:1rem; }
.sw-tip-box { background:linear-gradient(135deg,rgba(30,0,0,.7),rgba(20,0,0,.5)); padding:.9rem 1rem; border:1px solid rgba(255,0,0,.4); border-radius:12px; font-size:.8rem; line-height:1.5; color:#ffffff; box-shadow:0 2px 8px rgba(255,0,0,.2); font-weight: 500; }
.dark .sw-tip-box { background:linear-gradient(135deg,rgba(30,0,0,.7),rgba(20,0,0,.5)); border-color:rgba(255,0,0,.4); color:#ffffff; box-shadow:0 2px 8px rgba(255,0,0,.2); }

/* README preview inside repo cards */
.sw-readme-preview { background: rgba(255,255,255,0.03); padding: 0.75rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.04); color: rgba(255,255,255,0.9); max-height: 180px; overflow: auto; }
.readme-container h1, .readme-container h2, .readme-container h3 { color: #fff; margin: 0 0 0.25rem; }
.readme-container p { color: rgba(255,255,255,0.85); margin: 0 0 0.5rem; font-size: 0.9rem; }
.sw-readme-preview .github-action-btn { margin-top: 0.5rem; margin-right: 6px; }
.loading-spinner.small { font-size: 0.9rem; padding: 0.25rem 0; color: rgba(255,255,255,0.8); }
/* Simplify toolbar in compact README preview cards */
.sw-readme-preview .md-reader-toolbar, .sw-readme-preview .md-toc { display: none !important; }
.sw-readme-preview .markdown-body { font-size: 0.9rem; }

/* Markdown content styling and code block copy */
.markdown-body { 
    line-height: 1.75; 
    font-size: var(--md-font-size, 1rem); 
    color: #e6edf3; 
    font-family: Inter, "Nirmala UI", "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi", "Noto Serif Bengali", "Vrinda", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.md-content { 
    padding: 1.5rem 2rem;
    max-width: 100%;
}
@media (max-width: 768px) {
    .md-content {
        padding: 1rem 1.25rem;
    }
    .markdown-body {
        font-size: var(--md-font-size, 0.95rem);
        line-height: 1.7;
    }
}

/* Blueprint/Engineering aesthetic utilities */
.bp-header {
    position: relative;
    padding: 140px 0 60px 0;
    text-align: center;
    background: radial-gradient(1200px 600px at 100% -20%, rgba(255,0,0,0.12), transparent 60%),
                linear-gradient(135deg, #0a0a0a, #1a0000);
    border-bottom: 1px solid rgba(255,0,0,0.25);
    overflow: hidden;
}
.bp-header h1 { color:#fff; }
.bp-header p { color:#ff9999; }
.bp-grid-overlay::before, .bp-grid-overlay::after {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
}
.bp-grid-overlay::before {
    background-image: 
      linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px;
    mix-blend-mode: overlay;
}
.bp-grid-overlay::after {
    background: repeating-linear-gradient(45deg, rgba(255,0,0,0.12) 0 2px, transparent 2px 12px);
    opacity: 0.25;
}

/* Portal enhancements */
.portal-grid .portal-card {
    position: relative;
}
.portal-grid .portal-card::before,
.portal-grid .portal-card::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(255,0,0,0.25);
    width: 28px; height: 28px;
    transition: opacity .2s ease;
}
.portal-grid .portal-card::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.portal-grid .portal-card::after { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.portal-grid .portal-card:hover::before,
.portal-grid .portal-card:hover::after { opacity: 0.7; }

.axis-lines {
    position: absolute; inset: 0; pointer-events:none;
    background: 
      linear-gradient(to right, rgba(255,0,0,0.08) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255,0,0,0.08) 1px, transparent 1px);
    background-size: 80px 100%, 100% 80px;
    mask-image: radial-gradient(ellipse at center, black 60%, transparent 90%);
}

/* Isometric blueprint overlay */
.bp-iso-grid::before,
.bp-iso-grid::after{
    content:''; position:absolute; inset:0; pointer-events:none;
}
.bp-iso-grid::before{ /* 30° lines */
    background: repeating-linear-gradient(30deg, rgba(255,255,255,0.045) 0 2px, transparent 2px 28px);
}
.bp-iso-grid::after{ /* 150° lines */
    background: repeating-linear-gradient(150deg, rgba(255,0,0,0.08) 0 2px, transparent 2px 28px);
    opacity:.5;
}

/* Subtle noise overlay to avoid flat look */
.noise-overlay{ position:absolute; inset:0; pointer-events:none; opacity:.06; mix-blend-mode:overlay;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.35"/></svg>');
}

/* Portal card micro-interactions */
.portal-grid .portal-card{ perspective: 800px; }
.portal-grid .portal-card .shine{
    position:absolute; inset:-1px; border-radius:16px; pointer-events:none;
    background: radial-gradient(400px 200px at var(--mx,50%) var(--my,0%), rgba(255,255,255,0.12), transparent 60%);
    opacity:0; transition: opacity .2s ease;
}
.portal-grid .portal-card:hover .shine{ opacity:1; }
.portal-grid .portal-card .scanline{
    position:absolute; left:0; right:0; height:2px; top:-2px; opacity:0;
    background: linear-gradient(90deg, transparent, rgba(255,0,0,0.6), transparent);
    animation: none;
}
.portal-grid .portal-card:hover .scanline{ animation: scanSweep 1.8s linear infinite; opacity:0.55; }

@keyframes scanSweep{
    0%{ transform: translateY(0); }
    100%{ transform: translateY(calc(100% + 2px)); }
}

/* ========================================
   In-page CV Overlay Viewer (Red/Black)
   ======================================== */
.cv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: stretch;
    justify-content: center;
}
.cv-overlay.show { display: flex; }

.cv-modal {
    background: linear-gradient(135deg, #0a0a0a, #1a0000);
    border: 2px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 0 60px rgba(255,0,0,0.05);
    width: min(1200px, 96vw);
    height: min(90vh, 900px);
    margin: auto;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cv-modal.fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0 !important;
}

.cv-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-bottom: 1px solid rgba(255, 0, 0, 0.25);
}
.cv-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
}
.cv-title-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255,0,0,0.3);
}

.cv-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cv-action {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(255, 0, 0, 0.35);
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all .25s ease;
}
.cv-action:hover {
    background: linear-gradient(135deg, #2a0000, #1a0000);
    border-color: rgba(255, 0, 0, 0.6);
}
.cv-action.primary {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border: none;
}
.cv-action.primary:hover {
    background: linear-gradient(135deg, #ff3333, #ff0000);
}
.cv-action.round {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.cv-modal-body {
    position: relative;
    flex: 1;
    background: #111;
}
.cv-iframe-wrap {
    position: absolute;
    inset: 0;
    overflow: auto;
    background: #1a1a1a;
    transform-origin: center center;
}
.cv-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}
.cv-zoom-controls {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(255, 0, 0, 0.35);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.cv-zoom-level {
    min-width: 60px;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

@media (max-width: 768px) {
    .cv-modal { 
        width: 100vw; 
        height: 100vh; 
        border-radius: 0;
        margin: 0;
    }
    .cv-modal-header { 
        padding: 10px 12px;
        flex-wrap: wrap;
    }
    .cv-modal-title {
        font-size: 0.9rem;
    }
    .cv-title-icon {
        width: 32px;
        height: 32px;
    }
    .cv-action span { 
        display: none; 
    }
    .cv-action {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    .cv-zoom-controls {
        bottom: 12px;
        right: 12px;
        padding: 6px;
        gap: 6px;
    }
    .cv-action.round {
        width: 36px;
        height: 36px;
    }
    .cv-zoom-level {
        min-width: 50px;
        font-size: 0.9rem;
    }
    
    /* Mobile PDF viewing optimization */
    .cv-iframe {
        /* Force proper rendering on mobile */
        -webkit-overflow-scrolling: touch;
    }
}
.markdown-body.md-narrow { max-width: 850px; margin: 0 auto; }
.markdown-body.md-wrap pre code { white-space: pre-wrap !important; word-break: break-word; }

/* Headings - better spacing and hierarchy */
.markdown-body h1 { 
    font-size: 2rem; 
    font-weight: 700;
    margin: 1.5rem 0 1rem; 
    padding-bottom: 0.3rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    line-height: 1.3;
}
.markdown-body h1:first-child { margin-top: 0; }
.markdown-body h2 { 
    font-size: 1.5rem; 
    font-weight: 600;
    margin: 2rem 0 0.75rem; 
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    line-height: 1.35;
}
.markdown-body h3 { 
    font-size: 1.25rem; 
    font-weight: 600;
    margin: 1.5rem 0 0.6rem; 
    line-height: 1.4;
}
.markdown-body h4 { 
    font-size: 1.1rem; 
    font-weight: 600;
    margin: 1.25rem 0 0.5rem; 
}
.markdown-body h5, .markdown-body h6 { 
    font-size: 1rem; 
    font-weight: 600;
    margin: 1rem 0 0.5rem; 
}

/* Mobile heading adjustments */
@media (max-width: 768px) {
    .markdown-body h1 { font-size: 1.75rem; margin: 1.25rem 0 0.75rem; }
    .markdown-body h2 { font-size: 1.35rem; margin: 1.5rem 0 0.6rem; }
    .markdown-body h3 { font-size: 1.15rem; margin: 1.25rem 0 0.5rem; }
}

/* Paragraphs and text blocks */
.markdown-body p { 
    margin: 0 0 1.25rem; 
    line-height: inherit;
}
.markdown-body p:last-child { margin-bottom: 0; }

/* Lists - better spacing */
.markdown-body ul, .markdown-body ol { 
    margin: 0.75rem 0 1.25rem 0; 
    padding-left: 2rem; 
}
.markdown-body li { 
    margin: 0.5rem 0; 
    line-height: 1.6;
}
.markdown-body li > p { margin: 0.25rem 0; }
.markdown-body ul ul, .markdown-body ol ol, 
.markdown-body ul ol, .markdown-body ol ul {
    margin: 0.5rem 0;
}

/* Blockquotes */
.markdown-body blockquote { 
    margin: 1.25rem 0; 
    padding: 1rem 1.25rem; 
    background: rgba(255,255,255,0.04); 
    border-left: 4px solid #ff6666; 
    border-radius: 8px; 
    color: rgba(255,255,255,0.92); 
}
.markdown-body blockquote p { margin: 0.5rem 0; }
.markdown-body blockquote p:first-child { margin-top: 0; }
.markdown-body blockquote p:last-child { margin-bottom: 0; }

.markdown-body hr { border: 0; border-top: 1px solid rgba(255,255,255,0.12); margin: 2rem 0; }

/* Links */
.markdown-body a { 
    color: #58a6ff; 
    text-decoration: none; 
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.markdown-body a:hover { 
    border-bottom-color: #58a6ff;
}

/* Images */
.markdown-body img { 
    display: block; 
    max-width: 100%; 
    height: auto;
    margin: 1.5rem auto; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Code blocks */
.markdown-body pre { 
    background: #0d1117; 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 10px; 
    padding: 1rem; 
    overflow-x: auto;
    margin: 1.25rem 0;
    line-height: 1.5;
}
.markdown-body.md-wrap pre code { white-space: pre-wrap !important; word-break: break-word; }
.markdown-body code { 
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; 
    font-size: 0.9em;
}
.markdown-body pre code {
    background: none;
    padding: 0;
    border: none;
}
/* Inline code */
.markdown-body :not(pre) > code {
    background: rgba(255,255,255,0.1);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: #ff7b72;
}
.md-copy-btn { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; padding: 4px 8px; font-size: 0.75rem; cursor: pointer; }
.md-copy-btn:hover { background: rgba(255,255,255,0.18); }

/* KaTeX math rendering tweaks */
.markdown-body .katex { color: inherit; }
.markdown-body .katex-display { 
    overflow-x: auto; 
    padding: 0.2rem 0.3rem; 
    margin: 0.6rem 0 0.8rem; 
    text-align: center; 
    font-size: 1.05em; 
}

/* Reader wrapper and toolbar */
.md-reader { position: relative; }
.md-reader-toolbar { 
    position: sticky;
    top: 0; z-index: 2;
    display: flex; 
    align-items: center; 
    flex-wrap: wrap;
    gap: 6px; 
    margin-bottom: 12px; 
    padding: 8px; 
    background: rgba(10,10,10,0.95); 
    border: 1px solid rgba(255,255,255,0.08); 
    border-radius: 10px; 
    backdrop-filter: blur(10px);
}
@media (max-width: 768px) {
    .md-reader-toolbar {
        padding: 6px;
        gap: 4px;
        font-size: 0.9rem;
    }
}
.md-reader .md-btn { 
    background: rgba(255,255,255,0.08); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.15); 
    border-radius: 8px; 
    padding: 6px 10px; 
    font-size: 0.8rem; 
    cursor: pointer; 
}
.md-reader .md-btn:hover { background: rgba(255,255,255,0.14); }
.md-reader .md-sep { width: 1px; height: 20px; background: rgba(255,255,255,0.12); display: inline-block; }

/* Progress bar (visible in fullscreen) */
.md-progress { position: sticky; top: 44px; height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; z-index: 2; }
.md-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #ff3333, #ff9900); }

/* TOC */
.md-toc { 
    margin: 6px 0 10px; 
    padding: 10px 12px; 
    border: 1px solid rgba(255,255,255,0.12); 
    background: rgba(10,10,10,0.95); 
    backdrop-filter: blur(10px);
    border-radius: 10px; 
    max-width: 280px;
}
.md-toc.hidden { display: none; }
.md-toc-title { 
    font-weight: 700; 
    font-size: 0.9rem; 
    margin-bottom: 8px; 
    color: #fff; 
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.md-toc-list { list-style: none; margin: 0; padding: 0; }
.md-toc-list li { margin: 6px 0; line-height: 1.4; }
.md-toc-list .toc-l1 { margin-left: 0; font-weight: 600; }
.md-toc-list .toc-l2 { margin-left: 16px; font-size: 0.9em; }
.md-toc-list .toc-l3 { margin-left: 32px; font-size: 0.85em; }
.md-toc-list a { 
    color: #c7d2fe; 
    text-decoration: none; 
    display: block;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.2s;
}
.md-toc-list a:hover { 
    background: rgba(255,255,255,0.08);
}
.md-toc-list a.active { 
    color: #fff; 
    font-weight: 600; 
    background: rgba(88,166,255,0.15);
}

/* Mobile TOC adjustment */
@media (max-width: 900px) {
    .md-toc {
        position: fixed;
        left: 10px;
        top: 70px;
        max-width: 250px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        z-index: 3;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }
}

/* Optional light theme for markdown content */
.md-reader.md-light .md-reader-toolbar { 
    background: rgba(255,255,255,0.7); 
    border-color: rgba(0,0,0,0.08);
}
.md-reader.md-light .md-btn { 
    background: rgba(0,0,0,0.04); 
    color: #111; 
    border-color: rgba(0,0,0,0.12);
}
.md-reader.md-light .markdown-body { 
    color: #111827; 
}
.md-reader.md-light .markdown-body a { color: #1d4ed8; }
.md-reader.md-light .markdown-body blockquote { background: rgba(0,0,0,0.04); color: #111827; border-left-color: #ef4444; }
.md-reader.md-light .markdown-body pre { background: #f3f4f6; border-color: #e5e7eb; }

/* Help Panel */
.md-help-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(20px);
    color: #e6edf3;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: opacity 0.2s, transform 0.2s;
}
.md-help-panel.hidden {
    display: none;
}
.md-help-header {
    position: sticky;
    top: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}
.md-help-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}
.md-help-close {
    background: none;
    border: none;
    color: #9da5b4;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}
.md-help-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.md-help-content {
    padding: 1.5rem;
}
.md-help-section {
    margin-bottom: 2rem;
}

/* Mobile help panel adjustments */
@media (max-width: 768px) {
    .md-help-panel {
        width: 95%;
        max-width: none;
        max-height: 85vh;
    }
    .md-help-header {
        padding: 1rem 1.25rem;
    }
    .md-help-header h3 {
        font-size: 1.1rem;
    }
    .md-help-content {
        padding: 1rem 1.25rem;
    }
    .md-shortcut {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .md-shortcut:last-child {
        border-bottom: none;
    }
}
.md-help-section:last-child {
    margin-bottom: 0;
}
.md-help-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #7ee787;
}
.md-shortcut-list {
    display: grid;
    gap: 0.75rem;
}
.md-shortcut {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}
.md-shortcut kbd {
    display: inline-block;
    background: linear-gradient(180deg, #2d333b 0%, #22272e 100%);
    color: #e6edf3;
    border: 1px solid #444c56;
    border-radius: 5px;
    padding: 0.25rem 0.75rem;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    min-width: 40px;
    text-align: center;
}
.md-shortcut span {
    color: #c9d1d9;
    font-size: 0.95rem;
}
.md-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.md-feature-list li {
    padding: 0.5rem 0;
    color: #c9d1d9;
    font-size: 0.95rem;
    line-height: 1.6;
}
.md-feature-list li strong {
    color: #79c0ff;
    font-weight: 600;
}

/* Light theme for help panel */
.md-reader.md-light .md-help-panel {
    background: rgba(255, 255, 255, 0.98);
    color: #24292f;
    border-color: rgba(0,0,0,0.1);
}
.md-reader.md-light .md-help-header {
    background: rgba(245, 245, 245, 0.95);
    border-bottom-color: rgba(0,0,0,0.1);
}
.md-reader.md-light .md-help-header h3 {
    color: #24292f;
}
.md-reader.md-light .md-help-section h4 {
    color: #0969da;
}
.md-reader.md-light .md-shortcut kbd {
    background: linear-gradient(180deg, #f6f8fa 0%, #e1e4e8 100%);
    color: #24292f;
    border-color: #d0d7de;
}
.md-reader.md-light .md-shortcut span,
.md-reader.md-light .md-feature-list li {
    color: #57606a;
}
.md-reader.md-light .md-feature-list li strong {
    color: #0969da;
}

/* Fullscreen reader */
.md-reader.md-fs { 
    position: fixed; 
    inset: 0; 
    z-index: 9999; 
    background: linear-gradient(135deg, #0a0a0a, #1a0000); 
    padding: 0; 
    overflow-y: auto; 
    overflow-x: hidden;
}
.md-reader.md-fs .md-reader-toolbar { 
    position: sticky; 
    top: 0; 
    background: rgba(10,10,10,0.98); 
    backdrop-filter: blur(10px);
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}
.md-reader.md-fs .md-content { 
    max-width: min(920px, 100%); 
    margin: 0 auto; 
    padding: 2rem 2.5rem 4rem;
}
.md-reader.md-fs .md-progress { 
    position: sticky;
    top: 52px; 
}
.md-reader.md-fs .md-toc {
    position: fixed;
    left: 20px;
    top: 70px;
    max-height: calc(100vh - 90px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

/* Fullscreen mobile adjustments */
@media (max-width: 768px) {
    .md-reader.md-fs .md-content {
        padding: 1.5rem 1.25rem 3rem;
    }
    .md-reader.md-fs .md-toc {
        left: 8px;
        top: 60px;
        max-width: calc(100vw - 16px);
        width: auto;
    }
}

/* ============================================================================
   GLOBAL ZOOM RESILIENCE BASELINE
   These rules reduce layout breakage when effective viewport shrinks from
   browser zoom or OS scaling on desktop.
   ============================================================================ */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: clip;
}

img,
video,
canvas,
svg,
iframe {
    max-width: 100%;
}

table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

pre,
code,
.code-block,
.json-editor,
.terminal-output {
    max-width: 100%;
    overflow-x: auto;
}

/* Keep long tokens/URLs from forcing horizontal overflow. */
h1, h2, h3, h4, h5, h6,
p, li, td, th,
.title, .subtitle, .description {
    overflow-wrap: anywhere;
}

/* Flex/grid children can otherwise overflow at tight effective widths. */
:where(.container, .wrapper, .content, .main-content, .page-content, .grid, .row) > * {
    min-width: 0;
}

/* Hide TOC close button in fullscreen mode */
.md-reader.md-fs .md-toc-title {
    border-bottom: none;
}
/* TOC is always visible in fullscreen, hide toggle button */
.md-reader.md-fs [data-act="toc"] {
    display: none;
}

/* Tables in Markdown */
.markdown-body table { 
    border-collapse: collapse; 
    width: 100%; 
    margin: 1.5rem 0; 
    display: block;
    overflow-x: auto;
}
@media (max-width: 768px) {
    .markdown-body table {
        font-size: 0.9em;
    }
}
.markdown-body th, .markdown-body td { border: 1px solid rgba(255,255,255,0.15); padding: 8px 10px; text-align: left; }
.markdown-body th { background: rgba(255,255,255,0.08); color: #ffffff; }
.markdown-body tr:nth-child(even) { background: rgba(255,255,255,0.04); }
.markdown-body thead th { position: sticky; top: 0; backdrop-filter: blur(2px); }

/* SOLIDWORKS Quick Actions */
.sw-quick-actions {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0;
}

.btn-sw-browse,
.btn-sw-download {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-sw-browse {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-sw-browse:hover {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.5);
    transform: translateY(-2px);
}

.btn-sw-download {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    color: #ffffff;
    border: 1px solid rgba(220, 38, 38, 0.4);
}

.btn-sw-download:hover {
    background: linear-gradient(135deg, #171717, #262626);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
}

.btn-sw-browse:active,
.btn-sw-download:active {
    transform: translateY(0);
}

/* Central Upload Button */
.btn-sw-upload {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 38, 38, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #ffffff;
}

.btn-sw-upload:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
}

.btn-sw-upload:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .sw-quick-actions {
        flex-direction: column;
    }
}

.sw-files-wrap { background:rgba(30,0,0,.5); backdrop-filter:blur(4px); padding:1rem 1.15rem 1.1rem; border-radius:16px; border:1px solid rgba(255,0,0,.25); box-shadow:0 4px 10px -4px rgba(0,0,0,.5); }
.dark .sw-files-wrap { background:rgba(30,0,0,.5); border-color:rgba(255,0,0,.25); box-shadow:0 4px 12px -4px rgba(0,0,0,.5); }
.sw-sub-heading { margin:.1rem 0 .7rem; font-size:.85rem; text-transform:uppercase; letter-spacing:1px; color:#ff6666; font-weight: 700; }
.dark .sw-sub-heading { color:#ff6666; }
.sw-note-box { margin-top:.85rem; padding:.7rem .8rem; background:rgba(30,0,0,.5); border:1px solid rgba(255,0,0,.3); border-radius:10px; font-size:.75rem; line-height:1.5; color:#ffffff; font-weight: 500; }
.dark .sw-note-box { background:rgba(30,0,0,.5); border-color:rgba(255,0,0,.3); color:#ffffff; }

/* Mode button active underline effect */
.sw-mode-btn[aria-current="true"] { position:relative; }
.sw-mode-btn[aria-current="true"]:after { content:""; position:absolute; left:12px; right:12px; bottom:6px; height:2px; border-radius:2px; background:linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,.3)); }
.dark .sw-mode-btn[aria-current="true"]:after { background:linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,.3)); }

/* Reduce chip spacing inside root */
.sw-root-info .sw-quick-links { margin-top:.4rem; }

/* Minor adjustments to existing elements for spacing harmony */
.solidworks-featured .sw-section-buttons { margin:4px 0 .5rem; }
.sw-section-buttons .sw-tile { min-height:110px; }

/* Ripple effect */
.sw-mode-btn, .sw-tile { position:relative; overflow:hidden; }
.sw-ripple { position:absolute; border-radius:50%; transform:scale(0); background:rgba(220,38,38,.35); animation:sw-ripple .55s ease-out; pointer-events:none; }
@keyframes sw-ripple { to { transform:scale(2.8); opacity:0; } }
.dark .sw-ripple { background:rgba(59,130,246,.45); }

@media (max-width:600px){
    .sw-file-list { columns:1; }
    .sw-section-buttons { grid-template-columns:1fr 1fr; }
}

/* Dark mode for embedded views */
.dark .sw-tile { background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.1); }
.dark .sw-tile:hover { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.2); }
.dark .sw-tile-desc { color:rgba(255,255,255,0.6); }
.dark .sw-back { background:rgba(255,0,0,0.2); color:#ffffff; border-color:rgba(255,0,0,.3); }
.dark .sw-back:hover { background:rgba(255,0,0,0.3); border-color:rgba(255,0,0,.5); }
.dark .sw-file-list a { color:rgba(255,255,255,0.85); }
.dark .sw-file-list a:hover { color:#ff3333; }
.dark .sw-note { color:rgba(255,255,255,0.6); }

/* ============================================
   SOLO PROJECTS STYLING
   ============================================ */
.solo-projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.solo-project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.solo-project-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.solo-project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.solo-project-title-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.solo-project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.solo-project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.solo-upload-date,
.solo-file-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.solo-upload-date i,
.solo-file-count i {
    opacity: 0.7;
}

.solo-project-files {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.solo-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.solo-file-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.solo-file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.solo-file-ext {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.solo-file-name {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.solo-file-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.solo-file-btn {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solo-file-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.solo-no-files {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 1.5rem;
    font-style: italic;
}

/* Mobile responsive for solo projects */
@media (max-width: 768px) {
    .solo-projects-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .solo-project-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .solo-project-meta {
        align-items: flex-start;
        width: 100%;
    }
    
    .solo-upload-date,
    .solo-file-count {
        font-size: 0.7rem;
    }
}

.modal-btn {
    display: inline-block;
    margin-top: 18px;
    background: #0057b8;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s;
}
.modal-btn:hover {
    background: #003e8a;
}
/* Modern Portfolio CSS */
:root {
    --primary-color: #4f46e5;
    --primary-light: #eef2ff;
    --secondary-color: #7c3aed;
    --accent-color: #10b981;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #6366f1;
    --primary-light: #312e81;
    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    --text-color: #f9fafb;
    --text-light: #d1d5db;
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: all 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

/* Ensure all text elements inherit proper colors */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, p, span, div {
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar:not(.desktop-navbar) {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(10,10,10,0.95), rgba(20,0,0,0.95));
    z-index: 1000;
    padding: 0.75rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 0, 0, 0.12);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 0, 0, 0.04);
    color: var(--text-primary);
}

[data-theme="dark"] .navbar:not(.desktop-navbar) {
    background: linear-gradient(180deg, #0a0a0a, #1a0000);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Engineering-architectural brand icon (red/black/white) */
.nav-logo .brand-logo, .nav-logo .brand-icon {
    width: 28px;
    height: 28px;
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.18));
    vertical-align: middle;
    transition: transform 200ms ease, filter 200ms ease;
}

.nav-logo a:hover .brand-logo, .nav-logo a:hover .brand-icon {
    transform: translateY(-1px) scale(1.06);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.22));
}

@keyframes brand-underline-pulse {
    0% { box-shadow: 0 0 0 rgba(255, 42, 42, 0); }
    50% { box-shadow: 0 6px 18px rgba(255, 42, 42, 0.28); }
    100% { box-shadow: 0 0 0 rgba(255, 42, 42, 0.14); }
}

.nav-logo a::after {
    content: '';
    width: 38px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    margin-left: 8px;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
}

.nav-item {
    margin: 0;
}

.nav-link:not(.desktop-nav-link) {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.25s ease, color 0.2s ease, transform 0.15s ease;
    position: relative;
    display: inline-block;
}

.nav-link:not(.desktop-nav-link):hover {
    background: rgba(255, 0, 0, 0.06);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-link:not(.desktop-nav-link):focus {
    outline: 2px solid rgba(255, 0, 0, 0.12);
    outline-offset: 2px;
}

.nav-link:not(.desktop-nav-link).active::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -8px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.1);
}

.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.hamburger {
    display: none !important;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 28px !important;
        height: 20px !important;
        cursor: pointer !important;
        z-index: 10001 !important;
        position: relative !important;
    }
}

.hamburger .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.nav-item {
    margin: 0;
}

.nav-link {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.25s ease, color 0.2s ease, transform 0.15s ease;
    position: relative;
    display: inline-block;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    background: rgba(255, 0, 0, 0.06);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-link:focus {
    outline: 2px solid rgba(255, 0, 0, 0.12);
    outline-offset: 2px;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -8px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.1);
}

.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 0, 0, 0.08);
    border-color: rgba(255, 0, 0, 0.3);
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Enhanced Hero Section - Black & Red Architectural Design */
.nav-logo .brand-logo {
    height: 28px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.18));
    transition: transform .2s ease, filter .2s ease;
}
.nav-logo a:hover .brand-logo {
    transform: translateY(-1px) scale(1.02);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.28));
}
.hero {
    min-height: 100vh;
.brand-wordmark {
    height: 22px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: 
        /* Circuit board pattern */
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 0, 0, 0.03) 2px, rgba(255, 0, 0, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 0, 0, 0.03) 2px, rgba(255, 0, 0, 0.03) 4px),
        /* Energy grid lines */
        linear-gradient(90deg, transparent 0%, rgba(220, 0, 0, 0.1) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(220, 0, 0, 0.1) 50%, transparent 100%),
        /* Deep foundation gradient */
        radial-gradient(circle at 20% 30%, rgba(40, 0, 0, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(60, 0, 0, 0.3) 0%, transparent 50%),
        /* Base black */
        linear-gradient(135deg, #0a0a0a 0%, #1a0000 25%, #000000 50%, #1a0000 75%, #0a0a0a 100%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0 0, 0 0, center, center, center, center, center;
    position: relative;
    overflow: hidden;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% {
        background-position: 0 0, 0 0, center, center, center, center, center;
    }
    50% {
        background-position: 20px 20px, 20px 20px, center, center, center, center, center;
    }
}

/* Animated Background Elements - Architectural Energy System */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Add architectural elements to hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Diagonal structural beams */
        linear-gradient(45deg, transparent 48%, rgba(200, 0, 0, 0.15) 49%, rgba(255, 0, 0, 0.3) 50%, rgba(200, 0, 0, 0.15) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(200, 0, 0, 0.15) 49%, rgba(255, 0, 0, 0.3) 50%, rgba(200, 0, 0, 0.15) 51%, transparent 52%);
    background-size: 200px 200px, 200px 200px;
    background-position: 0 0, 100px 100px;
    opacity: 0.3;
    animation: structuralShift 20s linear infinite;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Energy conduits - vertical */
        repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255, 0, 0, 0.1) 80px, rgba(255, 0, 0, 0.2) 82px, transparent 82px, transparent 160px),
        /* Energy conduits - horizontal */
        repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(255, 0, 0, 0.1) 100px, rgba(255, 0, 0, 0.2) 102px, transparent 102px, transparent 200px);
    animation: energyFlow 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes structuralShift {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(200px, 200px);
    }
}

@keyframes energyFlow {
    0%, 100% {
        opacity: 0.4;
        filter: brightness(1);
    }
    50% {
        opacity: 0.7;
        filter: brightness(1.3);
    }
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 0, 0, 0.1);
    animation: float-shape 8s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(45deg);
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 1s;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    border: 3px solid rgba(200, 0, 0, 0.4);
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 80%;
    animation-delay: 2s;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(100, 0, 0, 0.1));
}

.shape-4 {
    width: 90px;
    height: 90px;
    bottom: 30%;
    left: 5%;
    animation-delay: 3s;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    border: 2px solid rgba(180, 0, 0, 0.35);
}

.shape-5 {
    width: 110px;
    height: 110px;
    top: 15%;
    right: 30%;
    animation-delay: 4s;
    clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
    background: rgba(150, 0, 0, 0.12);
    border: 2px solid rgba(255, 0, 0, 0.25);
}

@keyframes float-shape {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: brightness(1);
    }
    25% { 
        transform: translateY(-20px) rotate(90deg) scale(1.05);
        filter: brightness(1.2);
    }
    50% { 
        transform: translateY(-40px) rotate(180deg) scale(1.1);
        filter: brightness(1.4);
    }
    75% { 
        transform: translateY(-20px) rotate(270deg) scale(1.05);
        filter: brightness(1.2);
    }
}

.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse-orb 5s ease-in-out infinite;
}

.orb-1 {
    width: 350px;
    height: 350px;
    top: -120px;
    right: -120px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.25) 0%, rgba(150, 0, 0, 0.15) 40%, transparent 70%);
    animation-delay: 0s;
}

.orb-2 {
    width: 450px;
    height: 450px;
    bottom: -180px;
    left: -180px;
    background: radial-gradient(circle, rgba(200, 0, 0, 0.2) 0%, rgba(100, 0, 0, 0.12) 40%, transparent 70%);
    animation-delay: 2s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 50, 50, 0.18) 0%, rgba(180, 0, 0, 0.1) 40%, transparent 70%);
    animation-delay: 1s;
}

@keyframes pulse-orb {
    0%, 100% { 
        transform: scale(1) translate(0, 0);
        opacity: 0.5;
        filter: blur(80px) brightness(1);
    }
    50% { 
        transform: scale(1.2) translate(20px, -20px);
        opacity: 0.8;
        filter: blur(90px) brightness(1.3);
    }
}

/* Particles Canvas */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-content {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 0 0 auto;
    max-width: 320px;
    margin-top: -60px;
    margin-left: auto;
}

/* Enhanced Text Animations */
.hero-text-wrapper {
    position: relative;
}

.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-on-load:nth-child(1) { animation-delay: 0.2s; }
.animate-on-load:nth-child(2) { animation-delay: 0.4s; }
.animate-on-load:nth-child(3) { animation-delay: 0.6s; }
.animate-on-load:nth-child(4) { animation-delay: 0.8s; }
.animate-on-load:nth-child(5) { animation-delay: 1.0s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-line {
    display: block;
    overflow: hidden;
}

.word {
    display: inline-block;
    margin-right: 0.5rem;
    transform: translateY(100%);
    animation: slideWord 0.8s ease-out forwards;
}

.word:nth-child(1) { animation-delay: 0.1s; }
.word:nth-child(2) { animation-delay: 0.2s; }

@keyframes slideWord {
    to { transform: translateY(0); }
}

.highlight-wrapper {
    position: relative;
    display: inline-block;
}

.highlight-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, #cc0000, #ff3333);
    border-radius: 2px;
    animation: expandUnderline 1s ease-out 0.8s forwards;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

@keyframes expandUnderline {
    to { width: 100%; }
}

/* Typing Animation */
.typing-text {
    display: inline;
}

.cursor {
    display: inline-block;
    color: var(--primary-color);
    animation: blink 1s infinite;
}

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

.text-highlight {
    color: #ff3333;
    font-weight: 600;
    position: relative;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.8), transparent);
    opacity: 0.5;
}

/* Tech Stack Showcase - Innovative Interactive Badges */
.tech-stack-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 0;
}

.tech-badge {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(135deg, rgba(40, 0, 0, 0.5), rgba(20, 0, 0, 0.3));
    border: 1px solid rgba(255, 0, 0, 0.25);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.2), transparent);
    transition: left 0.6s ease;
}

.tech-badge:hover::before {
    left: 100%;
}

.tech-badge:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(255, 0, 0, 0.6);
    box-shadow: 
        0 8px 25px rgba(255, 0, 0, 0.3),
        0 0 35px rgba(255, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(60, 0, 0, 0.7), rgba(40, 0, 0, 0.5));
}

.tech-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(150, 0, 0, 0.1));
    border-radius: 7px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    font-size: 1.1rem;
    color: #ff3333;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.tech-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.tech-badge:hover .tech-icon::after {
    width: 100%;
    height: 100%;
}

.tech-badge:hover .tech-icon {
    transform: rotate(360deg);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.4), rgba(200, 0, 0, 0.2));
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.tech-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
}

.tech-name {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.tech-pulse {
    width: 100%;
    height: 2px;
    background: rgba(50, 0, 0, 0.4);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    display: none;
}

.tech-pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    animation: pulseTech 2s ease-in-out infinite;
}

.tech-badge:hover .tech-pulse::before {
    animation-duration: 1s;
}

@keyframes pulseTech {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Staggered animation for tech badges */
.tech-badge:nth-child(1) .tech-pulse::before { animation-delay: 0s; }
.tech-badge:nth-child(2) .tech-pulse::before { animation-delay: 0.2s; }
.tech-badge:nth-child(3) .tech-pulse::before { animation-delay: 0.4s; }
.tech-badge:nth-child(4) .tech-pulse::before { animation-delay: 0.6s; }
.tech-badge:nth-child(5) .tech-pulse::before { animation-delay: 0.8s; }

/* Glow effect on specific tech badges */
.tech-badge[data-tech="solidworks"]:hover {
    box-shadow: 
        0 10px 40px rgba(255, 0, 0, 0.4),
        0 0 60px rgba(255, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 50, 0, 0.15);
}

.tech-badge[data-tech="cad"]:hover {
    box-shadow: 
        0 10px 40px rgba(255, 50, 0, 0.35),
        0 0 50px rgba(255, 100, 0, 0.25),
        inset 0 0 25px rgba(255, 80, 0, 0.12);
}

.tech-badge[data-tech="simulation"]:hover {
    box-shadow: 
        0 10px 40px rgba(255, 20, 0, 0.4),
        0 0 55px rgba(255, 60, 0, 0.28),
        inset 0 0 28px rgba(255, 40, 0, 0.13);
}

.tech-badge[data-tech="rendering"]:hover {
    box-shadow: 
        0 10px 40px rgba(200, 0, 0, 0.38),
        0 0 52px rgba(220, 30, 0, 0.26),
        inset 0 0 26px rgba(210, 20, 0, 0.12);
}

.tech-badge[data-tech="assembly"]:hover {
    box-shadow: 
        0 10px 40px rgba(180, 0, 0, 0.36),
        0 0 48px rgba(200, 20, 0, 0.24),
        inset 0 0 24px rgba(190, 10, 0, 0.11);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 
        0 0 30px rgba(255, 0, 0, 0.4),
        0 2px 20px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(255, 50, 50, 0.2);
}

.highlight {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.25), rgba(200, 0, 0, 0.15));
    padding: 0.1rem 0.5rem;
    border-radius: 6px;
    border-left: 4px solid #ff0000;
    text-shadow: 
        0 2px 15px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 0, 0, 0.3);
    box-shadow: 
        0 4px 15px rgba(255, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 0, 0, 0.1);
}

.hero-subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 0, 0, 0.15);
}

.hero-description {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Enhanced Button Styles */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.5);
    transform: translateY(-3px);
}

.btn-modern {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 1;
}

.btn-modern:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-modern:hover:before {
    left: 100%;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-text {
    position: relative;
    z-index: 2;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.btn-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: scale(1.2) rotate(10deg);
}

.btn-hover-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    border-radius: 50%;
    z-index: 1;
}

.btn:hover .btn-hover-effect {
    width: 300px;
    height: 300px;
}

.btn-ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.btn-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active .btn-ripple::before {
    width: 300px;
    height: 300px;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #CC0000;
    color: #ffffff;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-shadow: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background: #DD0000;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Enhanced Profile Section with Engineering Design */
.profile-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
    border-radius: 20px;
    background: 
        linear-gradient(135deg, rgba(20, 0, 0, 0.5), rgba(10, 0, 0, 0.4)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="none" stroke="rgba(255,0,0,0.1)" stroke-width="0.5" x="10" y="10" width="80" height="80"/><line stroke="rgba(255,0,0,0.1)" stroke-width="0.5" x1="10" y1="50" x2="90" y2="50"/><line stroke="rgba(255,0,0,0.1)" stroke-width="0.5" x1="50" y1="10" x2="50" y2="90"/><circle fill="none" stroke="rgba(255,0,0,0.15)" stroke-width="0.5" cx="50" cy="50" r="35"/></svg>');
    background-size: cover, 100px 100px;
    background-position: center, center;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 0, 0, 0.1),
        inset 0 0 60px rgba(255, 0, 0, 0.05);
}

.profile-card-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

/* Engineering blueprint grid effect */
.profile-card-3d::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(255, 0, 0, 0.05) 20px, rgba(255, 0, 0, 0.05) 21px),
        repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(255, 0, 0, 0.05) 20px, rgba(255, 0, 0, 0.05) 21px);
    border-radius: 50%;
    z-index: -1;
    animation: blueprintRotate 30s linear infinite;
    pointer-events: none;
}

@keyframes blueprintRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.profile-card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

.profile-image-wrapper {
    position: relative;
    margin: 0 auto;
}

.profile-frame {
    width: 320px;
    height: 320px;
    position: relative;
    margin: 0 auto;
}

/* Engineering measurement markers */
.engineering-markers {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.marker {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.marker-line {
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.8), rgba(255, 0, 0, 0.3));
    position: relative;
}

.marker-line::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ff0000;
    border-radius: 50%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.marker-label {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.9), rgba(200, 0, 0, 0.8));
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 0, 0, 0.5);
    box-shadow: 
        0 4px 15px rgba(255, 0, 0, 0.4),
        0 0 20px rgba(255, 0, 0, 0.3);
}

.marker-top {
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
}

.marker-top .marker-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, rgba(255, 0, 0, 0.8), rgba(255, 0, 0, 0.3));
}

.marker-right {
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
}

.marker-bottom {
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column-reverse;
}

.marker-bottom .marker-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(0deg, rgba(255, 0, 0, 0.8), rgba(255, 0, 0, 0.3));
}

.marker-bottom .marker-line::before {
    top: auto;
    bottom: 0;
}

.marker-left {
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: row-reverse;
}

.marker-left .marker-line {
    background: linear-gradient(270deg, rgba(255, 0, 0, 0.8), rgba(255, 0, 0, 0.3));
}

.marker-left .marker-line::before {
    left: auto;
    right: 0;
}

/* CLIENT_UNIVERSITY_SHORT Gate inspired architectural background */
.profile-frame::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    transform: translate(-50%, -50%);
    z-index: -2;
    opacity: 0.08;
    background: 
        /* Main gate pillars */
        linear-gradient(to bottom, transparent 20%, rgba(255, 255, 255, 0.3) 20%, rgba(255, 255, 255, 0.3) 80%, transparent 80%),
        linear-gradient(to right, transparent 10%, rgba(255, 255, 255, 0.2) 10%, rgba(255, 255, 255, 0.2) 15%, transparent 15%),
        linear-gradient(to right, transparent 85%, rgba(255, 255, 255, 0.2) 85%, rgba(255, 255, 255, 0.2) 90%, transparent 90%),
        /* Gate arch */
        radial-gradient(ellipse 180px 100px at 50% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 50%),
        /* Gate base */
        linear-gradient(to bottom, transparent 75%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0.2) 85%, transparent 85%);
    background-size: 100% 100%;
    background-position: center;
    pointer-events: none;
}

.frame-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(204, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(150, 0, 0, 0.1) 0%, transparent 50%);
    z-index: -1;
    filter: blur(15px);
    opacity: 0.3;
}

.profile-image-wrapper:hover .frame-glow {
    opacity: 0.5;
}

#profile-photo-wrapper {
    display: block;
    width: 320px;
    height: 320px;
    border-radius: 50% !important;
    overflow: hidden !important;
    position: relative;
    border: 4px solid transparent;
    background: 
        linear-gradient(#0a0a0a, #0a0a0a) padding-box,
        linear-gradient(135deg, #cc0000, #990000, #cc0000) border-box;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(204, 0, 0, 0.25),
        0 8px 20px rgba(204, 0, 0, 0.15),
        inset 0 0 20px rgba(204, 0, 0, 0.08);
}

#profile-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Modern Upload Controls */
.modern-upload-btn, .modern-reset-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.modern-upload-btn {
    background: var(--gradient-professional);
    color: white;
}

.modern-upload-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px var(--shadow-medium);
}

.modern-reset-btn {
    bottom: 80px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
}

.upload-tooltip {
    position: absolute;
    bottom: 100%;
    right: 50%;
    transform: translateX(50%);
    background: var(--bg-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modern-upload-btn:hover .upload-tooltip {
    opacity: 1;
}

/* Professional Skills Display */
.professional-skills {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    pointer-events: none;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    min-width: 100px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: scale(0);
    animation: popIn 0.6s ease-out forwards;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.skill-1 { animation-delay: 1.2s; }
.skill-2 { animation-delay: 1.4s; }
.skill-3 { animation-delay: 1.6s; }

@keyframes popIn {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.skill-icon {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    opacity: 0.8;
}

.skill-name {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.2rem;
    letter-spacing: 0.3px;
}

.skill-level {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: fillProgress 1s ease-out 2.5s forwards;
}

@keyframes fillProgress {
    to { transform: scaleX(1); }
}

/* Achievement Badges */
.achievement-badges {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 5;
}

.achievement {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b45309;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    animation: bounce 2s ease-in-out infinite;
}

.achievement:nth-child(1) { animation-delay: 0s; }
.achievement:nth-child(2) { animation-delay: 0.3s; }
.achievement:nth-child(3) { animation-delay: 0.6s; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Hero Social Links */
.hero-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-link:nth-child(1):hover { background: linear-gradient(135deg, #333, #666); }
.social-link:nth-child(2):hover { background: linear-gradient(135deg, #0077b5, #00a0dc); }
.social-link:nth-child(3):hover { background: linear-gradient(135deg, #ea4335, #fbbc04); }
.social-link:nth-child(4):hover { background: linear-gradient(135deg, #4f46e5, #7c3aed); }

.social-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-link:hover .social-tooltip {
    opacity: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 2s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    to { opacity: 1; }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--text-light);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

.scroll-text {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Comprehensive Dark Theme Adjustments */
[data-theme="dark"] {
    color: var(--text-color);
}

[data-theme="dark"] .hero-title {
    color: var(--text-color);
}

[data-theme="dark"] .hero-subtitle {
    color: var(--text-light);
}

[data-theme="dark"] .hero-description {
    color: var(--text-light);
}

[data-theme="dark"] .description-text {
    color: var(--text-light);
}

[data-theme="dark"] .skill-badge {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(71, 85, 105, 0.5);
    color: var(--text-color);
}

[data-theme="dark"] .skill-name {
    color: var(--text-color);
}

[data-theme="dark"] .hero-stats {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(71, 85, 105, 0.3);
}

[data-theme="dark"] .stat-label {
    color: var(--text-light);
}

[data-theme="dark"] .social-link {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(71, 85, 105, 0.4);
    color: var(--text-color);
}

[data-theme="dark"] .social-tooltip {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .upload-tooltip {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] #profile-photo-wrapper {
    border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .scroll-text {
    color: var(--text-light);
}

[data-theme="dark"] .mouse {
    border-color: var(--text-light);
}

[data-theme="dark"] .wheel {
    background: var(--text-light);
}

[data-theme="dark"] .text-highlight {
    color: var(--primary-color);
}

[data-theme="dark"] .cursor {
    color: var(--primary-color);
}

[data-theme="dark"] .btn-outline {
    background: rgba(30, 41, 59, 0.4);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-outline:hover {
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-color);
}

[data-theme="dark"] .btn-modern {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
}

/* Dark mode for geometric shapes */
[data-theme="dark"] .shape-1 {
    background: linear-gradient(45deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2));
}

[data-theme="dark"] .shape-2 {
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.25), rgba(79, 70, 229, 0.15));
}

[data-theme="dark"] .shape-3 {
    background: linear-gradient(45deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.2));
}

[data-theme="dark"] .shape-4 {
    background: linear-gradient(45deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.15));
}

[data-theme="dark"] .shape-5 {
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.3), rgba(124, 58, 237, 0.2));
}

/* Responsive Design for Enhanced Hero */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .tech-stack-showcase {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.75rem;
        padding: 1rem;
        scrollbar-width: thin;
    }
    
    .tech-badge {
        flex-shrink: 0;
        padding: 0.6rem 1rem;
    }
    
    .tech-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .tech-name {
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .skill-badge {
        position: static;
        margin: 0.5rem;
        transform: scale(1);
        animation: none;
    }
    
    .floating-skills {
        position: static;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 2rem;
    }
    
    .profile-frame {
        width: 250px;
        height: 250px;
    }
    
    #profile-photo-wrapper {
        width: 230px;
        height: 230px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-social-links {
        justify-content: center;
    }
}
/* Simple profile fallback - only used if image fails to load */
.profile-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    background: var(--gradient-professional);
    font-family: 'Playfair Display', serif;
    border-radius: 50%;
}

[data-theme="dark"] .profile-fallback {
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    color: #f1f5f9;
}
.dark .profile-reset-btn { background:#1e293b; color:#a5b4fc; border-color:#334155; }
.dark .profile-reset-btn:hover { background:#24324a; }
.profile-upload-hint { font-size:.55rem; letter-spacing:.5px; background:rgba(255,255,255,.75); padding:4px 8px; border-radius:10px; color:#334155; backdrop-filter:blur(6px); border:1px solid #d8e2ec; }
.dark .profile-upload-hint { background:rgba(30,45,65,.6); color:#cbd5e1; border-color:#2e4357; }
.profile-upload-status { min-height:14px; font-size:.55rem; font-weight:600; letter-spacing:.5px; color:#2563eb; text-align:center; }
.dark .profile-upload-status { color:#60a5fa; }
.profile-upload-controls.drag-over .profile-upload-btn { box-shadow:0 0 0 3px rgba(99,102,241,.3),0 4px 14px -4px rgba(80,60,160,.6); }
.profile-upload-error { color:#dc2626 !important; }
.dark .profile-upload-error { color:#f87171 !important; }

@media (max-width:640px){
    .profile-upload-hint { display:none; }
    .profile-upload-controls { bottom:-18px; }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.floating-element.solidworks { top: 10%; left: 70%; animation-delay: 0s; }
.floating-element.arduino { top: 25%; left: -10%; animation-delay: 1s; }
.floating-element.matlab { top: 60%; left: 80%; animation-delay: 2s; }
.floating-element.cad { top: 80%; left: 10%; animation-delay: 3s; }
.floating-element.circuit { top: 40%; left: -15%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(0.5deg); }
}

/* Sections */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff;
    position: relative;
    display: inline-block;
    width: 100%;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
    margin-bottom: 3.5rem;
    margin-top: 1.5rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

/* Blueprint Grid Background - Vertical Lines Pattern */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(255, 0, 0, 0.08) 49px, rgba(255, 0, 0, 0.08) 50px),
        repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(255, 0, 0, 0.08) 49px, rgba(255, 0, 0, 0.08) 50px);
    background-size: 250px 250px;
    animation: blueprintSlide 40s linear infinite;
    pointer-events: none;
    opacity: 0.5;
}

/* Technical Measurement Markers */
.about::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        linear-gradient(90deg, rgba(255, 0, 0, 0.15) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 0, 0, 0.15) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes blueprintSlide {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(50px) translateY(50px);
    }
}

.about .container {
    position: relative;
    z-index: 1;
}

/* Decorative shapes - Engineering Corner Markers */
.about-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.about-shape {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 0, 0, 0.3);
    opacity: 0.4;
}

.about-shape-1 {
    top: 50px;
    left: 50px;
    border-left: none;
    border-bottom: none;
    animation: pulseCorner 3s ease-in-out infinite;
}

.about-shape-2 {
    bottom: 50px;
    right: 50px;
    border-right: none;
    border-top: none;
    animation: pulseCorner 3s ease-in-out infinite 1.5s;
}

.about-shape-3 {
    top: 50px;
    right: 50px;
    border-right: none;
    border-bottom: none;
    animation: pulseCorner 3s ease-in-out infinite 0.75s;
}

@keyframes pulseCorner {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 0 0 0 rgba(255, 0, 0, 0);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    }
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.about-text {
    background: linear-gradient(135deg, rgba(30, 0, 0, 0.4), rgba(15, 0, 0, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.08), transparent);
    transition: left 0.6s ease;
}

.about-text:hover::before {
    left: 100%;
}

.about-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(255, 0, 0, 0.25);
    border-color: rgba(255, 0, 0, 0.4);
}

.about-text h3 {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: none;
    position: relative;
    display: inline-block;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, transparent);
    border-radius: 2px;
}

.about-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.skills {
    margin-top: 2rem;
}

.skill-category {
    margin-bottom: 2rem;
}

.skill-category h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.skill-category h4 i {
    color: #ff3333;
    font-size: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(150, 0, 0, 0.1));
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* Expertise Showcase - Fixed Content */
.expertise-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    padding: 0;
}

.expertise-card {
    background: linear-gradient(135deg, rgba(40, 0, 0, 0.6), rgba(20, 0, 0, 0.4));
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 0, 0.25);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.15), transparent);
    transition: left 0.6s ease;
}

.expertise-card:hover::before {
    left: 100%;
}

.expertise-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 
        0 8px 30px rgba(255, 0, 0, 0.25),
        0 0 40px rgba(255, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(60, 0, 0, 0.8), rgba(40, 0, 0, 0.6));
}

.expertise-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.25), rgba(150, 0, 0, 0.15));
    border-radius: 10px;
    border: 2px solid rgba(255, 0, 0, 0.3);
    font-size: 1.5rem;
    color: #ff3333;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.expertise-card:hover .expertise-icon {
    transform: rotate(360deg) scale(1.1);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.4), rgba(200, 0, 0, 0.25));
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
}

.expertise-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.expertise-info h4 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #ff9999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.expertise-info p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #150000 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

/* Diagonal Grid Pattern */
.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 49px, rgba(255, 0, 0, 0.06) 49px, rgba(255, 0, 0, 0.06) 50px),
        repeating-linear-gradient(-45deg, transparent, transparent 49px, rgba(255, 0, 0, 0.06) 49px, rgba(255, 0, 0, 0.06) 50px);
    background-size: 200px 200px;
    pointer-events: none;
    opacity: 0.6;
}

/* Corner Brackets */
.projects::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 0, 0, 0.2) 2px, transparent 2px),
        linear-gradient(0deg, rgba(255, 0, 0, 0.2) 2px, transparent 2px);
    background-size: 150px 150px;
    background-position: 0 0;
    pointer-events: none;
    opacity: 0.2;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* ============================================
   ENGINEERING ARCHITECTURE PROJECT CARDS
   ============================================ */

.project-card {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 100%);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: block !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Blueprint grid overlay */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255, 0, 0, 0.08) 19px, rgba(255, 0, 0, 0.08) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255, 0, 0, 0.08) 19px, rgba(255, 0, 0, 0.08) 20px);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

/* Corner brackets - Engineering style */
.project-card::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    border-top: 2px solid #ff0000;
    border-left: 2px solid #ff0000;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover::after {
    opacity: 1;
    top: 5px;
    left: 5px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.6);
}

.project-card.visible {
    opacity: 1 !important;
    pointer-events: auto;
}

.project-card.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

/* Project Image Section */
.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #000000, #1a0000);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.85) contrast(1.1);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.2);
}

/* Blueprint grid on image */
.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover .blueprint-grid {
    opacity: 0.5;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
    z-index: 2;
}

.project-status {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.featured-badge {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
}

.category-badge {
    background: rgba(0, 0, 0, 0.7);
    color: #ff6666;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Content Section */
.project-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.content-header {
    position: relative;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.title-accent {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, transparent);
    border-radius: 2px;
}

.project-description {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Features */
.project-features {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    font-size: 0.85rem;
}

.feature-tag i {
    color: #ff0000;
    font-size: 0.7rem;
}

/* Tech Stack */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(255, 0, 0, 0.15);
    color: #ff6666;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(255, 0, 0, 0.25);
    color: #ff3333;
    transform: translateY(-2px);
}

.tech-more {
    color: #666;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

/* Action Buttons Grid - Engineering Style */
.project-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn i {
    font-size: 1rem;
}

.btn-github {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    grid-column: 1 / -1;
}

.btn-github:hover {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.btn-demo {
    background: rgba(255, 100, 0, 0.2);
    color: #ff6633;
    border: 1px solid rgba(255, 100, 0, 0.4);
}

.btn-demo:hover {
    background: rgba(255, 100, 0, 0.3);
    color: #ff8844;
    border-color: rgba(255, 100, 0, 0.6);
}

.btn-browse {
    background: rgba(0, 150, 255, 0.2);
    color: #66aaff;
    border: 1px solid rgba(0, 150, 255, 0.4);
}

.btn-browse:hover {
    background: rgba(0, 150, 255, 0.3);
    color: #88ccff;
    border-color: rgba(0, 150, 255, 0.6);
}

/* Details button removed per new design */

.btn-readme {
    background: rgba(255, 255, 255, 0.06);
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-readme:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-zip {
    background: rgba(16, 185, 129, 0.15);
    color: #86efac;
    border: 1px solid rgba(16, 185, 129, 0.4);
}
.btn-zip:hover {
    background: rgba(16, 185, 129, 0.3);
    color: #bbf7d0;
    border-color: rgba(16, 185, 129, 0.6);
}

/* Special Project Content Styles */

/* Arduino Categories */
.special-content {
    margin: 1rem 0;
    padding: 0.5rem 0;
}

.arduino-categories .category-section,
.electronics-components .category-section {
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 8px;
    background: rgba(15, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.arduino-categories .category-section:hover,
.electronics-components .category-section:hover {
    border-color: rgba(255, 0, 0, 0.4);
    background: rgba(20, 0, 0, 0.4);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    list-style: none;
}

.category-header::-webkit-details-marker {
    display: none;
}

.category-section[open] .category-header {
    background: rgba(255, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 0, 0, 0.2);
}

.category-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.category-name {
    flex: 1;
    color: #ffffff;
}

.category-count {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-body {
    padding: 1rem;
    animation: slideDown 0.3s ease;
}

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

.category-description {
    color: #cccccc;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.project-list,
.component-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.project-list li,
.component-list li {
    color: #ffffff;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 0, 0, 0.05);
    border-left: 2px solid #ff3333;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.project-list li:hover,
.component-list li:hover {
    background: rgba(255, 0, 0, 0.1);
    border-left-color: #ff0000;
    transform: translateX(4px);
}

.component-bullet {
    color: #ff3333;
    margin-right: 0.5rem;
    font-weight: bold;
}

/* Portfolio Features */
.portfolio-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.feature-group {
    background: rgba(15, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.feature-group:hover {
    border-color: rgba(255, 0, 0, 0.4);
    background: rgba(20, 0, 0, 0.4);
    transform: translateY(-2px);
}

.feature-group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 0, 0, 0.2);
}

.feature-icon {
    font-size: 1.1rem;
}

.feature-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9rem;
}

.feature-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.feature-details li {
    color: #cccccc;
    font-size: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    line-height: 1.4;
}

.detail-bullet {
    color: #ff3333;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Responsive adjustments for special content */
@media (max-width: 768px) {
    .portfolio-features {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .category-count {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }
}

/* Old styles cleanup */

/* GitHub Section */

.github-section {
    text-align: center;
    padding: 3.5rem 2.5rem;
    background: linear-gradient(135deg, rgba(30, 0, 0, 0.6), rgba(15, 0, 0, 0.4));
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.project-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.project-link:hover::after {
    width: 300px;
    height: 300px;
}

.project-link.primary {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 15px rgba(255, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.project-link.primary:hover {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    box-shadow: 
        0 8px 30px rgba(255, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.5);
}

.project-link.secondary {
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.35), rgba(255, 0, 0, 0.25));
    color: white;
    border: 2px solid rgba(255, 51, 51, 0.5);
}

.project-link.secondary:hover {
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.5), rgba(255, 0, 0, 0.4));
    box-shadow: 0 8px 25px rgba(255, 51, 51, 0.4);
    border-color: rgba(255, 51, 51, 0.8);
    transform: translateY(-2px) scale(1.03);
}

.project-link.details {
    background: transparent;
    border: 2px solid rgba(255, 0, 0, 0.5);
    color: #ff6666;
}

.project-link.details:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: #ff0000;
    color: #ffffff;
    box-shadow: 
        0 4px 20px rgba(255, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 0, 0, 0.1);
    transform: translateY(-2px) scale(1.03);
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: scale(1.2);
}

.project-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.view-details-btn {
    background: 
        linear-gradient(135deg, #ff0000, #cc0000),
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.05) 2px, rgba(255, 255, 255, 0.05) 4px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0.85rem 1.8rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 
        0 6px 20px rgba(255, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.view-details-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.view-details-btn:hover::before {
    width: 400px;
    height: 400px;
}

.view-details-btn:hover {
    background: 
        linear-gradient(135deg, #ff3333, #ff0000),
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.08) 2px, rgba(255, 255, 255, 0.08) 4px);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 35px rgba(255, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.view-details-btn i {
    transition: transform 0.3s ease;
}

.view-details-btn:hover i {
    transform: rotate(15deg) scale(1.1);
}

.github-section {
    text-align: center;
    padding: 3.5rem 2.5rem;
    background: linear-gradient(135deg, rgba(30, 0, 0, 0.7), rgba(15, 0, 0, 0.5));
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.github-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.4), transparent, rgba(255, 0, 0, 0.4));
    border-radius: 20px;
    z-index: -1;
    animation: borderPulse 4s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.github-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.github-section p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ============================================
   CONTACT SECTION - DESKTOP ONLY
   ============================================ */
@media (min-width: 769px) {
/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 100%);
    position: relative;
    overflow: hidden;
}

/* Hexagonal Grid Pattern */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255, 0, 0, 0.05) 40px, rgba(255, 0, 0, 0.05) 41px),
        repeating-linear-gradient(60deg, transparent, transparent 40px, rgba(255, 0, 0, 0.05) 40px, rgba(255, 0, 0, 0.05) 41px),
        repeating-linear-gradient(120deg, transparent, transparent 40px, rgba(255, 0, 0, 0.05) 40px, rgba(255, 0, 0, 0.05) 41px);
    background-size: 80px 140px;
    pointer-events: none;
    opacity: 0.7;
}

/* Radial Grid Accent */
.contact::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    opacity: 0.4;
}

.contact-content {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(30, 0, 0, 0.5), rgba(15, 0, 0, 0.3));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 0, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    transform: translateX(8px);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.2);
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(150, 0, 0, 0.2));
    border-radius: 12px;
    border: 2px solid rgba(255, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff3333;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.contact-item:hover .contact-icon {
    transform: rotate(360deg) scale(1.1);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.5), rgba(200, 0, 0, 0.3));
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
}

.contact-details h4 {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #ffffff;
    font-size: 1.1rem;
}

.contact-details p,
.contact-details a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: #ff3333;
}

.contact-form {
    background: linear-gradient(135deg, rgba(30, 0, 0, 0.5), rgba(15, 0, 0, 0.3));
    backdrop-filter: blur(10px);
    padding: 3.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 0, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.3), transparent, rgba(255, 0, 0, 0.3));
    border-radius: 15px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 0, 0, 0.25);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(20, 0, 0, 0.4), rgba(10, 0, 0, 0.2));
    color: #ffffff;
    font-family: 'Source Sans Pro', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff0000;
    background: linear-gradient(135deg, rgba(30, 0, 0, 0.5), rgba(15, 0, 0, 0.3));
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

} /* End of Contact Section Desktop Media Query */

/* Footer */
.footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0000 100%);
    color: #ffffff;
    padding: 3rem 0 2rem 0;
    text-align: center;
    border-top: 2px solid rgba(255, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(150, 0, 0, 0.2));
    color: #ffffff;
    border-radius: 10px;
    border: 2px solid rgba(255, 0, 0, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    transform: translateY(-5px) rotate(5deg);
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-color: #ff0000;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

/* SOLIDWORKS Project Folders (CW/HW) Interactive Section */
.project-card details {
    margin-top: 0.5em;
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 0.5em 1em;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card details[open] {
    background: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.project-card summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    outline: none;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1rem;
    padding: 0.3em 0;
}

.project-card details ul {
    margin: 0.5em 0 0 1.5em;
    padding-left: 0;
    list-style: disc inside;
}

.project-card details li {
    margin-bottom: 0.3em;
    font-size: 0.98em;
}

.project-card details a {
    color: var(--secondary-color);
    text-decoration: underline dotted;
    transition: color 0.2s;
    word-break: break-all;
}

.project-card details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- Embedded Project Card Styles for Web, Mobile, Desktop (same as SOLIDWORKS) --- */
.project-card.web-featured,
.project-card.mobile-featured,
.project-card.desktop-featured {
    position: relative;
    padding: 2.4rem 2.3rem 2rem;
    background:
        radial-gradient(circle at 18% 28%, rgba(180,210,255,.35), rgba(255,255,255,0) 60%),
        radial-gradient(circle at 82% 70%, rgba(160,200,255,.25), rgba(255,255,255,0) 62%),
        linear-gradient(130deg,#f5faff 0%, #ffffff 50%, #eef5ff 100%);
    border: 1px solid #d9e3ee;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 14px -4px rgba(20,40,90,.13), 0 2px 4px rgba(30,60,110,.06);
    margin-bottom: 2rem;
}
.project-card.web-featured:before,
.project-card.web-featured:after,
.project-card.mobile-featured:before,
.project-card.mobile-featured:after,
.project-card.desktop-featured:before,
.project-card.desktop-featured:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .45;
}
.project-card.web-featured:before,
.project-card.mobile-featured:before,
.project-card.desktop-featured:before {
    background-image: linear-gradient(55deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 28%),
        repeating-linear-gradient(135deg, rgba(120,150,200,.07) 0 2px, rgba(120,150,200,0) 2px 6px);
    mix-blend-mode: overlay;
}
.project-card.web-featured:after,
.project-card.mobile-featured:after,
.project-card.desktop-featured:after {
    background: radial-gradient(circle at 65% 35%, rgba(90,130,200,.10), rgba(255,255,255,0) 55%);
    filter: blur(18px);
    opacity: .45;
}
.project-card.web-featured:hover,
.project-card.mobile-featured:hover,
.project-card.desktop-featured:hover {
    box-shadow: 0 8px 28px -6px rgba(20,40,90,.18), 0 4px 12px rgba(30,60,110,.08);
}
[data-theme="dark"] .project-card.web-featured,
[data-theme="dark"] .project-card.mobile-featured,
[data-theme="dark"] .project-card.desktop-featured {
    background:
        radial-gradient(circle at 18% 28%, rgba(56,85,140,.25), rgba(15,23,42,0) 62%),
        radial-gradient(circle at 82% 70%, rgba(40,70,120,.18), rgba(15,23,42,0) 65%),
        linear-gradient(135deg,#0f172a 0%, #162337 55%, #1e2f47 100%);
    border-color: #253447;
    box-shadow: 0 4px 16px -4px rgba(0,0,0,.45), 0 0 0 1px rgba(60,90,140,.18);
}
[data-theme="dark"] .project-card.web-featured:before,
[data-theme="dark"] .project-card.mobile-featured:before,
[data-theme="dark"] .project-card.desktop-featured:before {
    background-image: linear-gradient(55deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 30%),
        repeating-linear-gradient(135deg, rgba(120,170,250,.04) 0 2px, rgba(120,170,250,0) 2px 6px);
}
[data-theme="dark"] .project-card.web-featured:after,
[data-theme="dark"] .project-card.mobile-featured:after,
[data-theme="dark"] .project-card.desktop-featured:after {
    background: radial-gradient(circle at 70% 40%, rgba(120,170,250,.12), rgba(15,23,42,0) 60%);
}

/* Embedded navigation views for all cards */
.project-card.web-featured .sw-view,
.project-card.mobile-featured .sw-view,
.project-card.desktop-featured .sw-view {
    animation: swViewFadeCalm .55s cubic-bezier(.25,.65,.25,1);
}
@keyframes swViewFadeCalm {
    from { opacity:0; transform:translateY(10px) scale(.985);}
    to { opacity:1; transform:translateY(0) scale(1);}
}
.project-card.web-featured .sw-section-buttons,
.project-card.mobile-featured .sw-section-buttons,
.project-card.desktop-featured .sw-section-buttons {
    margin-top: 4px;
}
.project-card.web-featured .sw-section-buttons .sw-tile,
.project-card.mobile-featured .sw-section-buttons .sw-tile,
.project-card.desktop-featured .sw-section-buttons .sw-tile {
    min-height: 110px;
}

/* Day-specific project sections */
.sw-day-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(40,0,0,0.4), rgba(20,0,0,0.3));
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255,0,0,0.3);
    border-left: 4px solid #ff0000;
}

.sw-day-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ff3333;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.sw-day-title:before {
    content: "📅";
    font-size: 1rem;
}

.sw-file-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sw-file-item {
    background: white;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.sw-file-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.sw-file-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

.sw-file-link:hover {
    color: var(--primary-color);
}

.sw-file-link i:first-child {
    color: var(--primary-color);
    font-size: 1rem;
}

.sw-file-link span {
    flex: 1;
}

.sw-external-icon {
    opacity: 0.6;
    font-size: 0.8rem;
    transition: opacity 0.2s ease;
}

.sw-file-link:hover .sw-external-icon {
    opacity: 1;
}

/* Dark theme support for day sections */
[data-theme="dark"] .sw-day-section {
    background: rgba(79, 70, 229, 0.15);
    border-left-color: #818cf8;
}

[data-theme="dark"] .sw-day-title {
    color: #a5b4fc;
}

[data-theme="dark"] .sw-file-item {
    background: #1f2937;
    border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .sw-file-link {
    color: #e5e7eb;
}

[data-theme="dark"] .sw-file-link:hover {
    color: #a5b4fc;
}

[data-theme="dark"] .sw-file-link i:first-child {
    color: #818cf8;
}

/* Enhanced project item styles */
.sw-file-item {
    background: linear-gradient(135deg, rgba(30,0,0,0.5), rgba(20,0,0,0.3));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255,0,0,0.25);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1rem;
}

.sw-file-item:hover {
    box-shadow: 0 4px 16px rgba(255,0,0,0.3);
    transform: translateY(-2px);
    border-color: rgba(255,0,0,0.5);
    background: linear-gradient(135deg, rgba(40,0,0,0.6), rgba(25,0,0,0.4));
}

.sw-file-item.spot-test {
    border-left: 4px solid #ff3333;
    background: linear-gradient(135deg, rgba(255,51,51,0.2), rgba(30,0,0,0.4));
}

.sw-file-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem 0.75rem;
    font-weight: 600;
    color: #ffffff;
}

.sw-file-header i {
    color: #ff3333;
    font-size: 1.1rem;
}

.sw-file-name {
    flex: 1;
    font-size: 1rem;
    color: #ffffff;
}

.sw-file-badge {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6666;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(255, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.spot-test-badge {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255,0,0,0.3);
}

.sw-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: rgba(0,0,0,0.02);
}

.sw-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sw-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.sw-action-btn:hover::before {
    left: 100%;
}

.sw-btn-page {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
}

.sw-btn-page:hover {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,0,0,0.4);
}

.sw-btn-download {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    color: white;
}

.sw-btn-download:hover {
    background: linear-gradient(135deg, #ff5555, #ff3333);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,51,51,0.4);
}

.sw-btn-preview {
    background: linear-gradient(135deg, rgba(255,0,0,0.2), rgba(200,0,0,0.1));
    color: #ff3333;
    border-color: rgba(255,0,0,0.4);
}

.sw-btn-preview:hover {
    background: linear-gradient(135deg, rgba(255,0,0,0.3), rgba(200,0,0,0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,0,0,0.3);
    color: #ff0000;
}

.sw-btn-3d {
    background: linear-gradient(135deg, #cc0000, #990000);
    color: white;
}

.sw-btn-3d:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    transform: translateY(-1px);
}

/* 3D Model Viewer Modal */
.model-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.model-viewer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.model-viewer-content {
    background: rgba(26, 26, 26, 0.95);
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(204, 0, 0, 0.3);
}

.model-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: var(--primary-color);
    color: white;
    border-radius: 12px 12px 0 0;
}

.model-viewer-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.model-viewer-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.model-viewer-header .close-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Dark theme support */
[data-theme="dark"] .sw-file-item {
    background: #1f2937;
    border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .sw-file-item.spot-test {
    background: linear-gradient(135deg, #451a03 0%, #1f2937 100%);
}

[data-theme="dark"] .sw-file-actions {
    background: rgba(255,255,255,0.05);
    border-top-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .model-viewer-content {
    background: #1f2937;
}

[data-theme="dark"] .model-viewer-header {
    border-bottom-color: #374151;
}

/* Responsive design */
@media (max-width: 768px) {
    /* About Section Responsive */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .expertise-showcase {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .expertise-card {
        padding: 1.25rem;
    }
    
    .expertise-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .expertise-info h4 {
        font-size: 1rem;
    }
    
    .expertise-info p {
        font-size: 0.85rem;
    }
    
    /* SOLIDWORKS Files */
    .sw-file-actions {
        flex-direction: column;
    }
    
    .sw-action-btn {
        justify-content: center;
    }
    
    .sw-quick-buttons {
        flex-direction: column;
    }
    
    .model-viewer-content {
        margin: 1rem;
        width: calc(100vw - 2rem);
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Disable heavy animations for devices that prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .project-card::after {
        animation: none !important;
    }
}

/* Optimize animations for better performance */
.project-card,
.project-link,
.tech-tag,
.view-details-btn {
    will-change: transform;
}

/* Remove will-change after transition completes */
.project-card:not(:hover),
.project-link:not(:hover),
.tech-tag:not(:hover),
.view-details-btn:not(:hover) {
    will-change: auto;
}

/* ============================================
   GITHUB REPOSITORY BROWSER
   ============================================ */

/* Modal Base Styles - Full Page View */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background: #0a0a0a;
}

.project-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    display: none;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 0, 0, 0.98), rgba(10, 0, 0, 0.95));
    width: 100%;
    height: 100%;
    z-index: 10001;
    overflow: hidden;
}

.close-modal {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.5);
}

.close-modal:hover {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
}

.close-modal:active {
    transform: rotate(90deg) scale(0.95);
}

.github-browser-content {
    max-width: 100% !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
}

.github-browser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(20, 0, 0, 0.9), rgba(10, 0, 0, 0.8));
    border-bottom: 2px solid rgba(255, 0, 0, 0.3);
}

.repo-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.repo-info i {
    font-size: 2rem;
    color: #ff0000;
}

.repo-info h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #ffffff;
}

.repo-path {
    background: rgba(255, 0, 0, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #ff6666;
    font-family: 'Courier New', monospace;
}

.github-action-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.github-action-btn:hover {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.github-browser-body {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    flex: 1;
    overflow: hidden;
    background: rgba(10, 0, 0, 0.5);
}

/* File Explorer (Left Panel) */
.file-explorer {
    background: linear-gradient(135deg, rgba(15, 0, 0, 0.95), rgba(10, 0, 0, 0.9));
    border-right: 2px solid rgba(255, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.explorer-header {
    padding: 1rem 1.5rem;
    background: rgba(255, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.explorer-header i {
    color: #ff0000;
    font-size: 1.2rem;
}

.file-tree {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.file-item,
.folder-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    margin: 0.2rem 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.file-item:hover,
.folder-item:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ffffff;
    transform: translateX(5px);
}

.folder-item {
    font-weight: 600;
    color: #ff6666;
}

.folder-item i {
    color: #ff0000;
    font-size: 1.1rem;
}

.file-item i {
    color: #999;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.file-item:hover i {
    color: #ff6666;
}

/* File Viewer (Right Panel) */
.file-viewer {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.viewer-header {
    padding: 1rem 1.5rem;
    background: rgba(255, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #ffffff;
    font-weight: 600;
}

.viewer-header i {
    color: #ff0000;
}

.download-btn {
    margin-left: auto;
    background: rgba(255, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #ff6666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: rgba(255, 0, 0, 0.4);
    color: #ffffff;
    transform: scale(1.05);
}

.file-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
}

/* Loading and Empty States */
.loading-spinner,
.empty-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: #888;
}

.loading-spinner i,
.empty-state i,
.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff6666;
}

.error-state {
    color: #ff6666;
}

.error-state small {
    color: #999;
    margin-top: 0.5rem;
}

/* PDF Viewer */
.pdf-viewer {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: white;
}

.pdf-fallback {
    text-align: center;
    margin-top: 1rem;
    color: #999;
}

.pdf-fallback a {
    color: #ff0000;
    text-decoration: underline;
}

/* SOLIDWORKS Window Styles */
.solidworks-window .modal-content {
    max-width: 100% !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
}

.sw-window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(20, 0, 0, 0.9), rgba(10, 0, 0, 0.8));
    border-bottom: 2px solid rgba(255, 0, 0, 0.3);
}

.sw-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sw-header-info i {
    font-size: 2rem;
    color: #ff0000;
}

.sw-header-info h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #ffffff;
}

.sw-path {
    background: rgba(255, 0, 0, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #ff6666;
    font-family: 'Courier New', monospace;
}

.sw-window-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sw-action-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sw-action-btn:hover {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

.sw-action-btn:active {
    transform: translateY(0);
}

.sw-window-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    /* Engineering/Architectural blueprint-inspired grid background */
    background-color: #0a0a0a;
    background-image:
        linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(220,38,38,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220,38,38,0.06) 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
    background-position: 0 0, 0 0, 0 0, 0 0;
}

.sw-files-container {
    max-width: 1400px;
    margin: 0 auto;
}

.sw-day-section {
    margin-bottom: 2.5rem;
    background: rgba(255, 0, 0, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.sw-day-title {
    color: #ff0000;
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 0, 0, 0.3);
}

.sw-day-title i {
    font-size: 1.4rem;
}

/* Compact SOLIDWORKS Window Styles */
.sw-day-section-compact {
    margin-bottom: 1.5rem;
    background: rgba(255, 0, 0, 0.03);
    padding: 1rem 1.2rem;
    border-radius: 10px;
    border-left: 4px solid rgba(255, 0, 0, 0.5);
}

.sw-day-title-compact {
    color: #ff3333;
    font-size: 1.1rem;
    margin: 0 0 0.8rem 0;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Grid layout for individual file cards */
.sw-file-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.8rem;
}

.sw-file-card-compact {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sw-file-card-compact:hover {
    background: rgba(255, 0, 0, 0.08);
    border-color: rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.15);
}

.sw-file-header-compact {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.file-name-compact {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.sw-file-actions-compact {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-end;
}

.sw-file-btn-compact {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6666;
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 5px;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.sw-file-btn-compact:hover {
    background: rgba(255, 0, 0, 0.4);
    color: #ffffff;
    border-color: rgba(255, 0, 0, 0.6);
    transform: scale(1.05);
}

.file-ext-badge {
    background: rgba(255, 0, 0, 0.4);
    color: #ff3333;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Subfolder Grid - for CW1, CW2, etc. */
.sw-subfolder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.2rem;
    margin-top: 0.8rem;
}

.sw-subfolder-card {
    background: rgba(255, 0, 0, 0.05);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sw-subfolder-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.sw-subfolder-header {
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 2px solid rgba(255, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.1);
}

.subfolder-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.subfolder-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex: 1;
    text-transform: uppercase;
}

.subfolder-count {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.sw-subfolder-files {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sw-subfolder-file-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 0.6rem 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.sw-subfolder-file-item:hover {
    background: rgba(0, 0, 0, 0.35);
    transform: translateX(4px);
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    overflow: hidden;
}

.file-ext-badge-small {
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.file-item-name {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.file-item-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.85rem;
}

.file-item-btn:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.15) rotate(5deg);
}

/* Legacy list styles - kept for embedded views */
.sw-file-list-compact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.4rem;
}

.sw-file-list-compact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: background 0.2s;
}

.sw-file-list-compact li:hover {
    background: rgba(255, 0, 0, 0.1);
}

.sw-file-list-compact a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sw-file-list-compact a:hover {
    color: #ff6666;
    text-decoration: underline;
}

/* Responsive adjustments for subfolder cards */
@media (max-width: 768px) {
    .sw-subfolder-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sw-subfolder-card:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .subfolder-icon {
        font-size: 1.1rem;
    }
    
    .subfolder-title {
        font-size: 0.9rem;
    }
    
    .file-item-name {
        font-size: 0.8rem;
    }
}

@media (min-width: 1400px) {
    .sw-subfolder-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

/* ============================================
   SOLO PROJECTS STYLING
   ============================================ */

.solo-projects-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0.5rem;
}

.solo-project-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.solo-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626 0%, #991b1b 50%, #ef4444 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solo-project-card:hover::before {
    opacity: 1;
}

.solo-project-card:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(0, 0, 0, 0.5) 100%);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.3), 0 0 0 1px rgba(220, 38, 38, 0.2) inset;
    transform: translateY(-4px) scale(1.01);
}

.solo-project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1.2rem;
}

.solo-project-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInLeft 0.5s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.solo-project-title-section i {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    padding: 0.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.solo-project-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.solo-project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
    animation: fadeInRight 0.5s ease;
}

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

.solo-upload-date,
.solo-file-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(153, 27, 27, 0.1) 100%);
    border-radius: 10px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.solo-upload-date:hover,
.solo-file-count:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(153, 27, 27, 0.15) 100%);
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
}

.solo-upload-date i,
.solo-file-count i {
    font-size: 1rem;
    color: #ef4444;
}

.solo-project-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    animation: fadeInUp 0.6s ease;
}

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

.solo-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* File Checkbox List Styling */
.file-checkbox-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 1rem 0;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.file-checkbox-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.file-checkbox-item:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(153, 27, 27, 0.1) 100%);
    border-left-color: #dc2626;
    transform: translateX(4px);
}

.file-checkbox-item:last-child {
    margin-bottom: 0;
}

.file-checkbox-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.file-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #dc2626;
    position: relative;
}

.file-checkbox:checked + label,
.file-checkbox-item:has(.file-checkbox:checked) {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(153, 27, 27, 0.15) 100%);
    border-left-color: #ef4444;
}

.file-checkbox-item:has(.file-checkbox:checked) label {
    color: #ef4444;
}

.selection-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(153, 27, 27, 0.05) 100%);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
}

.selected-count {
    color: #ef4444;
    font-weight: 600;
    font-size: 0.95rem;
}

.select-actions {
    display: flex;
    gap: 0.5rem;
}

.select-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.select-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-color: #dc2626;
    transform: scale(1.05);
}

.file-checkbox-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.solo-file-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solo-file-item:hover::before {
    opacity: 1;
}

.solo-file-item:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    border-color: rgba(220, 38, 38, 0.3);
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.2);
}

.solo-file-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    overflow: hidden;
}

.solo-file-ext {
    padding: 0.4rem 0.7rem;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.solo-file-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.solo-file-item:hover .solo-file-name {
    color: #ffffff;
}

.solo-file-actions {
    display: flex;
    gap: 0.6rem;
}

.solo-file-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.solo-file-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solo-file-btn i {
    position: relative;
    z-index: 1;
}

.solo-file-btn:hover::before {
    opacity: 0.2;
}

.solo-file-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.solo-no-files {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Mobile responsive for Solo Projects */
@media (max-width: 768px) {
    .solo-project-card {
        padding: 1.5rem;
    }
    
    .solo-project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .solo-project-meta {
        width: 100%;
        justify-content: space-between;
    }
    
    .solo-project-files {
        grid-template-columns: 1fr;
    }
    
    .solo-project-title {
        font-size: 1.1rem;
    }
}

/* Markdown Viewer */
.markdown-viewer {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    color: #e8e8e8;
    line-height: 1.8;
    max-width: 900px;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.markdown-viewer h1,
.markdown-viewer h2,
.markdown-viewer h3 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 0, 0, 0.3);
    padding-bottom: 0.5rem;
}

.markdown-viewer h1 {
    font-size: 2rem;
}

.markdown-viewer h2 {
    font-size: 1.6rem;
}

.markdown-viewer h3 {
    font-size: 1.3rem;
}

.markdown-viewer p {
    margin: 1rem 0;
}

.markdown-viewer code {
    background: rgba(255, 0, 0, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    color: #ff6666;
}

.markdown-viewer pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    border-left: 4px solid #ff0000;
}

.markdown-viewer pre code {
    background: none;
    color: #e0e0e0;
    padding: 0;
}

.markdown-viewer blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid rgba(255,0,0,0.4);
    background: rgba(255,0,0,0.06);
    color: #ddd;
    border-radius: 4px;
}

.markdown-viewer table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}
.markdown-viewer th, .markdown-viewer td {
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.6rem 0.8rem;
}
.markdown-viewer th {
    background: rgba(255,0,0,0.15);
    color: #fff;
}
.markdown-viewer tr:nth-child(even) {
    background: rgba(255,255,255,0.04);
}

.markdown-viewer ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-viewer li {
    margin: 0.5rem 0;
}

.markdown-viewer a {
    color: #ff6666;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.markdown-viewer a:hover {
    color: #ff0000;
    border-bottom-color: #ff0000;
}

.markdown-viewer img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Image Viewer with Controls */
.image-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.image-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.img-ctrl-btn {
    background: linear-gradient(135deg, rgba(255,0,0,0.3), rgba(204,0,0,0.2));
    border: 1px solid rgba(255,0,0,0.4);
    color: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.img-ctrl-btn:hover {
    background: linear-gradient(135deg, rgba(255,51,51,0.5), rgba(255,0,0,0.3));
    border-color: rgba(255,0,0,0.6);
    transform: translateY(-2px);
}

.image-container {
    max-width: 100%;
    max-height: calc(100vh - 300px);
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 1rem;
}

.image-container img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    transform-origin: center;
}

/* Image Fullscreen Overlay */
.image-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.fullscreen-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100000;
}

.fs-close-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border: none;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,0,0,0.4);
}

.fs-close-btn:hover {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,0,0,0.6);
}

.image-fullscreen-overlay img {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

/* PDF Control Buttons */
.pdf-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}


/* CAD Viewer */
.cad-viewer,
.generic-file-viewer,
.model-3d-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    min-height: 400px;
}

.cad-icon,
.file-icon {
    margin-bottom: 1.5rem;
    color: #ff6666;
    opacity: 0.5;
}

.cad-viewer h3,
.generic-file-viewer h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cad-viewer p,
.generic-file-viewer p {
    color: #999;
    margin-bottom: 2rem;
}

.btn-download-large {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-download-large:hover {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
}

/* View CV Button - Red/Black Theme */
.btn-view-cv {
    background: linear-gradient(135deg, #cc0000, #990000) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 0, 0, 0.3) !important;
    transition: all 0.3s ease;
}

.btn-view-cv:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000) !important;
    border-color: rgba(255, 0, 0, 0.6) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.btn-view-cv .btn-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.file-info {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: rgba(255, 165, 0, 0.15);
    border-left: 4px solid #ff6666;
    border-radius: 8px;
    color: #ffa500;
    max-width: 500px;
}

/* Code Viewer */
.code-viewer {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 10px;
}

.code-viewer pre {
    margin: 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    overflow-x: auto;
    max-height: 600px;
}

.code-viewer code {
    color: #e0e0e0;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 3D Model Viewer */
.model-3d-viewer {
    height: 100%;
    position: relative;
}

.model-canvas {
    width: 100%;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
    border-radius: 10px;
}

.model-controls {
    margin-top: 1rem;
    text-align: center;
    color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .github-browser-content {
        width: 98vw !important;
        height: 90vh;
    }
    
    .github-browser-body {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 768px) {
    .github-browser-body {
        grid-template-columns: 1fr;
    }
    
    .file-explorer {
        max-height: 300px;
        border-right: none;
        border-bottom: 2px solid rgba(255, 0, 0, 0.3);
    }
    
    .github-browser-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .browser-actions {
        width: 100%;
    }
    
    .github-action-btn {
        width: 100%;
    }
}

/* Upload Dialog Styles */
.upload-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-dialog-overlay.show {
    opacity: 1;
}

.upload-dialog {
    background: linear-gradient(135deg, rgba(20, 0, 0, 0.95), rgba(10, 0, 0, 0.9));
    border: 2px solid rgba(255, 0, 0, 0.4);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 100px rgba(255, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.upload-dialog-overlay.show .upload-dialog {
    transform: scale(1);
}

.upload-dialog-large {
    max-width: 700px;
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid rgba(255, 0, 0, 0.3);
    background: rgba(255, 0, 0, 0.1);
}

.upload-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.upload-header h3 i {
    color: #ff0000;
}

.upload-close {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.4);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.upload-close:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: rotate(90deg);
}

.upload-body {
    padding: 2rem;
}

/* Upload Options */
.upload-options {
    display: grid;
    gap: 1rem;
}

.upload-option-btn {
    background: linear-gradient(135deg, rgba(30, 0, 0, 0.8), rgba(20, 0, 0, 0.6));
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upload-option-btn:hover {
    background: linear-gradient(135deg, rgba(40, 0, 0, 0.9), rgba(30, 0, 0, 0.7));
    border-color: rgba(255, 0, 0, 0.6);
    transform: translateX(5px);
}

.upload-option-btn i {
    font-size: 2rem;
    color: #ff0000;
    margin-bottom: 0.5rem;
}

.upload-option-btn span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.upload-option-btn small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Token Input */
.token-needed {
    text-align: center;
    padding: 1rem;
}

.token-needed i {
    color: #ff0000;
    margin-bottom: 1rem;
}

.token-needed h4 {
    color: #ffffff;
    margin: 1rem 0 0.5rem;
}

.token-needed p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.token-steps {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.token-steps h5 {
    color: #ff6666;
    margin: 0 0 1rem;
}

.token-steps ol {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    padding-left: 1.5rem;
}

.token-steps li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.token-steps a {
    color: #ff0000;
    text-decoration: underline;
}

.token-input-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.token-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
}

.token-input-group input:focus {
    outline: none;
    border-color: rgba(255, 0, 0, 0.6);
}

.btn-save-token {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-save-token:hover {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    transform: translateY(-2px);
}

/* Upload Form */
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #ff6666;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control {
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: rgba(255, 0, 0, 0.6);
}

.form-group small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* File Preview */
.upload-preview {
    margin-top: 1rem;
}

.preview-title {
    color: #ff6666;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

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

.file-preview-list li {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-preview-list i {
    color: #ff0000;
}

.file-size {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Upload Actions */
.upload-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-cancel,
.btn-upload,
.btn-delete {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancel {
    background: rgba(100, 100, 100, 0.3);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(100, 100, 100, 0.5);
}

.btn-upload {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
}

.btn-upload:hover {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #cc0000, #990000);
    color: #ffffff;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.5);
}

/* Delete Warning */
.delete-warning {
    background: rgba(255, 100, 0, 0.1);
    border: 2px solid rgba(255, 100, 0, 0.4);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}

.delete-warning i {
    color: #ff6600;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.delete-warning p {
    color: #ffffff;
    margin: 0;
    line-height: 1.6;
}

.delete-warning strong {
    color: #ff6600;
}

/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 12px;
    padding: 0;
    min-width: 320px;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10001;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: #55efc4;
}

.toast-error .toast-icon {
    color: #ff6b6b;
}

.toast-warning .toast-icon {
    color: #ffc371;
}

.toast-info .toast-icon {
    color: #4ecdc4;
}

.toast-body {
    flex: 1;
}

.toast-body strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-success .toast-body strong {
    color: #55efc4;
}

.toast-error .toast-body strong {
    color: #ff6b6b;
}

.toast-warning .toast-body strong {
    color: #ffc371;
}

.toast-info .toast-body strong {
    color: #4ecdc4;
}

.toast-body p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

/* Toast responsive */
@media (max-width: 600px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .upload-dialog {
        width: 95%;
        max-width: none;
    }
    
    .upload-body {
        padding: 1.5rem;
    }
    
    .upload-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-upload,
    .btn-delete {
        width: 100%;
        justify-content: center;
    }
    
    .token-input-group {
        flex-direction: column;
    }
}

/* ============================
   Question/Problem Card Styles
   ============================ */

.question-card {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(153, 27, 27, 0.05) 100%);
    border: 2px solid rgba(220, 38, 38, 0.4);
    border-radius: 16px;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.15);
}

.question-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(153, 27, 27, 0.1) 100%);
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
}

.question-icon {
    font-size: 1.5rem;
    color: #dc2626;
}

.question-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ef4444;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-count {
    padding: 0.35rem 0.8rem;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.5);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ef4444;
    font-weight: 600;
}

.question-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.question-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-left: 3px solid transparent;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-item:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.12) 0%, rgba(0, 0, 0, 0.4) 100%);
    border-left-color: #dc2626;
    border-color: rgba(220, 38, 38, 0.4);
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.question-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.question-ext-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pdf-badge {
    background: rgba(220, 38, 38, 0.25);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.5);
}

.img-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.question-item-name {
    flex: 1;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.question-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.question-view-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.question-view-btn:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

.question-download-btn,
.question-github-btn {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.question-download-btn:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
    color: #ef4444;
    transform: translateY(-2px);
}

.question-github-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============================
   Question Viewer Modal
   ============================ */

.question-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.question-viewer-overlay.show {
    opacity: 1;
}

.question-viewer-dialog {
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 2px solid rgba(220, 38, 38, 0.5);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.3), 0 0 100px rgba(220, 38, 38, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.question-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-bottom: 2px solid rgba(220, 38, 38, 0.4);
}

.question-viewer-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.question-viewer-close {
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-viewer-close:hover {
    background: rgba(220, 38, 38, 0.3);
    border-color: #dc2626;
    color: #ef4444;
    transform: rotate(90deg);
}

.question-viewer-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.question-pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.question-image-viewer {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3), 0 0 60px rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.question-viewer-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-top: 2px solid rgba(220, 38, 38, 0.3);
}

.question-download-btn-large {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-download-btn-large:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.question-close-btn-large {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-close-btn-large:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .question-viewer-dialog {
        width: 95%;
        height: 90vh;
    }
    
    .question-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .question-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .question-view-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }
}




/* ===============================
   Mobile Responsive Fixes (Home)
   =============================== */
@media (max-width: 768px) {
    /* Navbar */
    .hamburger { 
        display: flex !important; 
        visibility: visible !important;
        opacity: 1 !important;
    }
    .hamburger .bar {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background: #fff !important;
        margin: 0 !important;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        left: 20px;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem;
        background: linear-gradient(180deg, rgba(10,10,10,0.98), rgba(26,0,0,0.98));
        border: 1px solid rgba(255,0,0,0.2);
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.4);
        z-index: 1100;
    }
    .nav-menu.open { display: flex; }
    .nav-link { width: 100%; }

    /* Hero container */
    .hero { min-height: auto; padding: 90px 0 40px; }
    .hero-container { padding: 0 16px; }
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1.25rem;
        min-height: unset;
    }
    .hero-text { max-width: 100%; }
    .hero-image { max-width: 220px; margin: 10px auto 0; order: 2; }

    /* Reduce heavy background for mobile for performance */
    .geometric-shapes,
    .gradient-orbs,
    .particles-canvas,
    .hero::before,
    .hero::after { display: none !important; }

    /* Typography scale down */
    .hero-title { font-size: 2.2rem; line-height: 1.25; margin-bottom: 0.6rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 0.8rem; }
    .hero-description { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.2rem; }

    /* Buttons: full-width stack with proper spacing */
    .hero-buttons { 
        grid-template-columns: 1fr; 
        width: 100%; 
        margin-top: 1.5rem; 
        gap: 1rem; 
    }
    
    .hero-buttons .btn { 
        width: 100%; 
        justify-content: space-between; 
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    
    .btn-icon {
        font-size: 1.5rem;
    }

    /* Hide scroll indicator on small screens */
    .scroll-indicator { display: none; }
}

/* ===============================
   Sync Notification System
   =============================== */
.sync-notification {
    position: fixed;
    right: 20px;
    bottom: 20px;
    min-width: 240px;
    max-width: calc(100% - 40px);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100000;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
}

.sync-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.sync-notification.success {
    background: linear-gradient(135deg, #28a745, #218838);
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.sync-notification.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

/* ===============================
   Floating Only Boss Portal Button (FAB)
   =============================== */
.fab-boss-portal {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 
        0 6px 24px rgba(255, 215, 0, 0.25),
        0 0 40px rgba(255, 215, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999 !important;
    cursor: pointer;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
    opacity: 1 !important;
    visibility: visible !important;
}

.fab-boss-portal:hover {
    transform: translateY(-4px) scale(1.1);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.12));
    border-color: rgba(255, 215, 0, 0.65);
    box-shadow: 
        0 12px 36px rgba(255, 215, 0, 0.35),
        0 0 60px rgba(255, 215, 0, 0.25);
    color: #ffe680;
}

.fab-boss-portal i {
    animation: fabCrownFloat 3s ease-in-out infinite;
}

@keyframes fabCrownFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(-8deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(8deg);
    }
}

.fab-boss-portal::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.fab-boss-portal:hover::before {
    opacity: 1;
}

/* Tooltip for FAB */
.fab-boss-portal::after {
    content: 'Only Boss Portal';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(40, 0, 0, 0.95), rgba(20, 0, 0, 0.9));
    backdrop-filter: blur(10px);
    color: #ffd700;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.fab-boss-portal:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

/* Mobile responsive for FAB */
@media (max-width: 768px) {
    .fab-boss-portal {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .fab-boss-portal::after {
        display: none; /* Hide tooltip on mobile */
    }
}

.sync-notification.error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border: 1px solid rgba(220, 53, 69, 0.5);
}

.sync-notification.warning {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    color: #222;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.sync-notification.info {
    background: linear-gradient(135deg, #17a2b8, #007bff);
    border: 1px solid rgba(23, 162, 184, 0.5);
}

/* Mobile notification adjustments */
@media (max-width: 768px) {
    .sync-notification {
        right: 10px;
        bottom: 10px;
        left: 10px;
        min-width: auto;
        max-width: calc(100% - 20px);
        font-size: 0.9rem;
    }
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SITE-WIDE FOOTER  (.wg-footer)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.wg-footer {
    position: relative;
    margin: 90px auto 0;
    max-width: 1440px;
    border-radius: 22px;
    padding: 62px 42px 48px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% -15%, rgba(255, 56, 56, 0.2), rgba(255, 56, 56, 0) 46%),
        linear-gradient(145deg, rgba(36, 11, 11, 0.97) 0%, rgba(20, 6, 6, 0.98) 52%, rgba(10, 2, 2, 0.99) 100%);
    border: 1px solid rgba(255, 60, 60, 0.2);
    box-shadow:
        0 -10px 42px rgba(0, 0, 0, 0.52),
        0 16px 44px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 72, 72, 0.07),
        inset 0 1px 0 rgba(255, 106, 106, 0.28),
        inset 0 -30px 60px rgba(140, 0, 0, 0.12);
}

.wg-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(240px, 46%);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 78, 78, 0), rgba(255, 68, 68, 0.95), rgba(255, 78, 78, 0));
    box-shadow: 0 0 22px rgba(255, 48, 48, 0.5);
}

.wg-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 32%),
        repeating-linear-gradient(90deg, rgba(255, 0, 0, 0.03) 0px, rgba(255, 0, 0, 0.03) 1px, transparent 1px, transparent 72px);
    mix-blend-mode: screen;
    opacity: 0.4;
}

.wg-footer-inner {
    max-width: 740px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.wg-qwrap {
    padding: 0 20px;
    margin-bottom: 30px;
}

.wg-qmark {
    font-family: Georgia, serif;
    font-size: clamp(4rem, 8vw, 5.7rem);
    line-height: 0.62;
    color: rgba(255, 52, 52, 0.48);
    display: block;
    margin-bottom: 12px;
    text-shadow: 0 8px 20px rgba(204, 0, 0, 0.34);
}

.wg-qtext {
    font-size: clamp(0.84rem, 1.5vw, 0.95rem);
    font-style: italic;
    color: #f0dcdc;
    line-height: 1.85;
    margin: 0 0 12px;
}

.wg-qsrc {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 80, 80, 0.9);
    display: block;
}

.wg-divider {
    width: min(190px, 42%);
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 80, 80, 0), rgba(255, 80, 80, 0.72), rgba(255, 80, 80, 0));
    margin: 0 auto 24px;
}

.wg-copy {
    font-size: 0.73rem;
    color: #cfafaf;
    line-height: 1.9;
}

.wg-copy strong {
    display: block;
    margin-bottom: 5px;
    color: #f0d2d2;
}

.wg-tagline {
    font-size: 0.67rem;
    color: #b99797;
}

.wg-tagline a {
    color: #ff8585;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wg-tagline a:hover {
    color: #ffb4b4;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .wg-footer {
        margin: 66px 12px 0;
        padding: 42px 20px 34px;
        border-radius: 16px;
    }

    .wg-qtext {
        font-size: 0.82rem;
    }
}
