@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

.intro-block {
    background-color: #ECF3F9 !important;
    min-height: 100vh;
}

.title {
    color: #00A4E2;
    font-weight: 900;
    font-size: clamp(24px, 4vw, 38px);
}

.introText {
    color: #0EA5DE;
    font-weight: 600;
    font-size: 16px;
}

.downloadText {
    color: #0E4961;
    font-size: 26px;
    font-family: "Roboto Condensed", sans-serif;
    font-style: italic;
}

.achievementBlock {
    min-height: 100vh;
    background: linear-gradient(60deg, #DA3F00 15%, #00E8D6 100%);
}

.count {
    font-weight: 800;
    font-size: 38px;
    color: #00A4E2;
}

.countTitle {
    color: #797A7E;
    font-weight: 500;
    font-size: 20px;
}

.divider {
    border-right: 2px solid #BFEEFF;
}

.cloudSection {
    min-height: 100vh;
    background-image: url('./../assets/images/homepage/cloud-bg.png');
    background-repeat: no-repeat;
    background-size: cover !important;
    position: relative;
    overflow: hidden;
    background-color: red;
    /* border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px; */
}

.future-title {
    font-size: 38px;
}

.future-subtitle {
    font-size: 28px;
}

.future-desc {
    font-size: 20px;
}

.mobileCafe-image {
    display: block;
    max-width: 100%;
    height: auto;
    will-change: transform;
    transform-origin: 50% 80%;
    animation: cafeFloat var(--cDur, 16s) ease-in-out infinite;
    --cDx: 22px;
    --cDy: -16px;
    --cRot: .45deg;
    animation-delay: .4s;
}

@keyframes cafeFloat {
    0% {
        transform: translate(0, 0) rotate(0);
    }

    25% {
        transform: translate(calc(var(--cDx)*.45), calc(var(--cDy)*.7)) rotate(var(--cRot));
    }

    50% {
        transform: translate(var(--cDx), var(--cDy)) rotate(calc(var(--cRot) * -1));
    }

    75% {
        transform: translate(calc(var(--cDx)*-.55), calc(var(--cDy)*.4)) rotate(calc(var(--cRot) * 1.3));
    }

    100% {
        transform: translate(0, 0) rotate(0);
    }
}

@media (max-width: 576px) {
    .future-title {
        font-size: 28px;
    }

    .future-subtitle {
        font-size: 18px;
    }

    .future-desc {
        font-size: 14px;
    }

    .mobileCafe-image {
        --cDx: 28px;
        --cDy: -22px;
        --cDur: 14s;
    }
}

.clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.cloud {
    position: absolute;
    will-change: transform;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .08));
    animation: floatXY var(--dur, 12s) ease-in-out infinite alternate;
    --dx: 25px;
    --dy: -18px;
    --rot: 0.4deg;
    z-index: 0 !important;
}

@media (max-width: 576px) {
    .cloud {
        --dx: 14px;
        --dy: -10px;
        --dur: 14s;
    }

    .cloud1,
    .cloud2,
    .cloud3,
    .cloud4 {
        width: clamp(90px, 34vw, 220px);
    }

    .cloud1 {
        top: 64% !important;
        left: -6% !important;
        --dx: 16px;
        --dy: -12px;
        --dur: 15s;
    }

    .cloud2 {
        top: 10% !important;
        right: -2% !important;
        --dx: -18px;
        --dy: -12px;
        --dur: 16s;
    }

    .cloud3 {
        top: -8%;
        left: 80%;
        --dx: 14px;
        --dy: -10px;
        --dur: 13s;
    }

    .cloud4 {
        top: 82%;
        right: -21% !important;
        --dx: -20px;
        --dy: -14px;
        --dur: 18s;
    }
}

@media (max-width: 360px) {
    .cloud3 {
        display: none;
    }
}

/* accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cloud {
        animation: none !important;
    }
}

@keyframes floatXY {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    25% {
        transform: translate3d(calc(var(--dx) * 0.5), calc(var(--dy) * 0.8), 0) rotate(var(--rot));
    }

    50% {
        transform: translate3d(var(--dx), var(--dy), 0) rotate(calc(var(--rot) * -1));
    }

    75% {
        transform: translate3d(calc(var(--dx) * -0.6), calc(var(--dy) * 0.4), 0) rotate(calc(var(--rot) * 1.5));
    }

    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
}

.cloud1 {
    top: 58%;
    left: 2%;
    width: clamp(140px, 20vw, 340px);
    --dx: 28px;
    --dy: -20px;
    --rot: 0.5deg;
    --dur: 16s;
    animation-delay: 0.3s;
}

.cloud2 {
    top: 18%;
    right: 10%;
    width: clamp(120px, 16vw, 280px);
    --dx: -26px;
    --dy: -22px;
    --rot: -0.6deg;
    --dur: 18s;
    animation-delay: 0.8s;
}

.cloud3 {
    top: -6%;
    left: 28%;
    width: clamp(100px, 14vw, 240px);
    --dx: 22px;
    --dy: -18px;
    --rot: 0.4deg;
    --dur: 14s;
    animation-delay: 0.1s;
}

.cloud4 {
    top: 86%;
    right: 22%;
    width: clamp(160px, 22vw, 360px);
    --dx: -30px;
    --dy: -25px;
    --rot: -0.7deg;
    --dur: 20s;
    animation-delay: 0.5s;
}

.newsRoom {
    min-height: 100vh;
    background-color: #ECF3F9;
}

.newsPara {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 20px;
    font-weight: bold;
    color: #00A4E2;
    line-height: 1.2;
}

.newsDate {
    font-size: 20px;
    color: #797A7E;
    font-weight: 500;
}

.newsRoom {
    overflow-x: hidden;
}

/* Mobile (default): marquee + 1.5 cards visible */
.news-marquee {
    width: 100%;
    overflow: hidden;
    padding-bottom: 1rem;
}

.news-track {
    display: inline-flex;
    gap: 1.5rem;
    will-change: transform;
    animation: news-scroll linear infinite;
}

.news-card {
    flex: 0 0 60%;
    transition: transform .3s ease;
}

.news-card img {
    width: 100%;
    border-radius: 10px;
}

.news-marquee:hover .news-track {
    animation-play-state: paused;
}

@keyframes news-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-track {
        animation: none;
    }
}

/* Tablet & Desktop: disable marquee, show EXACTLY 3 per row */
@media (min-width: 768px) {
    .news-marquee {
        overflow: visible;
    }

    .news-track {
        animation: none !important;
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }

    .news-card {
        flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
        transform: none !important;
    }
}

