/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400..700;1,400..700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* CSS Variables & Design System */
:root {
  --bg-color: #f7f5ef;
  --card-bg: #fcfbfa;
  --text-primary: #1c221e;
  --text-secondary: #58605a;
  --text-muted: #828a84;
  --accent-color: #2b5e3c;
  --accent-hover: #1c3e27;
  --border-color: #e5dfd3;
  --border-hover: #d2cbbd;
  --font-serif: 'Lora', serif;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --container-width: 800px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Header & Navigation */
.header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(247, 245, 239, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.5s ease;
}

.logo-group:hover .logo-icon {
  transform: rotate(15deg) scale(1.1);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-menu a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.nav-menu a:hover {
  color: var(--text-primary);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 48px;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 300;
}

.highlight {
  font-weight: 500;
  color: var(--text-primary);
}

/* Section Common Styling */
.section-title {
  font-size: 1.75rem;
  margin-bottom: 28px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

/* Games Section & Card */
.games-section {
  padding: 40px 0;
}

.game-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(43, 94, 60, 0.06);
}

.game-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.game-gameplay-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.game-card:hover .game-gameplay-img {
  transform: scale(1.03);
}

.game-details {
  padding: 32px;
}

.game-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.game-title-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-title {
  font-size: 1.85rem;
  line-height: 1.2;
}

.game-logo-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  max-height: 48px;
  width: auto;
  z-index: 10;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
  max-width: 25%;
}

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

.status-badge-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(43, 94, 60, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

.game-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-color);
}

.game-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 90%;
}

.game-actions {
  margin-bottom: 32px;
}

.steam-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #171a21;
  color: #c5c3c0;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(23, 26, 33, 0.12);
}

.steam-button:hover {
  background-color: #2a475e;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(42, 71, 94, 0.25);
}

.steam-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Game Specs Grid */
.game-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* About Section */
.about-section {
  padding: 60px 0 40px;
}

.about-text {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Contact Section */
.contact-section {
  padding: 60px 0 40px;
}

.contact-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 90%;
}

.discord-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #5865f2;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2);
}

.discord-button:hover {
  background-color: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(88, 101, 242, 0.35);
}

.discord-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Footer styling */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  background-color: var(--bg-color);
  margin-top: 40px;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Keyframes */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(43, 94, 60, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(43, 94, 60, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(43, 94, 60, 0);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0 32px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }

  .game-details {
    padding: 24px;
  }

  .game-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .game-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .nav-menu {
    gap: 16px;
  }
  
  .game-specs {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
