/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a2847 0%, #405074 50%, #2a3d61 100%);
    color: white;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animated grid background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.15;
    z-index: 1;
}

.grid {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Main container */
.container {
    text-align: center;
    z-index: 10;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    animation: fadeIn 1s ease-out;
}

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

/* Logo styles */
.logo-container {
    margin-bottom: 2rem;
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.parklivemap-logo {
    cursor: pointer;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.parklivemap-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(0,0,0,0.4));
}

.parklivemap-logo:active {
    transform: scale(0.98);
}

/* Morph circle animation for logo */
.morph-circle {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center center;
}

.morph-circle.animating {
    animation: morphPulse 0.6s ease-out;
}

@keyframes morphPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Title and subtitle */
.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}

.dots {
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; opacity: 1; }
    40% { content: '..'; opacity: 1; }
    60% { content: '...'; opacity: 1; }
    80%, 100% { content: '...'; opacity: 0.3; }
}

/* Description */
.description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

/* Features */
.features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.feature:nth-child(1) { animation-delay: 0.2s; }
.feature:nth-child(2) { animation-delay: 0.4s; }
.feature:nth-child(3) { animation-delay: 0.6s; }

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

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.feature-icon:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.feature-icon svg {
    color: rgba(255,255,255,0.9);
}

.feature span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* Progress bar */
.progress-container {
    margin-top: 3rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #C00000 0%, #ff4444 100%);
    width: 0%;
    border-radius: 2px;
    animation: progressAnimation 3s ease-out forwards;
    box-shadow: 0 0 10px rgba(192,0,0,0.5);
}

@keyframes progressAnimation {
    0% { width: 0%; }
    100% { width: 75%; }
}

.progress-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Floating particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.particle:nth-child(1) {
    width: 4px; height: 4px;
    left: 10%; top: 20%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 6px; height: 6px;
    left: 70%; top: 40%;
    animation-duration: 30s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 3px; height: 3px;
    left: 30%; top: 60%;
    animation-duration: 28s;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 5px; height: 5px;
    left: 90%; top: 10%;
    animation-duration: 22s;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    width: 4px; height: 4px;
    left: 50%; top: 80%;
    animation-duration: 26s;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .description {
        font-size: 1rem;
    }

    .features {
        gap: 2rem;
    }

    .parklivemap-logo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .features {
        flex-direction: column;
        gap: 1.5rem;
    }

    .parklivemap-logo {
        width: 120px;
        height: 120px;
    }
}