/* Custom additions on top of the MyResume template */

/* Hero buttons */
.hero-cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-cv {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0563bb; color: #fff; padding: 10px 22px; border-radius: 50px;
  font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 500;
  border: 2px solid #0563bb; transition: all .3s;
}
.btn-cv:hover { background: #0678e3; border-color: #0678e3; color: #fff; }
.btn-cv-ghost { background: transparent; border-color: #0563bb; color: #0563bb; }
.btn-cv-ghost:hover { background: #0563bb; border-color: #0563bb; color: #fff; }
.btn-cv-dark { margin-top: 8px; }
#hero .social-links { margin-top: 22px; }
#hero .social-links a i, #footer .social-links a i { line-height: 1; }

/* About photo */
.profile-photo {
  width: 100%; max-width: 340px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%;
  border-radius: 14px; box-shadow: 0 12px 30px rgba(5, 99, 187, .25); border: 4px solid #fff;
}

/* Facts */
.facts .count-box span.plus::after { content: "+"; }

/* Skills as grouped chips */
.skill-groups .sgroup {
  background: #fff; border-radius: 12px; padding: 18px 20px; margin-bottom: 24px; height: calc(100% - 24px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, .07); border-top: 3px solid #0563bb;
}
.skill-groups .sgroup h4 { font-size: 17px; font-weight: 700; color: #173b6c; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.skill-groups .sgroup h4 i { color: #0563bb; font-size: 22px; }
.schips { display: flex; flex-wrap: wrap; gap: 8px; }
.schips span { background: #eef5fc; color: #173b6c; border: 1px solid #cfe1f4; border-radius: 50px; padding: 4px 12px; font-size: 13px; }
.skills .learning { text-align: center; margin-top: 6px; color: #555; }

/* Portfolio cards */
.portfolio .portfolio-item { margin-bottom: 28px; }
.pcard {
  background: #fff; border-radius: 14px; overflow: hidden; height: 100%;
  box-shadow: 0 3px 18px rgba(0, 0, 0, .09); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(5, 99, 187, .2); }
.pmedia { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: #eef2f7; }
.pmedia img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; display: block; }
.pmedia img.contain { object-fit: contain; object-position: center; background: #fff; }
.pcard:hover .pmedia img { transform: scale(1.04); }
.pmedia a { display: block; height: 100%; }
.pbadge {
  position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, .95); color: #173b6c;
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 50px; box-shadow: 0 1px 6px rgba(0, 0, 0, .15);
}
.pbanner { height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; }
.pbanner i { font-size: 76px; opacity: .95; text-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.pbanner.g1 { background: linear-gradient(135deg, #0563bb, #13a3d6); }
.pbanner.g2 { background: linear-gradient(135deg, #173b6c, #0563bb); }
.pbanner.g3 { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.pbanner.g4 { background: linear-gradient(135deg, #7c3aed, #3b82f6); }
.pbanner.g5 { background: linear-gradient(135deg, #db2777, #f59e0b); }
.pbanner.g6 { background: linear-gradient(135deg, #1e293b, #0563bb); }
.pbody { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.ptag { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #0563bb; }
.pbody h4 { font-size: 18px; font-weight: 700; color: #173b6c; margin: 4px 0 8px; }
.pbody p { font-size: 14px; color: #444; margin-bottom: 12px; flex: 1; }
.ptech { display: flex; flex-wrap: wrap; gap: 6px; }
.ptech span { background: #eef5fc; color: #173b6c; border-radius: 6px; padding: 2px 9px; font-size: 12px; }
.plink { margin-top: 12px; font-weight: 600; font-size: 14px; }

#portfolio-flters { flex-wrap: wrap; justify-content: center; }

/* Mobile polish */
@media (max-width: 991px) {
  .profile-photo { max-width: 280px; display: block; margin: 0 auto; }
}
@media (max-width: 575px) {
  .hero-cta { justify-content: center; }
}

/* Contact form */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-card form[hidden], .contact-card .form-success[hidden] { display: none; }
.form-status { margin: 14px 0 0; text-align: center; font-size: 14px; }
.form-status.error { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; border-radius: 8px; padding: 10px 14px; margin-bottom: 4px; }
.mail-form button[type=submit] { min-width: 170px; }
.mail-form button[disabled] { opacity: .85; cursor: wait; }
.btn-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; margin-left: 8px; }
.contact-card.sending .btn-spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { text-align: center; padding: 38px 24px; background: #fff; border-radius: 14px; box-shadow: 0 3px 18px rgba(0,0,0,.09); border-top: 4px solid #16a34a; animation: pop .4s ease; }
.form-success .tick { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: flex; align-items: center; justify-content: center; font-size: 42px; }
.form-success h4 { font-size: 24px; font-weight: 700; color: #173b6c; margin-bottom: 8px; }
.form-success p { color: #444; max-width: 420px; margin: 0 auto 18px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
