/* isomass-portfolio.css — portfolio.css + portfolio-modal.css merged */

/* ---------- portfolio gallery ---------- */
/* ========================================
 ISOMASS PORTFOLIO PAGE SECTION STYLES
 Modern portfolio gallery with project showcase
======================================== */

/* Hero - dark band with review pill (pill styles in isomass-global.css) */
.portfolio-hero {
  background-color: #1a1a1a;
  padding: 80px 0;
}

.portfolio-hero .portfolio-page-header {
  margin-bottom: 0;
}

.portfolio-hero .portfolio-page-header h1:not(.portfolio-hero-eyebrow), .portfolio-hero .portfolio-page-header .portfolio-hero-title {
  color: #ffffff;
}

.portfolio-hero .portfolio-page-header p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
}

.portfolio-hero .isomass-review-pill {
  display: flex;
  width: fit-content;
  margin: 0 auto;
}

.isomass-portfolio-page {
  background-color: #f3f3f3;
  padding: 100px 0;
}

.portfolio-page-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-page-header h1:not(.portfolio-hero-eyebrow), .portfolio-page-header .portfolio-hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.3;
  color: #333;
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.portfolio-page-header h1:not(.portfolio-hero-eyebrow)::after, .portfolio-page-header .portfolio-hero-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background-color: #d21e2b;
}

.portfolio-page-header p {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

.portfolio-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1600px;
  margin: 0 auto;
}

.portfolio-page-item:focus-visible {
  outline: 3px solid #d21e2b;
  outline-offset: 3px;
}

.portfolio-page-item {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.portfolio-page-item:hover,
.portfolio-page-item:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-page-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.portfolio-page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-page-item:hover .portfolio-page-image img {
  transform: scale(1.05);
}

.portfolio-page-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 40px 25px 25px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-page-item:hover .portfolio-page-overlay,
.portfolio-page-item:focus-visible .portfolio-page-overlay {
  transform: translateY(0);
}

.portfolio-page-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  line-height: 1.3;
}

.portfolio-location {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 5px;
  line-height: 1.4;
}

.portfolio-product {
  font-size: 0.8rem;
  color: #ff4757;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  text-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
 ISOMASS PORTFOLIO PAGE RESPONSIVE DESIGN
======================================== */

/* Tablet Styles */
@media (max-width: 1024px) {
  .portfolio-hero {
      padding: 70px 0;
  }
  
  .isomass-portfolio-page {
      padding: 80px 0;
  }
  
  .portfolio-page-header {
      margin-bottom: 60px;
  }
  
  .portfolio-page-header h1:not(.portfolio-hero-eyebrow), .portfolio-page-header .portfolio-hero-title {
      font-size: 2.6rem;
  }
  
  .portfolio-page-header h1:not(.portfolio-hero-eyebrow)::after, .portfolio-page-header .portfolio-hero-title::after {
      width: 90px;
  }
  
  .portfolio-page-grid {
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 25px;
      max-width: 1400px;
  }
  
  .portfolio-page-image {
      height: 250px;
  }
  
  .portfolio-page-overlay {
      padding: 30px 20px 20px;
  }
  
  .portfolio-location {
      font-size: 0.9rem;
  }
  
  .portfolio-product {
      padding: 5px 10px;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .portfolio-hero {
      padding: 60px 0;
  }
  
  .isomass-portfolio-page {
      padding: 70px 0;
  }
  
  .portfolio-page-header {
      margin-bottom: 50px;
  }
  
  .portfolio-page-header h1:not(.portfolio-hero-eyebrow), .portfolio-page-header .portfolio-hero-title {
      font-size: 2.3rem;
  }
  
  .portfolio-page-header h1:not(.portfolio-hero-eyebrow)::after, .portfolio-page-header .portfolio-hero-title::after {
      width: 70px;
  }
  
  .portfolio-page-header p {
      font-size: 1rem;
  }
  
  .portfolio-page-grid {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
  }
  
  .portfolio-page-image {
      height: 220px;
  }
  
  .portfolio-page-overlay {
      padding: 25px 18px 18px;
  }
  
  .portfolio-page-content h3 {
      font-size: 1.15rem;
      margin-bottom: 6px;
  }
  
  .portfolio-location {
      font-size: 0.85rem;
      margin-bottom: 4px;
  }
  
  .portfolio-product {
      font-size: 0.8rem;
      padding: 4px 8px;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .portfolio-hero {
      padding: 50px 0;
  }
  
  .isomass-portfolio-page {
      padding: 60px 0;
  }
  
  .portfolio-page-header {
      margin-bottom: 40px;
  }
  
  .portfolio-page-header h1:not(.portfolio-hero-eyebrow), .portfolio-page-header .portfolio-hero-title {
      font-size: 1.9rem;
  }
  
  .portfolio-page-header h1:not(.portfolio-hero-eyebrow)::after, .portfolio-page-header .portfolio-hero-title::after {
      width: 60px;
      height: 3px;
  }
  
  .portfolio-page-header p {
      font-size: 0.95rem;
  }
  
  .portfolio-page-grid {
      grid-template-columns: 1fr;
      gap: 18px;
  }
  
  .portfolio-page-image {
      height: 200px;
  }
  
  .portfolio-page-overlay {
      padding: 20px 15px 15px;
  }
  
  .portfolio-page-content h3 {
      font-size: 1.05rem;
      margin-bottom: 5px;
  }
  
  .portfolio-location {
      font-size: 0.8rem;
      margin-bottom: 3px;
  }
  
  .portfolio-product {
      font-size: 0.75rem;
      padding: 3px 6px;
  }
}

/* ---------- portfolio modal ---------- */
/* ========================================
   PORTFOLIO MODAL STYLES
   Simple image modal with close functionality
======================================== */

.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.portfolio-modal-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.portfolio-modal-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.portfolio-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}

.portfolio-modal-close:hover,
.portfolio-modal-close:focus-visible {
    background-color: #d21e2b;
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .portfolio-modal-content {
        width: 95%;
        top: 50%;
    }
    
    .portfolio-modal-close {
        top: -40px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .portfolio-modal-image {
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .portfolio-modal-close {
        top: -35px;
        right: 5px;
        font-size: 25px;
        width: 35px;
        height: 35px;
    }
    
    .portfolio-modal-image {
        max-height: 75vh;
    }
}

/* ---------- SEO H1 - small eyebrow line above the main title ---------- */
.portfolio-hero-eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ff4757;
    margin: 0 0 14px;
}

@media (max-width: 480px) {
    .portfolio-hero-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 1.5px;
    }
}
