/* =========================================================
   MOTIVATIONAL POPUP
   900px × 600px
   RESPONSIVE
========================================================= */


/* =========================================================
   POPUP OVERLAY
========================================================= */

.motivation-popup {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.72);

    z-index: 999999;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


/* =========================================================
   POPUP BOX
========================================================= */

.motivation-popup-box {
    position: relative;

    width: 900px;
    height: 600px;

    max-width: 100%;
    max-height: calc(100vh - 40px);

    overflow: hidden;

    border-radius: 20px;

    box-sizing: border-box;

    background: #f8fafc;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.30),
        0 10px 30px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   IMAGE MODE
========================================================= */

.popup-image-wrapper {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    z-index: 5;
}


.popup-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* =========================================================
   TEXT MODE
========================================================= */

.popup-text-wrapper {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    /*
       YOUR GRADIENT
    */

    background:

        radial-gradient(
            circle at 15% 20%,
            rgba(59, 130, 246, 0.16),
            transparent 35%
        ),

        radial-gradient(
            circle at 85% 75%,
            rgba(142, 68, 173, 0.14),
            transparent 35%
        ),

        linear-gradient(
            135deg,
            #eff6ff 0%,
            #f8fafc 50%,
            #f5f3ff 100%
        );

    z-index: 2;
}


/* =========================================================
   QUOTE CONTENT
========================================================= */

.popup-quote-content {
    position: relative;

    width: 82%;
    max-width: 760px;

    margin-top: -15px;

    z-index: 10;
}


/* =========================================================
   MAIN QUOTE
========================================================= */

.popup-quote {

    margin: 0;

    color: #172033;

    font-family:
        "Noto Sans Bengali",
        "Hind Siliguri",
        sans-serif;

    font-size: 43px;

    font-weight: 800;

    line-height: 1.48;

    letter-spacing: -0.8px;

    text-align: center;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.04);
}


/* =========================================================
   MAIN COLORED TEXT
   "প্রতিদিন কাজ করা"
========================================================= */

.popup-quote span {

    display: inline-block;

    position: relative;

    font-weight: 900;

    /*
       IMAGE-এর মতো
       BLUE → CYAN → GREEN
    */

    background:
        linear-gradient(
            90deg,
            #2563eb 0%,
            #00a8ff 35%,
            #00c9d7 65%,
            #00dca0 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    color: transparent;
}


/* =========================================================
   COLORED TEXT UNDERLINE
========================================================= */

.popup-quote span::after {

    content: "";

    position: absolute;

    left: 3%;
    right: 3%;

    bottom: -5px;

    height: 4px;

    border-radius: 100%;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #00b8ff,
            #00dca0
        );

    transform:
        skewX(-20deg)
        rotate(-1deg);

    box-shadow:
        0 2px 7px rgba(0, 190, 200, 0.20);
}


/* =========================================================
   QUOTATION MARKS
========================================================= */

.quote-mark {

    position: absolute;

    font-family: Georgia, serif;

    font-size: 115px;

    line-height: 1;

    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            #2563eb 10%,
            #00b8ff 45%,
            #c026d3 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    opacity: 0.85;

    z-index: -1;
}


/* Left quote */

.quote-mark-left {

    top: -65px;
    left: -65px;

}


/* Right quote */

.quote-mark-right {

    right: -50px;
    bottom: -80px;

    transform: rotate(180deg);

}


/* =========================================================
   DECORATIVE VISUALS
========================================================= */


/* ---------- Brain ---------- */

.popup-decoration {
    position: absolute;

    pointer-events: none;

    user-select: none;
}


.decoration-brain {

    top: 48px;
    left: 55px;

    font-size: 58px;

    opacity: 0.13;

    filter:
        drop-shadow(
            0 5px 15px rgba(37, 99, 235, 0.30)
        );

    transform: rotate(-10deg);

}


/* ---------- Laptop ---------- */

.decoration-laptop {

    top: 48px;
    right: 55px;

    font-size: 55px;

    opacity: 0.12;

    filter:
        drop-shadow(
            0 5px 15px rgba(0, 200, 170, 0.30)
        );

    transform: rotate(8deg);

}


/* ---------- Code ---------- */

.decoration-code {

    left: 65px;
    bottom: 105px;

    font-family: monospace;

    font-size: 48px;

    font-weight: 900;

    color: #2563eb;

    opacity: 0.10;

    transform: rotate(-8deg);

}


/* ---------- Star ---------- */

.decoration-star {

    right: 70px;
    bottom: 105px;

    font-size: 52px;

    color: #00bfa5;

    opacity: 0.22;

    animation:
        popupStarFloat 3s ease-in-out infinite;

}


@keyframes popupStarFloat {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(0deg);
    }

    50% {
        transform:
            translateY(-10px)
            rotate(10deg);
    }

}


/* =========================================================
   DECORATIVE DOTS
========================================================= */

.decoration-dot {

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #00dca0
        );

    box-shadow:
        0 0 12px rgba(0, 180, 210, 0.40);

    opacity: 0.55;
}


.dot-one {

    top: 145px;
    left: 130px;

}


