/* CSS Reset & Variables */
:root {
    --primary-color: #000000;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --text-color: #333333;
    --accent-color: #555555;
    --overlay-color: rgba(255, 255, 255, 0.95);
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* Scroll Animation Classes */
.anim-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.anim-slide-left {
    opacity: 0;
    transform: translateX(-150px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-visible {
    opacity: 1 !important;
    transform: translate(0) !important;
}

/* Navbar */
.navbar {
    background-color: var(--overlay-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links li a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary-color);
}

.lang-switcher button {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s;
}

.lang-switcher button.active {
    color: #888;
    text-decoration: underline;
}

.lang-switcher button:hover {
    color: #555;
}

/* Parallax Mechanics */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    color: var(--primary-color);
    padding: 30px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 1px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

/* Common Sections */
.section {
    padding: 100px 0;
}

.bg-white {
    background-color: var(--bg-white);
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--accent-color);
    line-height: 1.8;
}

/* Parallax Divider */
.parallax-divider {
    height: 350px;
    position: relative;
}
.parallax-divider::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.4);
}

/* Games Section */
.game-card {
    display: flex;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    margin: 0 auto;
    max-width: 1000px;
}

.game-image {
    flex: 1;
    min-height: 400px;
}

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

.game-info {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-info h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.game-info p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.platforms {
    margin-bottom: 35px;
}

.highlight {
    display: inline-block;
    font-weight: 700;
    color: var(--primary-color);
    background: #e9ecef;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.btn-steam {
    align-self: flex-start;
}

/* Contact Section */
.contact-subtext {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--accent-color);
}

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

.email-link {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: color 0.3s;
}

.email-link i {
    margin-right: 10px;
}

.email-link:hover {
    color: #666;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 1.4rem;
    transition: transform 0.3s, background-color 0.3s, opacity 0.8s ease-out;
}

/* Stagger social links animations */
.social-links a:nth-child(1) { transition-delay: 0.0s; }
.social-links a:nth-child(2) { transition-delay: 0.1s; }
.social-links a:nth-child(3) { transition-delay: 0.2s; }
.social-links a:nth-child(4) { transition-delay: 0.3s; }

.social-links a i {
    color: #ffffff !important;
}

.social-links a:hover {
    transform: translateY(-5px) !important; /* Override the translate reset on hover */
    background-color: #444;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 30px 0;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 900px) {
    .game-card {
        flex-direction: column;
    }
    .game-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-right {
        flex-direction: column;
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero {
        margin-top: 120px;
    }
}
