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

:root {
    --color-bg: #0a0a0a;
    --color-bg-alt: #1a1a1a;
    --color-text: #e8e8e8;
    --color-text-muted: #a0a0a0;
    --color-accent: #ffffff;
    --color-border: #2a2a2a;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ============================
   Header & Navigation
   ============================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo:hover .logo-image {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

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

.nav-menu a:hover {
    color: var(--color-accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

/* ============================
   Hero Section
   ============================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-cta {
    animation: fadeInUp 1s ease-out 0.4s backwards;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   Buttons
   ============================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 2px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-accent);
}

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

.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ============================
   Sections
   ============================ */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

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

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.game-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.game-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.game-info {
    padding: 2rem;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.game-info p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.game-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-border);
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 2px;
}

/* ============================
   About Section
   ============================ */
.about {
    background: var(--color-bg);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 3rem;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
    font-weight: 600;
}

.about-text h3:first-of-type {
    margin-top: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--color-bg-alt);
    border-left: 3px solid var(--color-accent);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.features-list strong {
    font-size: 1.2rem;
    color: var(--color-accent);
}

.features-list span {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.tech-stack {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--color-bg-alt);
    border-radius: 4px;
}

.tech-stack h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.tech-tag {
    padding: 0.7rem 1.5rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}

.tech-tag:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* ============================
   Contact Section
   ============================ */
.contact {
    background: var(--color-bg-alt);
    text-align: center;
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    border-radius: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

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

.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-3px);
}

/* ============================
   Footer
   ============================ */
.footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-location {
    font-size: 0.85rem;
}

/* ============================
   Responsive Design
   ============================ */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--color-border);
    }

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

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

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

    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav-menu {
        width: 85%;
    }

    .logo-image {
        height: 40px;
    }
}

/* ============================
   Language Selector
   ============================ */
.language-selector {
    position: relative;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.5rem 1rem;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.current-lang:hover {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
}

.lang-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-name {
    display: inline-block;
}

.current-lang svg {
    transition: transform 0.3s ease;
}

.lang-dropdown.active + .current-lang svg,
.current-lang:hover svg {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-text);
}

.lang-option:hover {
    background: var(--color-bg-alt);
    color: var(--color-accent);
}

.lang-option.active {
    background: var(--color-bg-alt);
    color: var(--color-accent);
    position: relative;
}

.lang-option.active::before {
    content: '✓';
    position: absolute;
    right: 1rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .language-selector {
        width: 100%;
        text-align: center;
    }

    .current-lang {
        width: 100%;
        justify-content: center;
    }

    .lang-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .lang-dropdown.active {
        transform: translateX(-50%) translateY(0);
    }

    .lang-name {
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .lang-name {
        display: none;
    }

    .current-lang {
        padding: 0.5rem 0.75rem;
        min-width: auto;
    }
}
