/* Timer Section Styles */
.timer-section {
    background: linear-gradient(rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.92));
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.timer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../images/oe_ballot_bg.jpg') no-repeat center center;
    background-size: cover;
    /* background-position: bottom center; */
    opacity: 0.1;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.timer-section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    margin-bottom: 5rem;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.timer-section h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 6px;
    background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--accent-color),
        var(--primary-color)
    );
    border-radius: 3px;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 4vw, 5rem);
    margin-top: 2rem;
}

.timer-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.timer-circle {
    position: relative;
    width: clamp(100px, 18vw, 160px);
    height: clamp(100px, 18vw, 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timer-circle::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(
        from 0deg,
        #ea5547 0%,
        #68482f 50%,
        #fdc62c var(--progress),
        rgba(255, 255, 255, 0.1) var(--progress)
    );
    mask: linear-gradient(#fff 0 0) content-box,
          linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
                 linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

.timer-circle::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    opacity: 0.5;
    background: conic-gradient(
        from 0deg,
        #ea5547 0%,
        #68482f 50%,
        #fdc62c var(--progress),
        transparent var(--progress)
    );
    mask: linear-gradient(#fff 0 0) content-box,
          linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
                 linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    filter: blur(3px);
}

.timer-circle .number {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timer-item .label {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1rem;
}

/* Animation for number changes */
@keyframes flipNumber {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px);
        opacity: 0;
    }
    51% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.timer-item.flip .number {
    animation: flipNumber 0.3s ease-in-out;
}

/* Timer End Message */
.timer-end-message {
    margin-top: 3rem;
    font-size: 2rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .timer-section {
        padding: 5rem 0;
    }

    .timer-section h2 {
        margin-bottom: 4rem;
    }

    .countdown-timer {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .timer-item {
        flex: 0 0 calc(50% - 1.5rem);
    }

    .timer-circle {
        width: clamp(80px, 16vw, 120px);
        height: clamp(80px, 16vw, 120px);
    }

    .timer-circle .number {
        font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    }
}

@media (max-width: 480px) {
    .timer-section {
        padding: 4rem 0;
    }

    .countdown-timer {
        gap: 2rem;
    }

    .timer-item {
        flex: 0 0 calc(50% - 1rem);
    }
} 