/* ============================================
   Layout — containers, sections, grids
   ============================================ */

/* ---- Container ---- */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ---- Section ---- */
.section {
  padding: var(--section-gap) 0;
  position: relative;
}

/* Subtle alternating background depth */
.section-alt {
  background: var(--clr-bg-deep);
}

/* ---- About Grid ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* ---- About Bio ---- */
.about-bio {
  padding: 36px 32px;
}

.about-bio h3 {
  margin-bottom: 20px;
  color: var(--clr-accent-2);
}

.about-bio p {
  color: var(--clr-text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

/* ---- About Stats ---- */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  display: block;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Skills Grid ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

/* ---- Projects Grid ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

/* ---- Contact Grid ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

/* ---- Footer ---- */
.footer {
  background: var(--clr-bg-deep);
  padding: 50px 20px 30px;
  text-align: center;
}

.footer-line {
  width: 120px;
  height: 1px;
  margin: 0 auto 30px;
  background: var(--gradient-accent);
  opacity: 0.4;
}

.footer-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-copy {
  color: var(--clr-text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.footer-top-link {
  color: var(--clr-text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-top-link:hover {
  color: var(--clr-accent-2);
}
