/* Reset and Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --highlight: #e94560;
    --grass: #2d5a27;
    --grass-light: #4a7c43;
    --white: #ffffff;
    --gray-light: #f0f0f0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--grass) 0%, var(--grass-light) 50%, var(--grass) 100%);
    color: var(--white);
    overflow-x: hidden;
    position: relative;
}

/* Background Pattern - Field Lines */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.1;
    background-image:
        linear-gradient(var(--white) 2px, transparent 2px),
        linear-gradient(90deg, var(--white) 2px, transparent 2px);
    background-size: 100px 100px;
    background-position: center center;
}

.background-pattern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 3px solid var(--white);
    border-radius: 50%;
    opacity: 0.3;
}

.background-pattern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 4px;
    background: var(--white);
    opacity: 0.2;
}

/* Container */
.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.lang-btn:hover {
    opacity: 1;
}

.lang-btn.active {
    background: var(--white);
    color: var(--grass);
    opacity: 1;
}

/* Soccer Ball */
.ball-container {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.soccer-ball {
    font-size: 6rem;
    line-height: 1;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.ball-shadow {
    width: 80px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    margin: 0 auto;
    animation: shadow 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

@keyframes shadow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(0.6);
        opacity: 0.2;
    }
}

/* Text Content */
.text-content {
    animation: fadeIn 0.5s ease;
}

.text-content.hidden {
    display: none;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Info Box */
.info-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-box .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.info-box p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.thanks {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 1.5rem;
}

/* Progress Bar */
.progress-container {
    margin-top: 2.5rem;
}

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

.progress-fill {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, var(--white), rgba(255, 255, 255, 0.7));
    border-radius: 4px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 30%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 30%;
    }
}

.progress-text {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 600;
}

.progress-text.hidden {
    display: none;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-hint {
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-hint span.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .soccer-ball {
        font-size: 5rem;
    }

    .lang-switcher {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 1.5rem;
        justify-content: center;
    }

    .info-box {
        padding: 1.25rem;
    }
}

@media (max-width: 380px) {
    h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .soccer-ball {
        font-size: 4rem;
    }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    }

    .background-pattern::before,
    .background-pattern::after {
        opacity: 0.15;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .soccer-ball {
        animation: none;
    }

    .ball-shadow {
        animation: none;
    }

    .progress-fill {
        animation: none;
        width: 50%;
    }
}
