/* ==========================================================================
   HUP Architectural - Portfolio & Subpages Stylesheet
   Font: Lato
   ========================================================================== */

.site-header-wrapper.subpage-header {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  padding: 20px 0 16px;
  background-color: #ffffff;
  z-index: 100;
}

.page-banner {
  background-color: #07152b;
  background-image: linear-gradient(180deg, #07152b 0%, #0c203f 100%);
  color: #ffffff;
  padding: 50px 0 50px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-banner h1 {
  font-family: var(--font-family);
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-banner-desc {
  font-size: 1.15rem;
  color: #c9cfda;
  max-width: 700px;
  margin: 0 auto;
}

.subpage-nav-bar {
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  border-bottom: 2px solid #e2e7ee;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 95;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.subpage-nav-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.subpage-nav-bar a {
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  background-color: #f8f9fa;
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.subpage-nav-bar a:hover {
  background-color: var(--color-yellow);
  color: var(--color-navy);
  border-color: var(--color-yellow-dark);
  transform: translateY(-1px);
}

.subpage-nav-bar a.active {
  background-color: var(--color-yellow);
  color: var(--color-navy);
  border-color: var(--color-yellow-dark);
  box-shadow: 0 2px 6px rgba(255, 186, 0, 0.4);
}

/* Project Cards */
.project-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-normal);
}

.project-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--color-yellow);
}

.project-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
}

.project-media {
  background-color: #0c1524;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.project-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.03);
}

.media-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.project-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-yellow-dark);
  font-weight: 800;
  margin-bottom: 8px;
}

.project-title {
  font-family: var(--font-family);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.project-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.project-client {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-navy);
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
}

/* Interior Design Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-yellow);
}

.gallery-item-image {
  height: 260px;
  overflow: hidden;
}

.gallery-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item-caption {
  padding: 16px 20px;
}

.gallery-item-title {
  font-family: var(--font-family);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.gallery-item-location {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* Resume Page Styles */
.resume-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 50px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
}

.resume-header {
  border-bottom: 3px solid var(--color-yellow);
  padding-bottom: 24px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.resume-title-group h2 {
  font-family: var(--font-family);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.resume-title-group p {
  color: var(--color-yellow-dark);
  font-weight: 800;
  font-size: 1.05rem;
}

.resume-section {
  margin-bottom: 36px;
}

.resume-section-title {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-navy);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 8px;
  margin-bottom: 16px;
  font-weight: 800;
}

.resume-item {
  margin-bottom: 20px;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.resume-item-title {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.resume-item-subtitle {
  color: var(--color-yellow-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.resume-item-body {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background-color: #f0f4f8;
  color: var(--color-navy);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  backdrop-filter: blur(8px);
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #ffffff;
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
}

@media (max-width: 850px) {
  .page-banner {
    padding: 140px 0 40px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .project-media img {
    min-height: 240px;
    height: 280px;
  }
  
  .project-details {
    padding: 24px;
  }
  
  .resume-container {
    padding: 24px;
  }
}
