﻿/* ==============================================
   PORTFOLIO — HERO OVERRIDE
   ============================================== */
.portfolio-hero__sub {
  position: absolute;
  z-index: 1;
  font-size: clamp(16px, 2vw, 32px);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -1.6px;
  line-height: 1;
  bottom: clamp(52px, 9vw, 165px);
  left: var(--sp);
}

/* ==============================================
   PORTFOLIO — PROJECT ROWS (all white bg)
   ============================================== */
.port-row {
  position: relative;
  z-index: 1;
  background: #ffffff;
  padding: 80px var(--sp);
  display: flex;
  align-items: center;
  gap: clamp(40px, 5.5vw, 90px);
  /* overflow: visible by default — images can float into adjacent bands */
}

/* First row: extra top padding prevents image from floating into hero */
.port-row--first {
  padding-top: 200px;
}

/* Last row: extra bottom padding prevents image from floating into the footer */
.port-row--last {
  padding-bottom: 200px;
}

/* Flip: on desktop screens, reverse the row (image on left, text on right) */
@media (min-width: 1025px) {
  .port-row--flip {
    flex-direction: row-reverse;
  }
}

/* ==============================================
   PORTFOLIO — TEXT
   ============================================== */
.port-row__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.port-row__tag {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 20px;
  background: #f2f2f3;
  border: 1px solid #e9e9e9;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 500;
  color: #9d9d9d;
  letter-spacing: -0.75px;
  align-self: flex-start;
  white-space: nowrap;
}

.port-row__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.port-row__title {
  font-size: clamp(30px, 4.2vw, 60px);
  font-weight: 600;
  color: #3c3c3c;
  letter-spacing: -3px;
  line-height: 1;
}

.port-row__desc {
  font-size: 15px;
  font-weight: 400;
  color: #838693;
  letter-spacing: -0.75px;
  line-height: 1.65;
}

/* ==============================================
   PORTFOLIO — BUTTONS
   ============================================== */
.port-row__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.port-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #009cde;
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.85px;
  padding: 26px 50px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.port-btn-primary:hover {
  background: #007bae;
  transform: translateY(-1px);
}

.port-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #5edf55;
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.85px;
  padding: 0 40px;
  height: 80px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.port-btn-wa img {
  width: 21px;
  height: 21px;
  display: block;
  flex-shrink: 0;
}
.port-btn-wa:hover {
  background: #44c43c;
  transform: translateY(-1px);
}

/* ==============================================
   PORTFOLIO — MOCK IMAGE (floating effect)
   ============================================== */
.port-row__mock {
  flex-shrink: 0;
  width: 44%;
  max-width: 540px;
  position: relative;
  /* stretch to match the text column height */
  align-self: stretch;
  /* overflow visible so the image can extend into adjacent bands */
  overflow: visible;
  z-index: 2;
}

.port-row__mock img {
  /* center the image within the mock wrapper;
     since the image is taller than the wrapper,
     it overflows equally above and below into the blue bands */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.2);
  display: block;
}

/* ==============================================
   PORTFOLIO — BLUE BAND (between rows)
   ============================================== */
.port-band {
  position: relative;
  z-index: 0;
  background: #009cde;
  height: 240px;
  overflow: hidden;
}

.port-band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
}

/* ==============================================
   PORTFOLIO — PAGINATION
   ============================================== */
.port-pagination {
  background: #009cde;
  position: relative;
  overflow: hidden;
  padding: 60px var(--sp);
  display: flex;
  justify-content: center;
  align-items: center;
}

.port-pagination__bg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.35;
}

.port-pagination__items {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.port-pagination__btn {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #3c3c3c;
  background: #ffffff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.port-pagination__btn--outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
}
.port-pagination__btn--arrow {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 22px;
  font-weight: 400;
  width: auto;
  padding: 0 6px;
}
.port-pagination__btn:hover { opacity: 0.8; }

/* ==============================================
   PORTFOLIO — MOBILE / TABLET (<= 1024px)
   ============================================== */
@media (max-width: 1024px) {
  /* Stack text on top, image below — never side by side */
  .port-row {
    flex-direction: column !important;
    align-items: stretch;
    gap: 36px;
    padding: 56px var(--sp);
  }
  .port-row--first {
    padding-top: 120px;
  }
  /* Mobile: First image, then text */
  .port-row__mock,
  .port-row--flip .port-row__mock {
    order: 1 !important;
    width: 100%;
    max-width: 100%;
    align-self: auto;
  }
  .port-row__text {
    order: 2 !important;
    width: 100%;
    gap: 24px;
  }

  /* Full-width image, back in normal flow so the row gets natural height */
  .port-row__mock img {
    position: static;
    transform: none;
    width: 100%;
  }

  /* Slimmer decorative bands between rows */
  .port-band {
    height: 120px;
  }
}

@media (max-width: 560px) {
  /* Stacked, full-width buttons */
  .port-row__btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 14px;
  }
  .port-btn-primary,
  .port-btn-wa {
    width: 100%;
  }
}
