/* Work Section */
.work-section {
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.work-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.work-section .section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.work-section .section-title {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 1rem;
}

.work-section .section-subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

.work-filters {
    display: inline-flex;
    gap: 0.75rem;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    margin: 0 auto 2.5rem;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.filter-btn {
    border: none;
    background: transparent;
    color: #cbd5e1;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.filter-btn.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(30, 136, 229, 0.15), rgba(185, 59, 143, 0.15));
    border: 1px solid rgba(30, 136, 229, 0.35);
    box-shadow: 0 10px 30px -12px rgba(30, 136, 229, 0.5);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.work-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
    backdrop-filter: blur(10px);
}

.work-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.12), rgba(185, 59, 143, 0.12));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(30, 136, 229, 0.35);
}

.work-card:hover::after {
    opacity: 1;
}

.work-media {
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(30, 136, 229, 0.08));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.work-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.work-tag {
    font-size: 0.85rem;
    color: #7dd3fc;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.work-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.work-desc {
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.work-meta span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

/* Placeholders */
.placeholder-glow {
    position: relative;
    overflow: hidden;
}

.placeholder-glow::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    animation: shimmer 2s infinite;
}

.placeholder-bar {
    background: linear-gradient(90deg, rgba(30, 136, 229, 0.12), rgba(185, 59, 143, 0.12));
    border-radius: 10px;
    margin-bottom: 0.6rem;
}

.bar-lg { height: 140px; }
.bar-md { height: 18px; width: 70%; }
.bar-sm { height: 14px; width: 50%; margin-bottom: 0; }

.placeholder-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.2), rgba(185, 59, 143, 0.2));
    margin-bottom: 1rem;
}

.placeholder-palette {
    display: flex;
    gap: 0.5rem;
}

.placeholder-palette span {
    flex: 1;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.18), rgba(185, 59, 143, 0.18));
}

.placeholder-browser {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.placeholder-browser-header {
    display: flex;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
}

.placeholder-browser-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E88E5, #B93B8F);
    opacity: 0.6;
}

.placeholder-browser-body {
    height: 120px;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.12), rgba(185, 59, 143, 0.12));
}

/* Responsive */
@media (max-width: 768px) {
    .work-section {
        padding: 4rem 1.25rem;
    }
    
    .work-section .section-title {
        font-size: 2.1rem;
    }
    
    .work-filters {
        flex-wrap: wrap;
        left: 0;
        transform: none;
        width: 100%;
        justify-content: center;
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

   .work-section {
        padding: 60px 0;
        position: relative;
        overflow: hidden;
    }

    .work-section::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 fill="rgba(99, 102, 241, 0.05)" cx="20" cy="20" r="2"/><circle fill="rgba(168, 85, 247, 0.05)" cx="80" cy="80" r="1.5"/><circle fill="rgba(236, 72, 153, 0.05)" cx="50" cy="50" r="1"/></svg>');
        background-size: 100px 100px;
        animation: float 20s ease-in-out infinite;
    }

    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 2rem;
        position: relative;
        z-index: 1;
    }

    .section-header {
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
        margin-bottom: 0.5rem;
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .gradient-text {
        background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .section-subtitle {
        font-size: 1rem;
        color: #94a3b8;
        max-width: 500px;
        margin: 0 auto;
        line-height: 1.5;
    }

    .work-filters {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 0.75rem 1.5rem;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        border-radius: 50px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .filter-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
    }

    .filter-btn.active {
        background: linear-gradient(135deg, #6366f1, #a855f7);
        border-color: transparent;
        color: #ffffff;
        box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    }

    .work-grid-wrapper {
        position: relative;
        margin-bottom: 3rem;
    }

    .work-grid {
        display: flex;
        overflow-x: auto;
        gap: 1.5rem;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }

    .work-grid::-webkit-scrollbar {
        height: 8px;
    }

    .work-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    .work-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #6366f1, #a855f7);
        border-radius: 10px;
    }

    .work-grid::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #5558e3, #9333ea);
    }

    .scroll-controls {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        z-index: 10;
    }

    .scroll-btn {
        background: linear-gradient(135deg, #6366f1, #a855f7);
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
        pointer-events: all;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .scroll-btn:hover {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    }

    .scroll-btn:active {
        transform: translateY(-50%) scale(0.95);
    }

    .scroll-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: translateY(-50%);
    }

    #scrollLeft {
        left: 1rem;
    }

    #scrollRight {
        right: 1rem;
    }

    .work-card-container {
        min-width: 380px;
        max-width: 380px;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        overflow: hidden;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        scroll-snap-align: start;
    }

    .work-card-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
        border-color: rgba(99, 102, 241, 0.3);
    }

    .work-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .work-media {
        position: relative;
        height: 220px;
        overflow: hidden;
        background: linear-gradient(135deg, #1e293b, #334155);
    }

    .preview-window {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .preview-window iframe {
        width: 100%;
        height: 100%;
        border: none;
        background: white;
    }

    .preview-controls {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        padding: 1rem;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .work-card-container:hover .preview-controls {
        opacity: 1;
    }

    .preview-btn {
        background: linear-gradient(135deg, #6366f1, #a855f7);
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 25px;
        cursor: pointer;
        font-weight: 600;
        font-size: 0.8rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0 auto;
    }

    .preview-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    }

    .creative-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #4c1d95, #5b21b6, #6d28d9);
        color: white;
        font-size: 3rem;
        gap: 1rem;
    }

    .creative-placeholder span {
        font-size: 0.9rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        opacity: 0.8;
    }

    .work-content {
        padding: 1.2rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .work-tag {
        font-size: 0.8rem;
        font-weight: 600;
        color: #a855f7;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 0.5rem;
    }

    .work-title {
        font-size: 1.3rem;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .work-desc {
        color: #94a3b8;
        line-height: 1.5;
        margin-bottom: 0.75rem;
        flex: 1;
    }

    .work-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .work-meta span {
        font-size: 0.7rem;
        font-weight: 500;
        color: #64748b;
        background: rgba(255, 255, 255, 0.1);
        padding: 0.2rem 0.6rem;
        border-radius: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Filter animations */
    .work-card-container {
        animation: fadeInUp 0.6s ease-out forwards;
        opacity: 0;
    }

    .work-card-container.hidden {
        display: none;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-10px);
        }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .work-section {
            padding: 40px 0;
        }

        .container {
            padding: 0 1rem;
        }

        .work-filters {
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .filter-btn {
            padding: 0.6rem 1rem;
            font-size: 0.8rem;
        }

        .work-grid {
            flex-direction: column;
            gap: 1rem;
            padding-bottom: 0.5rem;
        }

        .work-card-container {
            width: 100%;
            max-width: none;
        }

        .work-media {
            height: 220px;
        }

        .work-title {
            font-size: 1.1rem;
        }

        .work-desc {
            font-size: 0.85rem;
        }
    }

    @media (max-width: 480px) {
        .work-grid {
            flex-direction: column;
            gap: 0.8rem;
            padding-bottom: 0.3rem;
        }

        .work-card-container {
            width: 100%;
            max-width: none;
        }

        .work-media {
            height: 150px;
        }

        .work-title {
            font-size: 1rem;
        }

        .work-desc {
            font-size: 0.8rem;
        }

        .section-title {
            font-size: 1.6rem;
        }

        .section-subtitle {
            font-size: 0.85rem;
        }

        .work-meta {
            gap: 0.25rem;
        }

        .work-meta span {
            font-size: 0.6rem;
            padding: 0.1rem 0.4rem;
        }
    }