/* =========================================================
   BODRUM ADVENTURE
   PREMIUM LUXURY CATEGORY
   IMAGE RATIO: 3 / 2
========================================================= */


/* =========================================================
   SECTION
========================================================= */

.ba-category-section {
    position: relative;
    padding: 95px 0 110px;

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(37, 99, 235, .055),
            transparent 32%
        ),
        #f8fafc;

    overflow: hidden;
}


/* =========================================================
   HEADING
========================================================= */

.ba-category-heading {
    max-width: 720px;
    margin-bottom: 48px;
}

.ba-category-eyebrow {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 13px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 3px;
    text-transform: uppercase;

    color: #89939d;
}

.ba-category-eyebrow::before {
    content: "";

    width: 42px;
    height: 1px;

    background: #9ca6af;
}

.ba-category-heading h2 {
    margin: 0 0 15px;

    font-size: clamp(38px, 3.8vw, 56px);
    line-height: 1.05;

    font-weight: 500;

    letter-spacing: -2px;

    color: #071522;
}

.ba-category-heading p {
    max-width: 620px;

    margin: 0;

    font-size: 15px;
    line-height: 1.8;

    color: #73808c;
}


/* =========================================================
   GRID
========================================================= */

.ba-category-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   CARD
========================================================= */

.ba-category-card {
    position: relative;

    display: block;

    /* EXACT 3:2 */
    aspect-ratio: 3 / 2;

    overflow: hidden;

    background: #071522;

    border-radius: 5px;

    text-decoration: none;

    box-shadow:
        0 10px 30px rgba(6, 18, 30, .08);

    transform: translateZ(0);

    transition:
        transform .30s cubic-bezier(.2,.75,.25,1),
        box-shadow .30s ease;

    isolation: isolate;
}


/* =========================================================
   CARD HOVER
========================================================= */

.ba-category-card:hover {
    transform:
        translateY(-7px)
        scale(1.012);

    box-shadow:
        0 22px 45px rgba(3, 13, 24, .17),
        0 5px 18px rgba(30, 106, 180, .12);
}


/* =========================================================
   IMAGE
========================================================= */

.ba-category-image {
    position: absolute;
    inset: 0;

    overflow: hidden;
}

.ba-category-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transform:
        scale(1.015);

    filter:
        brightness(.95)
        saturate(.95);

    transition:
        transform .55s cubic-bezier(.16,.8,.25,1),
        filter .45s ease;

    will-change: transform;
}


/* =========================================================
   IMAGE FAST ZOOM
========================================================= */

.ba-category-card:hover
.ba-category-image img {

    transform:
        scale(1.085);

    filter:
        brightness(1.08)
        saturate(1.10)
        contrast(1.02);
}


/* =========================================================
   OVERLAY
========================================================= */

.ba-category-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            to top,
            rgba(3, 11, 19, .92) 0%,
            rgba(3, 11, 19, .55) 34%,
            rgba(3, 11, 19, .08) 67%,
            rgba(3, 11, 19, .04) 100%
        );

    transition:
        background .35s ease;
}

.ba-category-card:hover
.ba-category-overlay {

    background:
        linear-gradient(
            to top,
            rgba(2, 10, 18, .95) 0%,
            rgba(2, 10, 18, .60) 36%,
            rgba(5, 20, 34, .12) 72%,
            rgba(255,255,255,.04) 100%
        );
}


/* =========================================================
   LUXURY LIGHT SWEEP
========================================================= */

.ba-category-shine {
    position: absolute;

    top: -40%;
    left: -90%;

    z-index: 5;

    width: 48%;
    height: 180%;

    pointer-events: none;

    opacity: 0;

    transform:
        rotate(18deg);

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255,255,255,.04) 20%,
            rgba(255,255,255,.28) 48%,
            rgba(255,255,255,.08) 70%,
            transparent 100%
        );

    filter:
        blur(2px);
}


/* FAST LIGHT MOVEMENT */

.ba-category-card:hover
.ba-category-shine {

    animation:
        baLuxuryShine .58s
        cubic-bezier(.2,.7,.2,1)
        forwards;
}


@keyframes baLuxuryShine {

    0% {
        left: -90%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    65% {
        opacity: .95;
    }

    100% {
        left: 145%;
        opacity: 0;
    }

}


/* =========================================================
   SECOND LIGHT FLASH
========================================================= */

.ba-category-card::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 3;

    pointer-events: none;

    opacity: 0;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(255,255,255,.18),
            transparent 44%
        );

    transition:
        opacity .22s ease;
}

