/* Custom Styles & Animations for Premium Feel */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    background-color: #000;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Time Block Styling */
.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    width: 5.5rem;
    height: 5.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 640px) {
    .time-block {
        width: 7rem;
        height: 7rem;
        border-radius: 2rem;
    }
}

@media (min-width: 1024px) {
    .time-block {
        width: 8.5rem;
        height: 8.5rem;
    }
}

.time-block:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

/* Time Value Styling */
.time-val {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
    .time-val {
        font-size: 2.8rem;
    }
}

@media (min-width: 1024px) {
    .time-val {
        font-size: 3.8rem;
    }
}

/* Time Label Styling */
.time-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Kanit', sans-serif;
}

@media (min-width: 640px) {
    .time-label {
        font-size: 0.75rem;
        margin-top: 0.4rem;
    }
}

@media (min-width: 1024px) {
    .time-label {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in {
    animation: fadeIn 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* แอนิเมชันลอยแบบนุ่มนวล (Soft Float) */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* แก้ไขปัญหา Backdrop Filter ไม่ทำงานในบาง Browser */
.glass-card-bg {
    backdrop-filter: blur(69px) !important;
    -webkit-backdrop-filter: blur(69px) !important;
}

/* Custom Scrollbar for better aesthetics */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f43f5e;
}