@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;500;700&display=swap');
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Oswald', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}
header {
  display: flex;
  align-items: center;
  padding: 20px 40px;
  background: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
header .logo {
  height: 70px;
  transition: transform 0.3s;
}
header .logo:hover { transform: scale(1.1) rotate(-2deg); }
main { max-width: 1400px; margin: 30px auto; padding: 0 20px; }
h1 {
  font-size: 2.5rem;
  text-align: center;
  color: #ff0033;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Game Grid */
#games .game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.game-card {
  background: #1f1f1f;
  border: 1px solid #ff0033;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
  transition: transform 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.game-card:hover {
  transform: rotateY(10deg) translateY(-10px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.9);
}
.game-card img { width: 100%; display: block; }
.game-card h2 {
  font-size: 1.3rem;
  margin: 15px 0 5px;
}
.release-date {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

/* Fade-in animation */
.fade-in { opacity: 0; animation: fadeInUp 1s forwards; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Action Buttons */
.game-links {
  margin: 8px 0 16px;
}
.game-links a {
  display: inline-block;
  margin: 4px 6px;
  padding: 6px 10px;
  background: transparent;
  color: #ff0033;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #ff0033;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}
.game-links a:hover {
  background: #ff0033;
  color: #121212;
}

/* About Section */
#about {
  background: #1f1f1f;
  padding: 30px;
  margin: 40px 0;
  border: 1px solid #ff0033;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}
#about h1 {
  margin-bottom: 20px;
}
#about p {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  color: #ccc;
}

/* Social Links */
#social {
  margin-top: 60px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}
.social-links a {
  width: 50px;
  height: 50px;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transition: transform 0.3s, box-shadow 0.3s;
}
.social-links a:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}
.social-links img { width: 28px; height: 28px; }

/* Privacy Page Spacing */
.privacy-content p { margin: 15px 0; }

/* Content Article */
.content {
  background: #1f1f1f;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
  margin: 20px 0;
}
.content h1,
.content h2 {
  color: #ff0033;
  text-transform: uppercase;
}
.content a { color: #ff0033; }

/* ───────────────────────────────────────────────────────────────────────── */
/* 1) Shiny “light sweep” on game cards */
.game-card {
  position: relative; /* for the pseudo */
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0.1) 100%
  );
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.7s ease-in-out;
  pointer-events: none;
}

.game-card:hover::before {
  transform: rotate(45deg) translateX(100%);
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 1) Ripple‐style effect on ALL game-store buttons */
.game-links a {
  position: relative;    /* contain the pseudo */
  overflow: hidden;
  z-index: 0;
}

.game-links a::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.game-links a:hover::after {
  width: 200%;   /* expand to cover the entire button */
  height: 200%;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* Continuous, out-of-sync rotating+drifting shapes in header */
header {
  position: relative;
  overflow: hidden;
}

header::before,
header::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  pointer-events: none;
  animation: floatRotate 30s linear infinite;
}

/* both start immediately, but ::after is halfway through the loop */
header::before {
  top: -40px;
  left: -40px;
  animation-delay: 0s;
}

header::after {
  bottom: -40px;
  right: -40px;
  animation-delay: -15s; /* negative = already mid-animation */
}

/* rotate + drift around in a smooth loop */
@keyframes floatRotate {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }
  25% {
    transform: rotate(90deg) translate(30px, -15px);
  }
  50% {
    transform: rotate(180deg) translate(0, 30px);
  }
  75% {
    transform: rotate(270deg) translate(-30px, 15px);
  }
  100% {
    transform: rotate(360deg) translate(0, 0);
  }
}



/* ───────────────────────────────────────────────────────────────────────── */
/* Footer */
footer {
  text-align: center;
  margin: 80px 0 20px;
  color: #777;
}
footer a {
  color: #ff0033;
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }
