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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: #000;
    position: relative;
}

/* Dynamic Liquid Background */
.liquid-container {
    position: absolute;
    width: 100%;
    height: 100vh;
    background: linear-gradient(45deg, 
        #ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff, #06ffa5);
    background-size: 400% 400%;
    animation: liquidGradient 8s ease-in-out infinite;
    filter: blur(1px);
}

@keyframes liquidGradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* Liquid Waves Overlay */
.liquid-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 0, 110, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(251, 86, 7, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 40% 80%, rgba(131, 56, 236, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 60% 20%, rgba(58, 134, 255, 0.4) 0%, transparent 60%);
    animation: waveFlow 15s ease-in-out infinite;
    mix-blend-mode: overlay;
}

@keyframes waveFlow {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    25% { 
        transform: scale(1.2) rotate(90deg);
        filter: hue-rotate(90deg);
    }
    50% { 
        transform: scale(1.4) rotate(180deg);
        filter: hue-rotate(180deg);
    }
    75% { 
        transform: scale(1.2) rotate(270deg);
        filter: hue-rotate(270deg);
    }
}

/* Liquid Distortion Effect */
.distortion-layer {
    position: absolute;
    width: 100%;
    height: 100vh;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="wave"><feTurbulence baseFrequency="0.02" numOctaves="3"/><feDisplacementMap in="SourceGraphic" scale="5"/></filter></defs><rect width="100" height="100" fill="rgba(255,255,255,0.1)" filter="url(%23wave)"/></svg>');
    opacity: 0.3;
    animation: distortionMove 20s linear infinite;
    mix-blend-mode: soft-light;
}

@keyframes distortionMove {
    0% { transform: translateX(0) translateY(0) scale(1); }
    25% { transform: translateX(-20px) translateY(10px) scale(1.1); }
    50% { transform: translateX(0) translateY(-15px) scale(0.9); }
    75% { transform: translateX(20px) translateY(5px) scale(1.05); }
    100% { transform: translateX(0) translateY(0) scale(1); }
}

/* Menu Bar with Liquid Glass */
.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px) saturate(200%) contrast(120%);
    -webkit-backdrop-filter: blur(40px) saturate(200%) contrast(120%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 1px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.menu-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    animation: liquidShimmer 3s ease-in-out infinite;
}

@keyframes liquidShimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Liquid Window */
.liquid-window {
    position: absolute;
    width: 900px;
    height: 650px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(60px) saturate(180%) contrast(110%);
    -webkit-backdrop-filter: blur(60px) saturate(180%) contrast(110%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.liquid-window::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse at 70% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: liquidReflection 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes liquidReflection {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
}

.liquid-window:hover {
    transform: translate(-50%, -50%) scale(1.02);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 40px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Window Header with Liquid Effects */
.window-header {
    height: 50px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.traffic-lights {
    display: flex;
    gap: 12px;
    z-index: 10;
}

.traffic-light {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.traffic-light::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.traffic-light:hover::before {
    transform: scale(1);
    animation: liquidPulse 1s ease-in-out infinite;
}

@keyframes liquidPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.close { 
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
}
.minimize { 
    background: linear-gradient(135deg, #ffd93d, #ffc107);
    box-shadow: 0 0 15px rgba(255, 217, 61, 0.4);
}
.maximize { 
    background: linear-gradient(135deg, #6bcf7f, #4caf50);
    box-shadow: 0 0 15px rgba(107, 207, 127, 0.4);
}

/* Liquid Content Area */
.window-content {
    padding: 30px;
    height: calc(100% - 50px);
    color: rgba(255, 255, 255, 0.9);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar for Liquid Theme */
.window-content::-webkit-scrollbar {
    width: 8px;
}

.window-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.window-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.window-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.liquid-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px;
    margin: 20px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.2);
}

.liquid-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.6s ease;
}

.liquid-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 15px 50px rgba(0, 0, 0, 0.3);
}

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

/* Liquid Dock */
.liquid-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(50px) saturate(180%) contrast(120%);
    -webkit-backdrop-filter: blur(50px) saturate(180%) contrast(120%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 -10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
}

.liquid-dock::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    animation: dockShimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dockShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.dock-item {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 26px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.2);
}

.dock-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.4s ease;
}

.dock-item:hover {
    transform: translateY(-15px) scale(1.15);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 255, 255, 0.1);
}

.dock-item:hover::before {
    transform: scale(1);
    animation: liquidGlow 2s ease-in-out infinite;
}

@keyframes liquidGlow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

.dock-item:active {
    transform: translateY(-8px) scale(1.05);
}

/* Liquid Particles */
.liquid-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    animation: liquidFloat 8s ease-in-out infinite;
}

@keyframes liquidFloat {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10%, 90% { 
        opacity: 1;
    }
    50% { 
        transform: translateY(-150px) scale(1.5);
        opacity: 0.8;
    }
}

/* Liquid Ripple Effect */
.liquid-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    animation: liquidRipple 1s ease-out;
    pointer-events: none;
}

@keyframes liquidRipple {
    to {
        transform: scale(6);
        opacity: 0;
    }
}

/* Enhanced Clock */
.liquid-clock {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Dynamic Animation Styles */
@keyframes liquidSlideIn {
    from { 
        transform: translateX(100%) rotateY(45deg); 
        opacity: 0; 
        filter: blur(10px);
    }
    to { 
        transform: translateX(0) rotateY(0deg); 
        opacity: 1; 
        filter: blur(0px);
    }
}

@keyframes liquidSlideOut {
    to { 
        transform: translateX(100%) rotateY(-45deg); 
        opacity: 0; 
        filter: blur(10px);
    }
}

@keyframes liquidLaunch {
    0% { 
        transform: translate(-50%, -50%) scale(0) rotate(0deg); 
        opacity: 1; 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.5) rotate(180deg); 
        opacity: 0.8; 
    }
    100% { 
        transform: translate(-50%, -50%) scale(3) rotate(360deg); 
        opacity: 0; 
    }
}