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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    text-align: center;
}

h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Jam Digital */
.digital-clock {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 60px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.time {
    font-size: 4rem;
    font-weight: bold;
    color: #667eea;
    font-family: 'Courier New', monospace;
    letter-spacing: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.date {
    font-size: 1.3rem;
    color: #666;
    margin-top: 15px;
    font-weight: 500;
}

/* Jam Analog */
.analog-clock {
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock-face {
    position: relative;
    width: 350px;
    height: 350px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        0 0 0 15px rgba(255, 255, 255, 0.2),
        0 10px 50px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Angka jam */
.number {
    position: absolute;
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.number-12 { transform: rotate(0deg) translateY(40px); }
.number-1 { transform: rotate(30deg) translateY(40px) rotate(-30deg); }
.number-2 { transform: rotate(60deg) translateY(40px) rotate(-60deg); }
.number-3 { transform: rotate(90deg) translateY(40px) rotate(-90deg); }
.number-4 { transform: rotate(120deg) translateY(40px) rotate(-120deg); }
.number-5 { transform: rotate(150deg) translateY(40px) rotate(-150deg); }
.number-6 { transform: rotate(180deg) translateY(40px) rotate(-180deg); }
.number-7 { transform: rotate(210deg) translateY(40px) rotate(-210deg); }
.number-8 { transform: rotate(240deg) translateY(40px) rotate(-240deg); }
.number-9 { transform: rotate(270deg) translateY(40px) rotate(-270deg); }
.number-10 { transform: rotate(300deg) translateY(40px) rotate(-300deg); }
.number-11 { transform: rotate(330deg) translateY(40px) rotate(-330deg); }

/* Titik tengah */
.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Jarum jam */
.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    background: linear-gradient(to top, #333, #666);
    border-radius: 10px;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hour-hand {
    width: 8px;
    height: 100px;
    margin-left: -4px;
    z-index: 3;
}

.minute-hand {
    width: 6px;
    height: 130px;
    margin-left: -3px;
    z-index: 4;
}

.second-hand {
    width: 3px;
    height: 150px;
    margin-left: -1.5px;
    background: linear-gradient(to top, #667eea, #764ba2);
    z-index: 5;
    transition: transform 0.1s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .digital-clock {
        padding: 30px 40px;
        margin-bottom: 40px;
    }

    .time {
        font-size: 3rem;
        letter-spacing: 3px;
    }

    .date {
        font-size: 1.1rem;
    }

    .clock-face {
        width: 300px;
        height: 300px;
    }

    .hour-hand {
        height: 85px;
    }

    .minute-hand {
        height: 110px;
    }

    .second-hand {
        height: 125px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .digital-clock {
        padding: 20px 30px;
    }

    .time {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .date {
        font-size: 1rem;
    }

    .clock-face {
        width: 250px;
        height: 250px;
    }

    .number {
        font-size: 1.2rem;
    }

    .hour-hand {
        width: 6px;
        height: 70px;
        margin-left: -3px;
    }

    .minute-hand {
        width: 4px;
        height: 90px;
        margin-left: -2px;
    }

    .second-hand {
        width: 2px;
        height: 105px;
        margin-left: -1px;
    }

    .center-dot {
        width: 15px;
        height: 15px;
    }
}
