/* Reset and base styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fcfcfc;
  color: #111111;
  line-height: 1.6;
}

/* Main container — like about.css */
main#main-content {
  width: 100%;
  padding: 2.5rem 0;           /* full width; gutters added via padding-inline at small breakpoints */
  color: #111111;
  box-sizing: border-box;
  scroll-margin-top: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Add small inline padding back on smaller viewports */
@media (max-width: 900px) { main#main-content { padding-inline: 3vw; } }
@media (max-width: 600px) { main#main-content { padding-inline: 5vw; } }

/* Resume header */
.resume-header { text-align: center; margin-bottom: 3rem; }

.resume-header h2 {
  color: #000000;
  font-weight: 900;
  font-size: 3.2rem;           /* aligned with about.css */
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  position: relative;
  user-select: none;
  cursor: default;
  transition: color 0.3s ease;
}
.resume-header h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;                 /* underline width aligned with about.css */
  height: 4px;
  background: linear-gradient(90deg, #000000 0%, #333333 100%);
  border-radius: 2px;
}
.resume-header h2:hover,
.resume-header h2:focus-within { color: #444444; }

.resume-subtitle {
  font-size: 1.3rem;
  color: #666666;
  font-weight: 500;
  margin-top: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Resume actions */
.resume-actions {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.resume-btn.primary { background: #000000; color: #ffffff; }
.resume-btn.primary:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.resume-btn.secondary { background: transparent; color: #000000; border: 2px solid #000000; }
.resume-btn.secondary:hover { background: #000000; color: #ffffff; }

/* Professional summary */
.professional-summary {
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e8e8;
  position: relative;
  overflow: hidden;
}
.professional-summary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 6px;
  background: linear-gradient(90deg, #000000 0%, #333333 100%);
}
.summary-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.summary-header i { font-size: 2rem; color: #333333; }
.summary-header h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; color: #000000; }
.professional-summary p { font-size: 1.15rem; line-height: 1.7; color: #444444; }
.professional-summary strong { color: #000000; font-weight: 700; }

/* Key highlights */
.key-highlights { margin-bottom: 3rem; }
.key-highlights h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800; color: #000000; margin-bottom: 2rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.key-highlights h3 i { color: #333333; }

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* intrinsic grid */
  gap: clamp(1rem, 2vw, 1.5rem);
}
.highlight-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  display: flex; align-items: center; gap: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
}
.highlight-card:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12); }

.highlight-icon {
  width: 60px; height: 60px; background: #f0f0f0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.3s ease;
}
.highlight-icon i { font-size: 1.5rem; color: #333333; }
.highlight-card:hover .highlight-icon { background: #000000; }
.highlight-card:hover .highlight-icon i { color: #ffffff; }

.highlight-content h4 { font-size: 1.2rem; font-weight: 700; color: #000000; margin-bottom: 0.3rem; }
.highlight-content p { color: #666666; font-size: 0.95rem; }
.highlight-content .detail { color: #888888; font-size: 0.85rem; }

/* Resume stats */
.resume-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* intrinsic grid */
  gap: clamp(1rem, 2.5vw, 2rem);
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e8e8;
}
.stat-item { text-align: center; transition: transform 0.3s ease; }
.stat-item:hover { transform: translateY(-5px); }
.stat-number { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: #000000; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.9rem; color: #666666; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Responsive design — unify breakpoints with about.css */
@media (max-width: 900px) {
  .resume-header h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }  /* fluid type */
  .resume-actions { flex-direction: column; align-items: center; }
  /* intrinsic grids already collapse; no extra overrides needed */
}

@media (max-width: 600px) {
  .resume-header h2 { font-size: 2.5rem; }

  .professional-summary,
  .resume-stats { padding: 2rem; }

  .highlight-card { flex-direction: column; text-align: center; gap: 1rem; }
}

/* Focus accessibility */
.resume-btn:focus-visible,
.highlight-card:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 4px;
}

/* Smooth animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.highlight-card:nth-child(1) { animation-delay: 0.1s; }
.highlight-card:nth-child(2) { animation-delay: 0.2s; }
.highlight-card:nth-child(3) { animation-delay: 0.3s; }
.highlight-card:nth-child(4) { animation-delay: 0.4s; }
