/* Project Detail Styles */

/* Breadcrumbs navigation */
.project-breadcrumb {
  margin: 30px 0 50px;
}

.project-breadcrumb a {
  color: var(--color-secondary);
  font-size: var(--fs-6);
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.project-breadcrumb a:hover {
  color: var(--raw-seinna);
}

/* Project header styling */
.project-header {
  margin-bottom: 40px;
  margin-top: 30px;
  text-align: center;
  padding-top: 20px;
}

.project-title {
  font-size: calc(var(--fs-1) * 1.5);
  color: var(--color-primary);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.project-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: var(--fs-5);
  color: var(--color-secondary);
}

.project-meta span {
  display: flex;
  align-items: center;
}

.project-meta i {
  margin-right: 8px;
  color: var(--raw-seinna);
}

/* Project content layout */
.project-content {
  margin-bottom: 60px;
}

.project-main-image {
  margin: 0 auto 40px;
  border-radius: var(--radius-12);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  position: relative;
  max-width: 80%; /* Make the container smaller */
  transition: box-shadow 0.3s ease;
}

/* Add a subtle hover effect to the container */
.project-main-image.slideshow-container:hover {
  box-shadow: var(--shadow-3);
}

.project-main-image img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
  height: 450px; /* Slightly reduced fixed height for all images */
  object-fit: cover; /* Maintain aspect ratio while covering container */
  object-position: center; /* Center the image */
  border-radius: 8px; /* Slightly rounded corners for images */
}

/* Specific dark mode styling for slideshow */
body.dark_theme .project-main-image {
  box-shadow: var(--shadow-2);
  background-color: var(--bg-secondary);
  border: 1px solid hsla(0, 0%, 30%, 0.3);
}

body.dark_theme .slideshow-container {
  background: hsla(0, 0%, 10%, 0.5);
}

.project-main-image:hover img {
  transform: scale(1.02);
}

/* Slideshow styles */
.slideshow-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  border-radius: var(--radius-12);
}

.mySlides {
  display: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.mySlides.active {
  display: block;
  opacity: 1;
}

.slideshow-dots {
  text-align: center;
  position: absolute;
  bottom: 15px;
  width: 100%;
  left: 0; /* Ensure dots are centered */
}

.dot {
  height: 8px;
  width: 8px;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dot.active {
  background-color: white;
  transform: scale(1.2);
}

/* Animation for fading effect */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: 0.4} 
  to {opacity: 1}
}

/* Dark and light mode specific styles */
/* Dark theme styles - exactly matching index.html */
body.dark_theme {
  --bg-primary: var(--black);
  --bg-secondary: var(--black);
  --color-primary: hsl(103, 41%, 69%);
  --color-secondary: hsl(0, 0%, 62%);
  --card-shadow: hsla(0, 0%, 0%, 0.4);
  --input-bg: hsl(0, 0%, 16%);
  --shadow-1: 10px 10px 40px var(--card-shadow);
  --shadow-2: 15px 15px 50px var(--card-shadow);
  --shadow-3: 20px 20px 60px var(--card-shadow);
  --header-bg: #555555;
}

body.dark_theme .project-detail {
  color: var(--color-primary);
  background: var(--bg-primary);
}

body.dark_theme .project-title,
body.dark_theme .section-subtitle,
body.dark_theme .project-navigation a,
body.dark_theme h1, 
body.dark_theme h2,
body.dark_theme h3,
body.dark_theme .testimonial-author,
body.dark_theme .project-description p {
  color: hsl(103, 41%, 69%);
}

body.dark_theme .project-features li,
body.dark_theme .testimonial-content p,
body.dark_theme .project-breadcrumb a,
body.dark_theme p {
  color: hsl(0, 0%, 62%);
}

body.dark_theme .project-meta,
body.dark_theme .project-meta span {
  color: hsl(103, 41%, 69%);
}

body.dark_theme .project-features,
body.dark_theme .testimonial-content {
  background-color: hsl(0, 0%, 16%);
  box-shadow: var(--shadow-1);
}

body.dark_theme .gallery-item {
  box-shadow: var(--shadow-1);
}

body.dark_theme .dot {
  border-color: rgba(255, 255, 255, 0.6);
}

body.dark_theme .slideshow-container {
  background: rgba(255, 255, 255, 0.03);
}

