/* =========================================
   PROJECTS SECTION - COMPONENTS
   Elegant Slider Cards
========================================= */

/* Image Styling */
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        filter 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(0.9);
}

/* Card Hover Effects - Luxurious feel */
.project-item {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        border-color 0.5s ease;
}

.project-item:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 0 60px rgba(100, 100, 200, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    z-index: 20;
}

.project-item:hover .image-container img {
    transform: scale(1.1);
    filter: brightness(1);
}

.project-item:hover .text-container h3 {
    transform: translateY(-4px);
}

/* Elegant text glow on hover */
.project-item:hover .text-container h3 {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.project-card-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 4;
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 12px;
    color: #12071d;
    font-family: var(--proj-font-body);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff, #efe3ff 52%, #c99dff);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.24);
}

.featured-case__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.featured-case__stack span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 11px;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--proj-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
}

.featured-case__cta {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 0 20px;
    color: #12071d;
    font-family: var(--proj-font-body);
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff, #efe3ff 48%, #c99dff);
    box-shadow: 0 18px 44px rgba(139, 92, 246, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.featured-case__cta::after {
    content: "→";
    margin-left: 10px;
    transition: transform 0.22s ease;
}

.featured-case__cta:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 22px 54px rgba(185, 131, 255, 0.3);
}

.featured-case__cta:hover::after {
    transform: translateX(3px);
}

.featured-case__cta:focus-visible {
    outline: 2px solid rgba(216, 180, 254, 0.95);
    outline-offset: 3px;
}

/* Card Overlay - Subtle vignette */
.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center,
            transparent 30%,
            rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.project-item:hover::before {
    opacity: 0.3;
}

/* Shine effect on hover */
.project-item:hover::after {
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.15) 0%,
            transparent 50%);
}

/* =========================================
   Touch-friendly styles
========================================= */
.slider-row.dragging {
    cursor: grabbing;
}

.slider-row.dragging .slider-track {
    animation-play-state: paused !important;
}

.slider-row .slider-track {
    cursor: grab;
}

/* =========================================
   MOBILE COMPONENTS  
========================================= */
@media (max-width: 640px) {
    .project-item:hover {
        transform: scale(1.02) translateY(-4px);
    }

    .project-item:hover .image-container img {
        transform: scale(1.05);
    }

    .project-item:hover .text-container h3 {
        transform: none;
    }

    .project-card-badge {
        top: 12px;
        left: 12px;
        min-height: 26px;
        padding: 0 9px;
        font-size: 0.62rem;
    }

    .featured-case__cta {
        width: 100%;
        min-height: 48px;
    }
}

/* =========================================
   REDUCED MOTION
========================================= */
@media (prefers-reduced-motion: reduce) {

    .slider-row[data-direction="left"] .slider-track,
    .slider-row[data-direction="right"] .slider-track {
        animation: none;
    }

    .project-item,
    .image-container img {
        transition: none;
    }
}
