/* ============================================
   MODERN DARK ACADEMIC WEBSITE - COMPLETE CSS
   WITH LINEAR PROJECT LAYOUT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
/* CSS Variables for Theme System */
:root {
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-white: #ffffff;
    --card-bg: #ffffff;
    
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    
    --accent-color: #2e8c94;
    --border-color: #e0e0e0;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    /* Dark Theme Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-white: #1a1a1a;
    --card-bg: #1a1a1a;
    
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    
    --accent-color: #77652a;
    --border-color: #333333;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0;
    padding: 0;
    /* Fix for back button navigation - ensure overflow is never stuck */
    overflow-x: hidden;
    overflow-y: auto !important;
}

/* ============================================
   MOBILE HEADER (Like Zining Zhang's site)
   ============================================ */

/* Mobile Header Container */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: none; /* Hidden on desktop */
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

/* Mobile Site Name (Center) */
.mobile-site-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-site-name:hover {
    color: var(--accent-color);
}

/* Mobile Menu Toggle (Left side of header) */
.mobile-menu-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Theme Toggle Base Styles */
.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: rotate(180deg);
}

/* Desktop Theme Toggle (floating top-right) */
.desktop-theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--accent-color);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    display: none; /* Hidden on mobile */
}

/* Mobile Theme Toggle (in header) */
.mobile-theme-toggle {
    /* Uses base .theme-toggle styles */
    /* Visible only when mobile-header is visible */
}

/* Show mobile header on small screens */
@media (max-width: 1024px) {
    .mobile-header {
        display: flex;
    }
    
    .desktop-theme-toggle {
        display: none !important; /* Hide desktop toggle */
    }
    
    /* Add padding to main content so it doesn't hide under fixed header */
    .main-content {
        padding-top: 90px;
    }
}

/* Desktop: Keep old button positions (top corners) */
@media (min-width: 1025px) {
    .mobile-header {
        display: none !important; /* Hide mobile header */
    }
    
    .desktop-theme-toggle {
        display: flex !important; /* Show desktop toggle */
    }
    
    .mobile-menu-toggle {
        display: none; /* Hide hamburger on desktop */
    }
}

/* Mobile Close Button */
.mobile-close-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.05rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    transition: all 0.3s ease;
}

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

/* Container Layout */
.container {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    /* Fix for back button navigation */
    will-change: auto;
}

/* Prevent layout shifts */
.container::before {
    content: '';
    display: none;
}

/* Sidebar Overlay (for mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Inline content links - matches contact items */
.about-content a,
.direction-card a,
p a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.about-content a:hover,
.direction-card a:hover,
p a:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

/* Sidebar */
.sidebar {
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    /* Fix for back button navigation issues */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
}

.profile-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--accent-color);
}

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

.profile-info h1 {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.role {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.contact-item:hover {
    color: var(--accent-color);
}

.contact-item i {
    width: 20px;
    text-align: center;
    color: var(--accent-color);
}

.cv-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 10px;
}

.cv-button:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.nav-link {
    padding: 10px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--accent-color);
    padding-left: 20px;
}

/* Main Content */
.main-content {
    padding: 60px 80px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Section Styles */
.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
}

/* Section Header with View All Button */
.section-header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 12px;               /* Move padding here */
    border-bottom: 2px solid var(--accent-color);  /* Move border here */
}

.section-header-with-button .section-title {
    margin-bottom: 0;
    padding-bottom: 0;                  /* Remove from title */
    border-bottom: none;                /* Remove from title */
    flex-grow: 1;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.view-all-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(5px);
}

.view-all-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(3px);
}

