body{
    margin: 0;
    padding: 0;
    background: #eef3fb;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'Segoe UI',sans-serif;
    flex-direction: column;
}
.clock{
    display: flex;
    gap: 20px;
    align-items: center;
}
.digit-container{
    position: relative;
    width: 60px;
    height: 90px;
    overflow: hidden;
    background: #ffffff80;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.digit-strip{
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    will-change: transform;
}
.digit{
    height: 90px;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
    font-weight: 600;
    color: #1456e5;
}
.colon{
    font-size: 48px;
    font-weight: bold;
    color: #1456e5;
}
.date{
    margin-top: 20px;
    font-size: 1.5rem;
    color: #1456e5;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 0 3px #ccc;
}
.clock-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.toggle-btn{
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 18px;
    background: #1456e5;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease;
}
.toggle-btn:hover{
    background: #0e3ea5;
}
body.dark{
    background: #1e1e1e;
}
body.dark .digit{
    color: #00ffff;
}
body.dark .colon{
    color: #00ffff;
}
body.dark .date{
    color: #ddd;
}
body.dark .toggle-btn{
    background: #444;
    color: #fff;
}
body.dark .toggle-btn:hover{
    background: #666;
}
#particles-js{
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}
body, .digit, .colon, .date, .toggle-btn {
    transition: background 0.4s ease, color 0.4s ease;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(20, 86, 229, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }
}
.toggle-btn.animate {
    animation: pulse 0.4s ease;
}