/* ===== ОСНОВНЫЕ НАСТРОЙКИ ===== */
:root {
    --birch-light: #ffd7c2;
    --birch-medium: #ffb8a6;
    --birch-dark: #ff9b8a;
    --birch-gradient: linear-gradient(135deg, var(--birch-light), var(--birch-dark));
    --bg-dark: #1a0f0f;
    --text-light: #e0e0e0;
    --text-muted: #c0c0c0;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== МАЙНКРАФТ ФОН ===== */
.minecraft-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

/* Небо с градиентом заката */
.sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(180deg, #4a6f8a 0%, #7a9eb3 40%, #ffb56b 80%, #ff9b8a 100%);
}

/* Облака */
.clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    filter: blur(8px);
    animation: floatCloud 60s linear infinite;
}

.cloud1 {
    width: 300px;
    height: 100px;
    top: 15%;
    left: -300px;
    animation-duration: 80s;
}

.cloud2 {
    width: 400px;
    height: 130px;
    top: 30%;
    left: -400px;
    animation-duration: 100s;
    animation-delay: 10s;
}

.cloud3 {
    width: 250px;
    height: 80px;
    top: 50%;
    right: -250px;
    animation: floatCloudReverse 70s linear infinite;
}

@keyframes floatCloud {
    from { left: -400px; }
    to { left: 100%; }
}

@keyframes floatCloudReverse {
    from { right: -400px; }
    to { right: 100%; }
}

/* Слои блоков */
.block-layers {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.block-layer {
    position: relative;
    width: 100%;
    animation: layerMove 20s linear infinite;
}

.grass-layer { bottom: 25%; animation-duration: 30s; }
.dirt-layer { bottom: 12%; animation-duration: 35s; }
.stone-layer { bottom: 0; animation-duration: 40s; }

@keyframes layerMove {
    0% { transform: translateX(0); }
    50% { transform: translateX(-50px); }
    100% { transform: translateX(0); }
}

.block-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: -20px;
}

.minecraft-block {
    width: 100px;
    height: 100px;
    background-size: cover;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    box-shadow: 0 10px 0 rgba(0,0,0,0.3);
    transform: rotateX(10deg) rotateY(5deg);
    transition: transform 0.3s;
    animation: blockFloat 3s ease-in-out infinite;
}

.minecraft-block:hover {
    transform: rotateX(10deg) rotateY(5deg) scale(1.05);
}

@keyframes blockFloat {
    0%, 100% { transform: rotateX(10deg) rotateY(5deg) translateY(0); }
    50% { transform: rotateX(10deg) rotateY(5deg) translateY(-5px); }
}

/* Текстуры блоков (CSS-имитация) */
.grass-block {
    background: linear-gradient(135deg, #7c9c6e 0%, #5a7a4c 100%);
    position: relative;
    border: 2px solid #3a5a2c;
}

.grass-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(135deg, #8aae7a, #6a8e5a);
    border-bottom: 2px solid #3a5a2c;
}

.dirt-block {
    background: linear-gradient(135deg, #8b5e3c, #6b3e1c);
    border: 2px solid #4a2e0a;
}

.stone-block {
    background: linear-gradient(135deg, #8a8a8a, #6a6a6a);
    border: 2px solid #4a4a4a;
    position: relative;
}

.stone-block::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 20%;
    height: 20%;
    background: #aaa;
    transform: rotate(45deg);
}

.cobblestone-block {
    background: linear-gradient(135deg, #7a7a7a, #5a5a5a);
    border: 2px solid #3a3a3a;
    position: relative;
    overflow: hidden;
}

.cobblestone-block::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    height: 30%;
    background: #9a9a9a;
    transform: rotate(15deg);
    box-shadow: 25px 25px 0 #9a9a9a, 0 50px 0 #9a9a9a;
}

/* Частицы */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    bottom: 0;
    left: var(--left);
    width: var(--size);
    height: var(--size);
    background: rgba(255, 255, 200, 0.6);
    border-radius: 50%;
    animation: floatParticle 8s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(2px);
}

/* ===== ГРАДИЕНТЫ ===== */
.gradient-text {
    background: var(--birch-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ШАПКА ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 200, 0.2);
    margin-bottom: 3rem;
    animation: slideDown 1s ease-out;
}

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

.logo {
    font-family: 'Minecraft', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    background: var(--birch-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 155, 138, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 215, 200, 0.6)); }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--birch-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--birch-gradient);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--birch-dark);
}

