/* ==========================================================================
   content.css  -  layout and components for the sections of the portfolio
   Load order: after style.css, responsive.css and motion.css.

   1. Header fit (8 menu items)        6. Projects
   2. About + stats                    7. Certifications (grid, filters, viewer)
   3. Education tweak                  8. Contact form states
   4. Skills                           9. Small-screen adjustments
   5. Experience timeline
   ========================================================================== */

/* 1. Header fit --------------------------------------------------------- */
@media (min-width: 992px) {
  nav.navbar.bootsnav > .container { width: 100%; max-width: 1400px; padding-left: 28px; padding-right: 28px; }
  nav.navbar.bootsnav ul.nav > li > a { padding: 35px 11px; font-size: 13.5px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  nav.navbar.bootsnav > .container { padding-left: 18px; padding-right: 18px; }
  nav.navbar.bootsnav ul.nav > li > a { padding: 35px 7px; font-size: 12px; letter-spacing: 0; }
  nav.navbar.bootsnav .navbar-brand { font-size: 15px; margin-left: 0; padding-left: 4px; }
  nav.navbar.bootsnav .navbar-brand .fa-check { display: none; }
}

/* 2. About + stats ------------------------------------------------------ */
.single-about-txt h3 { margin-bottom: 22px; }
.single-about-txt p { padding: 0; margin-bottom: 18px; border: 0; font-size: 15.5px; line-height: 1.85; }
.single-about-img:before { width: 100%; background: rgba(31, 44, 108, 0.1); pointer-events: none; }
.single-about-img img { display: block; width: 100%; max-width: none; height: 430px; object-fit: cover; object-position: 50% 28%; }
.about-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid #d5deea;
}
.about-info .single-about-add-info:last-child { grid-column: 1 / -1; }
.about-info .single-about-add-info { margin: 0; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 80px;
  padding: 38px 20px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #14205a 0%, #0b1440 100%);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(11, 20, 64, 0.22);
}
.stat-num { font-size: 44px; font-weight: 700; line-height: 1; }
.stat-plus { margin-left: 2px; font-size: 28px; font-weight: 600; color: #4da3ff; }
.stat-label {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* 3. Education tweak -------------------------------------------------- */
.single-horizontal-timeline .experience-time h3 span { text-transform: none; }

/* 4. Skills -------------------------------------------------------------- */
.skill-groups { padding-top: 70px; }
.skill-groups .row { display: flex; flex-wrap: wrap; }
.skill-groups .row:before, .skill-groups .row:after { display: none; }
.skill-groups .row > [class*="col-"] { display: flex; }

.skill-group {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid #e5ebf2;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(14, 25, 80, 0.05);
  transition: box-shadow 0.45s ease, translate 0.45s ease;
}
.skill-group:hover { box-shadow: 0 14px 32px rgba(14, 25, 80, 0.13); translate: 0 -3px; }
.skill-group h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.skill-group h3 .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 15px;
  color: #0060c7;
  background: #eef5fd;
  border-radius: 8px;
}
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.skill-chips li {
  padding: 6px 13px;
  font-size: 13px;
  line-height: 1.5;
  color: #1f2c6c;
  background: #eef5fd;
  border: 1px solid #d3e4f8;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, translate 0.2s ease;
}
.skill-chips li:hover { color: #fff; background: #0060c7; border-color: #0060c7; translate: 0 -2px; }

/* 5. Experience timeline ---------------------------------------------- */
.xp-timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.xp-list { margin: 0; padding: 0; list-style: none; }
html:not(.motion-ready) .xp-item .xp-dot { background: #0060c7; border-color: #0060c7; }
.xp-timeline::before,
.xp-line-fill {
  content: "";
  position: absolute;
  left: 218px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
}
.xp-timeline::before { background: #dbe4ee; }
.xp-line-fill {
  z-index: 1;
  background: linear-gradient(#0060c7, #6cc3ff);
  transform: scaleY(var(--xp, 1));
  transform-origin: 50% 0;
}
.xp-item {
  position: relative;
  display: grid;
  grid-template-columns: 200px 36px 1fr;
  margin-bottom: 44px;
}
.xp-item:last-child { margin-bottom: 0; }
.xp-when { padding: 4px 22px 0 0; text-align: right; }
.xp-date { display: block; font-size: 17px; color: #0060c7; }
.xp-state {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #14693a;
  background: #e8f7ee;
  border-radius: 999px;
}
.xp-dot {
  position: relative;
  z-index: 2;
  justify-self: center;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  margin-top: 9px;
  background: #fff;
  border: 3px solid #b2c1ce;
  border-radius: 50%;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.xp-item.is-active .xp-dot { background: #0060c7; border-color: #0060c7; box-shadow: 0 0 0 7px rgba(0, 96, 199, 0.16); }
.xp-card {
  position: relative;
  padding: 26px 30px 28px;
  background: #fff;
  border: 1px solid #e5ebf2;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(14, 25, 80, 0.05);
  transition: box-shadow 0.45s ease, translate 0.45s ease;
}
.xp-card:hover { box-shadow: 0 14px 32px rgba(14, 25, 80, 0.12); translate: 0 -3px; }
.xp-card h3 { margin: 0 0 4px; font-size: 19px; font-weight: 600; color: #1f2c6c; text-transform: none; }
.xp-card h4 { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: #0060c7; }
.xp-points { margin: 0; padding: 0; list-style: none; }
.xp-points li { position: relative; padding-left: 20px; margin-bottom: 9px; font-size: 14px; line-height: 1.7; color: #505050; }
.xp-points li:last-child { margin-bottom: 0; }
.xp-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4da3ff;
}

/* 6. Projects ------------------------------------------------------------ */
.projects { padding: 50px 0 100px; border: 1px solid #e5ebf2; }
.projects-content { padding-top: 70px; }
.projects-content .row { display: flex; flex-wrap: wrap; }
.projects-content .row:before, .projects-content .row:after { display: none; }
.projects-content .row > [class*="col-"] { display: flex; }
.project-card {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
  padding: 32px 28px 28px;
  background: #fff;
  border: 1px solid #e5ebf2;
  border-top: 4px solid #0060c7;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(14, 25, 80, 0.05);
  transition: box-shadow 0.45s ease;
}
.project-card:hover { box-shadow: 0 16px 36px rgba(14, 25, 80, 0.15); }
.project-card h3 { margin-bottom: 6px; font-size: 18px; font-weight: 600; }
.project-card .project-type { display: block; margin-bottom: 14px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #6a708e; }
.project-card p { margin-bottom: 18px; line-height: 1.75; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pc-tags li { padding: 3px 11px; font-size: 11.5px; color: #1f2c6c; background: #eef5fd; border: 1px solid #d3e4f8; border-radius: 999px; }
.projects-more { margin-top: 10px; text-align: center; }
.projects-more a { color: #0060c7; font-weight: 600; }

/* 7. Certifications -------------------------------------------------------- */
.cert-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 38px; padding: 0; list-style: none; }
.cert-filter {
  padding: 8px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #1f2c6c;
  background: #fff;
  border: 1px solid #d3e4f8;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, translate 0.25s ease;
}
.cert-filter:hover { border-color: #0060c7; translate: 0 -2px; }
.cert-filter[aria-pressed="true"] { color: #fff; background: #0060c7; border-color: #0060c7; }
.cert-filter .cf-count { margin-left: 6px; font-size: 11px; opacity: 0.7; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; margin: 0; padding: 0; list-style: none; }
.cert-card { position: relative; display: flex; }
.cert-card[hidden] { display: none; }
.cert-open {
  display: block;
  width: 100%;
  flex: 1;
  padding: 0;
  overflow: hidden;
  text-align: left;
  font-family: inherit;
  background: #fff;
  border: 1px solid #e5ebf2;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(14, 25, 80, 0.05);
  cursor: zoom-in;
  transition: box-shadow 0.45s ease, translate 0.45s ease, border-color 0.3s ease;
}
.cert-open:hover { border-color: #b7d3f3; box-shadow: 0 16px 34px rgba(14, 25, 80, 0.15); translate: 0 -4px; }
.cert-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 14px; overflow: hidden; background: #f2f6fb; }
.cert-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 6px 18px rgba(14, 25, 80, 0.12); transition: transform 0.8s var(--m-ease-out, ease); }
.cert-open:hover .cert-thumb img { transform: scale(1.05); }
.cert-body { padding: 16px 18px 18px; }
.cert-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; color: #1f2c6c; }
.cert-issuer { display: block; margin-top: 6px; font-size: 12.5px; color: #6a708e; }
.cert-year { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 3px 11px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(11, 20, 64, 0.82); border-radius: 999px; }
.cert-feat { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 3px 11px; font-size: 11px; font-weight: 600; color: #14693a; background: #e8f7ee; border-radius: 999px; }

.more-certs { margin-top: 56px; padding-top: 40px; border-top: 1px solid #e5ebf2; }
.more-certs h3 { margin-bottom: 22px; font-size: 18px; font-weight: 600; text-align: center; }
.more-certs ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.more-certs li { padding: 8px 14px; font-size: 13px; color: #1f2c6c; background: #eef5fd; border: 1px solid #d3e4f8; border-radius: 999px; }
.more-certs li a { font-size: 13px; color: #0060c7; }

/* certificate viewer (<dialog>) */
.cert-dialog { position: fixed; inset: 0; width: 94vw; max-width: 980px; max-height: 94vh; margin: auto; padding: 0; overflow: visible; background: transparent; border: 0; }
.cert-dialog::backdrop { background: rgba(8, 14, 44, 0.84); backdrop-filter: blur(6px); }
.cd-panel {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.35s ease, transform 0.45s var(--m-ease-out, ease);
}
.cert-dialog.is-in .cd-panel { opacity: 1; transform: none; }
.cd-stage { display: flex; align-items: center; justify-content: center; max-height: 70vh; padding: 22px; background: #f2f6fb; }
.cd-stage img { max-width: 100%; max-height: calc(70vh - 44px); object-fit: contain; border-radius: 4px; box-shadow: 0 10px 30px rgba(14, 25, 80, 0.18); }
.cd-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 26px 22px; }
.cd-info h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; color: #1f2c6c; text-transform: none; }
.cd-info p { margin: 0; font-size: 13px; color: #6a708e; }
.cd-verify { padding: 9px 18px; font-size: 13px; font-weight: 600; color: #fff !important; background: #0060c7 !important; border-radius: 6px; }
.cd-btn {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 22px;
  line-height: 1;
  color: #1f2c6c;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: scale 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.cd-btn:hover { color: #fff; background: #0060c7; scale: 1.08; }
.cd-close { top: 12px; right: 12px; }
.cd-prev, .cd-next { top: 38%; }
.cd-prev { left: 12px; }
.cd-next { right: 12px; }
.cd-count { font-size: 12px; letter-spacing: 1px; color: #6a708e; }

/* 8. Contact form states ----------------------------------------------- */
.contact-form label.sr-only { position: absolute; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 12px 16px; font-size: 14px; line-height: 1.6; border-radius: 6px; }
.form-status[hidden] { display: none; }
.form-status.is-success { color: #14693a; background: #e8f7ee; border: 1px solid #bfe6cd; }
.form-status.is-error { color: #9b1c1c; background: #fdecec; border: 1px solid #f3c1c1; }
.form-status.is-info { color: #1f2c6c; background: #eef5fd; border: 1px solid #d3e4f8; }
.single-contact-btn .contact-btn[disabled] { opacity: 0.7; cursor: progress; }

/* 9. Small screens --------------------------------------------------------- */
@media screen and (max-width: 991px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
}
@media screen and (max-width: 767px) {
  .skill-groups { padding-top: 40px; }
  .projects-content { padding-top: 40px; }
  .about-stats { margin-top: 50px; }
  .stat-num { font-size: 36px; }
  .hero-focus .hf-window { display: block; min-width: 0; margin: 4px auto 0; text-align: center; }
  .hero-focus .hf-word { text-align: center; }
  .scroll-cue { display: none; }
  .single-about-txt h3 { margin-bottom: 20px; }

  .xp-timeline::before, .xp-line-fill { left: 11px; }
  .xp-item { grid-template-columns: 24px 1fr; grid-template-areas: "dot when" "dot card"; margin-bottom: 36px; }
  .xp-when { grid-area: when; padding: 2px 0 12px 14px; text-align: left; }
  .xp-dot { grid-area: dot; margin-top: 5px; }
  .xp-card { grid-area: card; margin-left: 14px; padding: 22px 20px 24px; }

  .cert-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
  .cd-stage { padding: 14px; }
  .cd-prev, .cd-next { top: auto; bottom: 16px; }
  .cd-prev { left: auto; right: 64px; }
  .cd-next { right: 14px; }
  .cd-info { min-height: 78px; padding-right: 126px; }
  .cd-count { display: none; }
}
