*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.25);
    --accent: #a78bfa;
    --accent2: #60a5fa;
    --accent3: #f472b6;
    --text: rgba(255, 255, 255, 0.92);
    --text-dim: rgba(255, 255, 255, 0.45);
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    background: #0f0c29;
    overflow: hidden;
    position: relative;
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: floatBlob ease-in-out infinite alternate;
}

.blob-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #7c3aed, #4f46e5);
    top: -10%;
    left: -10%;
    animation-duration: 8s;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #0ea5e9, #06b6d4);
    bottom: -5%;
    right: -5%;
    animation-duration: 10s;
    animation-delay: -3s;
}

.blob-3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #ec4899, #f43f5e);
    bottom: 20%;
    left: 15%;
    animation-duration: 12s;
    animation-delay: -6s;
}

@keyframes floatBlob {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, 20px) scale(1.08);
    }
}

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: riseUp linear infinite;
}

@keyframes riseUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.4;
    }

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

.card {
    position: relative;
    z-index: 10;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 52px 60px 44px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 8px 32px var(--glass-shadow),
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 -1px 0 rgba(0, 0, 0, 0.15) inset;
    text-align: center;
    min-width: 340px;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }

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

.greeting {
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 28px;
    font-weight: 300;
}

.clock-face {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 32px;
}

.clock-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.03),
        inset 0 0 30px rgba(0, 0, 0, 0.2);
}

.tick {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    width: 1.5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
}

.tick.major {
    background: rgba(255, 255, 255, 0.6);
    width: 2px;
}

.hour-num {
    position: absolute;
    font-size: 0.68rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    transform: translate(-50%, -50%);
    letter-spacing: 0;
}

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 4px 4px 2px 2px;
    transition: transform 0.3s cubic-bezier(0.4, 2.08, 0.55, 0.44);
}

.hand.hour {
    width: 4px;
    height: 54px;
    margin-left: -2px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.hand.minute {
    width: 3px;
    height: 74px;
    margin-left: -1.5px;
    background: linear-gradient(to top, var(--accent), rgba(167, 139, 250, 0.5));
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
}

.hand.second {
    width: 1.5px;
    height: 82px;
    margin-left: -0.75px;
    background: linear-gradient(to top, var(--accent3), rgba(244, 114, 182, 0.4));
    box-shadow: 0 0 8px rgba(244, 114, 182, 0.8);
    transition: transform 0.1s linear;
    border-radius: 2px;
}

.hand.second::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5px;
    height: 18px;
    background: rgba(244, 114, 182, 0.5);
    border-radius: 2px;
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    z-index: 5;
}

.digital-time {
    font-family: 'DM Serif Display', serif;
    font-size: 3.2rem;
    color: var(--text);
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 0 40px rgba(167, 139, 250, 0.4);
}

.digital-time span.ampm {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-left: 4px;
    vertical-align: middle;
}

.date-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.date-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 5px 16px;
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 300;
}

.date-pill.accent {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.3);
    color: var(--accent);
}

.divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 22px auto 18px;
}

.progress-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-top: 22px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--accent2), var(--accent), var(--accent3));
    border-radius: 2px;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
}

@media (max-width: 420px) {
    .card {
        padding: 40px 32px 36px;
        min-width: 290px;
    }

    .clock-face {
        width: 170px;
        height: 170px;
    }

    .digital-time {
        font-size: 2.6rem;
    }
}