/* View All Button at Bottom of Section */
.view-all-bottom {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.view-all-btn-bottom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.view-all-btn-bottom:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.view-all-btn-bottom i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-all-btn-bottom:hover i {
    transform: translateX(5px);
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.about-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
}

.research-directions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.direction-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.direction-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.direction-card h3 {
    color: var(--accent-color);
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.direction-card p {
    font-size: 0.85rem;
    line-height: 1.6;
}

.status-banner {
    background: var(--accent-color);
    padding: 20px;
    border-radius: 12px;
    color: white;
    margin-top: 20px;
}

.status-banner p {
    color: white;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   PROJECT LIST - LINEAR LAYOUT
   ============================================ */

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

.project-item {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.project-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* Project Image */
.project-image {
    flex-shrink: 0;
    width: 280px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

/* Project Info */
.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.project-venue {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.project-authors {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
    font-style: italic;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Project Links */
.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-btn {
    padding: 6px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* Project Badges */
.pub-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    border: 1.1px solid var(--text-secondary);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.pub-badge.research {
    background: transparent;
    border: 1.1px solid var(--text-secondary);
    color: var(--text-secondary);
}

.pub-badge.design {
    background: transparent;
    border: 1.1px solid var(--text-secondary);
    color: var(--text-secondary);
}

/* Timeline Styles */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 70px;
    width: 2px;
    height: calc(100% + 20px);
    background: var(--border-color);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.timeline-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;  /* Reduced from 8px to 2px for tighter fit */
}

.timeline-icon i {
    color: var(--accent-color);
    font-size: 1.05rem;
}

[data-theme="dark"] .timeline-icon {
    background: var(--bg-tertiary);
}

.timeline-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.timeline-content:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
}

.company-logo {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-color);
    color: white;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.company-logo.edu {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.timeline-content h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.position {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 10px;
}

.description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.footer p {
    margin: 5px 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Narrow sidebar layout */
@media (max-width: 1400px) and (min-width: 1025px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        margin-bottom: 0;
    }
    
    .profile-info h1 {
        font-size: 1.35rem;
        margin-bottom: 5px;
    }
    
    .role {
        font-size: 0.8rem;
    }
}

/* Very narrow windows */
@media (max-width: 1200px) and (min-width: 1025px) {
    .sidebar {
        padding: 30px 20px;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .profile-info h1 {
        font-size: 1.05rem;
    }
    
    .role {
        font-size: 0.8rem;
    }
    
    .project-image {
        width: 220px;
        height: 160px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Sidebar becomes off-canvas drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        border-right: 1px solid var(--border-color);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    /* Show close button on mobile */
    .mobile-close-btn {
        display: flex;
    }
    
    .main-content {
        padding: 80px 30px 40px;
    }
    
    .research-directions {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        width: 200px;
        height: 150px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .theme-toggle {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .mobile-menu-toggle {
        top: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    .sidebar {
        width: 280px;
    }
    
    .main-content {
        padding: 80px 20px 30px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .project-item {
        flex-direction: column;
        padding: 20px;
    }
    
    .project-image {
        width: 100%;
        height: 200px;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-item {
        grid-template-columns: 50px 1fr;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
    }
    
    .timeline-item:not(:last-child)::before {
        left: 24px;
        top: 60px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .sidebar {
        width: 260px;
        padding: 20px 15px;
    }
    
    .main-content {
        padding: 80px 15px 20px;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-links {
        width: 100%;
    }
    
    .project-btn {
        flex: 1;
        text-align: center;
    }
    
    .section {
        margin-bottom: 50px;
    }
    
    .mobile-menu-toggle,
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
}

/* ========================================
   ALL-PROJECTS PAGE SPECIFIC STYLES
======================================== */

/* All-Projects Container */
.all-projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--accent-color);
    color: white;
}

.back-button i {
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

/* All-Projects Header */
.all-projects-header {
    text-align: center;
    margin-bottom: 50px;
}

.all-projects-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.all-projects-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Filter Buttons */
.filter-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Project Sections */
.project-section {
    margin-bottom: 60px;
}

.project-section-title {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
    color: var(--text-primary);
}

/* Projects List */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Project Card - Horizontal Layout */
.project-card {
    display: flex;
    flex-direction: row;
    gap: 25px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* Project Image */
.project-img {
    flex-shrink: 0;
    width: 280px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

/* Project Content */
.project-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.project-venue {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.project-name {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
}

.project-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    flex: 1;
}

/* Project Actions/Links */
.project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Project Badge Wrapper - positions badge at bottom */
.project-badge-wrapper {
    display: flex;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* All-Projects Page Footer */
.all-projects-footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* All-Projects Page Responsive */
@media (max-width: 1024px) {
    .all-projects-container {
        padding-top: 90px;  /* Space for mobile header */
    }
}

@media (max-width: 768px) {
    .all-projects-container {
        padding: 90px 20px 40px;  /* Top padding for mobile header */
    }

    .all-projects-title {
        font-size: 2rem;
    }

    .project-section-title {
        font-size: 1.5rem;
    }

    .project-card {
        flex-direction: column;
    }

    .project-img {
        width: 100%;
        height: 180px;
    }

    .filter-section {
        justify-content: flex-start;
    }
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========================================
   OTHER STUFF SECTION - GRID LAYOUT
======================================== */

/* Fun Stuff Grid */
.fun-stuff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Fun Card */
.fun-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.fun-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Fun Image */
.fun-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.fun-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fun-card:hover .fun-img img {
    transform: scale(1.08);
}

/* Fun Body */
.fun-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.fun-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.fun-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Responsive for Fun Stuff Grid */
@media (max-width: 768px) {
    .fun-stuff-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .fun-img {
        height: 180px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .fun-stuff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .fun-stuff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}