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

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --accent-warm: #f59e0b;
    --dark: #0a0a0f;
    --surface: #18181b;
    --text: #fafafa;
    --text-muted: rgba(255, 255, 255, 0.6);
    --glow: rgba(99, 102, 241, 0.4);
}

body {
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    background: var(--dark);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Animated gradient background */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(6, 182, 214, 0.1) 0%, transparent 50%),
        var(--dark);
    z-index: 0;
}

/* Aurora effect */
.aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(99, 102, 241, 0.03) 20%,
            rgba(139, 92, 246, 0.05) 40%,
            rgba(6, 182, 214, 0.03) 60%,
            transparent 100%);
    filter: blur(60px);
    animation: auroraMove 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes auroraMove {

    0%,
    100% {
        transform: translateX(-10%) skewX(-5deg);
        opacity: 0.6;
    }

    50% {
        transform: translateX(10%) skewX(5deg);
        opacity: 1;
    }
}

/* Stars - modern subtle */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: starPulse 3s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

@keyframes starPulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* Modern geometric mountains */
.mountains {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    z-index: 3;
}

.mountains svg {
    width: 100%;
    height: 100%;
}

/* Snowflakes - minimal */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.6rem;
    animation: snowFall linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes snowFall {
    0% {
        transform: translateY(-5vh) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(105vh) translateX(30px) rotate(360deg);
        opacity: 0;
    }
}

/* Main container */
.container {
    text-align: center;
    z-index: 10;
    padding: 2rem;
    max-width: 900px;
}

.event-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.5));
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {

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

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.event-name {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--secondary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Hiking Progress Path */
.hiking-progress-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
}

.hiking-svg {
    width: 100%;
    height: auto;
    max-height: 120px;
}

.hiking-path {
    stroke-dasharray: none;
}

.hiking-path-progress {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0.5s ease-out;
}

.path-marker {
    filter: drop-shadow(0 0 6px currentColor);
}

.path-label {
    font-size: 10px;
    fill: var(--text-muted);
    font-family: 'Outfit', sans-serif;
}

.hiker {
    transition: transform 0.3s ease-out;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.hiker-head {
    filter: drop-shadow(0 0 4px #ffd700);
}

/* Hiker walking animation */
@keyframes hikerWalk {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-2px) rotate(2deg);
    }
}

.hiker {
    animation: hikerWalk 0.6s ease-in-out infinite;
}

.progress-label {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.progress-label span {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Countdown - Modern card style */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    margin-bottom: 2rem;
}

.countdown-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    min-width: 100px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.countdown-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.countdown-item:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(99, 102, 241, 0.1);
}

.countdown-item:hover::after {
    opacity: 1;
}

.countdown-value {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    position: relative;
    z-index: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 0.75rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.countdown-separator {
    font-size: 3rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

/* Milliseconds - inline with other items */
.countdown-item-ms {
    border-color: rgba(6, 182, 214, 0.25);
    background: linear-gradient(145deg, rgba(6, 182, 214, 0.08) 0%, rgba(6, 182, 214, 0.02) 100%);
}

.countdown-item-ms .countdown-value {
    color: var(--accent);
}

/* Target date badge */
.target-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.target-date::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: datePulse 2s ease-in-out infinite;
}

@keyframes datePulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Celebration mode */
.celebrate .event-icon {
    animation: celebrateIcon 0.6s ease-in-out infinite;
}

@keyframes celebrateIcon {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.15) rotate(-10deg);
    }

    75% {
        transform: scale(1.15) rotate(10deg);
    }
}

.celebrate .countdown-value {
    background: linear-gradient(135deg, #ffd700, #ff6b6b, #4ecdc4, #a8e6cf, #ffd700);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowText 2s ease infinite;
}

@keyframes rainbowText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .countdown-container {
        gap: 0.75rem;
    }

    .countdown-item {
        min-width: 100px;
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }

    .countdown-separator {
        display: none;
    }

    .event-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .countdown-container {
        gap: 0.5rem;
    }

    .countdown-item {
        min-width: 75px;
        padding: 1.25rem 0.75rem;
        border-radius: 16px;
    }

    .countdown-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
}