/* =========================================================
   PORTFOLIO PAGE SECTION
========================================================= */

.portfolio-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(91, 91, 247, 0.08),
      transparent 25%
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(139, 92, 246, 0.07),
      transparent 25%
    ),
    #ffffff;
}

.portfolio-section .section-header {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.portfolio-section .section-header h2 span {
  color: #5b5bf7;
}

/* =========================================================
   PORTFOLIO GRID
========================================================= */

.portfolio-section .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 50px;
}

/* =========================================================
   PORTFOLIO CARD
========================================================= */

.portfolio-section .portfolio-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e6e8ef;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.04),
    0 24px 55px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.portfolio-section .portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(91, 91, 247, 0.22);
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.07),
    0 35px 80px rgba(15, 23, 42, 0.1);
}

/* =========================================================
   PREVIEW
========================================================= */

.portfolio-section .portfolio-preview {
  position: relative;
  height: 285px;
  overflow: hidden;
  background: #f7f8fb;
}

/* =========================================================
   TOP BAR
========================================================= */

.portfolio-section .portfolio-topbar {
  position: relative;
  z-index: 3;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.96);
}

.portfolio-section .portfolio-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #d5d8df;
}

.portfolio-section .portfolio-file-name {
  margin-left: 8px;
  color: #818794;
  font-size: 10px;
  font-weight: 700;
}

/* =========================================================
   CARD CONTENT
========================================================= */

.portfolio-section .portfolio-content {
  padding: 25px 25px 28px;
}

.portfolio-section .portfolio-category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.portfolio-section .portfolio-category i {
  font-size: 14px;
}

.portfolio-section .portfolio-content h3 {
  margin: 0;
  color: #111827;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.portfolio-section .portfolio-content p {
  margin-top: 10px;
  margin-bottom: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.75;
}

/* =========================================================
   HOVER OVERLAY
========================================================= */

