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

/* FIX 2: Implement Sticky Footer */
body {
  background-color: #0f0f13;
  color: #fff;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  font-family: 'Orbitron', sans-serif;
  
  /* Flex properties to push footer down */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Particle canvas */
#particle-canvas {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:0;
}

/* Header */
header {
  background-color: rgba(17,17,17,0.9);
  padding: 15px 0;
  position: sticky;
  top:0;
  z-index:10;
}

.nav-container {
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:90%;
  max-width: 1200px; /* Added max width for desktop */
  margin:0 auto;
}

.logo {
  font-family:'Audiowide', cursive;
  font-size:1.8rem;
  color:#00ffcc;
}

nav ul {
  list-style:none;
  display:flex;
  gap:25px;
}

nav ul li a {
  color:#fff;
  text-decoration:none;
  font-weight:500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color:#00ffcc;
}

/* Hero Section */
.hero {
  display:flex;
  align-items:center;
  justify-content:center;
  height:90vh;
  text-align:center;
  position:relative;
  z-index:1;
  /* Allows content sections to take minimum height */
  flex-grow: 1; 
}

.hero-content h2 {
  font-family:'Audiowide', cursive;
  font-size:2.5rem;
  margin-bottom:15px;
}

.hero-content p {
  font-size:1.2rem;
  margin-bottom:25px;
}

/* FIX 1: Smooth Button Hover Effect */
.btn {
  padding: 12px 28px;
  border: 2px solid #00ffcc; /* Always show the border */
  border-radius: 50px; 
  /* UPDATED: Darker gradient for base state */
  background: linear-gradient(135deg, #00e6b8, #006644); /* Darker gradient background */
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease-in-out; /* Smooth transition on ALL properties */
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 0 5px rgba(0, 255, 204, 0.5); /* Initial subtle glow */
}

.btn:hover {
  /* Only change the visual effects, not the core color/background */
  /* UPDATED: Even Darker gradient for hover state */
  background: linear-gradient(135deg, #00d3a4, #004422); /* Darker hover gradient */
  box-shadow: 0 0 20px #00ffcc, 0 0 40px rgba(0, 255, 204, 0.4); /* Intense, smooth glow */
  transform: translateY(-3px) scale(1.02); /* More noticeable lift and slight scale */
}

/* Sections */
section {
  padding:80px 0;
  position:relative;
  z-index:1;
  flex-shrink: 0; /* Prevents shrinking when space is tight */
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
  text-align:center;
  margin-bottom:40px;
  font-size:2rem;
  color:#00ffcc;
}

/* About */
.about p {
  max-width:700px;
  margin:0 auto;
  text-align:center;
  font-size:1.1rem;
  line-height:1.8;
}

/* Games */
.games .game-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:30px;
  width:100%; /* Use 100% of container */
}

.game-card {
  background-color: rgba(26,26,31,0.9);
  border-radius:10px;
  overflow:hidden;
  text-align:center;
  transition: transform 0.3s;
}

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

.game-card img {
  width:100%;
  height:150px;
  object-fit:cover;
}

.game-card h3 {
  margin:15px 0 10px;
  color:#00ffcc;
}

.game-card p {
  padding:0 10px 15px;
  font-size:0.95rem;
}

/* Contact */
.contact form {
  display:flex;
  flex-direction:column;
  max-width:500px;
  margin:0 auto;
  gap:15px;
}

.contact input,
.contact textarea {
  padding:12px;
  border:none;
  border-radius:5px;
  font-size:1rem;
  color: #0f0f13;
}

.contact button {
  padding:12px;
  border:none;
  border-radius:5px;
  background-color:#00ffcc;
  font-weight:bold;
  cursor:pointer;
  transition: background 0.3s;
}

.contact button:hover {
  background-color:#00cc99;
}

/* Footer (Now sticks to the bottom via body flex) */
footer {
  background-color: rgba(17,17,17,0.9);
  text-align:center;
  padding:20px 0;
  font-size:0.9rem;
  color:#aaa;
  position:relative;
  z-index:1;
  margin-top: auto; /* Pushes the footer to the bottom */
  flex-shrink: 0;
}

/* Animated content class */
.content {
  position:relative;
  z-index:1;
}

/* --- RESPONSIVE DESIGN (Retained for screen compatibility) --- */

/* Tablet and smaller screens (Max-width: 900px) */
@media (max-width: 900px) {
    /* Games Page: Switch to a 2-column grid */
    .games .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Adjusted min size */
    }

    /* Hero Section: Adjust padding and text size */
    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* Mobile screens (Max-width: 600px) */
@media (max-width: 600px) {
    /* Header & Navigation Adjustments */
    .nav-container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav ul {
        gap: 12px; 
        flex-wrap: wrap; 
        justify-content: center;
    }

    /* General Content Sizing */
    section {
        padding: 40px 0; 
    }

    section h2 {
        font-size: 1.6rem; 
        margin-bottom: 20px;
    }
    
    /* Hero Section (Home Page) */
    .hero-content {
        padding: 20px; 
    }
    
    .hero-content h2 {
        font-size: 1.8rem; 
    }

    .hero-content p {
        font-size: 0.9rem; 
    }
    
    /* Games Page: Switch to a single column grid */
    .games .game-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Page: Make form elements full width */
    .contact form input[type="text"],
    .contact form input[type="email"],
    .contact form textarea {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .contact form button {
        width: 100%;
    }
}
