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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-image: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?w=1920&q=80'); */
    background-image: url('https://wallpapercave.com/wp/wp3181476.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    width: 100%;
    max-width: 100vw;
}

header {
    margin-bottom: 4rem;
}

.logo {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 0.2rem;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 0.8rem;
    letter-spacing: 4px;
    font-weight: 300;
    opacity: 0.9;
}

.timer-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.mode-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #6b5b95;
    font-weight: 500;
}

.timer-display {
    font-size: 8rem;
    font-weight: 300;
    margin: 2rem 0;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.control-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    color: #6b5b95;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.control-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.control-btn svg {
    width: 24px;
    height: 24px;
    color: #6b5b95;
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    header {
        margin-bottom: 3rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 0.7rem;
        letter-spacing: 3px;
    }
    
    .timer-display {
        font-size: 5rem;
        margin: 1.5rem 0;
    }
    
    .timer-controls {
        gap: 0.6rem;
        margin-bottom: 2rem;
    }
    
    .mode-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .control-btn {
        padding: 0.9rem 2.5rem;
        font-size: 1.1rem;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    header {
        margin-bottom: 2rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }
    
    .timer-display {
        font-size: 3.5rem;
        margin: 1rem 0;
        letter-spacing: 0.05em;
    }
    
    .timer-controls {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .mode-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .controls {
        gap: 0.8rem;
    }
    
    .control-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        min-width: 90px;
    }
    
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 0.8rem;
    }
    
    header {
        margin-bottom: 1.5rem;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.55rem;
        letter-spacing: 1.5px;
    }
    
    .timer-display {
        font-size: 3rem;
        margin: 0.8rem 0;
    }
    
    .timer-controls {
        gap: 0.4rem;
        margin-bottom: 1.2rem;
    }
    
    .mode-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .controls {
        gap: 0.6rem;
    }
    
    .control-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
        min-width: 80px;
    }
}

@media (max-width: 320px) {
    body {
        background-attachment: scroll;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    header {
        margin-bottom: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .subtitle {
        font-size: 0.5rem;
        letter-spacing: 1px;
    }
    
    .timer-display {
        font-size: 2.5rem;
        margin: 0.5rem 0;
        letter-spacing: 0.05em;
    }
    
    .timer-controls {
        gap: 0.3rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .mode-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
        flex: 1 1 auto;
        min-width: 85px;
    }
    
    .controls {
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .control-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        min-width: 70px;
    }
    
    .control-btn svg {
        width: 18px;
        height: 18px;
    }
}
