/* ============================================
   DENTAL IMPLANT USE CASES
============================================ */

.implant-use-cases {
    position: relative;

    width: 100%;

    /*
       Creates enough scrolling distance
       for Card 1 → 2 → 3 → 4
    */
    height: 430vh;

    background: #000000;

    isolation: isolate;
}


/* ============================================
   STICKY STAGE
============================================ */

.implant-use-cases__stage {
    position: sticky;

    top: 0;

    width: 100%;
    height: 100vh;

    background: #000000;

    overflow: hidden;
}


/* ============================================
   VIDEO
============================================ */

.implant-use-cases__video {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;

    overflow: hidden;

    pointer-events: none;
}


.implant-use-cases__video video {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform:
        translate(-50%, -50%);

    opacity: 0.55;
}


/* Dark overlay */

.implant-use-cases__video::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.55) 0%,
            rgba(0,0,0,0.15) 30%,
            rgba(0,0,0,0.10) 65%,
            rgba(0,0,0,0.65) 100%
        );

    pointer-events: none;
}


/* ============================================
   INNER
============================================ */

.implant-use-cases__inner {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    max-width: 1920px;

    margin: auto;

    z-index: 2;
}


/* ============================================
   GLASS CARDS
============================================ */

.implant-case-card {
    position: absolute;

    width: clamp(320px, 23vw, 440px);
    height: clamp(300px, 19vw, 370px);

    padding: 32px 32px 30px;

    display: flex;
    flex-direction: column;

    /* Glass background */
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.035)
        );

    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);

    /* NO BORDER */
    border: none;

    border-radius: 22px;

    /* WHITE BOX SHADOW ONLY */
    box-shadow:
        0 0 18px rgba(255, 255, 255, 0.18),
        0 0 40px rgba(255, 255, 255, 0.10),
        0 0 70px rgba(255, 255, 255, 0.05),
        0 30px 70px rgba(0, 0, 0, 0.50);

    color: #ffffff;

    overflow: hidden;

    --card-y: 280px;
    --card-scale: 0.94;
    --card-opacity: 0;
    --card-blur: 10px;

    transform:
        translate3d(
            0,
            var(--card-y),
            0
        )
        scale(var(--card-scale));

    opacity: var(--card-opacity);

    filter:
        blur(var(--card-blur));

    will-change:
        transform,
        opacity,
        filter;

    z-index: 3;
}


/* ============================================
   WHITE HIGHLIGHT
============================================ */

.implant-case-card::after {
    content: "";

    position: absolute;

    top: 0;
    left: 8%;

    width: 84%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.75),
            transparent
        );

    opacity: 0.7;

    pointer-events: none;
}


/* ============================================
   SOFT INTERNAL BLUE GLASS GLOW
============================================ */

.implant-case-card::before {
    content: "";

    position: absolute;

    top: -45%;
    left: -25%;

    width: 85%;
    height: 90%;

    background:
        radial-gradient(
            circle,
            rgba(115,200,255,0.20),
            rgba(70,110,255,0.07) 40%,
            transparent 72%
        );

    filter: blur(35px);

    pointer-events: none;

    z-index: 0;
}


.implant-case-card > * {
    position: relative;

    z-index: 2;
}


/* ============================================
   FINAL CARD POSITIONS
============================================ */

.implant-case-card--1 {
    top: 7%;
    left: 1%;
}


.implant-case-card--2 {
    top: 22%;
    left: 26%;
}


.implant-case-card--3 {
    top: 37%;
    left: 51%;
}


.implant-case-card--4 {
    top: 52%;
    right: 1%;
}


/* ============================================
   HOVER WHITE GLOW
============================================ */

.implant-case-card:hover {

    border-color:
        rgba(255,255,255,0.40);

    box-shadow:

        0 0 0 1px
        rgba(255,255,255,0.15),

        0 0 30px
        rgba(255,255,255,0.18),

        0 0 80px
        rgba(255,255,255,0.10),

        0 35px 90px
        rgba(0,0,0,0.55),

        inset 0 1px 0
        rgba(255,255,255,0.38);
}


/* ============================================
   TAG
============================================ */

.implant-case-card__tag {

    width: fit-content;

    padding:
        8px 11px;

    margin-bottom: 20px;

    border-radius: 7px;

    background:
        rgba(38,219,255,0.10);

    border:
        1px solid
        rgba(38,219,255,0.22);

    color: #61e5ff;

    font-size: 11px;

    line-height: 1;

    font-weight: 600;

    letter-spacing: 0.07em;
}


/* ============================================
   TITLE
============================================ */

.implant-case-card h3 {

    margin:
        0 0 15px;

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(38px, 3vw, 58px);

    line-height: 0.95;

    font-weight: 400;

    letter-spacing:
        -0.045em;
}


/* ============================================
   PARAGRAPH
============================================ */

.implant-case-card p {

    max-width: 310px;

    margin: 0;

    color:
        rgba(255,255,255,0.75);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;

    line-height: 1.25;
}


/* ============================================
   LINK
============================================ */

.implant-case-card__link {

    margin-top: auto;

    display: inline-flex;

    align-items: center;

    gap: 14px;

    width: fit-content;

    color: #ffffff;

    text-decoration: none;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
}


.implant-case-card__link span {

    font-size: 25px;

    transition:
        transform 0.3s ease;
}


.implant-case-card__link:hover span {

    transform:
        translateX(8px);
}


/* ============================================
   TABLET
============================================ */

@media (max-width: 1200px) {

    .implant-use-cases {

        height: 420vh;
    }


    .implant-case-card {

        width:
            min(390px, 42vw);

        height: 290px;
    }


    .implant-case-card--1 {

        top: 8%;
        left: 3%;
    }


    .implant-case-card--2 {

        top: 26%;
        left: auto;
        right: 3%;
    }


    .implant-case-card--3 {

        top: 45%;
        left: 3%;
    }


    .implant-case-card--4 {

        top: 64%;
        right: 3%;
    }
}


/* ============================================
   MOBILE
============================================ */

@media (max-width: 767px) {

    .implant-use-cases {

        /*
           Keep enough scroll distance
           for four reveals.
        */

        height: 430vh;
    }


    .implant-use-cases__stage {

        height: 100svh;
    }


    .implant-case-card {

        width:
            calc(100% - 36px);

        left: 18px !important;
        right: auto !important;

        height:
            clamp(150px, 19vh, 185px);

        padding:
            18px 20px;

        border-radius:
            17px;


        --card-y: 150px;
    }


    .implant-case-card h3 {

        font-size: 30px;

        margin-bottom: 8px;
    }


    .implant-case-card p {

        font-size: 13px;

        line-height: 1.25;
    }


    .implant-case-card__tag {

        padding: 6px 8px;

        margin-bottom: 10px;

        font-size: 9px;
    }


    .implant-case-card__link {

        font-size: 13px;
    }


    .implant-case-card--1 {

        top: 5%;
    }


    .implant-case-card--2 {

        top: 28%;
    }


    .implant-case-card--3 {

        top: 51%;
    }


    .implant-case-card--4 {

        top: 74%;
    }


    .implant-use-cases__video video {

        opacity: 0.42;
    }
}


/* ============================================
   REDUCED MOTION
============================================ */

@media (
    prefers-reduced-motion: reduce
) {

    .implant-case-card {

        --card-y: 0px !important;
        --card-scale: 1 !important;
        --card-opacity: 1 !important;
        --card-blur: 0px !important;

        transform: none !important;

        filter: none !important;

        opacity: 1 !important;
    }
}