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

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

/* Russian font */
html[lang="ru"] body {
    font-family: 'Cormorant SC', 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 SC', serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f5dce6;
    text-shadow: 0 0 10px rgba(255, 150, 180, 0.3);
}

/* Lineage II brand text styling */
.l2-brand {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-weight: 700;
    color: #ffb8d0;
    letter-spacing: 0.08em;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(255, 126, 179, 0.3);
}

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

a:hover {
    color: #ffb8d0;
}

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(13, 10, 20, 0.7);
}

/* Loading/Unfreezing Animation Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d0a14;
    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(255, 183, 197, 0.15), rgba(200, 150, 180, 0.1));
    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;
}

/* Main logo (loading screen) */
.logo {
    max-width: 450px;
    width: 90%;
    filter: drop-shadow(0 0 25px rgba(255, 126, 179, 0.5));
}

.loading-text {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
    font-size: 1.2rem;
    color: #e8d0dc;
    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(13, 10, 20, 0.85);
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 150, 180, 0.08);
}

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

.lang-switch {
    background: none;
    border: 1px solid rgba(232, 208, 220, 0.3);
    color: #e8d0dc;
    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: #ffb8d0;
    color: #ffb8d0;
}

.lang-switch.active {
    background-color: rgba(255, 150, 180, 0.15);
    border-color: #ffb8d0;
    color: #ffb8d0;
}

/* Header logo */
.logo-small-img {
    height: 35px;
    filter: drop-shadow(0 0 8px rgba(255, 126, 179, 0.3));
}

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: linear-gradient(to right, #ff7eb3, #ffb8d0);
    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;
    background-attachment: fixed;
    position: relative;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    animation: glow 2s infinite alternate;
    background: linear-gradient(135deg, #f5dce6, #ffb8d0, #f5dce6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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: linear-gradient(135deg, rgba(255, 126, 179, 0.85), rgba(200, 80, 130, 0.85));
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-light 2s infinite alternate;
    border: 1px solid rgba(255, 184, 208, 0.3);
}

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 8px rgba(255, 126, 179, 0.4);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 126, 179, 0.7);
    }
}

.btn-download {
    background: linear-gradient(135deg, #2a7d4f, #35a065) !important;
    border: 1px solid rgba(53, 160, 101, 0.5) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.btn-download:hover {
    background: linear-gradient(135deg, #35a065, #40b876) !important;
    border-color: rgba(64, 184, 118, 0.6) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #c85082, #ff7eb3, #c85082);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    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 SC', serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 126, 179, 0.3);
    color: #fff;
}

.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.3), rgba(255, 255, 255, 0));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

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

/* Server Section */
.server-section {
    text-align: center;
    padding: 4rem 0;
}

.server-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #f5dce6, #ffb8d0, #f5dce6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.server-card {
    flex: 1;
    max-width: 280px;
    background: rgba(20, 15, 30, 0.8);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 150, 180, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.server-card:hover {
    border-color: rgba(255, 150, 180, 0.2);
    box-shadow: 0 8px 30px rgba(255, 126, 179, 0.08);
}

.server-card-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.server-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(232, 208, 220, 0.5);
    margin-bottom: 0.5rem;
}

.server-card p {
    font-size: 1.1rem;
    color: #ffb8d0;
    font-weight: 600;
}

.server-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #7289DA) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.btn-discord:hover {
    background: linear-gradient(135deg, #6873F5, #8299E0) !important;
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.3) !important;
}

/* Footer Styles */
footer {
    background-color: rgba(13, 10, 20, 0.95);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 150, 180, 0.06);
}

.footer-minimal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

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

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

.copyright {
    font-size: 0.8rem;
    color: rgba(232, 208, 220, 0.3);
}

/* Update Section */
.update-section {
    padding: 4rem 0;
    background: rgba(13, 10, 20, 0.6);
}

.update-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #f5dce6, #ffb8d0, #f5dce6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.update-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
}

.update-card {
    background: rgba(20, 15, 30, 0.85);
    padding: 1.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 150, 180, 0.06);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.update-card:hover {
    border-color: rgba(255, 150, 180, 0.18);
    box-shadow: 0 8px 30px rgba(255, 126, 179, 0.06);
}

.update-card-main {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(30, 15, 35, 0.9), rgba(20, 15, 30, 0.9));
    border-color: rgba(255, 126, 179, 0.15);
    padding: 2.2rem;
}

.update-card-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff7eb3, #c85082);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
}

.update-card h3 {
    font-size: 1.2rem;
    color: #ffb8d0;
    margin-bottom: 0.5rem;
}

.update-card-main h3 {
    font-size: 1.5rem;
}

.update-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(232, 208, 220, 0.7);
}

.update-card-main p {
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .update-grid {
        grid-template-columns: 1fr;
    }

    .update-card-main {
        grid-column: auto;
    }
}

/* Sakura Petal Particles */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(255, 184, 208, 0.9), rgba(255, 126, 179, 0.3));
    border-radius: 50% 0 50% 50%;
    pointer-events: none;
}

/* Scroll reveal */
.server-card,
.update-card,
h2 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.server-card.revealed,
.update-card.revealed,
h2.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Ice crack effect */
.ice-crack {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 184, 208, 0.6), transparent);
    transform-origin: left center;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Animations */
@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 150, 180, 0.2);
        filter: brightness(1);
    }
    to {
        text-shadow: 0 0 25px rgba(255, 150, 180, 0.5);
        filter: brightness(1.05);
    }
}

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

/* Media Queries */
@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;
    }

    .server-grid {
        flex-direction: column;
        align-items: center;
    }

    .server-card {
        max-width: 100%;
        width: 100%;
    }

    .server-cta {
        flex-direction: column;
        align-items: center;
    }

    .footer-minimal {
        flex-direction: column;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-title {
        font-size: 2.5rem;
    }

    .logo-sub {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}
