/* ==========================================================================
   PORTFOLIO PAGE - MASONRY GALLERY (SIMPLIFIED)
   Clean masonry layout with no text, no sliders
   ========================================================================== */

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */

.portfolio-section {
    padding: 5rem 0;
    background: #fff;
    opacity: 1 !important;
    transform: none !important;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Filter Buttons */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary, #64748b);
    background: var(--color-bg-light, #f8fafc);
    border: 1px solid var(--color-border-light, #e2e8f0);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--color-secondary-teal, #14b8a6);
    border-color: var(--color-secondary-teal, #14b8a6);
    background: rgba(20, 184, 166, 0.05);
}

.filter-btn.active {
    color: #fff;
    background: var(--color-secondary-teal, #14b8a6);
    border-color: var(--color-secondary-teal, #14b8a6);
}

/* ==========================================================================
   MASONRY GALLERY
   ========================================================================== */

.portfolio-grid {
    column-count: 3;
    column-gap: 1.25rem;
}

.portfolio-item {
    break-inside: avoid;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Hide all text elements */
.portfolio-item-header,
.portfolio-item-footer,
.portfolio-item-title,
.portfolio-item-tag,
.portfolio-item-description,
.portfolio-item-tags {
    display: none !important;
}

/* ==========================================================================
   SINGLE IMAGE DISPLAY
   ========================================================================== */

.portfolio-single-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
}

.portfolio-single-image img,
.portfolio-single-image video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-single-image img,
.portfolio-item:hover .portfolio-single-image video {
    transform: scale(1.05);
}

/* ==========================================================================
   LOAD MORE BUTTON
   ========================================================================== */

.portfolio-load-more {
    text-align: center;
    margin-top: 3rem;
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */

.final-cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a0e1a 0, #0f172a 50%, #1e293b 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(45, 212, 191, 0.08) 0, transparent 60%);
    pointer-events: none;
}

.cta-container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .portfolio-grid {
        column-count: 2;
        column-gap: 1rem;
    }
    
    .portfolio-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 4rem 0;
    }

    .section-container {
        padding: 0 1.5rem;
    }

    .portfolio-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .portfolio-grid {
        column-count: 2;
        column-gap: 0.75rem;
    }
    
    .portfolio-item {
        margin-bottom: 0.75rem;
    }

    .final-cta-section {
        padding: 4rem 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        column-count: 1;
        column-gap: 0;
    }
    
    .portfolio-item {
        margin-bottom: 1rem;
    }
}

/* Before/After Slider in Portfolio */


/* Before/After Slider in Portfolio */
/* Before/After Slider in Portfolio */
.showcase-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  cursor: ew-resize;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.showcase-before,
.showcase-after {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.showcase-before {
  z-index: 1;
}

.showcase-after {
  z-index: 2;
}

.showcase-before img,
.showcase-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-label {
  position: absolute;
  top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  z-index: 3;
}

.showcase-before .showcase-label {
  left: 1rem;
}

.showcase-after .showcase-label {
  right: 1rem;
}

.showcase-control {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-line {
  position: absolute;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.showcase-handle {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: ew-resize;
  position: relative;
  z-index: 11;
}

.showcase-handle svg {
  width: 16px;
  height: 16px;
  color: #0f172a;
}

.showcase-handle svg:first-child {
  margin-right: -4px;
}

.showcase-handle svg:last-child {
  margin-left: -4px;
}


/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  user-select: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-close {
  top: 2rem;
  right: 2rem;
}

.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

#lightbox-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .lightbox img {
    max-width: 95%;
    max-height: 85vh;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  #lightbox-counter {
    bottom: 1rem;
    font-size: 0.875rem;
  }
}