/* ========================================
   CUTE PORTFOLIO SHOWCASE
======================================== */

.portfolio-showcase {
  position: relative;
  overflow: hidden;
  padding: 85px 0 95px;
  background:
    radial-gradient(
      circle at 8% 20%,
      rgba(231, 180, 163, 0.14),
      transparent 22%
    ),
    radial-gradient(
      circle at 95% 70%,
      rgba(224, 186, 160, 0.14),
      transparent 20%
    ),
    #fbf7f2;
}


/* ========================================
   INTRO
======================================== */

.portfolio-showcase-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(55px, 8vw, 110px);
  margin-bottom: 58px;
}

.portfolio-intro-copy {
  position: relative;
  max-width: 620px;
}

.portfolio-intro-copy h2 {
  margin: 14px 0 0;
  color: #302019;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(49px, 6vw, 75px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1.8px;
}

.portfolio-intro-copy h2 em {
  display: block;
  margin-top: 8px;
  color: #513125;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 0.94em;
  font-weight: 400;
  line-height: 1.1;
}

.portfolio-intro-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  margin: 30px 0;
  color: #c07d61;
}

.portfolio-intro-divider span {
  height: 1px;
  flex: 1;
  background: #dcbbaa;
}

.portfolio-intro-divider i {
  font-size: 17px;
  font-style: normal;
}

.portfolio-intro-copy p {
  max-width: 560px;
  margin: 0;
  color: #705e55;
  font-size: 16px;
  line-height: 1.8;
}

.portfolio-doodle-heart {
  display: block;
  margin-top: 28px;
  color: #df9e89;
  font-family: Georgia, serif;
  font-size: 55px;
  line-height: 1;
  transform: rotate(-12deg);
}


/* ========================================
   FEATURED IMAGE
======================================== */

.portfolio-featured-visual {
  position: relative;
  max-width: 590px;
  margin-left: auto;
  padding: 20px;
  transform: rotate(-1deg);
}

.portfolio-featured-frame {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 13px solid #ffffff;
  background: #e9ddd2;
  box-shadow: 0 22px 55px rgba(68, 43, 32, 0.14);
}

.portfolio-featured-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.portfolio-tape {
  position: absolute;
  top: 4px;
  left: -4px;
  z-index: 4;
  width: 94px;
  height: 30px;
  background: rgba(215, 178, 139, 0.62);
  transform: rotate(-38deg);
}

.portfolio-story-badge {
  position: absolute;
  top: 38px;
  right: -38px;
  z-index: 5;
  display: flex;
  width: 128px;
  height: 128px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #cf8f75;
  border-radius: 50%;
  background: #fff3ec;
  color: #5a372b;
  text-align: center;
  box-shadow: 0 12px 30px rgba(64, 40, 30, 0.1);
}

.portfolio-story-badge::before {
  position: absolute;
  inset: 7px;
  border: 1px solid #e3b9a7;
  border-radius: 50%;
  content: "";
}

.portfolio-story-badge span,
.portfolio-story-badge strong,
.portfolio-story-badge i {
  position: relative;
  z-index: 1;
}

.portfolio-story-badge span,
.portfolio-story-badge strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.portfolio-story-badge i {
  margin-top: 6px;
  color: #d79680;
  font-size: 13px;
  font-style: normal;
}

.portfolio-flower-doodle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  z-index: 5;
  color: #c89a75;
  font-size: 72px;
  opacity: 0.72;
}


/* ========================================
   FILTERS
======================================== */

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
  padding: 0 15px;
}

.portfolio-filter {
  display: inline-flex;
  min-width: 130px;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid #ddbaa7;
  border-radius: 999px;
  background: transparent;
  color: #835438;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.portfolio-filter:hover,
.portfolio-filter.active {
  border-color: #d4937b;
  background: #d99b84;
  color: #ffffff;
  transform: translateY(-2px);
}


/* ========================================
   GALLERY
======================================== */

.portfolio-cute-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.portfolio-cute-item {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid #ead6ca;
  border-radius: 15px;
  background: #eadfd6;
  box-shadow: 0 12px 30px rgba(65, 42, 32, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.3s ease;
}

.portfolio-cute-item:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 20px 45px rgba(65, 42, 32, 0.12);
}

.portfolio-cute-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.portfolio-cute-item:hover img {
  transform: scale(1.04);
}

.portfolio-cute-item.is-hidden {
  display: none;
}

.portfolio-zoom {
  position: absolute;
  right: 15px;
  bottom: 15px;
  display: flex;
  width: 43px;
  height: 43px;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #dc9a82;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(53, 32, 24, 0.17);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
}

.portfolio-zoom:hover {
  background: #bb765e;
  transform: scale(1.08);
}


/* ========================================
   CTA
======================================== */

.portfolio-cute-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 34px;
  padding: 27px 32px;
  border: 1px solid #e2c9bb;
  border-radius: 18px;
  background:
    linear-gradient(
      90deg,
      #f9eee8,
      #fffaf6
    );
}

.portfolio-cta-copy {
  display: flex;
  align-items: center;
  gap: 20px;
}

