@import url('font.css');

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

body, html {
    font-family: 'Inter Tight', sans-serif;
    overflow: hidden;
    background: #fffefa;
    color: #151515;
    font-weight: 300;
}
.bg100{
  width: 180vw;
   height: 200vh;
   position: absolute;
   background: radial-gradient(circle,rgba(253, 180, 103, 1) 0%, rgba(248, 207, 128, 1) 20%, rgba(248, 207, 128,0) 40%);
   z-index: 30; 
   left: -100vw;
   top: -100vh;
}
.bg200{
  width: 180vw;
   height: 200vh;
   position: absolute;
   background: radial-gradient(circle,rgba(190, 202, 235, 1) 0%, rgba(219, 227, 248, 1) 20%, rgba(219, 227, 248,0) 40%);
   z-index: 20; 
   right: -100vw;
   top: -100vh;
}
.hidden_overflow {
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 40;
}

/* Rotating seconds circle around the entire screen */
.rotating-seconds-circle {
    position: absolute;
    top: 2%;
    left: 50%;
    width: 120vmax;
    height: 120vmax;
    transform: translate(-60%, 10%);
    z-index: 1;
    pointer-events: none;
    transition: transform 1s ease-out;
    @media screen and (min-width: 800px) {
        top: 6%;
    }
    @media screen and (min-width: 1240px) {
        top: 3%;
    }
}

.seconds-number-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.bg-second-number {
    position: absolute;
    font-size: 4rem;
    font-weight: 600;
    color: rgba(0, 0, 0, .2);
    transform-origin: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.bg-second-number.active {
    color: rgba(25,25,25, 1);
    font-size: 6rem;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    margin-top: -0.3em;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    z-index: 10;
padding: 15vh 0 5vh 0;
    @media screen and (min-width: 1024px) {
        align-items: center;
    }
}

.count-block {
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 0 40px;
}

/* Header area with time left text */
.head-area {
    margin-bottom: 60px;
    text-align: center;
}

    p{
    margin: 0.5rem 0;
    font-size: 16px;
    color: rgba(30,30,30, 1);
    font-weight: 300;
     }

.time-left-txt {

    margin-bottom: 1rem;

}

.down-op {
    color: #000;
    font-weight: 400;
}

/* Main countdown area */
.middle-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

/* mercando Logo with clock icon */
.mercando-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    width: 100%;
   img{
    width: 300px;
    max-width: 60vw;
    height: auto;
    margin: 2rem auto;
   }
}


.clock-icon::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 12px;
    background: #000;
    top: 12px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    transform-origin: bottom;
}

.mercando-text {
    font-size: 48px;
    font-weight: 700;
    color: black;
    letter-spacing: 3px;
}

/* Countdown numbers */
.countdown-numbers {
    display: flex;
    gap: 40px;
    align-items: center;
    margin: 0 auto;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-size: 80px;
    font-weight: 600;
    color: black;
    line-height: 1;
    margin-bottom: 5px;
    font-family: 'Inter Tight', sans-serif;
    //text-shadow: 0 0 20px rgba(30,30,30, 0.1);
}

.countdown-label {
    font-size: 12px;
    color: #000;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 2px;
}

/* Welcome section */
.welcome-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px auto;
    p{
        font-size: 0.9rem;
    }
}

h2 {
    font-size: 48px;
    color: black;
    margin-bottom: 20px;
    font-weight: 600;
}



/* Mobile responsive */
@media (max-width: 1440px) {
    .bg-second-number {
        font-size: 3rem;
    }
    
    .bg-second-number.active {
        font-size: 5rem;
    }
}

@media (max-width: 1240px) {
    .bg-second-number {
        font-size: 2.5rem;
    }
    
    .bg-second-number.active {
        font-size: 4rem;
    }
}
@media (max-width: 968px) {
    .middle-area {
        flex-direction: column;
        gap: 40px;
    }
    .countdown-numbers {
        gap: 25px;
    }
    .countdown-number {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    
    .countdown-numbers {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .countdown-number {
        font-size: 48px;
    }
    
    .countdown-label {
        font-size: 10px;
    }   
    .count-block {
        padding: 0 20px;
    }
    
    .bg-second-number {
        font-size: 2rem;
    }
    
    .bg-second-number.active {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .countdown-numbers {
        gap: 15px;
    }
    
    .countdown-number {
        font-size: 36px;
    }
    
    .countdown-label {
        font-size: 10px;
    }
    .welcome-section h2 {
        font-size: 32px;
    }    
    .rotating-seconds-circle {
        width: 150vmax;
        height: 150vmax;
    }
}

/* Subtle animations */
@keyframes glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.countdown-number {
    animation: glow 3s ease-in-out infinite;
}

.countdown-item:nth-child(1) .countdown-number { animation-delay: 0s; }
.countdown-item:nth-child(2) .countdown-number { animation-delay: 0.5s; }
.countdown-item:nth-child(3) .countdown-number { animation-delay: 1s; }
.countdown-item:nth-child(4) .countdown-number { animation-delay: 1.5s; }

.clock-icon::before {
    animation: clockTick 1s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes clockTick {
    0% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(6deg); }
    100% { transform: translateX(-50%) rotate(0deg); }
}