/* -------------------------------------------- */
/* BASE RESET + GLOBAL STYLES */
/* -------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f3f4f6; /* light gray */
  color: #111827;
  line-height: 1.6;
}

/* -------------------------------------------- */
/* UNIVERSAL SECTION BOX */
/* -------------------------------------------- */

.section-box {
  max-width: 900px;
  margin: 2rem auto;                 /* centers each section */
  padding: 2rem 2.5rem;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* -------------------------------------------- */
/* PROFILE SECTION */
/* -------------------------------------------- */

.profile-container {
  max-width: 900px;
  margin: 2.5rem auto 2rem;
  padding: 2rem 2.5rem;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.profile-container table {
  width: 100%;
}

.profile-photo {
  width: 220px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.name {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.headline {
  margin: 0 0 0.9rem;
  font-weight: 500;
  color: #4b5563;
}

.summary {
  margin-bottom: 1rem;
  color: #374151;
}

.links {
  font-size: 0.92rem;
  color: #4b5563;
}

.links a {
  color: #2563eb;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

/* -------------------------------------------- */
/* DOWNLOAD BUTTON */
/* -------------------------------------------- */

.download-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: white;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
  transition: 0.2s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 36px rgba(37, 99, 235, 0.58);
}

/* -------------------------------------------- */
/* EDUCATION SECTION */
/* -------------------------------------------- */

.education-container {
  composes: section-box;
}

.education-container table {
  width: 100%;
}

.education-container h3 {
  text-align: left;
}

/* -------------------------------------------- */
/* WORK EXPERIENCE */
/* -------------------------------------------- */

.work-container {
  composes: section-box;
}

.work-container h3 {
  margin-bottom: 1rem;
}

.work-container p {
  margin-bottom: 0.4rem;
}

.work-container ul {
  margin-top: 0.1rem;
  margin-bottom: 1rem;
  padding-left: 1.3rem;
}

.work-container li {
  margin-bottom: 0.25rem;
  color: #4b5563;
}

/* -------------------------------------------- */
/* SKILLS SECTION */
/* -------------------------------------------- */

.skills-container {
  composes: section-box;
}

.skills-container table {
  margin: 0 auto;
}

.skills-container td {
  padding: 0.35rem 0.75rem;
  font-size: 0.92rem;
}

.star {
  color: #fbbf24;
  white-space: nowrap;
}

.off-star {
  color: #d1d5db;
}

.center-link {
  text-align: center;
  margin-top: 1.5rem;
}

.center-link a {
  text-decoration: none;
  color: #2563eb;
  font-weight: 600;
}

/* -------------------------------------------- */
/* HR LINE */
/* -------------------------------------------- */

hr {
  border: none;
  border-top: 1px solid #d1d5db;
  max-width: 900px;
  margin: 2rem auto;
}

/* -------------------------------------------- */
/* RESPONSIVE */
/* -------------------------------------------- */

@media (max-width: 800px) {
  .profile-container,
  .section-box,
  .education-container,
  .work-container,
  .skills-container {
    margin: 1.25rem 1rem;
    padding: 1.4rem 1.3rem;
  }

  .profile-container table {
    display: block;
  }

  .profile-photo {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 1rem;
    display: block;
  }

  .name {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .download-btn {
    width: 100%;
    text-align: center;
  }
}
/* UNIFORM CARD FOR ALL SECTIONS */
.section-card {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem 2.5rem;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.section-card h2, 
.section-card h3 {
  margin-top: 0;
  text-align: center;
}
