/* ============================================
   Featured Work Card & Scrolling Text
   ============================================ */

.work {
    padding: 8rem 6rem;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.work-featured {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.work-card-featured {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.work-card-featured:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.work-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-card-featured:hover .work-card-image img {
    transform: scale(1.05);
}

.work-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.work-card-featured:hover .work-card-overlay {
    opacity: 1;
}

.work-card-cta {
    color: var(--white);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.work-card-featured:hover .work-card-cta {
    transform: translateY(0);
    background: var(--accent);
}

.work-card-info {
    padding: 2rem;
    text-align: center;
}

.work-card-info h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.work-card-info p {
    color: var(--gray);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

/* Scrolling text moved to stats section in preview.css */

/* ============================================
   Case Study Modal
   ============================================ */

.case-study-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10001;
    overflow-y: auto;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.case-study-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-modal-content {
    background: #0a0a0a;
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 0;
    padding: 3rem;
    max-width: 1400px;
    width: 100%;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.case-study-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
}

.case-study-modal-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
    .work {
        padding: 6rem 2rem;
    }
    
    .work-featured {
        margin-bottom: 3rem;
    }
    
    .work-card-info {
        padding: 1.5rem;
    }
    
    .scrolling-text {
        gap: 2rem;
    }
    
    .scrolling-text span {
        font-size: 2rem;
    }
    
    .case-study-modal {
        padding: 1rem;
    }
    
    .case-study-modal-content {
        padding: 2rem 1.5rem;
        max-height: 95vh;
    }
}