.news-scroll {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.news-scroll::-webkit-scrollbar {
    display: none;
}

.news-card {
    flex: 0 0 60%;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.news-card img {
    width: 100%;
    border-radius: 10px;
}

.news-card:hover {
    transform: scale(1.03);
}

@media (min-width: 768px) {
    .news-scroll {
        flex-wrap: wrap;
        overflow: visible;
    }

    .news-card {
        flex: 0 0 22%;
    }
}

.coffeeRevolution {
    min-height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('../assets/images/homepage/hot-coffee-surface-closeup.png');
    /* border-top-left-radius: 40px;
    border-top-right-radius: 40px; */
}

.coffeeRevolution-title {
    font-size: clamp(30px, 4vw, 60px);
    font-weight: 800;
    color: #0E4961;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3s steps(30, end) forwards, blink 0.7s step-end infinite;
}

.coffeeRevolution-subtitle {
    font-size: clamp(16px, 1.5vw, 18px);
    font-weight: 500;
    font-style: italic;
    color: #0E4961;
}

.suggestionButton {
    font-size: 17px;
    text-decoration: none;
    background-color: #00A4E2;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.suggestionButton:hover {
    background: #007BB5;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 164, 226, 0.3);
    color: #fff !important;
}

/* --- Intro Block --- */
.intro-block {
    opacity: 0;
    transform: scale(0.98);
    animation: fadeInScale 1.2s ease-out forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.intro-block .title {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s ease-out 0.5s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-block img {
    opacity: 0;
    transform: scale(0.9);
    animation: zoomFade 1.2s ease-out 1s forwards;
}

@keyframes zoomFade {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.intro-block .introText {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 1s ease-out 1.6s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-block .container {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out 2s forwards;
}

.intro-block .col-10 img:hover {
    transform: scale(1.015) !important;
    transition: all 1s ease;
    cursor: pointer;
}

/* --- Intro Block --- */

/* Base reveal (disabled by reduced motion) */
@media (prefers-reduced-motion: no-preference) {
    .achievementBlock .countBox {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
        will-change: transform, opacity;
    }

    .achievementBlock .countBox.revealed {
        animation: riseIn 700ms cubic-bezier(.21, .61, .35, 1) forwards;
    }

    /* slight stagger via custom property */
    .achievementBlock .countBox[data-delay="1"] {
        animation-delay: 120ms;
    }

    .achievementBlock .countBox[data-delay="2"] {
        animation-delay: 240ms;
    }

    .fade-on-view {
        opacity: 0;
        transform: translateY(12px);
    }

    .fade-on-view.revealed {
        animation: fadeUp 600ms ease-out forwards;
        animation-delay: 320ms;
    }
}

@keyframes riseIn {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Soft hover for boxes (desktop) */
@media (hover: hover) and (pointer: fine) {
    .countBox {
        transition: transform .25s ease, box-shadow .25s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    }

    .countBox:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 22px rgba(0, 0, 0, .12);
    }
}

.count {
    letter-spacing: .5px;
    font-weight: 800;
    margin: 0;
}

.countTitle {
    margin: 0;
    opacity: .85;
}

@media (prefers-reduced-motion: no-preference) {

    .cloudSection .future-title,
    .cloudSection .future-subtitle,
    .cloudSection .future-desc {
        opacity: 0;
        transform: translateY(16px);
        filter: blur(2px);
        will-change: transform, opacity, filter;
    }

    .cloudSection .txt-revealed {
        animation: fadeUpTxt 700ms cubic-bezier(.21, .61, .35, 1) forwards;
    }

    /* small stagger via data-delay attr: 0,1,2... */
    .cloudSection [data-delay="1"].txt-revealed {
        animation-delay: 120ms;
    }

    .cloudSection [data-delay="2"].txt-revealed {
        animation-delay: 240ms;
    }

    .cloudSection [data-delay="3"].txt-revealed {
        animation-delay: 360ms;
    }

    @keyframes fadeUpTxt {
        0% {
            opacity: 0;
            transform: translateY(16px);
            filter: blur(2px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
            filter: blur(0);
        }
    }

    /* — optional: a very subtle one-time sheen on the title — */
    .cloudSection .future-title.shine-once {
        background: linear-gradient(90deg, rgba(255, 255, 255, .9), #ffffff, rgba(255, 255, 255, .9));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        position: relative;
        overflow: hidden;
    }

    .cloudSection .future-title.shine-once.txt-revealed {
        animation: fadeUpTxt 700ms cubic-bezier(.21, .61, .35, 1) forwards,
            titleSheen 1200ms ease-out 500ms 1;
    }

    @keyframes titleSheen {
        0% {
            background-position: -120% 0;
        }

        100% {
            background-position: 220% 0;
        }
    }
}

.coffeeRevolution.visible {
    opacity: 1;
    transform: translateY(0);
}

.coffeeRevolution-title {
    font-size: clamp(38px, 4vw, 60px);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3s steps(30, end) forwards, blink 0.7s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.coffee-section {
    background: url("../assets/images/franchise/coffe-beans-grid.png");
    /* Optional grid overlay */
    background-size: cover;
    background-position: center;
    padding: 50px 20px 200px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Coffee beans at bottom */
.coffee-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: url("../assets/images/franchise/coffee-beans.png") no-repeat center bottom;
    background-size: cover;
    pointer-events: none;
}

.submit-btn {
    background-color: #F7EA00;
    width: 50%;
    border: none;
    color: #000;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #F7EA00;
}

.hidden-section {
    display: none;
}

.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.fade-in {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-wrap {
    position: relative;
    overflow: hidden;
}

/* OUT animation (slides DOWN + fades out) */
.slide-out-left {
    animation: slideOutDown 0.45s ease forwards;
}

/* IN animation (slides UP + fades in) */
.slide-in-right {
    display: block;
    animation: slideInUp 0.45s ease forwards;
}

/* =========================
   Keyframes (Vertical)
   ========================= */

/* Exit animation */
@keyframes slideOutDown {
    to {
        transform: translateY(40px);
        opacity: 0;
    }
}

/* Entry animation */
@keyframes slideInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


@media (max-width: 768px) {
    .submit-btn {
        width: 90%;
    }

    .coffee-section::after {
        height: 180px;
        background: url("../assets/images/franchise/coffee-beans.png") no-repeat center bottom;
    }
}