* {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #1f1f1f, #0f0f0f);
  color: #fff;
}

.hero {
  position: relative;
  height: 50vh; /* top half of screen */
  min-height: 360px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 20px;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.2),
      rgba(0,0,0,0.85)
    ),
    url("assets/banner.jpg"); /* <-- your background image */

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.avatar {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  margin-bottom: 12px;
}

h1 {
  margin: 0;
  font-size: 26px;
}

.card {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px;
}

h2 {
  margin-bottom: 16px;
}

p {
  color: #ccc;
  line-height: 1.6;
}

.links a {
  display: inline-block;
  margin-right: 16px;
  margin-top: 10px;
  color: #8ab4ff;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

/* GAMES GRID */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.game-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

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

.game-info {
  padding: 14px;
}

.game-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.tags {
  font-size: 12px;
  color: #aaa;
}


.game-container {
  width: 640px;
  height: 480px;
  background: black;
  margin: auto;
  position: relative;
  overflow: hidden;
}

/* 🔍 SCALE WRAPPER */
.game-scale {
  width: 640px;
  height: 480px;
  transform-origin: top left;
}


/* Make iframe fill the container */
.game-container:fullscreen iframe,
.game-container:-webkit-full-screen iframe {
  width: 100%;
  height: 100%;
}

/* 🎬 Steam-style preview */
.steam-preview {
  max-width: 900px;
  margin: 40px auto;
}

.steam-preview h2 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #c7d5e0; /* Steam blue-gray */
}

.steam-video-frame {
  background: #000;
  border: 1px solid #2a475e;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(42, 71, 94, 0.6);
  transition: box-shadow 0.3s ease;
  position: relative;


}

.steam-video-frame:hover {
  box-shadow: 0 0 20px rgba(66, 139, 202, 0.5);
}

.steam-video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
  display: block;
}

  .play-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.play-btn {
  font-size: 24px;
  padding: 14px 36px;
  background: #1a9fff;
  color: black;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.play-btn:hover {
  background: #0d7bdc;
}

.project-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #5c7e10;
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 3px;
  z-index: 2;
}

.game-container:fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-container:-webkit-full-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Floating contact buttons (bottom-right) */
.contact-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
}

.fab-wrap { position: relative; }

.fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg,#1a9fff,#0b78d6);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.fab-btn:active { transform: translateY(1px) scale(.99); }

.fab-label {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  white-space: nowrap;
}

.fab-wrap:hover .fab-label,
.fab-wrap:focus-within .fab-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* small responsive tweak */
@media (max-width: 480px) {
  .contact-fab { right: 12px; bottom: 12px; }
  .fab-btn { width: 44px; height: 44px; font-size: 18px; }
  .fab-label { right: 56px; font-size: 12px; }
}
