/* ===== ENHANCED WORK SECTION STYLES ===== */

.work-section-simple {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 120px; /* Account for sticky header */
}

.work-section-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23dee2e6" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.4;
    z-index: 0;
}

.work-section-simple .container {
    position: relative;
    z-index: 1;
}

/* Enhanced Header Styles */
.work-header-simple {
    text-align: center;
    margin-bottom: 40px;
}

.work-title-simple {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8000FF 0%, #4f46e5 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.work-subtitle-simple {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 400;
}

/* Stats Section */
.work-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #8000FF;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 8px;
    font-weight: 500;
}

/* Search Bar Styles */
.work-search-simple {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.search-container {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 50px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-input:focus {
    outline: none;
    border-color: #8000FF;
    box-shadow: 0 0 0 3px rgba(128, 0, 255, 0.1), 0 4px 20px rgba(0, 0, 0, 0.12);
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
}

.search-clear {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.search-results-count {
    text-align: center;
    margin-bottom: 30px;
}

.search-results-count p {
    color: #6c757d;
    font-size: 0.95rem;
    font-style: italic;
}

/* Enhanced Filter Styles */
.work-filter-simple {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.category-btn-simple {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border: 2px solid #e9ecef;
    background: white;
    color: #6c757d;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.category-btn-simple:hover {
    border-color: #8000FF;
    color: #8000FF;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(128, 0, 255, 0.15);
}

.category-btn-simple.active {
    background: linear-gradient(135deg, #8000FF 0%, #9333ea 100%);
    border-color: #8000FF;
    color: white;
    box-shadow: 0 8px 25px rgba(128, 0, 255, 0.3);
    transform: translateY(-2px);
}

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

.category-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 4px;
}

.category-btn-simple:not(.active) .category-count {
    background: #f8f9fa;
    color: #6c757d;
}

/* Enhanced Projects Grid */
.projects-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 80px;
}

.project-card-simple {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.project-card-simple:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.project-card-simple.animate__fadeInUp {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* No Results State */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.no-results i {
    font-size: 4rem;
    color: #e9ecef;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.no-results p {
    font-size: 1rem;
    color: #9ca3af;
}

/* Enhanced Project Image */
.project-image-simple {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.project-image-simple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-simple:hover .project-image-simple img {
    transform: scale(1.1);
}



.live-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(128, 0, 255, 0.9), rgba(79, 70, 229, 0.9));
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-simple:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card-simple:hover .overlay-content {
    transform: translateY(0);
}

.project-description {
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.overlay-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-watch-video,
.btn-visit-site,
.btn-open-image {
    padding: 8px 16px;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-watch-video:hover,
.btn-visit-site:hover,
.btn-open-image:hover {
    background: white;
    color: #8000FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-open-image {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-open-image:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #8000FF;
    border-color: white;
}

/* Enhanced Project Content */
.project-content-simple {
    padding: 25px;
    background: white;
}

.project-title-simple {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-category-simple {
    color: #8000FF;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tech-tag {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6b7280;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: linear-gradient(135deg, #8000FF, #9333ea);
    color: white;
    border-color: #8000FF;
    transform: translateY(-1px);
}

.tech-more {
    background: #6b7280;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Skeleton Loading Styles */
.skeleton {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.skeleton-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-title {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
    width: 80%;
}

.skeleton-category {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 60%;
}

.skeleton-tech {
    display: flex;
    gap: 6px;
}

.skeleton-tech::before,
.skeleton-tech::after {
    content: '';
    height: 20px;
    width: 50px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 10px;
}

.skeleton-tech::after {
    width: 40px;
    animation-delay: 0.3s;
}

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

/* Enhanced CTA Section */
.work-cta-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #8000FF 0%, #9333ea 50%, #a855f7 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.work-cta-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.05"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.08"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.05"/></svg>') repeat;
    z-index: 0;
}

.cta-content {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 10;
}

.cta-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 1;
    line-height: 1.6;
    max-width: 500px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.cta-btn-simple {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn-simple.primary {
    background: white;
    color: #8000FF;
}

.cta-btn-simple.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-btn-simple:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.cta-btn-simple.primary:hover {
    background: #f8f9fa;
    color: #8000FF;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.cta-btn-simple.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cta-graphic {
    flex-shrink: 0;
    margin-left: 40px;
    position: relative;
    z-index: 5;
}

.cta-graphic i {
    font-size: 4rem;
    opacity: 0.4;
    animation: float 3s ease-in-out infinite;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== WORK CTA SECTION ===== */
.work-cta-section {
    margin-top: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.work-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(128, 0, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(79, 70, 229, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.cta-inner {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.work-cta-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.3;
}

.work-cta-section p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 60px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: linear-gradient(135deg, #8000FF 0%, #9333ea 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(128, 0, 255, 0.2) !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
}

.cta-button.secondary {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.cta-button:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%) !important;
    box-shadow: 0 8px 25px rgba(128, 0, 255, 0.3) !important;
    color: white !important;
    border: none !important;
}

.cta-button.secondary:hover {
    background: #f9fafb;
    border-color: #8000FF;
    color: #8000FF;
}

.cta-button i {
    font-size: 0.9rem;
    margin-right: 4px;
}

/* Additional button visibility fixes */
.cta-button.primary {
    position: relative;
    z-index: 10;
}

.cta-button.primary * {
    color: white !important;
    text-decoration: none !important;
}

.work-cta-section .cta-button.primary {
    background: linear-gradient(135deg, #8000FF 0%, #9333ea 100%) !important;
    color: white !important;
    border: none !important;
}



@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Tablet Styles */
@media (max-width: 768px) {
    .work-section-simple {
        padding: 80px 0;
    }
    
    .work-title-simple {
        font-size: 2.8rem;
    }
    
    .work-subtitle-simple {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .work-stats {
        gap: 25px;
        flex-direction: column;
    }
    
    .work-stats .stat-item {
        display: flex;
        align-items: center;
        gap: 15px;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .search-container {
        margin: 0 20px;
    }
    
    .search-input {
        padding: 14px 45px 14px 45px;
        font-size: 0.95rem;
    }
    
    .work-filter-simple {
        margin-bottom: 50px;
        padding: 0 20px;
        gap: 12px;
    }
    
    .category-btn-simple {
        padding: 12px 18px;
        font-size: 0.85rem;
    }
    
    .category-btn-simple span:first-of-type {
        display: none;
    }
    
    .projects-grid-simple {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        padding: 0 20px;
    }
    
    .project-image-simple {
        height: 200px;
    }
    
    .work-cta-simple {
        flex-direction: column;
        text-align: center;
        margin: 60px 20px 0;
        padding: 40px 30px;
    }
    
    .cta-content {
        text-align: center;
        z-index: 10;
    }
    
    .cta-content h3 {
        font-size: 1.8rem;
        color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    }
    
    .cta-content p {
        font-size: 1rem;
        max-width: none;
        color: #ffffff !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
    
    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cta-graphic {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .cta-graphic i {
        font-size: 3rem;
    }
    

    
    /* CTA Section Responsive */
    .work-cta-section {
        margin-top: 60px;
        padding: 50px 30px;
    }
    
    .work-cta-section h3 {
        font-size: 1.8rem;
    }
    
    .work-cta-section p {
        font-size: 1rem;
    }
    
    .cta-actions {
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        padding: 10px 0;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .work-section-simple {
        padding: 60px 0;
    }
    
    .work-title-simple {
        font-size: 2.2rem;
    }
    
    .work-subtitle-simple {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .work-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .search-container {
        margin: 0 15px;
    }
    
    .search-input {
        padding: 12px 40px 12px 40px;
        font-size: 0.9rem;
    }
    
    .search-icon {
        left: 15px;
        font-size: 1rem;
    }
    
    .search-clear {
        right: 15px;
    }
    
    .work-filter-simple {
        gap: 8px;
        padding: 0 15px;
    }
    
    .category-btn-simple {
        padding: 10px 14px;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 4px;
    }
    
    .category-btn-simple i {
        font-size: 0.9rem;
    }
    
    .category-count {
        margin-left: 0;
        font-size: 0.7rem;
    }
    
    .projects-grid-simple {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .project-content-simple {
        padding: 20px;
    }
    
    .project-title-simple {
        font-size: 1.2rem;
    }
    
    .tech-stack {
        gap: 5px;
    }
    
    .tech-tag {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    .work-cta-simple {
        margin: 50px 15px 0;
        padding: 35px 25px;
    }
    
    .cta-content h3 {
        font-size: 1.6rem;
        color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    .cta-content p {
        font-size: 0.95rem;
        color: #ffffff !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-btn-simple {
        padding: 12px 24px;
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .cta-graphic i {
        font-size: 2.5rem;
    }
    

    
    /* Project overlay adjustments for mobile */
    .project-overlay {
        padding: 15px;
    }
    
    .overlay-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-watch-video,
    .btn-visit-site,
    .btn-open-image {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* Mobile CTA Section */
    .work-cta-section {
        margin-top: 50px;
        padding: 40px 25px;
    }
    
    .work-cta-section h3 {
        font-size: 1.6rem;
    }
    
    .work-cta-section p {
        font-size: 0.95rem;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        padding: 10px 0;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 0.95rem;
        justify-content: center;
        min-height: 48px;
        width: auto;
        display: inline-flex !important;
    }
}