.portfolio-section .portfolio-overlay {
  position: absolute;
  z-index: 5;
  inset: 40px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.portfolio-section .portfolio-card:hover .portfolio-overlay {
  opacity: 1;
  visibility: visible;
}

.portfolio-section .portfolio-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 19px;
  border-radius: 13px;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  font-size: 12px;
  font-weight: 800;
  transform: translateY(14px);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.portfolio-section .portfolio-card:hover .portfolio-view-btn {
  transform: translateY(0);
}

.portfolio-section .portfolio-view-btn:hover {
  background: #f3f4f6;
}

/* =========================================================
   WORD
========================================================= */

.portfolio-section .portfolio-word .portfolio-preview {
  background: linear-gradient(180deg, #eef5ff, #f8fbff);
}

.portfolio-section .word-demo-page {
  width: 72%;
  height: 210px;
  margin: 18px auto 0;
  padding: 23px 21px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

.portfolio-section .demo-document-title {
  width: 55%;
  height: 9px;
  margin-bottom: 9px;
  border-radius: 20px;
  background: #2563eb;
}

.portfolio-section .demo-document-subtitle {
  width: 38%;
  height: 5px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: #bfdbfe;
}

.portfolio-section .demo-text-line {
  height: 4px;
  margin-bottom: 8px;
  border-radius: 20px;
  background: #dce1ea;
}

.portfolio-section .demo-text-line.long {
  width: 100%;
}

.portfolio-section .demo-text-line.medium {
  width: 82%;
}

.portfolio-section .demo-word-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 20px;
}

.portfolio-section .demo-word-table span {
  height: 21px;
  background: #edf4ff;
}

/* =========================================================
   EXCEL
========================================================= */

.portfolio-section .portfolio-excel .portfolio-preview {
  background: linear-gradient(180deg, #edf9f2, #f8fdf9);
}

.portfolio-section .excel-demo-sheet {
  width: 87%;
  height: 210px;
  margin: 18px auto 0;
  padding: 13px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(22, 133, 74, 0.11);
}

.portfolio-section .excel-demo-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.portfolio-section .excel-demo-table span {
  height: 22px;
  display: grid;
  place-items: center;
  color: #157347;
  background: #dcfce7;
  font-size: 8px;
  font-weight: 800;
}

.portfolio-section .excel-demo-table div {
  height: 20px;
  border: 1px solid #edf0f2;
}

.portfolio-section .excel-demo-chart {
  height: 70px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 14px 8px 0;
  padding: 0 10px;
  border-left: 1px solid #dce2e5;
  border-bottom: 1px solid #dce2e5;
}

.portfolio-section .excel-demo-chart span {
  flex: 1;
  min-width: 12px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #22c55e, #16854a);
}

/* =========================================================
   POWERPOINT
========================================================= */

.portfolio-section .portfolio-slide .portfolio-preview {
  background: linear-gradient(180deg, #fff1e8, #fffaf7);
}

.portfolio-section .slide-demo-preview {
  position: relative;
  width: 86%;
  height: 200px;
  margin: 21px auto 0;
  overflow: hidden;
  padding: 31px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #e85d0d, #f97316);
  box-shadow: 0 14px 35px rgba(232, 93, 13, 0.2);
}

.portfolio-section .slide-demo-label {
  position: relative;
  z-index: 2;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;
  opacity: 0.82;
}

.portfolio-section .slide-demo-preview h4 {
  position: relative;
  z-index: 2;
  margin: 15px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
}

.portfolio-section .slide-demo-decoration {
  position: absolute;
  width: 135px;
  height: 135px;
  right: -25px;
  top: 25px;
  border: 25px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.portfolio-section .slide-demo-footer {
  position: absolute;
  left: 31px;
  right: 31px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.portfolio-section .slide-demo-footer span {
  font-size: 8px;
  font-weight: 800;
}

.portfolio-section .slide-demo-footer div {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.38);
}

/* =========================================================
   EDUCATION
========================================================= */

.portfolio-section .portfolio-education .portfolio-preview {
  background: linear-gradient(180deg, #f1efff, #faf9ff);
}

.portfolio-section .education-demo-preview {
  width: 88%;
  height: 210px;
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.12);
}

.portfolio-section .education-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.portfolio-section .education-demo-head span,
.portfolio-section .education-demo-head strong {
  font-size: 8px;
  font-weight: 800;
}

.portfolio-section .education-demo-table {
  display: grid;
  grid-template-columns: 0.35fr 2fr 0.55fr;
  padding: 12px;
}

.portfolio-section .education-demo-table div {
  min-height: 33px;
  display: flex;
  align-items: center;
  padding: 7px;
  border-right: 1px solid #ececf4;
  border-bottom: 1px solid #ececf4;
  color: #727887;
  font-size: 7px;
}

.portfolio-section .education-demo-table .edu-head {
  color: #4f46e5;
  background: #f5f3ff;
  font-weight: 800;
}

/* =========================================================
   PDF
========================================================= */

.portfolio-section .portfolio-pdf .portfolio-preview {
  background: linear-gradient(180deg, #fff0f0, #fffafa);
}

.portfolio-section .pdf-demo-preview {
  height: 215px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.portfolio-section .pdf-demo-file {
  width: 95px;
  height: 125px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
}

.portfolio-section .pdf-demo-file i {
  font-size: 34px;
}

.portfolio-section .pdf-demo-file span {
  font-size: 9px;
  font-weight: 800;
}

.portfolio-section .pdf-file-left {
  color: #ef4444;
}

.portfolio-section .pdf-file-right {
  color: #2563eb;
}

.portfolio-section .pdf-demo-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #ef4444;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25);
}

/* =========================================================
   DESIGN
========================================================= */

.portfolio-section .portfolio-design .portfolio-preview {
  background: linear-gradient(180deg, #fbeefd, #fff8ff);
}

.portfolio-section .design-demo-preview {
  position: relative;
  width: 75%;
  height: 210px;
  margin: 18px auto 0;
  overflow: hidden;
  padding: 25px;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(145deg, #a21caf, #7e22ce);
  box-shadow: 0 14px 35px rgba(162, 28, 175, 0.22);
}

.portfolio-section .design-demo-small {
  position: relative;
  z-index: 2;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.portfolio-section .design-demo-preview h4 {
  position: relative;
  z-index: 2;
  margin: 14px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.05;
}

.portfolio-section .design-demo-preview p {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  font-size: 8px;
  opacity: 0.8;
}

.portfolio-section .design-demo-shape {
  position: absolute;
  border-radius: 50%;
}

.portfolio-section .shape-a {
  width: 120px;
  height: 120px;
  right: -38px;
  top: 20px;
  border: 26px solid rgba(255, 255, 255, 0.12);
}

.portfolio-section .shape-b {
  width: 55px;
  height: 55px;
  right: 45px;
  bottom: -17px;
  background: rgba(255, 255, 255, 0.14);
}

.portfolio-section .design-demo-date {
  position: absolute;
  left: 25px;
  bottom: 18px;
  font-size: 9px;
  font-weight: 800;
}

/* =========================================================
   CATEGORY COLORS
========================================================= */

.portfolio-section .portfolio-word .portfolio-category {
  color: #2563eb;
}

.portfolio-section .portfolio-excel .portfolio-category {
  color: #16854a;
}

.portfolio-section .portfolio-slide .portfolio-category {
  color: #e85d0d;
}

.portfolio-section .portfolio-education .portfolio-category {
  color: #4f46e5;
}

.portfolio-section .portfolio-pdf .portfolio-category {
  color: #ef4444;
}

.portfolio-section .portfolio-design .portfolio-category {
  color: #a21caf;
}

/* =========================================================
   NOTE
========================================================= */

.portfolio-section .portfolio-note {
  max-width: 780px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 34px auto 0;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  background: #f8fafc;
}

.portfolio-section .portfolio-note i {
  margin-top: 2px;
  color: #5b5bf7;
  font-size: 14px;
}

.portfolio-section .portfolio-note p {
  margin: 0;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.7;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {
  .portfolio-section .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
  .portfolio-section {
    padding: 75px 0;
  }

  .portfolio-section .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .portfolio-section .portfolio-preview {
    height: 275px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
  .portfolio-section .portfolio-card {
    border-radius: 20px;
  }

  .portfolio-section .portfolio-content {
    padding: 22px;
  }

  .portfolio-section .portfolio-content h3 {
    font-size: 18px;
  }

  .portfolio-section .portfolio-content p {
    font-size: 12px;
  }

  .portfolio-section .word-demo-page,
  .portfolio-section .excel-demo-sheet,
  .portfolio-section .education-demo-preview {
    width: 88%;
  }

  .portfolio-section .design-demo-preview {
    width: 82%;
  }
}
