:root {
    --bg-color: #0b0b0d;
    --card-bg: #151518;
    --accent-color: #64ffda; /* Cyberpunk Green/Mint */
    --text-color: #e6f1ff;
    --text-muted: #8892b0;
    --border-color: #233554;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* --- HEADER & NAV --- */
header {
    background: rgba(11, 11, 13, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-content { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; color: var(--accent-color); }

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--accent-color); }
.burger { display: none; cursor: pointer; }

/* --- HERO --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #0b0b0d 70%);
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1.1; }
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.hero-buttons { display: flex; gap: 15px; justify-content: center; }

.btn {
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary { background-color: var(--accent-color); color: #0b0b0d; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3); }

.btn-outline { border: 1px solid var(--accent-color); color: var(--accent-color); background: transparent; }
.btn-outline:hover { background: rgba(100, 255, 218, 0.1); }

/* --- STUDIOS SECTION --- */
.studios-section { padding: 80px 0; background: #111114; border-top: 1px solid #222; }
.studios-section h2, .portfolio-section h2, .commissions-section h2 { text-align: center; font-size: 2rem; margin-bottom: 10px; }
.section-desc { text-align: center; color: var(--text-muted); margin-bottom: 40px; }

.studios-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.studio-card {
    background: var(--card-bg);
    border: 1px solid #333;
    padding: 20px 40px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.studio-card:hover { border-color: var(--accent-color); transform: translateY(-5px); }
.studio-name { display: block; font-weight: 800; font-size: 1.2rem; color: #fff; }
.studio-role { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }

/* --- PORTFOLIO --- */
.portfolio-section { padding: 100px 0; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
    display: block;
}
.card:hover { transform: translateY(-7px); border-color: var(--accent-color); }

/* Make the whole card clickable for <a class="card"> cards */
a.card {
    text-decoration: none;
    color: inherit;
}

a.card:visited {
    color: inherit;
}

.sketchfab-embed-wrapper { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; }
.sketchfab-embed-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.image-wrapper img { width: 100%; height: auto; display: block; }

.card-info { padding: 20px; }
.card-info h3 { margin-bottom: 5px; color: #fff; }
.card-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }
.tag { font-size: 0.75rem; color: var(--accent-color); border: 1px solid var(--accent-color); padding: 2px 8px; border-radius: 20px; }

/* --- COMMISSIONS FORM --- */
.commissions-section { padding: 80px 0; background: linear-gradient(to top, #0b0b0d, #111114); }
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    background: #0b0b0d;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-color); }

/* --- FOOTER --- */
footer { padding: 50px 0; text-align: center; border-top: 1px solid #222; }
.footer-links { margin-bottom: 20px; }
.footer-links a { color: var(--text-muted); margin: 0 10px; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--accent-color); }
.copyright { color: #444; font-size: 0.8rem; }

/* --- ANIMATIONS & MOBILE --- */
.fade-in-up { animation: fadeInUp 1s ease forwards; opacity: 0; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Scroll Animation Class (triggered by JS) */
.scroll-element { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.scroll-element.scrolled { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide menu by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 70px; right: 0;
        background: #151518;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid #333;
    }
    .nav-links.nav-active { display: flex; }
    
    .burger { display: block; }
    .burger div { width: 25px; height: 3px; background-color: #fff; margin: 5px; transition: 0.3s; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
}

/* Специальные стили для Minecraft студий */
.studio-badge {
    background: #388e3c; /* Minecraft Green */
    color: white;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.studio-card {
    background: linear-gradient(145deg, #1a1a1d, #111114);
    border: 1px solid #333;
    padding: 30px;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 280px;
}

.studio-card:hover {
    border-color: #388e3c;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 20px rgba(56, 142, 60, 0.2);
}

.studio-name {
    font-size: 1.5rem;
    color: #fff;
    display: block;
    font-weight: 800;
}