.ba-category-card:hover::before {
    opacity: 1;
}


/* =========================================================
   PREMIUM BORDER
========================================================= */

.ba-category-border {
    position: absolute;

    inset: 9px;

    z-index: 6;

    pointer-events: none;

    border:
        1px solid rgba(255,255,255,.11);

    border-radius: 2px;

    opacity: .55;

    transform:
        scale(.985);

    transition:
        opacity .25s ease,
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.ba-category-card:hover
.ba-category-border {

    opacity: 1;

    transform:
        scale(1);

    border-color:
        rgba(255,255,255,.48);

    box-shadow:
        inset 0 0 25px
        rgba(255,255,255,.055);
}


/* =========================================================
   NUMBER
========================================================= */

.ba-category-number {
    position: absolute;

    top: 22px;
    right: 24px;

    z-index: 8;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;

    color:
        rgba(255,255,255,.62);

    transition:
        color .25s ease,
        transform .25s ease;
}

.ba-category-card:hover
.ba-category-number {

    color: #ffffff;

    transform:
        translateX(-4px);
}


/* =========================================================
   CONTENT
========================================================= */

.ba-category-content {
    position: absolute;

    left: 28px;
    right: 28px;
    bottom: 25px;

    z-index: 8;

    color: #ffffff;

    transform:
        translateY(0);

    transition:
        transform .28s
        cubic-bezier(.2,.75,.25,1);
}

.ba-category-card:hover
.ba-category-content {

    transform:
        translateY(-4px);
}


/* =========================================================
   SMALL TEXT
========================================================= */

.ba-category-small {
    position: relative;

    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 8px;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 2.1px;

    text-transform: uppercase;

    color:
        rgba(255,255,255,.57);
}

.ba-category-small::before {
    content: "";

    width: 24px;
    height: 1px;

    background:
        rgba(255,255,255,.50);

    transition:
        width .28s ease;
}

.ba-category-card:hover
.ba-category-small::before {

    width: 40px;
}


/* =========================================================
   TITLE
========================================================= */

.ba-category-content h3 {
    margin: 0;

    font-size:
        clamp(19px, 1.6vw, 26px);

    line-height: 1.1;

    font-weight: 500;

    letter-spacing: -.5px;

    color: #ffffff;

    text-shadow:
        0 3px 15px
        rgba(0,0,0,.20);

    transition:
        letter-spacing .28s ease,
        transform .28s ease;
}

.ba-category-card:hover
.ba-category-content h3 {

    letter-spacing: -.2px;

    transform:
        translateX(3px);
}


/* =========================================================
   DISCOVER
========================================================= */

.ba-category-discover {
    display: flex;

    align-items: center;

    gap: 10px;

    height: 0;

    margin-top: 0;

    overflow: hidden;

    opacity: 0;

    transform:
        translateY(8px);

    transition:
        opacity .25s ease,
        transform .25s ease,
        height .25s ease,
        margin-top .25s ease;
}

.ba-category-card:hover
.ba-category-discover {

    height: 24px;

    margin-top: 12px;

    opacity: 1;

    transform:
        translateY(0);
}

.ba-category-discover span {

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.2px;

    text-transform: uppercase;

    color:
        rgba(255,255,255,.82);
}

.ba-category-discover svg {

    color: #ffffff;

    transition:
        transform .25s ease;
}

.ba-category-card:hover
.ba-category-discover svg {

    transform:
        translateX(5px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1199px) {

    .ba-category-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .ba-category-section {

        padding:
            70px 0 75px;

    }


    .ba-category-heading {

        margin-bottom:
            32px;

    }


    .ba-category-heading h2 {

        font-size:
            36px;

    }


    .ba-category-grid {

        grid-template-columns:
            1fr;

        gap:
            15px;

    }


    .ba-category-card {

        aspect-ratio:
            3 / 2;

    }


    .ba-category-content {

        left:
            23px;

        right:
            23px;

        bottom:
            22px;

    }


    .ba-category-content h3 {

        font-size:
            24px;

    }


    .ba-category-discover {

        height:
            22px;

        margin-top:
            10px;

        opacity:
            1;

        transform:
            none;

    }

}