/* ============================
   Reset & Variables
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00D9FF;
    --secondary-color: #0066FF;
    --dark-bg: #0A0E1A;
    --darker-bg: #050811;
    --light-text: #FFFFFF;
    --gray-text: #A0A0A0;
    --accent-glow: rgba(0, 217, 255, 0.3);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --section-padding: 120px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--darker-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================
   Navbar
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    background: linear-gradient(to bottom, rgba(5, 8, 17, 0.95), rgba(5, 8, 17, 0));
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--transition-smooth);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(5, 8, 17, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s var(--transition-smooth);
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Navigation Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.lang-switch {
    color: var(--light-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    transition: all 0.3s var(--transition-smooth);
    background: transparent;
}

.lang-switch:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Burger Menu */
.burger-menu {
    width: 35px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s var(--transition-smooth);
}

.burger-menu:hover {
    transform: scale(1.1);
}

.burger-menu span {
    display: block;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 0 0 10px var(--accent-glow);
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(13px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-14px) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.98), rgba(5, 8, 17, 0.98));
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: right 0.5s var(--transition-smooth);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.menu-overlay.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 50px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    line-height: 1;
}

.close-menu:hover {
    transform: rotate(90deg);
    color: var(--light-text);
}

.menu-items {
    list-style: none;
    padding: 120px 50px 50px;
}

.menu-items li {
    margin: 30px 0;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInMenu 0.5s forwards;
}

.menu-overlay.active .menu-items li {
    animation: slideInMenu 0.5s forwards;
}

.menu-items li:nth-child(1) { animation-delay: 0.1s; }
.menu-items li:nth-child(2) { animation-delay: 0.15s; }
.menu-items li:nth-child(3) { animation-delay: 0.2s; }
.menu-items li:nth-child(4) { animation-delay: 0.25s; }
.menu-items li:nth-child(5) { animation-delay: 0.3s; }
.menu-items li:nth-child(6) { animation-delay: 0.35s; }
.menu-items li:nth-child(7) { animation-delay: 0.4s; }

@keyframes slideInMenu {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.menu-items a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 32px;
    font-weight: 600;
    transition: all 0.3s var(--transition-smooth);
    display: inline-block;
    position: relative;
}

.menu-items a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s var(--transition-smooth);
    box-shadow: 0 0 10px var(--accent-glow);
}

.menu-items a:hover {
    color: var(--primary-color);
    transform: translateX(10px);
}

.menu-items a:hover::after {
    width: 100%;
}

/* Menu separator */
.menu-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.3), transparent);
    margin: 20px 0;
    list-style: none;
}

/* Legal links in menu */
.menu-legal {
    font-size: 18px !important;
    font-weight: 400 !important;
    color: var(--gray-text) !important;
}

.menu-legal:hover {
    color: var(--primary-color) !important;
}

.menu-socials {
    padding: 0 50px;
    margin-top: 50px;
    display: flex;
    gap: 30px;
}

.social-link {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s var(--transition-smooth);
}

.social-link:hover {
    color: var(--primary-color);
}

/* ============================
   Hero Section
   ============================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 8, 17, 0.8), rgba(10, 14, 26, 0.6));
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 0 50px;
}

.hero-title {
    font-size: clamp(60px, 8vw, 120px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--light-text), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s ease-in-out infinite;
    text-shadow: 0 0 30px var(--accent-glow);
}

@keyframes titleGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-subtitle {
    font-size: 24px;
    color: var(--gray-text);
    margin-bottom: 50px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s var(--transition-smooth);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.5);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--gray-text);
    font-size: 12px;
    letter-spacing: 2px;
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

/* ============================
   Sections
   ============================ */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.container-full {
    max-width: 100%;
    padding: 0 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(40px, 5vw, 70px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--light-text), var(--gray-text));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================
   Studio Section
   ============================ */
.studio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.lead-text {
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--light-text);
}

.studio-text p {
    color: var(--gray-text);
    font-size: 18px;
    margin-bottom: 20px;
}

.studio-stats {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.studio-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.studio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 60%);
    opacity: 0.2;
    z-index: 1;
}

.studio-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s var(--transition-smooth);
}

.studio-image:hover img {
    transform: scale(1.05);
}

/* ============================
   Games Section
   ============================ */
.games-section {
    background: var(--dark-bg);
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.game-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition-smooth);
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(5, 8, 17, 0.95), transparent);
    transform: translateY(100%);
    transition: transform 0.5s var(--transition-smooth);
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-card:hover .game-overlay {
    transform: translateY(0);
}

.game-overlay h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--light-text);
}

.game-overlay p {
    color: var(--gray-text);
    margin-bottom: 20px;
}

.game-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s var(--transition-smooth);
}

.game-link:hover {
    color: var(--light-text);
}

/* ============================
   Technologies Section
   ============================ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s var(--transition-smooth);
    text-align: center;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
}

.tech-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    color: var(--primary-color);
}

.tech-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.tech-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--light-text);
}

.tech-item p {
    color: var(--gray-text);
    font-size: 16px;
}

/* ============================
   Team Section
   ============================ */
.team-section {
    background: var(--dark-bg);
}

.team-intro {
    text-align: center;
    font-size: 20px;
    color: var(--gray-text);
    max-width: 800px;
    margin: 0 auto 60px;
}

.team-logos {
    text-align: center;
}

.experience-tag {
    display: inline-block;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--gray-text);
    font-size: 18px;
    letter-spacing: 1px;
}

/* ============================
   Careers Section
   ============================ */
.careers-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.careers-positions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.position-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
}

.position-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.position-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--light-text);
}

.position-location {
    color: var(--gray-text);
    font-size: 14px;
}

/* ============================
   Contact Section
   ============================ */
.contact-section {
    background: var(--dark-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-item {
    margin-bottom: 40px;
}

.contact-item h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item p {
    color: var(--gray-text);
    font-size: 16px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light-text);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s var(--transition-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-text);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

/* ============================
   Footer
   ============================ */
.footer {
    background: var(--darker-bg);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: var(--gray-text);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-column a {
    display: block;
    color: var(--gray-text);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s var(--transition-smooth);
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--gray-text);
    font-size: 14px;
}

/* ============================
   Responsive Design
   ============================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .studio-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-container,
    .container,
    .container-full {
        padding: 0 30px;
    }

    .menu-overlay {
        max-width: 100%;
    }

    .menu-items {
        padding: 100px 30px 30px;
    }

    .menu-items a {
        font-size: 24px;
    }

    .close-menu {
        right: 30px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

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

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .studio-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 36px;
    }

    .tech-grid,
    .careers-positions {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }
}

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

    .lead-text {
        font-size: 18px;
    }

    .studio-stats {
        flex-direction: column;
        gap: 20px;
    }
}
