@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ysabeau+SC:wght@1..1000&display=swap');

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

body {
    font-family: 'Geologica', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    overflow-x: hidden;
}

body > * {
    padding-left: 16.66%; 
    padding-right: 16.66%;
    box-sizing: border-box;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: "Ysabeau SC", sans-serif;
    font-weight: 700;
}

/* Стили шапки */
header {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 40px;
}

.header {
    display: flex;
    align-items: center;
    font-family: "Ysabeau SC", sans-serif;
    margin: 0;
    font-weight: 700;
    font-size: 2.7rem;
    color: #f0f0f0;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: inherit;
}

.logo {
    height: 20px;
    transform: scale(2.1);
    margin-right: 40px;
    transition: transform 0.3s ease;
    height: 50px;
    margin-right: 30px;
}

.header:hover .logo {
    transform: rotate(-5deg) scale(2.05);
}

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

.nav-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    margin-left: 1.5rem;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    border-radius: 4px;
    bottom: 0;
    left: 0;
    background: linear-gradient(270deg, #f7345d, #fd56cc);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #f7f7f7;
}

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

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.header-animation {
  animation: slideIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  opacity: 0;
}

/* Герой секция */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(250, 68, 144, 0.1) 0%, rgba(30, 30, 30, 0) 70%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #f7345d, #fd56cc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 5s infinite alternate;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #b0b0b0;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #f7345d, #fd56cc);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(15px);
}

.cta-button:hover {
    transform: translateY(10px);
    box-shadow: 0 8px 25px rgba(249, 67, 142, 0.4);
}

/* О сервере */
.about {
    background: rgba(25, 25, 25, 0.7);
    border-radius: 20px;
    padding: 4rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #f7f7f7;
    text-align: center;
    position: relative;
    z-index: 1;
    padding-bottom: 0.3rem;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(270deg, #f7345d, #fd56cc);
    border-radius: 4px;
}

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

.about-text {
    flex: 1;
    z-index: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    line-height: 1.8;
    z-index: 1;
}

.about-image img {
    flex: 1;
    border-radius: 15px;
    overflow: visible;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Квадраты */
.rotating-squares {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.square {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(55, 55, 55, 0.15);
    transform-origin: center;
    border-radius: 15px;
}

.sq1 {
    width: 1000px;
    height: 1000px;
    animation: rotateSquare 160s linear infinite;
}

.sq2 {
    width: 800px;
    height: 800px;
    animation: rotateSquare 140s linear infinite;
}

.sq3 {
    width: 600px;
    height: 600px;
    animation: rotateSquare 120s linear infinite;
}

.sq4 {
    width: 400px;
    height: 400px;
    animation: rotateSquare 100s linear infinite;
}

.sq5 {
    width: 200px;
    height: 200px;
    animation: rotateSquare 80s linear infinite;
}

@keyframes rotateSquare {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

#features {
    padding: 5rem 0;
    position: relative;
    overflow: visible;
}

#features:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(80, 20, 120, 0.1) 0%, rgba(30, 30, 30, 0) 70%);
    z-index: -1;
}

.features-container h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #f7f7f7;
    text-align: center;
    position: relative;
    z-index: 1;
    padding-bottom: 0.3rem;
}

.features-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(270deg, #f7345d, #fd56cc);
    border-radius: 4px;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(35, 35, 35, 0.7);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(253, 86, 204, 0.1) 0%, rgba(247, 52, 93, 0.05) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(253, 86, 204, 0.3);
}

.feature-card:hover:before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fd56cc;
    background: rgba(253, 86, 204, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: rgba(253, 86, 204, 0.2);
    box-shadow: 0 0 20px rgba(253, 86, 204, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #f0f0f0;
}

.feature-card p {
    color: #b0b0b0;
    font-size: 1rem;
}

/* Призыв к действию */
.join {
    position: relative;
    overflow: hidden;
    background: linear-gradient(0deg, rgb(28, 28, 28) 0%, rgb(28, 28, 28) 100%);
    text-align: center;
    padding: 150px 0; /* Увеличиваем высоту секции */
}

.join:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at left top, rgba(253, 86, 204, 0.08) 0%, transparent 70%);
    z-index: 1;
}

.join:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at right bottom, rgba(80, 20, 120, 0.08) 0%, transparent 70%);
    z-index: 1;
}

.join .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px; /* Добавляем отступы для контейнера */
}

.join h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #f7345d, #fd56cc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.join p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: #b0b0b0;
    padding-bottom: 15px;
}

.join .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1.1rem 2.8rem;
    font-size: 1.3rem;
    transition: all 0.4s ease;
    box-shadow: 0 5px 25px rgba(247, 52, 93, 0.3);
}

.join .cta-button:hover {
    box-shadow: 0 12px 30px rgba(249, 67, 142, 0.5);
    letter-spacing: 1.5px;
    transform: scale(1.02);
}

.join .cta-button i {
    font-size: 1.6rem;
    transition: transform 0.4s ease;
}

.join .cta-button:hover i {
    transform: scale(1.2);
}

/* Футер */
footer {
    background: rgba(20, 20, 20, 0.95);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.footer-content h3 {
    font-family: 'Press Start 2P', cursive;
    font-weight: 400;
    font-style: normal;
    animation: splash-animation 0.5s infinite linear;
    color: #f93e7d;
}

@keyframes splash-animation {
    0%, 100% {
        transform: scale(1.0);
    }
    50% {
        transform: scale(1.02);
    }
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f7345d, #fd56cc);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: white;
}

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

.copyright {
    margin-top: 2rem;
    color: #444;
    font-size: 0.9rem;
}

/* Анимации */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.animated {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s !important; }
.delay-2 { transition-delay: 0.4s !important; }
.delay-3 { transition-delay: 0.6s !important; }

/* ================== */
/* МЕДИА-ЗАПРОСЫ */
/* ================== */

/* Для планшетов (768px и меньше) */
@media (max-width: 768px) {
    body > * {
        padding-left: 8%;
        padding-right: 8%;
    }
    
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
    }
    
    .header {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .logo {
        height: 40px;
        margin-right: 20px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    section {
        padding: 3rem 0;
    }
    
    .about {
        padding: 2rem;
    }
}

/* Для мобильных устройств (480px и меньше) */
@media (max-width: 480px) {
    body > * {
        padding-left: 5%;
        padding-right: 5%;
    }
    
    /* Бургер-меню */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(30, 30, 30, 0.95);
        padding: 1rem 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
        padding: 0.8rem;
    }
    
    .burger-menu {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 5%;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 101;
    }
    
    .burger-menu span {
        display: block;
        height: 3px;
        width: 100%;
        background: #f0f0f0;
        border-radius: 3px;
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about h2, 
    .features-container h2,
    .join h2 {
        font-size: 2.2rem;
    }
    
    .about-text p {
        font-size: 1.1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .join p {
        font-size: 1.1rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Для очень маленьких экранов (360px и меньше) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .about h2, 
    .features-container h2,
    .join h2 {
        font-size: 1.8rem;
    }
    
    .header {
        font-size: 1.7rem;
    }
    
    .logo {
        height: 35px;
    }
} 