/* === PROJECTS SHOWCASE - Smaller Cards === */
#projects-showcase-container {
    height: 120vh;
    position: relative;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* UPDATED: Adjusted scroller width for smaller cards */
.projects-scroller {
    display: flex;
    align-items: center;
    width: 280vw; /* Reduced from 320vw */
    height: 100vh;
    padding: 0 4vw; /* Reduced padding */
    gap: 2vw; /* Reduced gap */
    position: absolute;
    top: 0;
    left: 0;
}

/* SMALLER: Title overlay */
.projects-title-overlay {
    position: fixed;
    top: 18vh; /* Moved down slightly */
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.projects-title-overlay h2 {
    font-size: 2.8rem; /* Reduced from 3.5rem */
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-color-translucent);
    text-align: center;
    margin: 0;
    padding: 15px 30px; /* Reduced padding */
    background: var(--modal-overlay-bg, rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(15px);
    border-radius: 20px; /* Smaller radius */
    border: 2px solid var(--primary-color-translucent);
    transition: background-color 0.4s ease;
}

/* SMALLER: Project cards */
.project-card {
    width: 55vw; /* Reduced from 75vw */
    height: 50vh; /* Reduced from 70vh */
    flex-shrink: 0;
    background-color: var(--secondary-bg-color, var(--bg-color));
    border-radius: 25px; /* Slightly smaller radius */
    border: 1px solid var(--border-color, var(--primary-color-translucent));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px; /* Reduced from 30px */
    padding: 25px; /* Reduced from 40px */
    box-shadow: var(--card-shadow, 0 15px 40px rgba(0, 0, 0, 0.3)); /* Smaller shadow */
    position: relative;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.project-card:hover {
    transform: translateY(-3px) scale(1.015); /* Smaller hover effect */
    box-shadow: var(--card-hover-shadow, 0 20px 50px rgba(0, 0, 0, 0.4));
}

.project-card img {
    width: 60%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px; /* Smaller radius */
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.02); /* Smaller scale */
}

/* SMALLER: Card content */
.project-card-content {
    width: 35%;
    color: var(--text-color);
}

.project-card-content h3 {
    font-size: 1.8rem; /* Reduced from 2.2rem */
    font-weight: 700;
    color: var(--accent-color, var(--primary-color));
    margin-bottom: 12px; /* Reduced margin */
    line-height: 1.2;
    transition: color 0.3s ease;
}

.project-card-content p {
    font-size: 0.9rem; /* Reduced from 1rem */
    line-height: 1.5; /* Tighter line height */
    margin-bottom: 20px; /* Reduced margin */
    color: var(--secondary-text-color, var(--text-color));
}

/* SMALLER: Project tags */
.project-tags span {
    display: inline-block;
    padding: 4px 10px; /* Reduced padding */
    background-color: var(--primary-color-translucent);
    color: var(--primary-color);
    border-radius: 15px; /* Smaller radius */
    margin-right: 6px; /* Reduced margin */
    margin-bottom: 4px; /* Add bottom margin for wrapping */
    font-weight: 600;
    font-size: 0.75rem; /* Reduced font size */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== LIGHT THEME OVERRIDES - ADJUSTED ===== */
body.light-theme #projects-showcase-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

body.light-theme .projects-title-overlay h2 {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color-translucent);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 2px solid var(--primary-color-translucent);
}

body.light-theme .project-card {
    background: linear-gradient(145deg, #ffffff 0%, #f7fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        0 3px 5px -1px rgba(0, 0, 0, 0.1), /* Smaller shadows */
        0 1px 3px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

body.light-theme .project-card:hover {
    box-shadow: 
        0 15px 20px -5px rgba(0, 0, 0, 0.1), /* Smaller hover shadows */
        0 8px 8px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(59, 130, 246, 0.3) inset;
}

body.light-theme .project-card-content {
    color: #1a202c;
}

body.light-theme .project-card-content h3 {
    color: #2d3748;
}

body.light-theme .project-card-content p {
    color: #4a5568;
}

body.light-theme .project-tags span {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.light-theme .project-card img {
    border-radius: 15px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); /* Smaller shadow */
}

body.light-theme .project-card:hover img {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Smaller hover shadow */
}

/* ===== MOBILE RESPONSIVE - SMALLER CARDS ===== */
@media (max-width: 768px) {
    .projects-scroller {
        width: 240vw; /* Even smaller on mobile */
        padding: 0 3vw;
        gap: 1.5vw;
    }
    
    .project-card {
        width: 70vw; /* Smaller on mobile */
        height: 45vh; /* Shorter on mobile */
        padding: 20px;
        gap: 15px;
        flex-direction: column; /* Stack vertically on mobile */
        text-align: center;
    }
    
    .project-card img {
        width: 100%;
        height: 60%; /* Adjust for vertical layout */
    }
    
    .project-card-content {
        width: 100%;
    }
    
    .project-card-content h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .project-card-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .projects-title-overlay h2 {
        font-size: 2.2rem;
        padding: 12px 25px;
    }
    
    .project-tags span {
        padding: 3px 8px;
        font-size: 0.7rem;
        margin: 2px 3px;
    }
}

@media (max-width: 480px) {
    .project-card {
        width: 85vw;
        height: 40vh;
        padding: 15px;
    }
    
    .project-card img {
        height: 55%;
    }
    
    .project-card-content h3 {
        font-size: 1.3rem;
    }
    
    .project-card-content p {
        font-size: 0.8rem;
    }
    
    .projects-title-overlay h2 {
        font-size: 1.8rem;
        padding: 10px 20px;
    }
}
/* REDUCE GAP: Project section bottom spacing */
#projects-showcase-container {
    height: 120vh;
    position: relative;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    
    /* ADDED: Reduce bottom spacing */
    margin-bottom: 0;
    padding-bottom: 40px; /* Add small bottom padding instead of large margin */
}
