/* ================================================
   OUR WORKS — 3D Coverflow Carousel
   ================================================ */
.ow-section {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    background: transparent;
}

/* ── Ambient ── */
.ow-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(140px);
    opacity: 0.3;
}

.ow-blob--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    top: 0;
    left: -10%;
    animation: owBlobFloat 15s ease-in-out infinite;
}

.ow-blob--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, transparent 70%);
    bottom: -5%;
    right: -5%;
    animation: owBlobFloat 18s ease-in-out infinite reverse;
}

@keyframes owBlobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(15px, -20px) scale(1.05);
    }
}

.ow-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

/* ── Container ── */
.ow-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================================================
   HEADER — Split Layout
   ================================================ */
.ow-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 0 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ow-revealed .ow-header {
    opacity: 1;
    transform: translateY(0);
}

.ow-desc {
    max-width: 260px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
    font-style: italic;
    padding-top: 0.5rem;
}

.ow-title {
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 0.95;
    text-align: right;
    white-space: nowrap;
}

.ow-title-s {
    font-style: italic;
    font-weight: 400;
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.7);
}

/* ================================================
   3D CAROUSEL
   ================================================ */
.ow-carousel-viewport {
    position: relative;
    width: 100%;
    height: 480px;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;

    /* Scroll reveal */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s 0.2s ease, transform 0.9s 0.2s ease;
}

.ow-revealed .ow-carousel-viewport {
    opacity: 1;
    transform: translateY(0);
}

.ow-carousel-viewport:active {
    cursor: grabbing;
}

.ow-carousel-scene {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ================================================
   CARD
   ================================================ */
.ow-card {
    position: absolute;
    width: 280px;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ow-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* ── Glass overlay ── */
.ow-card__glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 30%,
            rgba(0, 0, 0, 0.3) 60%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ── Tag badge (only on active) ── */
.ow-card__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    animation: owTagFadeIn 0.5s ease forwards;
}

@keyframes owTagFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Title ── */
.ow-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;

    /* Glass effect on text area */
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ow-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ── Shine / reflection ── */
.ow-card__shine {
    position: absolute;
    top: -50%;
    left: -30%;
    width: 170%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 30%,
            transparent 60%);
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

/* ── Active card enhancements ── */
.ow-card--active {
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(139, 92, 246, 0.08);
}

.ow-card--active .ow-card__glass-overlay {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0.2) 65%,
            rgba(0, 0, 0, 0.6) 100%);
}

/* ── Hover on active card ── */
@media (hover: hover) {
    .ow-card--active:hover {
        transform: translateX(0) translateZ(0) rotateY(0) scale(1.05) !important;
    }

    .ow-card--active:hover .ow-card__image {
        filter: brightness(1.15) !important;
        transform: scale(1.03);
    }

    .ow-card--active:hover .ow-card__shine {
        opacity: 1;
    }

    .ow-card--active:hover .ow-card__info {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        background: linear-gradient(180deg,
                transparent 0%,
                rgba(255, 255, 255, 0.06) 100%);
    }

    .ow-card:not(.ow-card--active):hover {
        box-shadow:
            0 25px 70px rgba(0, 0, 0, 0.55),
            0 0 0 1px rgba(255, 255, 255, 0.12);
    }
}

/* ================================================
   NAVIGATION ARROWS
   ================================================ */
.ow-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;

    /* reveal */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s 0.4s ease, transform 0.8s 0.4s ease;
}

.ow-revealed .ow-nav {
    opacity: 1;
    transform: translateY(0);
}

.ow-nav-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.ow-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
    transform: scale(1.08);
}

.ow-nav-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.ow-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .ow-carousel-viewport {
        height: 420px;
    }

    .ow-card {
        width: 240px;
        height: 360px;
    }
}

@media (max-width: 768px) {
    .ow-section {
        padding: 80px 0 60px;
    }

    .ow-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .ow-title {
        text-align: left;
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .ow-desc {
        max-width: 100%;
        font-size: 0.85rem;
    }

    .ow-carousel-viewport {
        height: 380px;
    }

    .ow-card {
        width: 210px;
        height: 320px;
        border-radius: 18px;
    }

    .ow-card__info {
        padding: 1rem;
    }

    .ow-card__title {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .ow-carousel-viewport {
        height: 340px;
    }

    .ow-card {
        width: 180px;
        height: 280px;
        border-radius: 16px;
    }

    .ow-nav-btn {
        width: 44px;
        height: 44px;
    }
}