/* Root Variables */
:root {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
}

/* Box Sizing */
* {
  box-sizing: border-box;
}

/* Body Styles */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #020617;
  color: #e5e7eb;
  padding: 20px; /* Add padding to the body for consistency */
}

/* Links */
a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
  color: #38bdf8;
}

/* Header */
header {
  color: #e5e7eb;
  text-align: left;
  margin-bottom: 20px; /* Add margin at the bottom of the header */
}

.header-container {
  max-width: 1100px; /* Match the max-width of the main section */
  margin: 0 auto; /* Center the container */
  padding: 20px; /* Add padding to the header container */
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-content h1 {
  margin-bottom: 10px;
}

.header-content h1 .accent {
  color: var(--accent);
}

.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icons img {
  border-radius: 0;
  box-shadow: none;
}

/* Header Typography */
h1 {
  margin-bottom: 0.5rem;
}

header p {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Main Content */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Card Styles */
.card {
  background: linear-gradient(180deg, #020617, var(--card));
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.video-container {
  width: 100%;
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.card-content {
  padding: 1.25rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card a {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Steam Widget */
.steam-widget {
  margin: 20px 0;
  width: 100%;
  max-width: 646px;
  margin: 0 auto;
}

.steam-widget iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 646 / 190;
}

/* Project Image */
.project-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-image img {
  width: 100%;
  max-width: 400px; /* Adjust max-width to ensure images are not too large */
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.project-image .caption {
  margin-top: 5px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* General Typography */
p {
  line-height: 1.6;
  color: var(--muted);
}
