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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

body {
    background: linear-gradient(45deg, #1a1a1a, #0d0d0d, #000000);
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px;
    color: #f5f5f5;
    overflow-x: hidden;
}

.app {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px);
    padding: 25px;
}

.clock {
    position: relative;
    padding: 35px;
    border-radius: 18px;
    background: linear-gradient(145deg, #2e2e2e, #1f1f1f);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.3s forwards;
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.clock:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 50px;
    text-align: center;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: 1.2px;
}

.clock-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.analog-clock {
    height: 260px;
    width: 260px;
    position: relative;
    border-radius: 50%;
    background: rgba(40, 40, 40, 0.8);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.bar-seconds, .number-hours {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.bar-seconds span {
    position: absolute;
    transform: rotate(calc(var(--index) * 6deg));
    inset: -12px;
    text-align: center;
}

.bar-seconds span p {
    width: 3px;
    height: 8px;
    background: #777;
    border-radius: 2px;
    opacity: 0.8;
    display: inline-block;
}

.bar-seconds span:nth-child(5n) p {
    width: 4px;
    height: 12px;
    transform: translateY(1px);
    opacity: 1;
}

.number-hours span {
    position: absolute;
    transform: rotate(calc(var(--index) * 30deg));
    inset: 8px;
    text-align: center;
}

.number-hours span p {
    font-size: 18px;
    color: #d1d1d1;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    transform: rotate(calc(var(--index) * -30deg));
}

.hands {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hands .hand {
    position: absolute;
    border-radius: 50%;
    display: flex;
    justify-content: center;
}

.hands .hand i {
    display: inline-block;
    transform-origin: bottom;
    border-radius: 5px;
}

.hands .hours {
    width: 170px;
    height: 170px;
}

.hands .hours i {
    width: 6px;
    height: 85px;
    background: #e0e0e0;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.hands .minutes {
    width: 210px;
    height: 210px;
}

.hands .minutes::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #888;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(136, 136, 136, 0.5);
    z-index: 10;
}

.hands .minutes i {
    width: 4px;
    height: 110px;
    background: #888;
    box-shadow: 0 0 15px rgba(136, 136, 136, 0.4);
}

.hands .seconds {
    width: 240px;
    height: 240px;
}

.hands .seconds::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #ff6b6b;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
    z-index: 11;
}

.hands .seconds i {
    width: 2px;
    height: 150px;
    background: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
}

.digital-clock {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 25px;
}

.digital-clock .time {
    font-size: 38px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1.5px;
}

.digital-clock .ampm {
    font-size: 24px;
    font-weight: 600;
    color: #aaaaaa;
}

.footer {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.6px;
    
}

.footer-text {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 22px;
    margin-bottom: 0;
}

.mausam-link {
    color: inherit;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mausam-link:hover {
    color: #bbb;
}

.mausam-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -1px;
    left: 0;
    background-color: #bbb;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.mausam-link:hover::after {
    transform: scaleX(1);
}

/* Responsive*/
@media (max-width: 768px) {
    .clock {
        padding: 30px;
        max-width: 400px;
    }
    
    .analog-clock {
        height: 240px;
        width: 240px;
    }
    
    .hands .hours {
        width: 150px;
        height: 150px;
    }
    
    .hands .hours i {
        height: 75px;
    }
    
    .hands .minutes {
        width: 190px;
        height: 190px;
    }
    
    .hands .minutes i {
        height: 95px;
    }
    
    .hands .seconds {
        width: 210px;
        height: 210px;
    }
    
    .hands .seconds i {
        height: 130px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .digital-clock .time {
        font-size: 34px;
    }
    
    .digital-clock .ampm {
        font-size: 22px;
    }
    
    .footer {
        font-size: 15px;
    }
    
    .footer-text {
        padding: 9px 20px;
    }
}

@media (max-width: 480px) {
    .clock {
        padding: 25px 20px;
        max-width: 350px;
    }
    
    .analog-clock {
        height: 210px;
        width: 210px;
    }
    
    .hands .hours {
        width: 120px;
        height: 120px;
    }
    
    .hands .hours i {
        height: 60px;
    }
    
    .hands .minutes {
        width: 160px;
        height: 160px;
    }
    
    .hands .minutes i {
        height: 80px;
    }
    
    .hands .seconds {
        width: 180px;
        height: 180px;
    }
    
    .hands .seconds i {
        height: 110px;
    }
    
    .title {
        font-size: 26px;
        margin-bottom: 25px;
    }
    
    .digital-clock {
        margin-top: 20px;
    }
    
    .digital-clock .time {
        font-size: 30px;
    }
    
    .digital-clock .ampm {
        font-size: 20px;
    }
    
    .footer {
        font-size: 14px;
        bottom: 20px;
    }
    
    .footer-text {
        padding: 8px 18px;
    }
    
    body {
        padding-bottom: 60px;
    }
    
    .app {
        min-height: calc(100vh - 60px);
    }
}

@media (max-width: 360px) {
    .clock {
        max-width: 320px;
        padding: 22px 15px;
    }
    
    .analog-clock {
        height: 190px;
        width: 190px;
    }
    
    .hands .hours {
        width: 110px;
        height: 110px;
    }
    
    .hands .hours i {
        height: 55px;
    }
    
    .hands .minutes {
        width: 140px;
        height: 140px;
    }
    
    .hands .minutes i {
        height: 70px;
    }
    
    .hands .seconds {
        width: 160px;
        height: 160px;
    }
    
    .hands .seconds i {
        height: 100px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .digital-clock .time {
        font-size: 28px;
    }
    
    .digital-clock .ampm {
        font-size: 18px;
    }
    
    .footer {
        font-size: 13px;
        bottom: 15px;
    }
    
    .footer-text {
        padding: 7px 16px;
    }
    
    body {
        padding-bottom: 50px;
    }
    
    .app {
        min-height: calc(100vh - 50px);
    }
}