/* ==========================================================================
   PROJECT DETAIL PAGE CSS STYLES
   ========================================================================== */

.project-detail-body {
  background-color: var(--bg-primary);
  color: var(--text-main);
}

.project-detail-main {
  padding-top: calc(var(--nav-height) + 40px);  
}

.btn-back {
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
}

.project-meta-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--accent-gold);
}

.breadcrumbs .sep {
  color: var(--text-dark);
}

.breadcrumbs .current {
  color: #FFFFFF;
  font-weight: 600;
}

.project-badge {
  align-self: flex-start;
  font-size: 0.8rem;
}

.project-main-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.project-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.project-cta-group {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Mockup Banner */
.hero-mockup-wrapper {
  position: relative;
  margin-top: 1rem;
}

.mockup-ambient-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--accent-gold-glow-strong) 0%, rgba(0,0,0,0) 70%);
  filter: blur(50px);
  z-index: 0;
  opacity: 0.6;
}

.mockup-container {
  position: relative;
  z-index: 1;
  padding: 1rem;
  overflow: hidden;
  border-color: var(--glass-border-hover);
}

.mockup-img {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.mockup-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
}

.mockup-caption span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50px;
  border: 1px solid var(--glass-border);
}

/* Overview Cards */
.overview-grid {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 3rem;
}

.card-icon.warning {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--accent-gold-soft);
  box-shadow: 0 0 25px var(--accent-gold-glow);
}

.stat-icon {
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Features Grid */
.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 193, 7, 0.12);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Tech Table Card */
.tech-table-card {
  padding: 1.5rem;
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
}

.tech-table th,
.tech-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.tech-table th {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tech-table tr:last-child td {
  border-bottom: none;
}

.layer-title {
  font-weight: 600;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.layer-title i {
  color: var(--accent-gold);
  width: 18px;
  height: 18px;
}

.tech-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-right: 0.5rem;
  margin-bottom: 0.4rem;
}

/* Visual Gallery */
.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.gallery-card {
  padding: 1rem;
  overflow: hidden;
}

.gallery-img-wrapper {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.2rem;
}

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

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.06);
}

.gallery-info h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.gallery-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Challenge Highlight Card */
.challenge-highlight-card {
  border-left: 4px solid var(--accent-gold);
  padding: 2.5rem;
}

.challenge-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.challenge-header h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #FFFFFF;
}

.gold-icon {
  color: var(--accent-gold);
  width: 28px;
  height: 28px;
}

.challenge-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.challenge-content p:last-child {
  margin-bottom: 0;
}

/* Next Project Navigation */
.project-nav-section {
  padding: 40px 0;
}

.project-nav-bar {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-prev-next {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 280px;
  padding: 1.5rem;
  text-decoration: none;
}

.nav-prev-next.align-right {
  justify-content: flex-end;
  text-align: right;
}

.nav-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-project-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}

/* Footer CTA Card */
.footer-cta-card {
  padding: 3.5rem 2rem;
  background: linear-gradient(180deg, rgba(20,20,22,0.8) 0%, rgba(30,25,15,0.9) 100%);
  border-color: var(--accent-gold-soft);
}

.text-center {
  text-align: center;
}

.footer-cta-card h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-cta-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.footer-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .project-main-title {
    font-size: 2.2rem;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .tech-table th,
  .tech-table td {
    padding: 0.8rem;
  }
}

/* ML Dashboard Showcase & Terminal */
.ml-dashboard-showcase {
  background: #09090b;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 1.5rem;
}

.code-terminal-preview {
  background: #121215;
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 8px;
  padding: 1.2rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.88rem;
  color: #e4e4e7;
  margin-bottom: 1.2rem;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.6);
}

.terminal-line {
  line-height: 1.8;
}

.cmd-prompt {
  color: #71717a;
  margin-right: 0.5rem;
  user-select: none;
}

.code-keyword {
  color: #FFC107;
  font-weight: 600;
}

.cmd-output {
  color: #00FF88;
}

.cmd-output-highlight {
  color: #FFC107;
  font-weight: 600;
}

.ml-metrics-banner {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.metric-chip {
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 10px;
  padding: 0.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 150px;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.metric-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Experiments & Feature Importance */
.experiments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.algo-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.algo-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.algo-item.winner {
  background: rgba(255, 193, 7, 0.08);
  border-color: rgba(255, 193, 7, 0.4);
}

.algo-name {
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.algo-type {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.algo-score {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.params-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.param-pill {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #FFC107;
}

.feature-importance-card {
  padding: 2rem;
}

.importance-bars-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.bar-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.bar-pct {
  color: var(--accent-gold);
  font-weight: 600;
}

.bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF9800, #FFC107);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.tech-layer-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 6px;
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Clean Hero Action Buttons */
.case-study-hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-primary-glow {
  background: #FFC107;
  color: #121212;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: var(--font-body);
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 193, 7, 0.6);
  background: #ffd043;
  color: #000000;
}

.btn-secondary-glass {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 193, 7, 0.3);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: var(--font-body);
}

.btn-secondary-glass:hover {
  border-color: #FFC107;
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.2);
  color: #FFC107;
}

/* Model Status Pill Badge */
.project-meta-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.model-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 20px;
  font-size: 0.82rem;
  color: #00FF88;
  font-weight: 500;
  font-family: 'Fira Code', monospace;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: #00FF88;
  border-radius: 50%;
  box-shadow: 0 0 8px #00FF88;
  animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* Neural Nodes Animated Background SVG */
.hero-content-relative {
  position: relative;
  z-index: 2;
}

.neural-nodes-bg {
  position: absolute;
  top: -40px;
  right: -20px;
  width: 100%;
  max-width: 600px;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

.node-line-glow {
  animation: lineGlow 4s ease-in-out infinite alternate;
}

.node-line-glow-alt {
  animation: lineGlow 5s ease-in-out infinite alternate-reverse;
}

@keyframes lineGlow {
  0% { opacity: 0.2; stroke-width: 1px; }
  100% { opacity: 0.8; stroke-width: 2px; }
}

.pulse-node-1 { animation: nodePulse 3s infinite alternate; }
.pulse-node-2 { animation: nodePulse 4s infinite alternate 1s; }
.pulse-node-3 { animation: nodePulse 3.5s infinite alternate 0.5s; }

@keyframes nodePulse {
  0% { r: 3px; opacity: 0.4; }
  100% { r: 7px; opacity: 1; filter: drop-shadow(0 0 6px #FFC107); }
}

/* Decorative Golden Highlight Line for Headings */
.section-heading,
.case-study-block h2 {
  position: relative;
  display: block;
  width: fit-content;
  margin-bottom: 2.5rem;
  font-weight: 700;
  color: #ffffff;
}

.section-heading::after,
.case-study-block h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, #FFC107 0%, rgba(255, 193, 7, 0) 100%);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.6);
}

/* Container & Section Vertical Spacing */
.project-detail-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.case-study-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.case-study-block {
  margin-bottom: 2.5rem;
  padding: 2.5rem;
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 193, 7, 0.15);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.case-study-block:hover {
  border-color: rgba(255, 193, 7, 0.35);
}

.detail-grid-3,
.problem-solution-grid,
.experiments-grid {
  gap: 2rem;
}


