:root {
    --primary-color: rgba(0, 180, 255, 0.8);
    --secondary-color: rgba(100, 0, 200, 0.6);
    --text-color: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 180, 255, 0.3);
    --highlight: rgba(0, 220, 255, 0.9);
    --panel-bg: rgba(255, 255, 255, 0.08);
    --glow: 0 0 15px rgba(0, 180, 255, 0.5);
    --menu-bg: rgba(220, 240, 255, 0.15);
    --glass-bg: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
}

@font-face {
    font-family: 'Futuristic';
    src: url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', 'Arial', sans-serif;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 50, 100, 0.6), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(100, 0, 150, 0.5), transparent 60%),
        url('https://images.unsplash.com/photo-1506318137071-a8e063b4bec0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat fixed;
    background-blend-mode: overlay;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    animation: bgPulse 15s infinite alternate;
}

@keyframes bgPulse {
    0% {
        background-color: rgba(5, 10, 20, 0.8);
    }
    100% {
        background-color: rgba(15, 25, 40, 0.8);
    }
}

.hologram-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 1px,
        rgba(0, 180, 255, 0.05) 2px,
        rgba(0, 180, 255, 0.05) 3px
    );
    opacity: 0.3;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(0, 180, 255, 0.5);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.menu-bar {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px;
    border-radius: 6px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    box-shadow: 
        0 0 30px rgba(0, 150, 255, 0.2),
        inset 0 0 20px rgba(0, 180, 255, 0.1);
}

.menu-item {
    padding: 15px 30px;
    margin: 0 10px;
    background: var(--menu-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 3px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glow);
    z-index: 1;
    text-shadow: 0 0 5px rgba(0, 200, 255, 0.5);
    font-weight: 500;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 220, 255, 0.3),
        transparent
    );
    transition: 0.6s;
    z-index: -1;
}

.menu-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.4s;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover::after {
    opacity: 0.5;
}

.menu-item:hover {
    box-shadow: 0 0 25px var(--highlight);
    border-color: var(--highlight);
    background: rgba(220, 240, 255, 0.25);
    transform: translateY(-2px);
}

.menu-item:active {
    transform: translateY(0);
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
    }
    20%, 22%, 24%, 55% {
        opacity: 0.7;
    }
}

.menu-item {
    animation: flicker 8s infinite alternate;
}

.menu-item:nth-child(2) {
    animation-delay: 0.5s;
}

.menu-item:nth-child(3) {
    animation-delay: 1s;
}

.menu-item:nth-child(4) {
    animation-delay: 1.5s;
}

.main-title {
    text-align: center;
    font-size: 2.8rem;
    margin: 60px 0 40px;
    text-shadow: 0 0 10px var(--highlight);
    letter-spacing: 4px;
    position: relative;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(90deg, #fff, var(--highlight));
    -webkit-background-clip: text;
    background-clip: text;
}

.main-title::after {
    content: '';
    display: block;
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--highlight), transparent);
    margin: 20px auto;
    opacity: 0.6;
}

.timer-section {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 80px;
}

.timer-block {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 30px;
    box-shadow: 
        var(--glow),
        inset 0 0 30px rgba(0, 180, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.timer-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 150, 255, 0.05),
        transparent 50%,
        rgba(100, 0, 200, 0.05)
    );
    pointer-events: none;
}

.timer-block:hover {
    box-shadow: 
        0 0 30px var(--highlight),
        inset 0 0 40px rgba(0, 180, 255, 0.2);
    border-color: var(--highlight);
}

.timer-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--highlight);
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(30, 60, 100, 0.1);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--glow);
    backdrop-filter: blur(5px);
}

.timer-unit:hover {
    background: rgba(50, 100, 150, 0.2);
    box-shadow: 0 0 25px var(--highlight);
}

.timer-value {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, var(--highlight));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
}

.timer-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--highlight);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.corner-tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.timer-block:hover .corner {
    opacity: 1;
    border-color: var(--highlight);
}

.ticker-tape {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 30, 60, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid var(--border-color);
    padding: 12px 0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.3);
    z-index: 100;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 60s linear infinite;
    color: var(--highlight);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-shadow: 0 0 5px var(--highlight);
    will-change: transform;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.active-bg-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,180,255,0.2) 0%, transparent 70%);
    animation: pulse 10s infinite alternate;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .menu-bar {
        flex-wrap: wrap;
        margin: 30px 0;
    }
    
    .menu-item {
        margin: 5px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .main-title {
        font-size: 2rem;
        margin: 40px 0 30px;
    }
    
    .timer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timer-title {
        font-size: 1.3rem;
    }
    
    .timer-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .timer-grid {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
}