/* ==========================
   PORTFOLIO BASE LAYOUT
========================== */
.portfolio {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 50px;
}

.portfolio h1{
  font-size: 40px;
  padding-top: 0;
  padding-bottom: 30px;
  font-weight: 600;
  text-align: center;
}

.portfolio p {
  color: #2e2e2e;
  text-align: left;
  font-size: 15px;
  font-weight: 300;
  line-height: 25px;
  padding: 15px 0 25px;
}

.portfolio i {
  font-size: 20px;
  font-weight: 300;
}


/* ==========================
   GRID LAYOUT
========================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
  max-width: 2000px;
  margin: 0 auto;
  padding: 20px;
}

/* ==========================
   PORTFOLIO CARD
========================== */
.portfolio-col {
  width: 100%;
  max-width: 350px;
  min-width: 260px;
  height: auto;
  background: #f4d8ae9f;
  border-radius: 10px;
  margin-bottom: 5%;
  padding: 20px 12px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.portfolio-col img {
  width: 75%;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
}

.portfolio-col h1 {
  font-weight: 800;
  font-size: 1.7rem;
  text-align: center;
  margin: 12px 0;
  line-height: 1.3;
}

.portfolio-col h3 {
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  width: 100%;
  margin: 8px 0;
  line-height: 1.4;
}

/* Text content inside cards */
.portfolio-col p,
.portfolio-col ul {
  font-size: 15px;;
  text-align: left;
  width: 90%;
  margin-top: 12px;
  margin-bottom: 16px;
  line-height: 1.5;
  color: #2e2e2e;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .portfolio-col {
    max-width: 90%;
    margin-bottom: 20px;
  }
}

/* ==========================
   TELEPORT / LINK BUTTON
========================== */
.tel-btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 8px;
  background: #fc7651;
  color: #fff;
  cursor: pointer;
  border: 1px solid #fc7651;
  transition: all 0.3s ease;
}

.tel-btn:hover {
  background: #d64d28;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ==========================
   TOGGLE SUBTITLE (Expandable)
========================== */
.toggle-subtitle {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: #fc7651;
  text-underline-offset: 6px;
  text-decoration-skip-ink: auto;
  transition: color 0.1s ease, text-decoration-color 0.25s ease;
}

.toggle-subtitle:hover,
.toggle-subtitle.open {
  color: #0077b6;
  text-decoration-color: #fc7651;
  text-decoration-thickness: 3px;
}

/* Subtitle expandable list */
.subtitle-description {
  display: none;
  text-align: left;
  width: 100%;
  margin: 8px 0 12px;
  line-height: 1.5;
}

.subtitle-description li {
  margin-bottom: 10px;
}

.subtitle-description.active {
  display: block;
}

/* ==========================
   EXPANDABLE IMAGES
========================== */
.desc-img {
  display: block;
  width: 90%;
  max-width: 500px;
  margin: 15px auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.desc-img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(252, 118, 81, 0.6);
}

/* Image popup overlay */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.image-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.image-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  cursor: zoom-out;
}

/* ==========================
   PROJECT DESCRIPTIONS
========================== */
.project-description {
  display: none;
  text-align: center;
  margin-top: 10px;
  color: #333;
}

.project-description.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
