/* Work Section Styles */

/* Page Container */

#work-section .page-header {
    text-align: center;
    padding-top: 130px;
  padding-bottom: 90px;
}

#work-section .page-header h1 {
    background-color: red;
    background-image: linear-gradient(90deg, #E85E53, #C633A3, #8E31BB, #2C68D6, #66ADD6);
    background-size: 100%;
    background-repeat: repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0rem;
    font-family: Inter;
    font-size: 99px;
    font-weight: 900;
    text-align: center;
    letter-spacing: -2px;
    line-height: 1;
}

#work-section .page-header .subtitle {
    font-family: 'Overpass', sans-serif;
    font-size: 1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    margin-top: 20px;
}

/* Projects Grid */
#work-section .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

#work-section .project-card {
  
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#work-section .project-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
   
}

/* Image Slider for cards with multiple images */
#work-section .project-image-slider {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
   
}

#work-section .project-image-slider .slider-images {
    position: relative;
    width: 100%;
    height: 100%;
}

#work-section .project-image-slider .project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#work-section .project-image-slider .project-image.active {
    opacity: 1;
    z-index: 1;
}

#work-section .slider-btn {
    display: none;
}

#work-section .slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

#work-section .slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

#work-section .slider-dots .dot.active {
    background: white;
    transform: scale(1.3);
}

#work-section .slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Project cards without images */
#work-section .project-card:not(:has(img)) .project-content {
    padding-top: 2rem;
}

#work-section .project-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#work-section .project-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #1a1a1a;
}

#work-section .project-client {
    font-family: 'Overpass', sans-serif;
    font-size: 0.85rem;
    color: #8b5cf6;
    font-weight: 600;
    margin-bottom: 0;
}

#work-section .project-description {
    font-family: 'Overpass', sans-serif;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#work-section .project-meta {
    font-family: 'Overpass', sans-serif;
    font-size: 0.8rem;
    color: #999;
    margin-top: auto;
    line-height: 1.4;
}

/* Loading State */
#work-section .loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: #6c757d;
}

#work-section .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d946ef;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
#work-section .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: #6c757d;
}

#work-section .empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Responsive */
@media (max-width: 1200px) {
    #work-section .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    #work-section .page-header h1 {
        font-size: 2.5rem;
    }
    
    #work-section .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    #work-section .work-page {
        padding: 2rem 1rem;
    }
}

/* Modal styles removed - using inline sliders instead */
