/* ========================================
   Teal Midnight — Masonosam Developer Page
   Deep teal-black + teal accent
   Bitter (display) + Source Sans 3 (body)
   ======================================== */

:root {
  --bg: #111a1e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(45, 212, 191, 0.4);
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.15);
  --text: #e8f0ef;
  --text-muted: #7a8f8c;
  --font-display: 'Bitter', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --radius: 16px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.header {
  padding: 24px 0;
}

.header .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.header-links {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.header-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.header-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Hero */

.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--accent);
  text-shadow: 0 0 40px rgba(45, 212, 191, 0.3);
  animation: fadeIn 0.6s ease-out both;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 8px;
  animation: fadeIn 0.6s 0.1s ease-out both;
}

/* Divider */

.divider hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
  position: relative;
}

.divider hr::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

/* Games Section */

.games-section {
  padding: 40px 0 80px;
}

.section-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Games Grid */

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Game Card */

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  animation: fadeIn 0.5s ease-out both;
  animation-delay: calc(var(--i) * 0.1s);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--border-accent);
}

.card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 8px;
}

.card-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--accent-soft);
  color: var(--accent);
}

.card-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.card-link:hover {
  opacity: 0.8;
}

/* Footer */

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-links {
  color: var(--text-muted);
  margin-left: 16px;
  text-decoration: none;
}

.footer-links:hover {
  color: var(--text);
}

/* Animations */

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

/* Responsive */

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 12px;
  }

  .hero-name {
    font-size: 2.2rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }
}