.dot-two {

    top: 120px;
    right: 145px;

    width: 5px;
    height: 5px;

}


.dot-three {

    right: 125px;
    bottom: 160px;

    width: 6px;
    height: 6px;

}


/* =========================================================
   OKAY BUTTON
   BOTTOM CENTER
========================================================= */

.popup-okay-button {

    position: absolute;

    left: 50%;
    bottom: 27px;

    transform: translateX(-50%);

    z-index: 100;

    min-width: 125px;
    height: 45px;

    padding: 0 28px;

    /*
       Transparent background
    */

    background: rgba(255, 255, 255, 0.18);

    color: #1e293b;

    border: 2px solid transparent;

    border-radius: 50px;

    font-family:
        "Noto Sans",
        sans-serif;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 1.5px;

    cursor: pointer;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================================================
   GRADIENT BORDER
========================================================= */

.popup-okay-button::before {

    content: "";

    position: absolute;

    inset: -2px;

    border-radius: inherit;

    padding: 2px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #00b8ff,
            #00dca0
        );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;

    mask-composite: exclude;

    pointer-events: none;

}


/* =========================================================
   BUTTON HOVER
========================================================= */

.popup-okay-button:hover {

    background:
        rgba(255, 255, 255, 0.45);

    transform:
        translateX(-50%)
        translateY(-3px);

    box-shadow:
        0 8px 25px rgba(37, 99, 235, 0.15);

}


/* =========================================================
   BUTTON ACTIVE
========================================================= */

.popup-okay-button:active {

    transform:
        translateX(-50%)
        translateY(0);

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .motivation-popup {

        padding: 12px;

    }


    .motivation-popup-box {

        width: 100%;

        height: auto;

        aspect-ratio: 3 / 2;

        max-height:
            calc(100vh - 24px);

        border-radius: 15px;

    }


    /* -------------------------
       QUOTE
    ------------------------- */

    .popup-quote-content {

        width: 82%;

        margin-top: -8px;

    }


    .popup-quote {

        font-size:
            clamp(
                22px,
                5.4vw,
                34px
            );

        line-height: 1.5;

        letter-spacing: -0.3px;

    }


    /* -------------------------
       QUOTE MARKS
    ------------------------- */

    .quote-mark {

        font-size: 75px;

    }


    .quote-mark-left {

        top: -42px;
        left: -35px;

    }


    .quote-mark-right {

        right: -28px;
        bottom: -52px;

    }


    /* -------------------------
       VISUALS
    ------------------------- */

    .decoration-brain {

        top: 25px;
        left: 25px;

        font-size: 38px;

    }


    .decoration-laptop {

        top: 25px;
        right: 25px;

        font-size: 36px;

    }


    .decoration-code {

        left: 28px;
        bottom: 75px;

        font-size: 32px;

    }


    .decoration-star {

        right: 30px;
        bottom: 75px;

        font-size: 34px;

    }


    .dot-one {

        top: 90px;
        left: 75px;

    }


    .dot-two {

        top: 80px;
        right: 80px;

    }


    .dot-three {

        right: 70px;
        bottom: 105px;

    }


    /* -------------------------
       OKAY BUTTON
    ------------------------- */

    .popup-okay-button {

        bottom: 15px;

        min-width: 105px;

        height: 40px;

        padding: 0 22px;

        font-size: 12px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .motivation-popup {

        padding: 8px;

    }


    .motivation-popup-box {

        border-radius: 12px;

    }


    .popup-quote-content {

        width: 84%;

    }


    .popup-quote {

        font-size:
            clamp(
                18px,
                5.3vw,
                25px
            );

        line-height: 1.5;

    }


    .popup-quote span::after {

        height: 3px;

        bottom: -3px;

    }


    /* Quote marks */

    .quote-mark {

        font-size: 55px;

    }


    .quote-mark-left {

        top: -32px;
        left: -22px;

    }


    .quote-mark-right {

        right: -18px;
        bottom: -40px;

    }


    /* Visuals */

    .decoration-brain {

        top: 18px;
        left: 18px;

        font-size: 28px;

    }


    .decoration-laptop {

        top: 18px;
        right: 18px;

        font-size: 28px;

    }


    .decoration-code {

        left: 18px;
        bottom: 60px;

        font-size: 23px;

    }


    .decoration-star {

        right: 20px;
        bottom: 60px;

        font-size: 25px;

    }


    /* Button */

    .popup-okay-button {

        bottom: 9px;

        min-width: 90px;

        height: 34px;

        padding: 0 17px;

        font-size: 11px;

        letter-spacing: 1px;

    }

}


/* =========================================================
   VERY SMALL SCREEN
========================================================= */

@media (max-width: 360px) {

    .popup-quote {

        font-size: 17px;

        line-height: 1.45;

    }


    .popup-okay-button {

        min-width: 82px;

        height: 32px;

        font-size: 10px;

    }


    .decoration-brain,
    .decoration-laptop {

        font-size: 23px;

    }


    .decoration-code {

        font-size: 20px;

    }


    .decoration-star {

        font-size: 21px;

    }

}