.portfolio-cta-icon {
  display: flex;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid #e1bca9;
  border-radius: 50%;
  background: #fff7f2;
  color: #c1795e;
  font-size: 25px;
}

.portfolio-cta-copy h3 {
  margin: 0 0 5px;
  color: #3a251e;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 36px;
  font-weight: 400;
}

.portfolio-cta-copy p {
  margin: 0;
  color: #756159;
  font-size: 14px;
}

.portfolio-cta-actions {
  display: flex;
  flex-shrink: 0;   
}

.portfolio-cta-actions .btn {
  min-width: 210px;
  min-height: 52px;
}

.portfolio-whatsapp-btn {
  border: 1px solid #c9856d;
  background: transparent;
  color: #a56750;
}

.portfolio-whatsapp-btn:hover {
  background: #c9856d;
  color: #ffffff;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 950px) {
  .portfolio-showcase-intro {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .portfolio-featured-visual {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
  }

  .portfolio-cute-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-filters {
    flex-wrap: wrap;
  }

  .portfolio-cute-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 650px) {
  .portfolio-showcase {
    padding: 60px 0 70px;
  }

  .portfolio-intro-copy h2 {
    font-size: 45px;
  }

  .portfolio-intro-copy p {
    font-size: 14px;
  }

  .portfolio-featured-visual {
    padding: 12px;
  }

  .portfolio-featured-frame {
    border-width: 8px;
  }

  .portfolio-story-badge {
    top: -24px;
    right: -7px;
    width: 100px;
    height: 100px;
  }

  .portfolio-story-badge span,
  .portfolio-story-badge strong {
    font-size: 13px;
  }

  .portfolio-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 20px 10px;
    scrollbar-width: none;
  }

  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }

  .portfolio-filter {
    flex: 0 0 auto;
    min-width: 115px;
  }

  .portfolio-cute-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .portfolio-cute-item {
    aspect-ratio: 4 / 3;
  }

  .portfolio-cute-cta {
    padding: 24px 20px;
  }

  .portfolio-cta-copy {
    align-items: flex-start;
  }

  .portfolio-cta-copy h3 {
    font-size: 31px;
  }

  .portfolio-cta-actions {
    width: 100%;
  }

  .portfolio-cta-actions .btn {
    width: 100%;
  }
}

/* ========================================
   PORTFOLIO SOCIAL LINKS
======================================== */

.portfolio-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 38px 0 25px;
}

.portfolio-social-link {
  display: inline-flex;
  min-width: 190px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 25px;
  border: 1px solid #ddb7a5;
  border-radius: 999px;
  background: #fffaf6;
  color: #945d46;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(68, 43, 32, 0.06);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.portfolio-social-link:hover {
  border-color: #c9856d;
  background: #c9856d;
  color: #ffffff;
  transform: translateY(-3px);
}

.portfolio-social-logo {
  display: flex;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 19px;
  line-height: 1;
}

.instagram-logo {
  font-size: 22px;
}

@media (max-width: 600px) {
  .portfolio-social-links {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .portfolio-social-link {
    width: 100%;
  }
}

/* ==========================================
   Portfolio Hero Banner
========================================== */

.portfolio-banner {
    background:
        linear-gradient(rgba(24,20,18,.52), rgba(24,20,18,.52)),
        image-set(url("../assets/images/hero/portfolio-hero-2160.webp") type("image/webp"), url("../assets/images/hero/portfolio-hero.jpeg") type("image/jpeg"))
        center 25% / cover no-repeat;
}

/* ========================================
   PORTFOLIO LIGHTBOX TRIGGERS
======================================== */

.portfolio-cute-item img {
  cursor: zoom-in;
}

.portfolio-cute-item img:focus-visible {
  outline: 3px solid #d99b84;
  outline-offset: -5px;
}

/* ========================================
   PORTFOLIO LIGHTBOX
======================================== */

body.portfolio-lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 88px;
  background: rgba(24, 20, 18, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0s;
}

.lightbox.is-closing {
  opacity: 0;
  pointer-events: none;
}

.lightbox-image {
  display: block;
  width: auto;
  max-width: min(100%, 1280px);
  height: auto;
  max-height: calc(100vh - 120px);
  border-radius: 15px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.lightbox.is-open .lightbox-image {
  opacity: 1;
  transform: scale(1);
}

.lightbox.is-open .lightbox-image.is-changing {
  opacity: 0;
  transform: scale(0.975);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  border-color: #ffffff;
  background: rgba(217, 155, 132, 0.92);
  outline: none;
}

.lightbox-close {
  top: 22px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 35px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 42px;
  transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  transform: scale(1.06);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* ========================================
   PORTFOLIO LIGHTBOX MOBILE
======================================== */

@media (max-width: 650px) {
  .lightbox {
    padding: 68px 16px 100px;
  }

  .lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    border-radius: 12px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    font-size: 31px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 22px;
    width: 50px;
    height: 50px;
    font-size: 38px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 66px);
  }

  .lightbox-next {
    right: calc(50% - 66px);
  }

  .lightbox-prev:hover,
  .lightbox-next:hover,
  .lightbox-prev:focus-visible,
  .lightbox-next:focus-visible {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox-image,
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    transition-duration: 0.01ms;
  }
}
