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

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e27 0%, #1a0b2e 25%, #16213e 50%, #0f3460 75%, #0a0e27 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: float linear infinite;
    bottom: -20px;
    /* Start below viewport */
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }

    5% {
        opacity: 1;
        transform: translateY(-50px) translateX(10px) scale(1);
    }

    95% {
        opacity: 1;
    }

    100% {
        transform: translateY(-110vh) translateX(50px) scale(1);
        opacity: 0;
    }
}

/* Background decoration */
.background-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blobFloat 8s ease-in-out infinite;
    opacity: 0.5;
}

.blob-1 {
    top: 15%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8), transparent);
    animation-delay: 0s;
}

.blob-2 {
    bottom: 15%;
    right: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.8), transparent);
    animation-delay: 2s;
}

.blob-3 {
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.6), transparent);
    animation-delay: 4s;
    transform: translate(-50%, -50%);
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Decorative circles */
.decorative-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.circle {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.circle-1 {
    top: 10%;
    right: 15%;
    width: 150px;
    height: 150px;
    animation-duration: 25s;
}

.circle-2 {
    bottom: 15%;
    left: 10%;
    width: 200px;
    height: 200px;
    animation-duration: 30s;
    animation-direction: reverse;
}

.circle-3 {
    top: 50%;
    right: 5%;
    width: 100px;
    height: 100px;
    animation-duration: 20s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Clock wrapper */
.clock-wrapper {
    z-index: 10;
    position: relative;
}

.clock-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
    backdrop-filter: blur(20px) saturate(180%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 32px;
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
        0 0 80px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    min-width: 700px;
    overflow: hidden;
}

.clock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s;
}

.clock-card:hover::before {
    left: 100%;
}

.clock-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 15px 60px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
        0 0 120px rgba(99, 102, 241, 0.5);
}

/* Glow effect */
.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
}

.clock-card:hover .glow-effect {
    opacity: 1;
}

/* Header */
.clock-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.header-icon {
    font-size: 2rem;
    animation: swing 2s ease-in-out infinite;
}

@keyframes swing {

    0%,
    100% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

.header-text {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #a78bfa, #ec4899, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Time display */
.time-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.time-segment {
    font-size: 7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
    font-variant-numeric: tabular-nums;
    min-width: 150px;
    text-align: center;
}

.time-separator {
    font-size: 6rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    animation: blink 1s ease-in-out infinite;
}

@keyframes gradientFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Date display */
.date-display {
    text-align: center;
    margin-bottom: 2rem;
}

.date-main {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.date-sub {
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.info-label {
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.info-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: linear-gradient(90deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive design */
@media (max-width: 768px) {
    .clock-card {
        min-width: auto;
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .time-segment {
        font-size: 3.5rem;
        min-width: 80px;
    }

    .time-separator {
        font-size: 3rem;
    }

    .date-main {
        font-size: 1.125rem;
    }

    .date-sub {
        font-size: 0.875rem;
    }

    .info-grid {
        gap: 1rem;
    }

    /* Mobile blob adjustments */
    .blob {
        filter: blur(60px);
    }

    .blob-1 {
        top: 10%;
        left: -20%;
        width: 350px;
        height: 350px;
    }

    .blob-2 {
        bottom: 10%;
        right: -20%;
        width: 350px;
        height: 350px;
    }

    .blob-3 {
        top: 50%;
        left: 50%;
        width: 300px;
        height: 300px;
    }

    .circle {
        display: none;
    }
}

@media (max-width: 480px) {
    .clock-card {
        padding: 1.5rem 1rem;
    }

    .time-segment {
        font-size: 2.5rem;
        min-width: 60px;
    }

    .time-separator {
        font-size: 2rem;
    }

    .header-icon {
        font-size: 1.5rem;
    }

    .header-text {
        font-size: 0.875rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Extra small mobile blob adjustments */
    .blob-1 {
        top: 5%;
        left: -30%;
        width: 280px;
        height: 280px;
    }

    .blob-2 {
        bottom: 5%;
        right: -30%;
        width: 280px;
        height: 280px;
    }

    .blob-3 {
        width: 250px;
        height: 250px;
    }
}