:root {
    --primary-color: #ffffff;
    --accent-color: #e5b299;
    --text-color: #f8f9fa;
    --bg-dark: rgba(20, 20, 20, 0.7);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background: linear-gradient(135deg, #f0f8f7 0%, #e0f2ef 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 2rem 1rem 150px 1rem;
}

.container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 4rem;
    margin: auto;
    background: linear-gradient(135deg, #8bc4bb 0%, #1c5e51 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(28, 94, 81, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 900px;
    width: 90%;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    margin-bottom: 3rem;
}

.pre-title {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.names {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, #e5b299, #ffffff);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.date {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--primary-color);
    opacity: 0.9;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(229, 178, 153, 0.3);
}

.time {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 400;
}

.separator {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 -0.5rem;
    padding-bottom: 2rem;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

footer {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--primary-color);
    opacity: 0.8;
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .names {
        font-size: 3.5rem;
    }
    
    .countdown-wrapper {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .separator {
        display: none;
    }
    
    .countdown-item {
        min-width: calc(50% - 0.5rem);
        padding: 1rem;
    }
    
    .time {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
        margin: 2rem auto;
    }
    
    header {
        margin-bottom: 2rem;
    }
    
    .names {
        font-size: 2.2rem;
    }
    
    .pre-title {
        font-size: 1rem;
        letter-spacing: 3px;
    }
    
    .date {
        font-size: 1.2rem;
    }
    
    .countdown-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .countdown-item {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
        min-width: unset;
        padding: 0.8rem 0.2rem;
    }
    
    .time {
        font-size: 1.8rem;
    }
    
    .label {
        font-size: 0.7rem;
    }
    
    .robot-animation {
        width: 120px;
    }
}

#robot-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.robot-animation {
    position: absolute;
    bottom: 0;
    width: 240px; /* Restored to fit your GIF */
    height: auto;
    animation: walkBackAndForth 12s linear infinite;
}

@keyframes walkBackAndForth {
    0% { left: 1vw; transform: translateX(0%) scaleX(1); }
    49% { left: calc(100% - 1vw); transform: translateX(-100%) scaleX(1); }
    50% { left: calc(100% - 1vw); transform: translateX(-100%) scaleX(-1); }
    99% { left: 1vw; transform: translateX(0%) scaleX(-1); }
    100% { left: 1vw; transform: translateX(0%) scaleX(1); }
}

#flowers-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.flower {
    position: absolute;
    top: -50px;
    animation: fall linear forwards;
    opacity: 0.8;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}
