/* Base Styles */
:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --background: #0f172a;
    --surface: #1e293b;
    --text: #f8fafc;
    --text-secondary: #94a3b8;
}

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

/* Body Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    background-attachment: fixed;
}

/* Container Styles */
.container {
    text-align: center;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3.5rem 2.5rem;
    border-radius: 28px;
    box-shadow: 0 20px 50px -10px rgba(99, 102, 241, 0.35);
    max-width: 520px;
    width: 100%;
    border: 1px solid rgba(167, 139, 250, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: perspective(1000px) rotateX(-5deg) rotateY(5deg) scale(1.01);
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
    animation: rotate 20s linear infinite;
    opacity: 0.7;
}

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

/* Typography */
h1 {
    color: var(--primary-light);
    margin-bottom: 3rem;
    font-weight: 800;
    font-size: 2.25rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(167, 139, 250, 0.25);
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Time Box Styles */
.time-box {
    margin: 1.75rem 0;
    padding: 1.5rem 2rem;
    background: rgba(30, 41, 59, 0.7);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px -10px rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.time-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(1);
    transform-origin: left;
    z-index: 1;
}

.time-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.03) 0%, rgba(0,0,0,0) 100%);
    opacity: 1;
}

/* Hover effects removed as requested */

/* Time and Label Styles */
.time {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
    position: relative;
    display: block;
    text-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
    text-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    line-height: 1.2;
}

.time::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.time {
    text-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.time::after {
    width: 80%;
    opacity: 0.9;
}

.label {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-top: 0.25rem;
    position: relative;
    display: block;
    text-align: center;
    opacity: 0.9;
}

.label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-light);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.label {
    color: #e2e8f0;
    letter-spacing: 1.8px;
}

.label::after {
    width: 100%;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 3D Effects */
.container {
    transform-style: preserve-3d;
}

.time-box {
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.time-box:hover {
    transform: translateY(-6px) translateZ(20px) scale(1.01);
    box-shadow: 0 20px 50px -10px rgba(99, 102, 241, 0.35);
}

/* Border Glow Effect */
.time-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.4) 0%, rgba(99, 102, 241, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.time-box:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 1rem;
    }
    
    .container {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }
    
    h1 {
        font-size: 1.9rem;
        margin-bottom: 2rem;
    }
    
    h1::after {
        width: 50px;
        height: 3px;
    }
    
    .time-box {
        padding: 1.25rem 1.25rem;
        margin: 1.25rem 0;
        border-radius: 18px;
        min-height: 100px;
    }
    
    .time {
        font-size: 2.4rem;
        margin-bottom: 0.5rem;
    }
    
    .label {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }
}

.last-updated {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    opacity: 0.8;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0.5deg); }
    50% { transform: translateY(-8px) rotate(-0.5deg); }
}

.time-box:nth-child(2) {
    animation: float 5s ease-in-out infinite;
}

.time-box:nth-child(3) {
    animation: float 5s ease-in-out 0.5s infinite;
}