body.dark_theme .image-caption {
  background: rgba(0, 0, 0, 0.8);
}

/* Light theme styles - exactly matching index.html */
body.light_theme {
  --bg-primary: hsl(0, 0%, 90%);
  --bg-secondary: hsl(32, 89%, 82%);
  --color-primary: hsl(0, 0%, 12%);
  --color-secondary: hsl(0, 0%, 37%);
  --card-shadow: hsla(0, 0%, 0%, 0.1);
  --input-bg: hsl(0, 0%, 93%);
  --shadow-1: 10px 10px 40px var(--card-shadow);
  --shadow-2: 15px 15px 50px var(--card-shadow);
  --shadow-3: 20px 20px 60px var(--card-shadow);
  --header-bg: #fff;
}

body.light_theme .project-detail {
  color: var(--color-primary);
  background: var(--bg-primary);
}

body.light_theme .project-title,
body.light_theme .section-subtitle,
body.light_theme .project-navigation a,
body.light_theme h1,
body.light_theme h2,
body.light_theme h3,
body.light_theme .testimonial-author {
  color: hsl(0, 0%, 12%);
}

body.light_theme .project-description p,
body.light_theme .project-features li,
body.light_theme .testimonial-content p,
body.light_theme .project-meta,
body.light_theme .project-breadcrumb a,
body.light_theme p {
  color: hsl(0, 0%, 37%);
}

body.light_theme .project-features,
body.light_theme .testimonial-content {
  background-color: hsl(32, 89%, 82%);
  box-shadow: var(--shadow-1);
}

body.light_theme .gallery-item {
  box-shadow: var(--shadow-1);
}

body.light_theme .dot {
  border-color: rgba(0, 0, 0, 0.4);
}

body.light_theme .slideshow-container {
  background: rgba(0, 0, 0, 0.03);
}

body.light_theme .image-caption {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .project-main-image {
    max-width: 90%;
  }
  
  .project-main-image img {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .project-main-image {
    max-width: 100%;
  }
  
  .project-main-image img {
    height: 400px;
  }
  
  .dot {
    height: 8px;
    width: 8px;
    margin: 0 4px;
  }
}

@media (max-width: 480px) {
  .project-main-image img {
    height: 300px;
  }
}

.project-description {
  margin-bottom: 40px;
}

.project-description p {
  color: var(--color-secondary);
  line-height: 1.7;
  margin-bottom: 25px;
}

/* Project features */
.project-features {
  margin-bottom: 40px;
  padding: 25px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-12);
  box-shadow: var(--shadow-1);
}

.project-features ul {
  list-style: none;
  padding: 0;
}

.project-features li {
  padding: 10px 0;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
}

.project-features i {
  color: var(--raw-seinna);
  margin-right: 10px;
}

/* Gallery section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-12);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px 15px;
  font-size: var(--fs-6);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .image-caption {
  transform: translateY(0);
}

/* Testimonial section */
.project-testimonial {
  margin-bottom: 40px;
}

.testimonial-content {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-12);
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-1);
}

.testimonial-content i {
  color: var(--raw-seinna);
  font-size: 2rem;
  opacity: 0.3;
  position: absolute;
  top: 20px;
  left: 20px;
}

.testimonial-content p {
  color: var(--color-secondary);
  line-height: 1.7;
  font-style: italic;
  padding-left: 25px;
  margin-bottom: 15px;
}

.testimonial-author {
  color: var(--color-primary);
  font-weight: 600;
  text-align: right;
  display: block;
}

/* Project navigation */
.project-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-secondary);
}

.project-navigation a {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.project-navigation a:hover {
  color: var(--raw-seinna);
}

.prev-project i {
  margin-right: 8px;
}

.next-project i {
  margin-left: 8px;
}

/* CTA section styling */
.cta-section {
  margin-top: 60px;
}

/* Consistent CTA styling in dark/light mode */
body.dark_theme .cta-section h2 {
  color: hsl(103, 41%, 69%);
}

body.dark_theme .cta-section p {
  color: hsl(103, 41%, 69%); /* Updated to match the heading color in dark mode */
}

body.light_theme .cta-section h2 {
  color: hsl(0, 0%, 12%);
}

body.light_theme .cta-section p {
  color: hsl(0, 0%, 37%);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .project-meta {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .project-title {
    font-size: var(--fs-1);
  }
}

@media screen and (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .project-navigation {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
}
