/* 1. Global Variables & Logical Properties */
:root {
  --primary-color: #3b82f6;
  --bg-surface: #ffffff;
  --text-main: #1f2937;
  --spacing-unit: 1.5rem;
  --border-radius: 12px;
}

/* 2. Responsive Layout with CSS Grid RAM (Repeat, Auto, MinMax) */
.card-grid {
  display: grid;
  /* Auto-fitting columns without media queries */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-unit);
  padding-block: var(--spacing-unit); /* Logical Property for vertical padding */
}

/* 3. Modern Card Styling */
.card {
  background: var(--bg-surface);
  border-radius: var(--border-radius);
  padding: var(--spacing-unit);
  /* Modern depth with alpha-channel shadows */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-4px);
}

/* 4. Modern Typography with clamp() */
.card-title {
  /* Fluid font size: min 1.25rem, actual 2vw, max 2.5rem */
  font-size: clamp(1.25rem, 2vw + 1rem, 2.5rem);
  color: var(--primary-color);
  margin-block-end: 0.5rem;
}

/* 5. Centering with place-items */
.hero {
  display: grid;
  place-items: center; /* One-line centering for both axes */
  aspect-ratio: 16 / 9; /* Modern aspect ratio control */
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 20px;
  /* Apply 15px radius to all corners */
  border-radius: 15px;
  opacity:.6
}
