/* ============================================
   PROJECT DETAIL PAGE
   Styles for project-detail.ejs
   Conversion-focused, SEO-optimized
   ============================================ */

/* Project Detail Page Container */
.project-detail-page {
  min-height: 100vh;
}

.project-detail-page .container{
  margin: auto;
}
/* ============================================
   HERO SECTION
   ============================================ */
.project-hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .project-hero-section {
    min-height: 600px;
  }
}

.project-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .project-hero-overlay {
    align-items: center;
    padding-bottom: 0;
  }
}

.project-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

@media (min-width: 768px) {
  .project-hero-content {
    text-align: left;
  }
}

.project-type-badge {
  display: inline-block;
  background-color: var(--success-green);
  color: var(--text-on-blue);
  padding: 8px 16px;
  border-radius: var(--radius-small);
  font-size: var(--font-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .project-type-badge {
    padding: 10px 20px;
    font-size: var(--font-body);
  }
}

.project-hero-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-on-blue);
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .project-hero-title {
    font-size: 42px;
    margin-bottom: 20px;
  }
}

.project-hero-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .project-hero-meta {
    flex-direction: row;
    gap: 32px;
  }
}

.project-meta-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--font-body);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

@media (min-width: 768px) {
  .project-meta-item {
    justify-content: flex-start;
    font-size: 18px;
  }
}

.meta-icon {
  font-size: 20px;
}

.project-hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .project-hero-cta {
    flex-direction: row;
    gap: 16px;
  }
}

/* ============================================
   PROJECT OVERVIEW
   ============================================ */
.project-overview-section {
  padding: var(--section-spacing) 0;
  background-color: #FFFFFF;
}

@media (min-width: 768px) {
  .project-overview-section {
    padding: 60px 0;
  }
}

.project-overview-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 36px;
    margin-bottom: 32px;
  }
}

.project-description {
  font-size: var(--font-body);
  color: var(--text-medium);
  line-height: 1.8;
  margin: 0;
}

@media (min-width: 768px) {
  .project-description {
    font-size: 18px;
  }
}

.section-intro {
  text-align: center;
  font-size: var(--font-body);
  color: var(--text-medium);
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .section-intro {
    font-size: 18px;
    margin-bottom: 60px;
  }
}

/* ============================================
   PHOTO GALLERY
   ============================================ */
.project-gallery-section {
  padding: var(--section-spacing) 0;
  background-color: var(--bg-cream);
}

@media (min-width: 768px) {
  .project-gallery-section {
    padding: 60px 0;
  }
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .project-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: transform var(--transition-normal);
}

.gallery-item:hover {
  transform: scale(1.02);
}

@media (min-width: 768px) {
  .gallery-item {
    height: 300px;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.gallery-zoom-btn {
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-normal);
}

.gallery-item:hover .gallery-zoom-btn {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.project-video-section {
  padding: var(--section-spacing) 0;
  background-color: #FFFFFF;
}

@media (min-width: 768px) {
  .project-video-section {
    padding: 60px 0;
  }
}

.video-container {
  max-width: 1000px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-color: #000000;
  border-radius: var(--radius-medium);
  overflow: hidden;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(91, 159, 216, 0.9) 0%, rgba(74, 127, 184, 0.9) 100%);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.video-placeholder:hover {
  background: linear-gradient(135deg, rgba(91, 159, 216, 1) 0%, rgba(74, 127, 184, 1) 100%);
}

.video-play-btn {
  font-size: 64px;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 16px;
  transition: transform var(--transition-normal);
}

.video-placeholder:hover .video-play-btn {
  transform: scale(1.2);
}

.video-placeholder-text {
  color: var(--text-on-blue);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================
   CHALLENGE & SOLUTION
   ============================================ */
.project-challenge-section {
  padding: var(--section-spacing) 0;
  background-color: var(--bg-cream);
}

@media (min-width: 768px) {
  .project-challenge-section {
    padding: 60px 0;
  }
}

.challenge-solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .challenge-solution-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

.challenge-card,
.solution-card {
  background-color: #FFFFFF;
  padding: 32px;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

@media (min-width: 768px) {
  .challenge-card,
  .solution-card {
    padding: 40px;
  }
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.challenge-card h3,
.solution-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .challenge-card h3,
  .solution-card h3 {
    font-size: 24px;
  }
}

.challenge-card p,
.solution-card p {
  font-size: var(--font-body);
  color: var(--text-medium);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   FEATURES LIST
   ============================================ */
.project-features-section {
  padding: var(--section-spacing) 0;
  background-color: #FFFFFF;
}

@media (min-width: 768px) {
  .project-features-section {
    padding: 60px 0;
  }
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .features-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background-color: var(--bg-cream);
  border-radius: var(--radius-small);
  transition: all var(--transition-fast);
}

.feature-item:hover {
  background-color: rgba(91, 159, 216, 0.1);
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .feature-item {
    padding: 20px;
  }
}

.feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: var(--success-green);
  color: var(--text-on-blue);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.feature-text {
  font-size: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  font-weight: 500;
}

/* ============================================
   TESTIMONIAL
   ============================================ */
.project-testimonial-section {
  padding: var(--section-spacing) 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

@media (min-width: 768px) {
  .project-testimonial-section {
    padding: 80px 0;
  }
}

.testimonial-card {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}

@media (min-width: 768px) {
  .testimonial-card {
    padding: 60px 40px;
  }
}

.testimonial-quote-icon {
  font-size: 64px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
  margin-bottom: 24px;
}

.testimonial-quote {
  font-size: 20px;
  font-style: italic;
  color: var(--text-on-blue);
  line-height: 1.7;
  margin: 0 0 32px 0;
  font-weight: 400;
}

@media (min-width: 768px) {
  .testimonial-quote {
    font-size: 24px;
  }
}

.testimonial-author {
  margin-top: 32px;
}

.author-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-on-blue);
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .author-name {
    font-size: 20px;
  }
}

.author-location {
  font-size: var(--font-body);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* ============================================
   RELATED PROJECTS
   ============================================ */
.related-projects-section {
  padding: var(--section-spacing) 0;
  background-color: var(--bg-cream);
}

@media (min-width: 768px) {
  .related-projects-section {
    padding: 60px 0;
  }
}

.related-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .related-projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

.related-project-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.related-project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.related-project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .related-project-image {
    height: 250px;
  }
}

.related-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.related-project-card:hover .related-project-image img {
  transform: scale(1.08);
}

.related-project-content {
  padding: 20px;
}

@media (min-width: 768px) {
  .related-project-content {
    padding: 24px;
  }
}

.related-project-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .related-project-content h3 {
    font-size: 20px;
  }
}

.related-project-content p {
  font-size: var(--font-small);
  color: var(--text-medium);
  margin: 0;
}

/* ============================================
   FINAL CTA
   ============================================ */
.project-final-cta-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

@media (min-width: 768px) {
  .project-final-cta-section {
    padding: 80px 0;
  }
}

.final-cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.final-cta-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .final-cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
  }
}

.final-cta-content > p {
  font-size: 18px;
  color: var(--text-medium);
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .final-cta-content > p {
    font-size: 20px;
    margin-bottom: 40px;
  }
}

.final-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .final-cta-actions {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
}

.final-cta-contact {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.cta-phone {
  font-size: 18px;
  color: var(--text-medium);
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .cta-phone {
    font-size: 20px;
  }
}

.cta-phone a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.cta-phone a:hover {
  color: var(--secondary-blue);
}

.cta-license {
  font-size: var(--font-small);
  color: var(--text-light);
  margin: 0;
}

@media (min-width: 768px) {
  .cta-license {
    font-size: var(--font-body);
  }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop.active {
  display: flex;
}

.lightbox-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-small);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-on-blue);
  border: none;
  font-size: 32px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 40px;
}

.lightbox-prev {
  left: -70px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
}

