@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.5s ease;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    color: #fff;
    overflow: hidden;
    position: relative;
    transition: background-color 3s ease;
}

.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    filter: blur(120px);
    transition: background 2s ease-in-out, opacity 2s ease;
}

.glow-circle-pink {
    width: 350px;
    height: 350px;
    background: #E6259F;
    top: -5%;
    right: 15%;
    filter: blur(160px);
    animation: float-slow 8s infinite alternate, color-shift-pink 15s infinite alternate;
}

.glow-circle-purple {
    width: 400px;
    height: 400px;
    background: #6A38F5;
    bottom: -10%;
    left: 10%;
    filter: blur(180px);
    animation: float-slow 10s infinite alternate-reverse, color-shift-purple 18s infinite alternate;
}

.glow-circle-blue {
    width: 300px;
    height: 300px;
    background: #1E99FE;
    top: 40%;
    right: -5%;
    filter: blur(150px);
    animation: float-slow 12s infinite alternate, color-shift-blue 20s infinite alternate;
}

@keyframes float-slow {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(20px);
    }
    100% {
        transform: translateY(20px) translateX(-20px);
    }
}

@keyframes color-shift-pink {
    0% { background: #E6259F; opacity: 0.7; }
    50% { background: #ff3377; opacity: 0.8; }
    100% { background: #d619a3; opacity: 0.7; }
}

@keyframes color-shift-purple {
    0% { background: #6A38F5; opacity: 0.7; }
    50% { background: #8a56ff; opacity: 0.8; }
    100% { background: #5728d9; opacity: 0.7; }
}

@keyframes color-shift-blue {
    0% { background: #1E99FE; opacity: 0.7; }
    50% { background: #41b0ff; opacity: 0.8; }
    100% { background: #0080e8; opacity: 0.7; }
}

.container {
    position: relative;
    max-width: 650px;
    width: 100%;
    padding: 60px 40px;
    background: rgba(20, 20, 26, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.5);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 1s ease, box-shadow 1.5s ease;
}

.container:hover {
    background: rgba(25, 25, 35, 0.65);
    box-shadow: 0px 0px 60px rgba(30, 153, 254, 0.2);
}

.title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(90deg, #E6259F 0%, #1E99FE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    animation: gradient-shift 8s infinite alternate;
}

@keyframes gradient-shift {
    0% { background: linear-gradient(90deg, #E6259F 0%, #1E99FE 100%); }
    50% { background: linear-gradient(90deg, #ff3377 0%, #41b0ff 100%); }
    100% { background: linear-gradient(90deg, #d619a3 0%, #0080e8 100%); }
    
    0%, 50%, 100% {
        -webkit-background-clip: text;
        background-clip: text;
    }
}

.timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.time {
    font-size: 120px;
    line-height: 1;
    font-weight: 700;
    background: linear-gradient(180deg, #FFFFFF 0%, #A8A8A8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    position: relative;
    transition: text-shadow 1s ease;
}

.time:hover {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
}

.time::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 4px;
    background: linear-gradient(90deg, rgba(230, 37, 159, 0.3) 0%, rgba(30, 153, 254, 0.3) 100%);
    border-radius: 2px;
    transition: background 1.5s ease, height 0.5s ease;
}

.time-block:hover .time::after {
    height: 6px;
    background: linear-gradient(90deg, rgba(230, 37, 159, 0.5) 0%, rgba(30, 153, 254, 0.5) 100%);
}

.time::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.label {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.separator {
    font-size: 100px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.3);
    margin-top: -20px;
    font-weight: 300;
}

.buttons {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 500px;
}

.control-btn {
    flex: 1;
    padding: 18px 0;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
}

.start-btn {
    background: linear-gradient(90deg, #E6259F 0%, #1E99FE 100%);
    color: white;
    box-shadow: 0 0 20px rgba(230, 37, 159, 0.4);
    background-size: 200% 100%;
    background-position: 0% 0%;
    transition: all 0.5s ease, background-position 0.6s ease;
}

.start-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(230, 37, 159, 0.6);
    background-position: 100% 0%;
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease, background 0.6s ease, color 0.6s ease;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.start-btn.active {
    background: linear-gradient(90deg, #ff3535 0%, #ff5e35 100%);
    box-shadow: 0 0 20px rgba(255, 53, 53, 0.4);
}

.date-display {
    margin-top: 10px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.8s ease, transform 0.5s ease;
}

.date-display:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.date {
    font-size: 24px;
    font-weight: 500;
    background: linear-gradient(90deg, #E6259F 0%, #1E99FE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    animation: gradient-shift 8s infinite alternate;
}

@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }
    
    .time {
        font-size: 80px;
    }
    
    .separator {
        font-size: 60px;
    }
    
    .buttons {
        flex-direction: column;
    }
}
