﻿.bg-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/chamchamal.jpg') no-repeat center center/cover;
    z-index: -1;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( 112.32deg, rgba(38, 51, 84, 0.55) 1.51%, rgba(52, 70, 100, 0.5) 25.57%, rgba(46, 46, 46, 0.55) 95.94% );
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-block: 1rem;
    padding-bottom: 100px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: .5rem;
}

.text-box {
    position: relative;
    width: 372px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    border-radius: 80px;
    padding: 13px 20px;
    background-color: #0087541A;
    backdrop-filter: blur(24px);
    overflow: hidden;
    z-index: 0;
}

    .text-box span {
        font-weight: 400;
        color: #C6FFEA;
        font-size: 20px;
        line-height: 100%;
        text-shadow: 2px 2px 12px rgba(0,0,0,0.6);
        z-index: 2;
    }

    .text-box .heart-icon {
        color: #CF0F0F;
        font-size: 18px;
        margin-top: -1px;
        z-index: 2;
        animation: heartbeat 3s ease-in-out infinite;
    }

    .text-box.animated-border::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 1px;
        border-radius: 80px;
        background: linear-gradient(270deg, #FF5F6D, #FFC371, #00F0FF, #FF5F6D);
        background-size: 200% 200%;
        background-repeat: repeat;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        animation: border-move 4s linear infinite;
        z-index: 1;
    }

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.1);
    }
}

@keyframes border-move {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.main-header {
    font-weight: 400;
    font-size: 3rem;
    text-align: center;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.6);
    max-width: 100%;
    margin: 0px
}

.subtitle {
    font-weight: 400;
    font-size: 2rem;
    color: #A0FFF6;
    text-align: center;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.6);
    max-width: 70%;
    margin: 0px;
    margin-top: -10px;
}

.cards {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    justify-content: center;
    align-items: center;
}

.card {
    width: 520px;
    gap: 6px;
    border-radius: 20px;
    border-width: 1px;
    padding: 20px;
    background: #B8B8B814;
    border: 1px solid #FFFFFF4D;
    box-shadow: 0px 8px 18px 0px #00000033;
    backdrop-filter: blur(10px)
}

.header-card {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    margin-bottom: 6px;
}

    .header-card span {
        font-weight: 400;
        font-size: 22px;
        line-height: 100%;
        text-align: center;
        color: #FFFFFF;
        text-shadow: 2px 2px 12px rgba(0,0,0,0.6);
    }

    .header-card i {
        color: #02ADB9;
        font-size: 22px;
    }

.card-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center
}

.card-unit {
    font-size: 1rem;
    font-weight: 400;
    width: 72px;
    height: 40px;
    border-radius: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: auto;
    padding: 4px 14px;
    padding-bottom: 0px;
    background: rgba(56, 130, 108, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: #D1FAE5;
}

.footer-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    padding: 10px 16px;
    background: linear-gradient( 90deg, rgba(37, 99, 235, 0.2) 0%, rgba(48, 140, 186, 0.2) 100% );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.25);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 500;
    color: #E0F2FE;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.5);
}

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    direction: ltr;
}

.ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    min-width: 200%;
    width: fit-content;
    will-change: transform;
    animation: ticker-scroll-ltr 720s linear infinite;
}

.ticker {
    display: flex;
    align-items: center;
}

    .ticker span {
        font-size: 20px;
        color: #FFFFFF;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 8px;
        text-shadow: 1px 1px 6px rgba(0,0,0,.6);
    }

.ticker-amount {
    color: #A4FFD0 !important;
    display: flex !important;
    flex-direction: row-reverse;
    gap: 6px;
}

    .ticker-amount span {
        color: #A4FFD0 !important;
    }

.ticker-content::after {
    content: "|";
    margin: 0 12px;
    color: #FFFFFF;
}

.dot {
    width: 4px;
    height: 4px;
    background: #FFFFFF;
    border-radius: 50%;
    display: inline-block;
}

@keyframes ticker-scroll-ltr {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .ticker span {
        font-size: 14px;
    }

    .ticker-track {
        animation-duration: 720s;
    }
}

.glass-btn-wrapper {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.liquid-glass-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    color: #ECFDF5;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #8ADDD666;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    box-shadow: 0px 8px 18px 0px #00000033;
    transition: all 0.35s ease;
    overflow: hidden;
}

    .liquid-glass-btn i {
        font-size: 1rem;
        transition: transform 0.35s ease;
    }

    .liquid-glass-btn::before {
        content: "";
        position: absolute;
        top: -60%;
        left: -40%;
        width: 200%;
        height: 200%;
        background: radial-gradient( circle, rgba(255, 255, 255, 0.45), transparent 60% );
        transform: rotate(25deg);
        opacity: 0.35;
        transition: opacity 0.35s ease;
    }

    .liquid-glass-btn:hover {
        transform: translateY(-2px);
    }

        .liquid-glass-btn:hover .fa-arrow-left {
            transform: translateX(-4px);
        }

        .liquid-glass-btn:hover .fa-arrow-right {
            transform: translateX(4px);
        }

        .liquid-glass-btn:hover::before {
            opacity: 0.6;
        }

    .liquid-glass-btn:active {
        transform: translateY(0);
    }
/* Tablet (iPad & below) */
@media (max-width: 1024px) {
    .main-header {
        font-size: 2.4rem;
    }

    .subtitle {
        font-size: 1.8rem;
        max-width: 85%;
    }

    .cards {
        gap: 1.5rem;
    }

    .card {
        width: 100%;
        max-width: 480px;
    }

    .content {
        padding-bottom: 100px;
    }

    .footer-ticker {
        font-size: 14px;
    }
}
/* Mobile (phones) */
@media (max-width: 768px) {
    .content {
        padding: 4px 1rem 80px 1rem;
    }

    .text-box {
        margin-left: auto;
        width: 100%;
        max-width: 320px;
        height: auto;
        justify-content: center;
    }

        .text-box span {
            font-size: 16px;
        }

        .text-box i {
            margin: 0px;
        }

    .main-header {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1.8rem;
        margin-top: 0;
    }

    .cards {
        flex-direction: column;
        width: 100%;
    }

    .card {
        width: 100%;
        padding: 16px;
    }

    .card-value {
        font-size: 1.8rem;
    }

    .card-unit {
        width: 64px;
        height: 36px;
        font-size: 0.9rem;
    }

    .footer-ticker {
        font-size: 14px;
        padding: 8px 12px;
    }

        .footer-ticker .footer-title {
            font-size: 14px;
            gap: 4px;
        }

    .ticker span {
        font-size: 16px;
        gap: 4px;
    }

    .glass-btn-wrapper.action-button {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

        .glass-btn-wrapper.action-button .liquid-glass-btn {
            width: 100%;
            max-width: 320px;
            justify-content: center;
            text-align: center;
            gap: 8px;
        }

            .glass-btn-wrapper.action-button .liquid-glass-btn span {
                flex: none;
                width: auto;
            }

            .glass-btn-wrapper.action-button .liquid-glass-btn i {
                margin: 0;
            }
}
/* Small Mobile (very small phones) */
@media (max-width: 480px) {
    .main-header {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .header-card span {
        font-size: 16px;
    }

    .card-value {
        font-size: 1.6rem;
    }

    .card-unit {
        font-size: 0.8rem;
        width: 60px;
        height: 32px;
    }

    .footer-ticker {
        font-size: 12px;
        padding: 6px 10px;
    }

    .ticker span {
        font-size: 14px;
        gap: 3px;
    }
}
