/* =========================================================
   PORTFOLIO — GLASS UI
   Matches Blogs/Contact system
========================================================= */

.pf-page {
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Background (Consistent with Contact/About) */
.pf-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: 
    radial-gradient(900px 520px at 15% 20%, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(800px 600px at 85% 30%, rgba(167, 139, 250, 0.06), transparent 60%),
    radial-gradient(1200px 800px at 50% 60%, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8) 70%),
    linear-gradient(180deg, #14140f, #0c0b09);
}

.pf-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------
   HERO SECTION
--------------------------------------------------------- */
.pf-head {
  text-align: center;
  padding: 10px 4px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.pf-shell {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.pf-hero-badge,
.pf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  
  /* Text styles */
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .2px;
  text-transform: none;
  color: rgba(255,255,255,.72);
}

.pf-dot,
.pf-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .95);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, .12);
}

.pf-title {
  margin-top: 16px;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.7px;
  color: rgba(255,255,255,.92);
}

.pf-subtitle {
  margin: 14px auto 0;
  max-width: 60ch;
  color: rgba(255,255,255,.64);
  font-size: 15px;
  line-height: 1.6;
}

.pf-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.pf-btn-li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #0077b5;
  color: #fff;
  border-radius: 99px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pf-btn-li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3);
}

/* ---------------------------------------------------------
   CREDLY BADGES
--------------------------------------------------------- */
.pf-credly {
  margin: 80px 0;
  text-align: center;
}

.pf-credly-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.pf-credly-action {
  margin-top: 20px;
}

.pf-btn-resume {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
}
.pf-btn-resume:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Status Indicator */
.pf-status-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.pf-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 99px;
  font-size: 12px;
  color: #34d399;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.pf-status__dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pfPulse 2s infinite;
}
@keyframes pfPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------------------------------------------------------
   MODAL
--------------------------------------------------------- */
.pf-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pf-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.pf-modal__panel {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: #1a1915;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.pf-modal.is-open .pf-modal__panel {
  transform: translateY(0);
}

.pf-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.pf-modal__close:hover {
  color: #fff;
}

.pf-modal__title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  padding-right: 32px;
}

.pf-modal__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* Responsive Modal */
@media (max-width: 640px) {
  .pf-modal__panel {
    padding: 24px 20px;
  }
  .pf-modal__close {
    top: 12px;
    right: 12px;
  }
}

/* Animation Utility */
.pf-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.pf-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------
   CERTIFICATIONS
--------------------------------------------------------- */
.pf-certs {
  margin: 60px 0;
  text-align: center;
}

.pf-section-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 30px;
}

.pf-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.pf-cert-card {
  background: rgba(255, 255, 255, 0.02); /* Slightly more subtle */
  border: 1px solid rgba(255, 255, 255, 0.05); /* More subtle border */
  border-radius: 12px; /* Softer corners */
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease; /* Remove transform */
  overflow: hidden;
  cursor: pointer; /* Add cursor pointer directly here */
}

.pf-cert-card:hover {
  /* No transform, just a subtle background/border change */
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.pf-cert-preview {
  width: 100%;
  aspect-ratio: 16/10; /* Landscape ratio for certs */
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pf-cert-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pf-cert-card:hover .pf-cert-preview img {
  transform: scale(1.03); /* Smaller scale effect */
}

.pf-cert-preview i {
  font-size: 40px; /* Slightly smaller icon */
  color: rgba(255, 255, 255, 0.2);
}

.pf-cert-info {
  padding: 12px; /* Further reduced padding */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pf-cert-info h3 {
  font-size: 13px; /* Smaller font for compact card */
  font-weight: 600; /* Less bold */
  color: #fff;
  margin-bottom: 2px;
  line-height: 1.2;
}

.pf-cert-info p {
  font-size: 11px; /* Tiny description text */
  color: rgba(255, 255, 255, 0.5); /* Lighter color */
}

/* ---------------------------------------------------------
   SLIDER
--------------------------------------------------------- */
.pf-slider {
  position: relative;
  width: 100%;
  height: 320px;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  display: none;
}

.pf-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.pf-slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.pf-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.2s;
  z-index: 2;
}
.pf-slider__nav:hover { background: rgba(0, 0, 0, 0.8); }
.pf-slider__prev { left: 12px; }
.pf-slider__next { right: 12px; }

.pf-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.pf-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s;
}
.pf-slider__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

/* ---------------------------------------------------------
   CTA SECTION
--------------------------------------------------------- */
.pf-cta {
  margin: 60px auto 20px;
  text-align: center;
  max-width: 700px;
}

.pf-cta__glass {
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.pf-cta__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.pf-cta__glass h2 {
  position: relative;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  z-index: 1;
}

.pf-cta__glass p {
  position: relative;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
  line-height: 1.6;
  z-index: 1;
}

.pf-cta__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: #fff;
  color: #000;
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pf-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Responsive Grid (Matches Blog) */
@media (max-width: 1200px){
  .pf-cert-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .pf-cert-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .pf-cert-grid{ grid-template-columns: 1fr; }
}