.nav-link:hover::after {
    width: 100%;
}

.server-ip {
    background: rgba(255, 215, 200, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--birch-dark);
    font-family: 'Minecraft', sans-serif;
    font-size: 1.2rem;
    color: var(--birch-light);
    cursor: pointer;
    transition: all 0.3s;
    animation: pulse 2s infinite;
    backdrop-filter: blur(5px);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 155, 138, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 155, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 155, 138, 0); }
}

.server-ip:hover {
    background: rgba(255, 155, 138, 0.2);
    transform: scale(1.05);
}

/* ===== ГЕРОЙ ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin: 4rem 0;
}

.hero-content {
    flex: 1;
    animation: fadeInLeft 1.2s ease-out;
}

@keyframes fadeInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--birch-gradient);
    color: var(--bg-dark);
    box-shadow: 0 5px 15px rgba(255, 155, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 155, 138, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--birch-dark);
    color: var(--birch-light);
}

.btn-secondary:hover {
    background: rgba(255, 155, 138, 0.1);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    position: relative;
    animation: fadeInRight 1.2s ease-out;
}

@keyframes fadeInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 3D Куб */
.floating-icon {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    perspective: 1000px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeRotate 15s infinite linear;
}

@keyframes cubeRotate {
    from { transform: rotateX(0) rotateY(0); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 215, 200, 0.9);
    border: 2px solid var(--birch-dark);
    box-shadow: 0 0 20px rgba(255, 155, 138, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    backface-visibility: visible;
}

.front  { transform: translateZ(100px); background: rgba(255, 215, 200, 0.9); }
.back   { transform: rotateY(180deg) translateZ(100px); background: rgba(255, 200, 180, 0.9); }
.right  { transform: rotateY(90deg) translateZ(100px); background: rgba(255, 185, 160, 0.9); }
.left   { transform: rotateY(-90deg) translateZ(100px); background: rgba(255, 170, 140, 0.9); }
.top    { transform: rotateX(90deg) translateZ(100px); background: rgba(255, 155, 120, 0.9); }
.bottom { transform: rotateX(-90deg) translateZ(100px); background: rgba(255, 140, 100, 0.9); }

/* ===== ВЕРСИИ ===== */
.versions {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 200, 0.2);
    margin: 4rem 0;
    text-align: center;
    animation: fadeInUp 1.4s ease-out;
}

.versions-title {
    font-size: 1.8rem;
    color: var(--birch-light);
    margin-bottom: 1rem;
}

.version-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.version-tag {
    background: var(--birch-gradient);
    color: var(--bg-dark);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(255, 155, 138, 0.3);
}

/* ===== ОСОБЕННОСТИ ===== */
.features {
    margin: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

.feature-card {
    background: rgba(255, 215, 200, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 155, 138, 0.2);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--birch-dark);
    box-shadow: 0 20px 40px rgba(255, 155, 138, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent, rgba(255, 215, 200, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    from { transform: rotate(45deg) translateX(-100%); }
    to { transform: rotate(45deg) translateX(100%); }
}

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

.feature-title {
    font-size: 1.5rem;
    color: var(--birch-light);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== СТАТИСТИКА ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    animation: fadeInUp 1.6s ease-out;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 215, 200, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 155, 138, 0.2);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--birch-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===== ПОДВАЛ ===== */
.footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 215, 200, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.social-link {
    color: var(--birch-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: rgba(255, 215, 200, 0.05);
}

.social-link:hover {
    color: var(--birch-dark);
    transform: translateY(-3px);
    background: rgba(255, 155, 138, 0.1);
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .floating-icon {
        width: 200px;
        height: 200px;
    }
    
    .cube-face {
        width: 150px;
        height: 150px;
    }
    
    .front  { transform: translateZ(75px); }
    .back   { transform: rotateY(180deg) translateZ(75px); }
    .right  { transform: rotateY(90deg) translateZ(75px); }
    .left   { transform: rotateY(-90deg) translateZ(75px); }
    .top    { transform: rotateX(90deg) translateZ(75px); }
    .bottom { transform: rotateX(-90deg) translateZ(75px); }

    .block-row {
        transform: scale(0.7);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .version-tag {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}