/* Основные стили для сайта SayanForce */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Фоновые изображения для игр */
.game-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    opacity: 0.2;
    transition: opacity 0.5s ease;
}

#cyberkolobok-bg {
    background-image: url('https://img.itch.zone/aW1nLzIxMDMxNzk2LnBuZw==/original/oVMa%2BA.png');
}

#spirits-bg {
    background-color: #04011c;
}

/* Основной body */
body {
    font-family: 'Montserrat', sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    background-color: #0a0a0a;
}

/* Основной фон страницы (отображается по умолчанию) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, #1a1a2e 0%, #0a0a0a 70%);
    z-index: -2;
}

/* Текстурированный эффект поверх фона */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(78, 205, 196, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 85% 30%, rgba(255, 159, 67, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 80%, rgba(255, 107, 107, 0.05) 0%, transparent 20%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Шапка сайта - растянута на всю ширину */
.header {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    background-color: rgba(10, 10, 10, 0.8);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
}

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #4ecdc4, #70a1ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
}

.logo-accent {
    background: linear-gradient(90deg, #4ecdc4, #70a1ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

.tagline {
    font-size: 1rem;
    color: #aaa;
    font-weight: 300;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: #4ecdc4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4ecdc4, #70a1ff);
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

/* Герой-секция */
.hero {
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 60px;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff9f43, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    color: #b3b3b3;
}

/* Секции */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #f0f0f0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #4ecdc4, #70a1ff);
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

/* Контейнер для карточек */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Карточки игр - основа для 3D эффекта */
.game-card {
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 15px;
}

.game-card:hover .card-inner {
    transform: rotateY(10deg) rotateX(5deg);
}

.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.game-card:hover .card-front {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(78, 205, 196, 0.2);
    transform: translateY(-10px);
}

.card-image {
    height: 60%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-content {
    padding: 25px;
    height: 40%;
    background-color: rgba(26, 26, 38, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(5px);
}

.card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.card-description {
    color: #b3b3b3;
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: rgba(78, 205, 196, 0.1);
    color: #4ecdc4;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

/* Детали игр */
.game-details-container {
    position: relative;
    margin-bottom: 60px;
}

.game-details {
    background-color: rgba(18, 18, 24, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.back-button {
    background: linear-gradient(90deg, #4ecdc4, #70a1ff);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
    text-decoration: none;
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(78, 205, 196, 0.5);
}

.details-header {
    text-align: center;
    margin-bottom: 30px;
}

.details-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f0f0f0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.details-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.details-body {
    background-color: rgba(26, 26, 38, 0.7);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.details-body h3, .details-body h4 {
    color: #f0f0f0;
    margin: 25px 0 15px;
}

.details-body h3 {
    font-size: 1.8rem;
    border-bottom: 2px solid #4ecdc4;
    padding-bottom: 10px;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.details-body h4 {
    font-size: 1.4rem;
}

.details-body p {
    margin-bottom: 15px;
    color: #d0d0d0;
    line-height: 1.7;
}

.details-body ul, .details-body ol {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #d0d0d0;
}

.details-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.controls-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgba(34, 34, 44, 0.7);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.controls-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.controls-table tr:last-child td {
    border-bottom: none;
}

.team-list {
    list-style-type: none;
    margin-left: 0;
}

.team-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.team-list li:nth-child(odd) {
    color: #70a1ff;
    font-weight: 700;
    margin-top: 15px;
}

.controls-list {
    list-style-type: none;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.controls-list li {
    background-color: rgba(34, 34, 44, 0.7);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ff9f43;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-link {
    display: inline-block;
    background: linear-gradient(90deg, #ff6b6b, #ff9f43);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.video-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.5);
}

/* О студии */
.about-section {
    padding: 60px 0;
    margin-bottom: 60px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #d0d0d0;
    line-height: 1.8;
}

.studio-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

.stat-label {
    font-size: 1rem;
    color: #b3b3b3;
    max-width: 150px;
}

/* Подвал сайта - растянут на всю ширину */
.footer {
    background-color: rgba(8, 8, 12, 0.95);
    padding: 50px 0 30px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4ecdc4, transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    color: #f0f0f0;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    color: #b3b3b3;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .controls-list {
        grid-template-columns: 1fr;
    }
    
    .studio-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .details-image {
        height: 200px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-card, .about-section, .game-details {
    animation: fadeIn 0.8s ease-out;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px rgba(78, 205, 196, 0.3); }
    50% { text-shadow: 0 0 30px rgba(78, 205, 196, 0.5); }
}

.logo h1 {
    animation: glow 4s infinite alternate;
}