/* New Clock Section Styles */
.time-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10rem 0;
    height: 100%;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

.clock-container {
    position: relative;
    width: 200px;
    height: 200px;
    /* Add the animation, but set it to a paused state initially */
    animation: pulse-breathe 2s ease-in-out infinite paused;
    /* Add a transition to the transform property for a gradual stop */
    transition: transform 0.5s ease-out;
}

/* On hover and press, set the animation to running */
.clock-container:hover,
.clock-container:active {
    animation-play-state: running;
}

/* Keyframe animation for the breathing effect */
@keyframes pulse-breathe {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

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

.clock-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: var(--clock-bg);
    stroke-width: 8;
    transition: stroke 0.3s ease;
}

.circle-fill {
    fill: none;
    stroke: var(--clock-fill);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s linear, stroke 0.3s ease;
}

.current-time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Comfortaa', sans-serif;
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .current-time {
        font-size: 1.8rem;
    }
}