:root {
    --bg-color: #0d1b2a;
    --text-color: #ffffff;
    --accent-start: #d9238b;
    --accent-end: #f15a56;
    --font-primary: 'Outfit', sans-serif;
}

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

html {
    overflow: hidden;
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100dvh;
    /* Dynamic Viewport Height for mobile browsers */
    width: 100vw;
    padding: 0;
    position: relative;
    overflow: hidden;
    overscroll-behavior: none;
    /* Prevent scroll bounce */
}

.container {
    text-align: center;
    z-index: 10;
    padding: 2vh 2vw;
    max-width: 1000px;
    width: 100%;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ... existing styles ... */

@media (max-width: 768px) {

    /* Slight adjustments but keeping responsive units */
    .logo-container {
        /* Even smaller logo on mobile if needed */
        width: 20vh;
        max-width: 200px;
    }

    .countdown {
        gap: 1vw;
    }
}

.container {
    text-align: center;
    z-index: 10;
    padding: 2vh 2vw;
    max-width: 1000px;
    width: 100%;
    /* Ensure container never exceeds viewport height minus padding */
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-container {
    /* Responsive size based on viewport height */
    width: 25vh;
    min-width: 150px;
    /* Ensure a minimum visible width */
    max-width: 250px;
    margin: 0 auto 2vh;
    animation: float 6s ease-in-out infinite;
    flex-shrink: 0;
    /* Prevent shrinking completely */
}

.logo-container img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(217, 35, 139, 0.3));
}

h1 {
    /* Responsive font size */
    font-size: min(3.5rem, 6vh);
    font-weight: 700;
    margin-bottom: 1vh;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    letter-spacing: -1px;
    line-height: 1.1;
}

p.subtitle {
    font-size: min(1.25rem, 2.5vh);
    margin-bottom: 4vh;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2vw;
    margin-bottom: 0;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.1s forwards;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2vh 2vw;
    border-radius: 16px;
    min-width: 100px;
    width: 12vw;
    max-width: 140px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 35, 139, 0.5);
    box-shadow: 0 10px 40px rgba(217, 35, 139, 0.2);
}

.number {
    font-size: min(2.5rem, 5vh);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5vh;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.label {
    font-size: min(0.8rem, 1.5vh);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

/* Background Animation */
.bg-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(217, 35, 139, 0.15) 0%, rgba(13, 27, 42, 0) 50%);
    z-index: 1;
    animation: rotate 20s linear infinite;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
/* Responsive adjustments handled by vh units above */