* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #c41e3a;
    --primary-green: #165b33;
    --gold: #ffd700;
    --light-gold: #fff5cc;
    --dark-bg: #0f1419;
    --card-bg: #1a1f2e;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --gradient-start: #c41e3a;
    --gradient-end: #e74c3c;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Snow Animation */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    opacity: 0.8;
    animation: fall linear infinite;
    user-select: none;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-red), var(--gradient-end));
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px var(--shadow);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.header-content {
    position: relative;
    z-index: 1;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--light-gold);
    font-weight: 300;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Features */
.features {
    margin-bottom: 5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.3);
    border-color: var(--primary-red);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Downloads Section */
.downloads {
    margin-bottom: 5rem;
}

.downloads-info {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.download-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red), var(--gold));
}

.download-card.production::before {
    background: linear-gradient(90deg, var(--primary-green), var(--gold));
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow);
}

.download-card.production:hover {
    border-color: var(--primary-green);
}

.download-card.test:hover {
    border-color: var(--primary-red);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.test-badge {
    background: var(--primary-red);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-features {
    list-style: none;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.card-features li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.version {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
}

.size {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.downloads-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--primary-green), #1e7e34);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 91, 51, 0.4);
}

.download-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(22, 91, 51, 0.6);
}

.test-btn {
    background: linear-gradient(135deg, var(--primary-red), var(--gradient-end));
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.test-btn:hover {
    box-shadow: 0 6px 25px rgba(196, 30, 58, 0.6);
}

.button-icon {
    font-size: 1.5rem;
}

/* Installation Section */
.installation {
    margin-bottom: 5rem;
}

.steps {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateX(10px);
}

.step-number {
    min-width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.step-content h3 {
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Requirements Section */
.requirements {
    margin-bottom: 5rem;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-red);
}

.req-icon {
    font-size: 2rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 5rem;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-gold);
    text-decoration: underline;
}

.separator {
    color: var(--text-secondary);
}

.footer-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .download-cards {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        gap: 1rem;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .description {
        font-size: 1rem;
    }

    .download-button {
        font-size: 1rem;
        padding: 1rem;
    }
}


/* Language Switcher - Toggle Style */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(200, 0, 0, 0.1);
}

.lang-label {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    padding: 4px 8px;
    border-radius: 8px;
}

.lang-label:hover {
    background: rgba(200, 0, 0, 0.05);
}

.lang-label.active {
    color: #c80000;
    transform: scale(1.15);
    font-weight: 800;
}

/* Modern Animated Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 34px;
    margin: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, #ff4444, #c80000);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 34px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(200, 0, 0, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Animated background wave effect */
.slider::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: wave 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes wave {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    50% {
        transform: translate(10px, 10px) scale(1.2);
        opacity: 0.5;
    }
}

.slider:hover::after {
    opacity: 1;
}

/* Toggle knob with flag icon */
.slider-icon {
    position: absolute;
    height: 28px;
    width: 28px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 50%;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
}

/* Checked state - English */
input:checked + .slider {
    background: linear-gradient(145deg, #4a90e2, #2563eb);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(37, 99, 235, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1);
}

input:checked + .slider .slider-icon {
    transform: translateX(36px) rotate(360deg);
    box-shadow: 
        0 4px 10px rgba(37, 99, 235, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Hover effects with glow */
.slider:hover {
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(200, 0, 0, 0.4),
        0 0 25px rgba(200, 0, 0, 0.25);
    transform: scale(1.03);
}

input:checked + .slider:hover {
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(37, 99, 235, 0.4),
        0 0 25px rgba(37, 99, 235, 0.25);
}

/* Active (clicking) effect - bounce */
.switch:active .slider-icon {
    width: 32px;
    animation: bounce 0.3s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
}

input:checked + .slider:active .slider-icon {
    animation: bounce-checked 0.3s ease;
}

@keyframes bounce-checked {
    0%, 100% {
        transform: translateX(36px) rotate(360deg) scale(1);
    }
    50% {
        transform: translateX(36px) rotate(360deg) scale(0.95);
    }
}

/* Focus effect for accessibility */
.switch input:focus + .slider {
    outline: 3px solid rgba(74, 144, 226, 0.5);
    outline-offset: 3px;
}

/* Pulse animation on hover */
@keyframes pulse {
    0%, 100% {
        box-shadow: 
            inset 0 2px 4px rgba(0, 0, 0, 0.2),
            0 4px 12px rgba(200, 0, 0, 0.3),
            0 0 0 2px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            inset 0 2px 4px rgba(0, 0, 0, 0.2),
            0 4px 16px rgba(200, 0, 0, 0.5),
            0 0 0 3px rgba(255, 255, 255, 0.2);
    }
}

.slider:hover {
    animation: pulse 2s ease-in-out infinite;
}

input:checked + .slider:hover {
    animation: pulse-blue 2s ease-in-out infinite;
}

@keyframes pulse-blue {
    0%, 100% {
        box-shadow: 
            inset 0 2px 4px rgba(0, 0, 0, 0.2),
            0 4px 12px rgba(37, 99, 235, 0.3),
            0 0 0 2px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            inset 0 2px 4px rgba(0, 0, 0, 0.2),
            0 4px 16px rgba(37, 99, 235, 0.5),
            0 0 0 3px rgba(255, 255, 255, 0.2);
    }
}
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 10px 16px;
        gap: 10px;
    }
    
    .lang-label {
        font-size: 12px;
    }
    
    .switch {
        width: 60px;
        height: 30px;
    }
    
    .slider:before {
        height: 24px;
        width: 24px;
        left: 3px;
        bottom: 3px;
        font-size: 12px;
    }
    
    input:checked + .slider:before {
        transform: translateX(30px) rotate(360deg);
    }
}
