@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f0f;
    color: #f0f0f0;
    scroll-behavior: smooth;
}

.section {
    padding: 80px 20px;
    text-align: center;
}

h1, h2, h3 {
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

p {
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #222, #333);
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 1.8rem;
    cursor: pointer;
}

.hamburger :hover{
    transition: color 0.3s;
    color: #ff6ec7;
}

.hamburger.open .hamburger-icon {
    transform: rotate(90deg);
    transition: transform 0.25s ease;
}


.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6ec4, #7873f5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #f0f0f0;
    transition: color 0.3s;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background: linear-gradient(90deg, #ff6ec7, #7353ff);
    border: none;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 110, 199, 0.5);
}

.home-section {
    background: linear-gradient(135deg, #1f1f1f, #2c2c2c);
    padding-top: 100px;
}


.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 5rem; 
}

.catalog-section{
    padding: 4rem 2rem;
}

.game-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.about-section {
    background: linear-gradient(135deg, #141414, #1c1c1c);
}

.social-links {
    margin-top: 20px;
}


footer {
    background: #111;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Mobile Style */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        /* stack vertically but keep in document flow */
        flex-direction: column;
        gap: 12px;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        margin: 0;
        padding: 10px 0;
        background: #222;
        /* animation-friendly hiding */
        max-height: 0; 
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition:
        max-height 0.35s ease,
        opacity 0.28s ease,
        transform 0.28s ease;
        pointer-events: none;
    }

    /* open state */
    .nav-links.show {
        max-height: 500px;    
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* staggered link animations */
    .nav-links li {
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.28s ease, transform 0.28s ease;
    }

    .nav-links.show li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.show li:nth-child(1) { transition-delay: 0.06s; }
    .nav-links.show li:nth-child(2) { transition-delay: 0.12s; }
    .nav-links.show li:nth-child(3) { transition-delay: 0.18s; }
}
