@font-face {
    font-family: 'a_RubricaCn';
    src: url('fonts/a_RubricaCn.woff2') format('woff2'),
         url('fonts/a_RubricaCn.woff') format('woff'),
         url('fonts/a_RubricaCn.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Trade Winds', cursive, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Лава-фон */
.lava-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Затемнение фона */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
    pointer-events: none;
}

.lava-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    animation: float 20s infinite ease-in-out;
}

/* Анимации для частиц */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -80px) scale(1.1);
    }
    50% {
        transform: translate(-30px, -120px) scale(0.9);
    }
    75% {
        transform: translate(80px, -50px) scale(1.05);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-60px, 90px) scale(1.15);
    }
    66% {
        transform: translate(70px, -100px) scale(0.85);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    20% {
        transform: translate(40px, 60px) scale(1.2);
    }
    40% {
        transform: translate(-50px, -80px) scale(0.8);
    }
    60% {
        transform: translate(90px, 40px) scale(1.1);
    }
    80% {
        transform: translate(-30px, 100px) scale(0.95);
    }
}

@keyframes float4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-80px, -60px) scale(0.9);
    }
    50% {
        transform: translate(100px, 80px) scale(1.2);
    }
    75% {
        transform: translate(-40px, 120px) scale(1.05);
    }
}

/* Основной контейнер */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 40px 60px;
}

/* Логотип */
.logo-container {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
    width: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo {
    max-width: 1360px;
    width: 100%;
    height: auto;
}

.logo-text {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: 8px;
    color: #ffffff;
}

.logo-subtitle {
    font-size: 72px;
    font-weight: normal;
    letter-spacing: 6px;
    color: #ffffff;
    font-family: 'Trade Winds', cursive, sans-serif;
    text-transform: uppercase;
    margin: 0;
}

.logo-community {
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 2px;
    color: #ffffff;
    font-family: 'Croissant One', cursive, sans-serif;
    text-transform: lowercase;
    margin: 0;
    margin-top: -5px;
    white-space: nowrap;
}

/* Нижняя секция */
.bottom-section {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
    padding: 0 20px;
}

/* Секции */
.social-section,
.servers-section {
    flex: 1;
    max-width: 500px;
    animation: fadeInUp 1s ease-out;
    text-align: center;
}

.panel {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 40px 30px;
}

.section-title {
    font-size: 36px;
    font-weight: normal;
    letter-spacing: 4px;
    margin-bottom: 32px;
    color: #ffffff;
    text-transform: uppercase;
    font-family: 'Trade Winds', cursive, sans-serif;
    text-align: center;
}

/* Списки */
.social-list,
.servers-list {
    list-style: none;
}

.social-list li,
.servers-list li {
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 32px;
    font-weight: normal;
    transition: all 0.3s ease;
    padding: 16px 24px;
    font-family: 'Croissant One', cursive, sans-serif;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    width: 100%;
}

.social-link:hover {
    color: #cccccc;
    transform: translateX(5px);
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
}

.social-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.server-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: #ffffff;
    padding: 16px 32px;
    font-size: 32px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Croissant One', cursive, sans-serif;
    text-align: center;
    min-width: 200px;
    width: 100%;
}

.server-item:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #000000;
    border: 1px solid #ffffff;
    padding: 60px 80px;
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.4s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'Croissant One', cursive, sans-serif;
}

.modal-close:hover {
    color: #cccccc;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 40px;
    line-height: 1.2;
    color: #ffffff;
    font-family: 'Croissant One', cursive, sans-serif;
}

.download-btn {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Croissant One', cursive, sans-serif;
    text-transform: uppercase;
}

.download-btn:hover {
    background-color: #cccccc;
    transform: scale(1.05);
}

.download-btn:active {
    transform: scale(0.98);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Адаптивность */
@media (max-width: 1024px) {
    .bottom-section {
        max-width: 100%;
        gap: 40px;
    }

    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px 40px;
    }

    .logo {
        max-width: 850px;
    }

    .logo-text {
        font-size: 48px;
        letter-spacing: 4px;
    }

    .bottom-section {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        padding: 0 20px;
    }
    
    .panel {
        padding: 30px 20px;
    }

    .social-section,
    .servers-section {
        max-width: 100%;
        width: 100%;
    }

    .section-title {
        font-size: 24px;
        text-align: center;
    }

    .social-link {
        font-size: 24px;
    }

    .server-item {
        text-align: center;
        font-size: 24px;
    }

    .modal-content {
        padding: 40px 30px;
    }

    .modal-title {
        font-size: 28px;
    }

    .download-btn {
        padding: 14px 36px;
        font-size: 16px;
    }

    .lava-blob {
        filter: blur(50px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px 30px;
    }

    .logo {
        max-width: 612px;
    }

    .logo-text {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 19px;
        margin-bottom: 24px;
    }

    .social-link {
        font-size: 20px;
        gap: 12px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .server-item {
        font-size: 20px;
        padding: 12px 24px;
    }
    
    .logo-subtitle {
        font-size: 48px;
    }
    
    .logo-community {
        font-size: 18px;
    }

    .modal-title {
        font-size: 24px;
    }

    .download-btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .bottom-section {
        gap: 40px;
    }
}

@media (max-width: 360px) {
    .section-title {
        font-size: 16px;
    }

    .social-link,
    .server-item {
        font-size: 18px;
    }
    
    .logo-subtitle {
        font-size: 42px;
    }
    
    .logo-community {
        font-size: 16px;
    }
}
