/* =============================================
   AIRTECH DIGITAL — PORTFOLIO DETAIL STYLES
   ============================================= */

/* Page layout structure */
.detail-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 24px;
}

/* Breadcrumb & back navigation */
.detail-back-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 600;
  font-size: 14px;
  transition: color var(--t-fast);
}

.back-link:hover {
  color: var(--teal-light);
}

/* Hero Section */
.project-hero {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 400px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 13, 26, 0.95) 10%, rgba(5, 13, 26, 0.4) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}

.project-hero-content {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
}

.project-badge {
  display: inline-block;
  background: rgba(0, 160, 176, 0.15);
  border: 1px solid var(--teal);
  color: var(--teal-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.project-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.project-client-name {
  font-size: 16px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-client-tags {
  display: inline-flex;
  gap: 8px;
}

.project-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 4px;
  color: var(--text-muted);
}

/* Project Meta Bar */
.project-meta-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-card);
  padding: 24px 0;
  margin-bottom: 56px;
}

.project-meta-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.project-meta-col {
  padding-left: 20px;
  position: relative;
}

.project-meta-col:not(:first-child)::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(0, 160, 176, 0.25);
}

.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.meta-value {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

/* 2-Column Overview */
.overview-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 56px;
  margin-bottom: 80px;
  align-items: start;
}

.overview-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.overview-paragraph {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.75;
}

/* Results Card */
.results-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.results-card h3 {
  font-size: 20px;
  margin-bottom: 24px;
  color: #fff;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 12px;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.results-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.results-metric-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-body);
  font-size: 14px;
}

.results-metric-info i {
  color: var(--teal);
  width: 18px;
  height: 18px;
}

.results-metric-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--coral);
}

/* Process Section */
.process-steps-wrap {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-bottom: 20px;
}

.process-steps-wrap::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 40px;
  right: 40px;
  height: 2px;
  border-top: 2px dashed rgba(0, 160, 176, 0.25);
  z-index: 1;
}

.process-step-item {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--teal);
  color: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(0, 160, 176, 0.15);
  transition: all var(--t-base);
}

.process-step-item:hover .process-circle {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal-light);
  box-shadow: var(--glow-teal);
  transform: scale(1.05);
}

.process-step-title {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 200px;
}

/* Visual Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  cursor: pointer;
  background: var(--bg-secondary);
}

.gallery-image-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 160, 176, 0.08), rgba(255, 107, 53, 0.03));
  position: relative;
}

.gallery-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 26, 0.85);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  transition: opacity var(--t-base);
  border-radius: var(--radius-md);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(0, 196, 216, 0.5));
}

/* Technologies Pill Strip */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tech-pill {
  background: rgba(0, 160, 176, 0.08);
  border: 1px solid rgba(0, 160, 176, 0.2);
  color: #00C4D8;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
}

/* Related section layout spacing */
.detail-related {
  margin-top: 80px;
}

/* Sticky Back Button for Mobile */
.sticky-back-mobile {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  background: var(--bg-card);
  border: 1.5px solid var(--teal);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  padding: 10px 20px;
  color: var(--teal-light);
  font-size: 13px;
  font-weight: 700;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all var(--t-base);
}

.sticky-back-mobile:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .project-hero {
    height: 40vh;
    min-height: 320px;
  }
  .project-hero-overlay {
    padding: 32px;
  }
  .project-meta-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .project-meta-col:nth-child(even)::before {
    display: none;
  }
  .project-meta-col:nth-child(3)::before {
    display: none;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .project-hero {
    height: 35vh;
    border-radius: 0;
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
  }
  .project-title {
    font-size: 28px;
  }
  .project-meta-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .project-meta-col::before {
    display: none !important;
  }
  .project-meta-col {
    padding-left: 0;
  }
  .process-steps-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .process-steps-wrap::before {
    top: 24px;
    left: 24px;
    bottom: 24px;
    height: auto;
    width: 2px;
    border-left: 2px dashed rgba(0, 160, 176, 0.25);
    border-top: none;
  }
  .process-step-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
  }
  .process-circle {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .process-step-desc {
    max-width: none;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .sticky-back-mobile {
    display: inline-flex;
  }
}
