/* ========================
   About Section - ALWAYS STACKED, CENTERED
======================== */
.ab-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #0f0f0f;
  color: #f0f0f0;
  font-family: 'Inter', sans-serif;
}

.ab-about {
  box-sizing: border-box;                                  /* keep padding inside width */
  width: 100%;
  max-width: 1000px;                                       /* same visual constraint */
  margin-inline: auto;                                     /* center the block */
  padding: clamp(60px, 8vw, 50px) clamp(5vw, 40px, 6vw);  /* keep your original spacing */
  text-align: center;
}

.ab-about h1 {
    color: #c9aa71;
}

.ab-about-grid {
  display: grid;
  grid-template-columns: 1fr;      /* ALWAYS one column */
  gap: clamp(16px, 3vw, 30px);
  justify-items: center;           /* center the card inside the grid */
}

.ab-about-card {
  width: 100%;
  max-width: 720px;                /* nice readable line-length on desktop */
  background: #1a1a1a;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 4vw, 50px);
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ab-about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(201, 170, 113, 0.18);
}

.ab-about-card h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  margin-bottom: 10px;
  color: #fff;
}

.ab-about-card p {
  font-size: clamp(0.95rem, 1.2vw, 1rem);
  color: #ccc;
  line-height: 1.7;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .ab-about-card { transition: none; }
  .ab-about-card:hover { transform: none; box-shadow: 0 0 8px rgba(0,0,0,0.4); }
}


/* ========================
   Portfolio Section (responsive)
======================== */
.ab-projects {
  width: min(92%, 1200px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(40px, 8vw, 60px);
}

.ab-projects h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: clamp(24px, 5vw, 40px);
  color: #f0f0f0;
}

.ab-projects-grid {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ab-project-card {
  background: #1a1a1a;
  padding: clamp(18px, 3vw, 25px);
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(201, 170, 113, 0.25);
}

.ab-project-card h3 {
  color: #c9aa71;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin-bottom: 10px;
}

.ab-project-card p {
  color: #ccc;
  font-size: clamp(0.95rem, 1.2vw, 1rem);
  line-height: 1.7;
}

/* If project cards contain images, make them responsive */
.ab-project-card img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ========================
   Approach Section
======================= */
.ab-approach {
  padding: 60px 5vw;
  max-width: 1100px;
  margin: 0 auto;
}

.ab-approach h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #c9aa71;
  margin-bottom: 40px;
}

.ab-approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 24px;
}

/* Center exactly the 4th card if it's the last one in a 3-col layout */
.ab-approach-card:last-child:nth-child(4) {
  grid-column: 2;
}

@media (max-width: 900px) {
  .ab-approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ab-approach-card:last-child:nth-child(4) {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .ab-approach-grid {
    grid-template-columns: 1fr;
  }
}

.ab-approach-card {
  background: #1a1a1a;
  padding: 28px 24px;
  border-radius: 12px;
  text-align: left;
}

.ab-approach-card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 12px;
}

.ab-approach-card p {
  font-size: 0.95rem;
  color: #bbb;
  line-height: 1.6;
  margin: 0;
}

/* ========================
   CTA Section
======================= */
.ab-cta {
  text-align: center;
  padding: 80px 60px;
  margin-bottom: 80px;
  background: #1a1a1a;
  margin-top: 40px;
}

.ab-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #c9aa71;
  margin-bottom: 16px;
}

.ab-cta p {
  font-size: 1.1rem;
  color: #ccc;
  max-width: 500px;
  margin: 0 auto 30px;
  line-height: 1.6;
}
