@import url('https://fonts.googleapis.com/css2?family=Rubik+Dirt&display=swap');

/* .rubik-dirt {
    font-family: "Rubik Dirt", system-ui !important;
} */

.w3-linear {
    background-image: linear-gradient(to right, rgba(1, 65, 133, 0.8) 30%, rgba(241, 55, 51, 0.75));
    /* background-image: linear-gradient(90deg, #00c4cc, #7d2ae8); */
}

.w3-radial {
    /* background: linear-gradient(90deg, #e3efdb, #c7e0f5); */
    background: linear-gradient(88deg, #eaebff 2.85%, #e0f1ff 96.68%), #eff6ff !important;
}

.w3-radial-pop {
    background: radial-gradient(circle at 50% 80%, #c7e0f5 0%, #ffffff 70%);
}

.w3-radial-light {
    background: radial-gradient(circle at 50% 80%, #e0f1ff 0%, #eaebff 70%);
    /* E6F0FA */
}

.w3-radial-dark {
    background-image: linear-gradient(90deg, #00c4cc, #7d2ae8);
}

.gradient-font {
    background: linear-gradient(to right, rgba(1, 65, 133, 0.8) 30%, rgba(241, 55, 51, 0.75));
    /* background-image: linear-gradient(90deg, #00c4cc, #7d2ae8); */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.banner-container {
    margin: 0 auto;
    position: relative;
    /* width: 1004px; */
    width: 940px;
    height: 450px;
    padding: 0 0 0 10px;
    overflow: hidden;
    user-select: none;
}

.head {
    margin: 0 auto;
    max-width: 1000px;
    text-align: center;
}

.head h1 {
    font-size: 56px;
    /* font-family: "Josefin Sans", sans-serif; */
    font-weight: 700;
    font-style: normal;
}

.head p {
    margin-top: -10px;
    font-size: 28px;
}

.banner-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner {
    position: absolute;
    width: 720px;
    height: 330px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    /* transition: all 0.3s ease; */
    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.5s ease,
        box-shadow 0.5s ease,
        filter 0.4s ease;
}

.banner p {
    font-size: 22px;
}

.banner.dragging {
    cursor: grabbing;
    transition: none;
}

.banner-top {
    z-index: 9;
    top: 50px;
    left: 100px;
    transform: translateX(0) scale(1);
    opacity: 1;
}

.banner-left {
    z-index: 8;
    top: 70px;
    left: 50px;
    transform: translateX(-50px) rotate(-5deg) scale(0.95);
    opacity: 0.8;
}

.banner-right {
    z-index: 7;
    top: 70px;
    left: 150px;
    transform: translateX(50px) rotate(5deg) scale(0.95);
    opacity: 0.8;
}

.banner-bg-1 {
    z-index: 6;
    top: 80px;
    left: 40px;
    transform: translateX(-60px) rotate(-7deg) scale(0.9);
    opacity: 0.6;
}

.banner-bg-2 {
    z-index: 5;
    top: 80px;
    left: 160px;
    transform: translateX(60px) rotate(7deg) scale(0.9);
    opacity: 0.6;
}

.banner-bg-3 {
    z-index: 4;
    top: 90px;
    left: 30px;
    transform: translateX(-70px) rotate(-9deg) scale(0.85);
    opacity: 0.4;
}

.banner-bg-4 {
    z-index: 3;
    top: 90px;
    left: 170px;
    transform: translateX(70px) rotate(9deg) scale(0.85);
    opacity: 0.4;
}

.banner-bg-5 {
    z-index: 2;
    top: 100px;
    left: 20px;
    transform: translateX(-80px) rotate(-11deg) scale(0.8);
    opacity: 0.2;
}

.banner-bg-6 {
    z-index: 1;
    top: 100px;
    left: 180px;
    transform: translateX(80px) rotate(11deg) scale(0.8);
    opacity: 0.2;
}

/* Unique linear gradients for each banner */
.banner[data-index="0"],
.index0 {
    background: linear-gradient(45deg, #ff6b6b, rgb(252, 223, 197));
}

.banner[data-index="1"],
.index1 {
    background: linear-gradient(45deg, #4facfe, #b8eefa);
}

.banner[data-index="2"],
.index2 {
    background: linear-gradient(45deg, #51cf66, #d0ebd5);
}

.banner[data-index="3"],
.index3 {
    background: linear-gradient(45deg, #f06595, #ffdeeb);
}

.banner[data-index="4"],
.index4 {
    background: linear-gradient(45deg, #845ef7, #c3e7fa);
}

.banner[data-index="5"],
.index5 {
    background: linear-gradient(45deg, #ff922b, #fae9aa);
}

.banner[data-index="6"],
.index6 {
    background: linear-gradient(45deg, #20c997, #d0f7eb);
}

.banner[data-index="7"],
.index7 {
    background: linear-gradient(45deg, #cc5de8, #f5e4fa);
}

.banner[data-index="8"],
.index8 {
    background: linear-gradient(45deg, #339af0, #cbe6fa);
}

.bullet-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.bullet {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bullet:hover {
    transform: scale(1.2);
    background-color: #f0f0f0;
}

.bullet.active {
    background-color: #333;
    transform: scale(1.2);
    border-color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cover {
    width: 100%;
    height: 100%;
    padding: 40px 25px 25px;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.cover svg {
    position: absolute;
    top: 16px;
    right: 16px;
    width: auto;
    height: 40px;
}

.cover h3 {
    font-family: "Josefin Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.cover img {
    height: 50px;
    transition: all 0.3s ease;
}

.cover:hover img {
    transition: all 0.3s ease;
    transform: scale(1.2);
}

.cover:hover {
    box-shadow: rgba(0, 0, 0, 0.17) 0px 0px 80px inset;
}

.circle-btn {
    font-size: 17px;
    padding: 4px 20px;
    border: solid 2px #fff;
    /* color: #333; */
    background-color: transparent;
    transition: all 0.3s ease;
}

.cover:hover .circle-btn,
.circle-btn:hover {
    background-color: #fff;
    border-color: #fff;
}

.projects-count {
    margin: 10px 0 6px;
}

.projects-count span {
    display: inline-block;
    margin: 0 6px;
    color: #fff;
    font-size: 18px;
}

.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(var(--scale));
        opacity: 0;
    }
}

@media (max-width: 960px) {
    .banner-container {
        margin: 0 auto;
        position: relative;
        width: min(100%, 960px);
        height: clamp(420px, 55vw, 520px);
        padding: 0 10px;
        overflow: hidden;
        user-select: none;
    }

    .banner-wrapper {
        position: relative;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .banner {
        position: absolute;
        inset: 0;
        margin: auto;
        width: 720px;
        max-width: 92%;
        height: 340px;
        border-radius: 28px;
        overflow: hidden;
        /* transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); */
        transition:
            transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
            opacity 0.5s ease,
            box-shadow 0.5s ease,
            filter 0.4s ease;
        box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
        will-change: transform, opacity, box-shadow;
    }

    .banner-container {
        height: 500px;
    }

    .banner {
        width: min(90vw, 640px);
        height: 360px;
        /* slightly smaller inside container */
        max-height: 90%;
        border-radius: 24px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.20);
    }

    /* All banners start hidden / small / faint */
    .banner {
        z-index: 1;
        opacity: 0.18;
        transform: scale(0.80);
        filter: blur(1.4px);
        pointer-events: none;
    }

    /* Only ACTIVE banner is fully visible */
    .banner.active {
        z-index: 10 !important;
        opacity: 1 !important;
        transform: scale(1) !important;
        filter: none !important;
        pointer-events: auto !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28) !important;
    }

    /* Previous banner → left visible edge */
    .banner.prev {
        z-index: 9;
        transform: translateX(-70px) scale(0.84) rotate(-4deg);
        opacity: 0.72;
        filter: blur(0.5px);
        pointer-events: none;
    }

    /* Next banner → right visible edge */
    .banner.next {
        z-index: 9;
        transform: translateX(70px) scale(0.84) rotate(4deg);
        opacity: 0.72;
        filter: blur(0.5px);
        pointer-events: none;
    }

    /* All other banners → almost invisible */
    .banner:not(.active):not(.prev):not(.next) {
        opacity: 0.08;
        transform: scale(0.72);
        filter: blur(2px);
    }
}

/* ───────────────────────────────────────
   Very small screens
─────────────────────────────────────── */
@media (max-width: 580px) {
    .cover svg {
        height: 30px;
    }

    .cover h3 {
        font-size: 22px;
    }

    .cover p {
        font-size: 18px;
    }

    .banner.prev {
        transform: translateX(-60px) scale(0.82) rotate(-3.5deg);
    }

    .banner.next {
        transform: translateX(60px) scale(0.82) rotate(3.5deg);
    }
}