/* Root and Theme Colors */
:root {
  --bg: #ffffff;
  --text: #111111;
  --accent: #4f46e5;
  --card-bg: #f1f1f1;
}

/* Dark mode overrides */
body.dark {
  --bg: #121212;
  --text: #ffffff;
  --card-bg: #1e1e1e;
}

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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background 0.4s, color 0.4s;
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--card-bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: url('https://via.placeholder.com/1200x400?text=Console+Gaming') no-repeat center center/cover;
  color: var(--text);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero .btn {
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.hero .btn:hover {
  background: #3730a3;
}

/* Gallery styles */
.gallery {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem;
}

.card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  opacity: 0;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

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

/* Fade-in animation for cards */
.fade-in {
  animation: fadeIn 1s forwards;
}

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

/* Footer styles */
footer {
  padding: 1.5rem;
  text-align: center;
  background: var(--card-bg);
  margin-top: 3rem;
}

footer .socials a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--accent);
}

footer p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 768px) {
  .gallery {
    flex-direction: column;
    align-items: center;
  }

  .hero h2 {
    font-size: 2rem;
  }

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