/* Reset and Base Styles */
* {
    margin: 0;
    text-decoration: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0f0a27;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pad-top-img {
    padding-top: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1f3a 0%, #1f0031 100%);
    color: white;
    text-align: center;
    border-bottom: 2px solid #6f00ff;
}


.logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #6f00ff;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #b0b0b0;
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: #0f1219;
    border-bottom: 2px solid #1a1f3a;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #6f00ff;
}

.about p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: #b0b0b0;
}

/* Games Section */
.games {
    text-decoration: none;
    padding: 2rem 0;
    background-color: #0f0a27;
}

.games h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #6f00ff;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: #1a1f3a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #412d61;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(111, 0, 255, 0.2);
    border-color: #6f00ff;
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.game-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    color: #6f00ff;
}

.game-card p {
    padding: 0 1.5rem 1.5rem;
    color: #a0a0a0;
}

.side-note {
    font-size: 0.9rem;
    color: #707070;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
}


/* Footer */
footer {
    display: flex;
    justify-content: center;
    background-color: #0f1219;
    color: white;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 10px;
    border-top: 5px solid #1a1f3a;
    position: sticky;
    bottom: 0;
    width: 100%;
}

.foot-img {
    max-height: 24px;
    margin: 0 25px;
    transition: filter 0.3s ease;
    vertical-align: middle;
    padding-bottom: 5px;
}

footer p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #707070;
    padding-bottom: 5px;
    font-size: 1rem;
}

.hover-underline {
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.hover-underline::after,
.hover-underline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #6f00ff, #151922);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.hover-underline::before {
  top: -5px;
  transform-origin: left;
}

.hover-underline:hover::after,
.hover-underline:hover::before {
  transform: scaleX(1);
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .about h2,
    .games h2,
    .contact h2 {
        font-size: 2rem;
    }

    .foot-img {
        margin: 10px 15px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h2 {
        font-size: 1.5rem;
    }
}
