/* Base styles and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif;
    color: #e0caa0;
    background-color: #0a0e17;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('../images/bg-texture.svg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Применение русского шрифта при активном русском языке */
html[lang="ru"] body {
    font-family: 'Cormorant Garamond', serif;
}

html[lang="ru"] h1, 
html[lang="ru"] h2, 
html[lang="ru"] h3, 
html[lang="ru"] h4, 
html[lang="ru"] h5, 
html[lang="ru"] h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f0d9b0;
    text-shadow: 0 0 10px rgba(240, 217, 176, 0.3);
}

a {
    color: #e0caa0;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f0d9b0;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 5rem 0;
    position: relative;
}

section:nth-child(even) {
    background-color: rgba(10, 14, 23, 0.7);
}

/* Loading/Unfreezing Animation Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0e17;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.ice-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(214, 240, 255, 0.5), rgba(191, 228, 255, 0.5));
    z-index: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 1s ease;
}

.ice-layer.melting {
    opacity: 0;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

.logo-container {
    position: relative;
    z-index: 2;
    transform: scale(0.8);
    opacity: 0.7;
    transition: all 0.8s ease 0.3s;
}

.logo-container.revealed {
    transform: scale(1);
    opacity: 1;
}

.logo {
    max-width: 400px;
    filter: drop-shadow(0 0 20px rgba(240, 217, 176, 0.6));
}

.loading-text {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
    font-size: 1.2rem;
    color: #e0caa0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.loading-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Main Content Styles */
.content {
    transition: opacity 1s ease;
}

.content.hidden {
    opacity: 0;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 23, 0.8);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 2rem;
}

.lang-switch {
    background: none;
    border: 1px solid rgba(224, 202, 160, 0.3);
    color: #e0caa0;
    font-family: 'Cinzel', serif;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.lang-switch:hover {
    border-color: #e0caa0;
    color: #f0d9b0;
}

.lang-switch.active {
    background-color: rgba(224, 202, 160, 0.2);
    border-color: #e0caa0;
    color: #f0d9b0;
}

.logo-small img {
    height: 40px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e0caa0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    background-image: url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.7), rgba(10, 14, 23, 0.9));
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    animation: glow 2s infinite alternate;
}

.subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1rem;
}

.beta-badge {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 100, 50, 0.8);
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 0.3rem 1rem;
    border-radius: 3px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-light 2s infinite alternate;
}

html[lang="ru"] .beta-badge {
    font-size: 1rem;
    letter-spacing: 0.05em;
    padding: 0.4rem 1.2rem;
}

@keyframes pulse-light {
    from {
        box-shadow: 0 0 5px rgba(255, 100, 50, 0.5);
    }
    to {
        box-shadow: 0 0 15px rgba(255, 100, 50, 0.8);
    }
}

.btn-download {
    background-color: #2a7d4f;
    border: 1px solid #2a7d4f;
}

.btn-download:hover {
    background-color: #359060;
    border-color: #359060;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(to right, #a67c00, #e0caa0, #a67c00);
    color: #0a0e17;
    font-weight: 700;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Стили для русской версии кнопки */
html[lang="ru"] .btn {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    color: #0a0e17;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

/* About Section */
.about-section {
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text, .about-image {
    flex: 1;
}

.about-text p {
    margin-bottom: 1rem;
}

.server-features {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(14, 21, 35, 0.7);
    border-left: 3px solid #e0caa0;
    border-radius: 3px;
}

.server-features h3 {
    margin-bottom: 1rem;
    color: #f0d9b0;
    font-size: 1.3rem;
}

.server-features ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.server-features li {
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.server-features strong {
    color: #f0d9b0;
}

.thaw-img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Features Section */
.players-section {
    text-align: center;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.feature {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: rgba(14, 21, 35, 0.8);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon img {
    width: 60px;
    height: 60px;
}

/* World Map Section */
.world-section {
    text-align: center;
}

.world-map {
    position: relative;
    margin-top: 2rem;
}

.map-img {
    width: 100%;
    max-width: 900px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.map-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #e0caa0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.marker-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(224, 202, 160, 0.5);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.marker-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(10, 14, 23, 0.9);
    color: #e0caa0;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.map-marker:hover .marker-tooltip {
    opacity: 1;
}

/* Join Section */
.join-section {
    text-align: center;
    background-image: url('../images/join-bg.svg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.join-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.8), rgba(10, 14, 23, 0.95));
}

.join-section .container {
    position: relative;
    z-index: 1;
}

.countdown-intro {
    margin-bottom: 1rem;
}

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

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span:first-child {
    font-size: 3rem;
    font-weight: 700;
    color: #f0d9b0;
    background: linear-gradient(to bottom, rgba(14, 21, 35, 0.8), rgba(10, 14, 23, 0.8));
    min-width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signup-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(14, 21, 35, 0.8);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.signup-form h3 {
    margin-bottom: 1rem;
}

.signup-form p {
    margin-bottom: 1.5rem;
}

.signup-form form {
    display: flex;
    gap: 1rem;
}

.signup-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(224, 202, 160, 0.3);
    background-color: rgba(10, 14, 23, 0.8);
    color: #e0caa0;
    border-radius: 3px;
    font-family: inherit;
}

.signup-form input:focus {
    outline: none;
    border-color: #e0caa0;
}

/* Footer Styles */
footer {
    background-color: rgba(10, 14, 23, 0.9);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
}

.footer-links ul {
    display: flex;
    gap: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-icon:hover img {
    opacity: 1;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(224, 202, 160, 0.7);
}

/* Animations */
@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(240, 217, 176, 0.3);
    }
    to {
        text-shadow: 0 0 20px rgba(240, 217, 176, 0.7);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .features {
        gap: 1rem;
    }
    
    .countdown-item span:first-child {
        font-size: 2.5rem;
        min-width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .language-switcher {
        margin: 1rem 0;
        order: 2;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .countdown {
        flex-wrap: wrap;
    }
    
    .signup-form form {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo {
        max-width: 280px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .countdown-item span:first-child {
        font-size: 2rem;
        min-width: 60px;
        height: 60px;
    }
}
