
/* Improved cover layout with better proportions */
.project-cover-layout {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    justify-content: center;
}

/* Better sized demo panel */
.project-demo-panel {
    background: rgba(20, 20, 20, 0.95);
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    flex-shrink: 0;
    width: 200px;
}

.cover-video {
    width: 100%;
    max-width: 800px; /* Limit video width for better proportions */
    height: auto;
    display: block;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    object-fit: cover;
}

.project-demo-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.project-demo-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.btn-outline {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #00c3ff;
    color: #00c3ff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}

.btn-outline:hover {
    background: #00c3ff;
    color: #000;
}

.project-cover-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

.project-intro-text {
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 840px;
    color: #b0b0b0;
    line-height: 1.7;
    align-items: center; 
    align-self: center;
    align-content: center;
}

.project-section-title, .project-section-intro
{
    margin-left: auto;
    margin-right: auto; 
    text-align: center;
    max-width: 800px; 
      color: #00c3ff;

}

.project-section-intro
{
  color: #b0b0b0;
}

/* Two Column Layout - Fixed Alignment */
.two-column {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.two-column-reverse {
  flex-direction: row-reverse;
}

.two-column-text {
  flex: 1;
  min-width: 0;
}

.two-column-media {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.two-column-media img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.two-column-media img:hover {
  transform: scale(1.05);
}

.project-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.project-section-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: #4fc3f7;
  margin-bottom: 20px;
}

.two-column-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.two-column-text p:last-child {
  margin-bottom: 0;
}

/* Demo Section */
.project-demo {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 80px 40px;
  max-width: 1000px;
  margin: 60px auto;
}

.project-demo .project-section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.project-demo-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.btn-outline {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #00c3ff;
    color: #00c3ff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}

.btn-outline:hover {
    background: #00c3ff;
    color: #000;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-outline:hover {
  background: #ffffff;
  color: #667eea;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-main-title {
    font-size: 2rem;
  }

  .project-meta-grid {
    gap: 20px;
  }

  .project-meta-item {
    min-width: 120px;
  }

  .meta-value {
    font-size: 1rem;
    padding: 6px 12px;
  }

  .two-column,
  .two-column-reverse {
    flex-direction: column;
    gap: 30px;
  }

  .project-section-title {
    font-size: 1.5rem;
  }

  .project-section-subtitle {
    font-size: 1.125rem;
  }

  .two-column-text p {
    font-size: 1rem;
  }

  .section {
    padding: 40px 20px;
  }

  .project-demo {
    padding: 60px 30px;
    margin: 40px 20px;
  }

  .project-demo .project-section-title {
    font-size: 2rem;
  }

  .project-demo-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    max-width: 300px;
  }

  /* Stack project cover layout vertically on mobile */
  .project-cover-layout {
    flex-direction: column;
    gap: 40px;
  }

  .project-demo-panel {
    flex: 1 1 auto;
    width: 100%;
    max-width: 400px;
  }

  .cover-video {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .project-meta-grid {
    gap: 15px;
  }

  .project-meta-item {
    min-width: 100px;
  }

  .meta-label {
    font-size: 0.75rem;
  }

  .meta-value {
    font-size: 0.875rem;
    padding: 5px 10px;
  }
}
/* ===== HERO ===== */
.project-hero {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.project-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.75) 65%,
    #050505
  );
  z-index: -1;
}

.project-hero-overlay {
  padding: 3.5rem 1.5rem 2.75rem;
}

.project-main-title {
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  margin: 0 0 1.6rem;
}
.project-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* Each pill becomes a flex column, centered vertically */
.project-meta-item {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* center label + value inside */
    min-height: 80px;          /* ensures same height even if text wraps */
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Label + value sizing so they look consistent */
.meta-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8b8b8;
    margin-bottom: 0.15rem;
}

.meta-value {
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.35;
}
