/* demo-home.css */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.page {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #121212;
  color: #ffffff;
  line-height: 1.6;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  text-align: center;
  padding: 3rem 1rem;
}

.site-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
}

.site-title .accent {
  color: #ff6600;
}

.site-tagline {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #cccccc;
}

/* Card Grid */
.projects {
  padding: 2rem 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  list-style: none;
}

/* Card */
.card {
  background-color: #1c1c1c;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

/* Media area — fixed 16:9 slot, no gaps */
.card-media {
  display: block;               /* make anchor block-level */
  position: relative;
  height: 0;                    /* establish intrinsic ratio box */
  padding-top: 56.25%;          /* 16:9 = 9/16 = 0.5625 */
  overflow: hidden;
  background: #000;
  line-height: 0;               /* prevent baseline/whitespace gaps */
  border-radius: 8px 8px 0 0;
}

.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;            /* fill and crop nicely */
  display: block;
}

/* Card content */
.card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.card-text {
  font-size: 0.95rem;
  color: #bbbbbb;
  margin-bottom: 1rem;
  flex: 1;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: #ff6600;
  color: #121212;
}

.btn-primary:hover {
  background-color: #e65a00;
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  border: 1px solid #ff6600;
  color: #ff6600;
}

.btn-ghost:hover {
  background-color: #ff6600;
  color: #121212;
}