/* ============================================
   FADE IN ANIMATIONS
   ============================================ */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}



/* Video Fallback Link */
.video-fallback {
  text-align: center;
  margin-top: 20px;
}

.video-fallback-link {
  display: inline-block;
  font-size: var(--font-body);
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border: 2px solid var(--primary-blue);
  border-radius: var(--radius-small);
  transition: all var(--transition-fast);
}

.video-fallback-link:hover {
  background-color: var(--primary-blue);
  color: var(--text-on-blue);
}

@media (min-width: 768px) {
  .video-fallback-link {
    font-size: 18px;
    padding: 14px 28px;
  }
}

.video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ============================================
   BEFORE & AFTER SECTION
   ============================================ */
.project-before-after-section {
  padding: var(--section-spacing) 0;
  background-color: #FFFFFF;
}

@media (min-width: 768px) {
  .project-before-after-section {
    padding: 60px 0;
  }
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .before-after-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

.before-card,
.after-card {
  background-color: var(--bg-cream);
  padding: 24px;
  border-radius: var(--radius-medium);
  text-align: center;
}

@media (min-width: 768px) {
  .before-card,
  .after-card {
    padding: 32px;
  }
}

.card-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (min-width: 768px) {
  .card-label {
    font-size: 22px;
  }
}

.before-card p,
.after-card p {
  font-size: var(--font-body);
  color: var(--text-medium);
  line-height: 1.7;
  margin: 0;
}


/* ============================================
   PROJECT OVERVIEW SECTION
   ============================================ */
.project-overview-section {
  padding: var(--section-spacing) 0;
  background-color: #FFFFFF;
}

@media (min-width: 768px) {
  .project-overview-section {
    padding: 60px 0;
  }
}

.overview-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .overview-content {
    max-width: 1000px;
  }
}

.overview-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .overview-content h2 {
    font-size: 36px;
    margin-bottom: 32px;
  }
}

/* Project Description Wrapper */
.project-description {
  text-align: center;
}

/* Individual paragraphs created by JS */
.project-description p {
  font-size: var(--font-body);
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 20px;
    max-width: 600px;
  margin: 10px auto;
  text-align: left;
    
}

.project-description p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .project-description p {
    font-size: 20px;
    line-height: 1.9;
    margin-bottom: 24px;
  }
}

/* ============================================
   CHALLENGE & SOLUTION SECTION
   ============================================ */
.project-challenge-section {
  padding: var(--section-spacing) 0;
  background-color: var(--bg-main);
}

@media (min-width: 768px) {
  .project-challenge-section {
    padding: 80px 0;
  }
}

.challenge-solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .challenge-solution-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* Challenge & Solution Cards */
.challenge-card,
.solution-card {
  background-color: #FFFFFF;
  padding: var(--card-padding);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  text-align: left;
}

@media (min-width: 768px) {
  .challenge-card,
  .solution-card {
    padding: 32px;
  }
}

.challenge-card:hover,
.solution-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.challenge-card {
  border-left: 4px solid #F59E0B;
}

.solution-card {
  border-left: 4px solid var(--primary-blue);
}

/* Card Icon */
.card-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

@media (min-width: 768px) {
  .card-icon {
    font-size: 56px;
    margin-bottom: 20px;
  }
}

/* Card Heading */
.challenge-card h3,
.solution-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .challenge-card h3,
  .solution-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

/* Card Content Wrapper (before JS formatting) */
.challenge-card > div:last-child,
.solution-card > div:last-child {
  font-size: var(--font-body);
  color: var(--text-medium);
  line-height: 1.8;
}

@media (min-width: 768px) {
  .challenge-card > div:last-child,
  .solution-card > div:last-child {
    font-size: 18px;
  }
}

/* Paragraphs inside cards (created by JS) */
.challenge-card p,
.solution-card p {
  font-size: var(--font-body);
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 16px;
}

.challenge-card p:last-child,
.solution-card p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .challenge-card p,
  .solution-card p {
    font-size: 18px;
    margin-bottom: 20px;
  }
}