body {
  margin: 0;
  padding: 1rem;
  background: #e2c491;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-container {
  margin: 0 auto;
  background: #faefdd; /* light cream or beige */
  border: 1px solid #2c2622;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  padding-bottom: 2rem;
}

/* Stretch header full width */
header {
  background: #2c2622;
  color: #ffffff;
  padding: 0.0rem 0;
  width: 100%;
  margin: 0;
}

/* Header layout */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.0rem;
  margin: 0 auto;
  max-width: 1200px;
}

header h1 {
  font-size: 1.0rem;
  margin: 0;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  display: flex;
  align-items: center;
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  gap: 0.4rem;
}

nav a .icon {
  height: 20px;
  width: 20px;
  filter: invert(100%);
}

.project-detail-section {
  max-width: 1000px;
  padding: 1.5rem;
  margin: 0 auto;  
  justify-content: center;
}

.project-detail-title {
  text-align: center;
  font-size: 2.2rem;
  color: #2c2622;
}

.project-detail-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
}

.project-description-text {
  flex: 1 1 30%;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 0;
  padding-top: 0;
}

.project-video {
  width: 100%;
  padding-top: 1.3rem;
  display: flex;
  justify-content: center;
}

.project-video iframe {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9; /* modern responsive method */
  border: none;
}

.raytracer-hero {
  width: 100%;
  height: 500px;
  background-color: black;
  background-image: url("../media/raytrace_bg.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.6); /* <-- new shadow */
}

/* Keep video responsive and centered */
.project-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 960px;
  display: block;
  margin: 0 auto;
}

/* Features section styling */
.project-features {
  max-width: 800px;
  margin: 2rem auto;
  font-size: 1.1rem;
  color: #2c2622;
  padding: 0 1.5rem; /* match padding of project-detail-section */
}

.project-features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-features ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  line-height: 1.6;
}

.project-details {
  font-size: 1.2rem;
  color: #2c2622;
  text-align: center;
}

.project-details h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-divider {
  border: none;
  border-top: 2px solid #2c2622;

  width: calc(100% + 12rem);   /* wider than container */
  max-width: 80vw;            /* cap width on small screens */

  /* Centering */
  margin-top: 2rem;
  margin-bottom: 2rem;
  margin-left: 50%;
  margin-right: 50%;

  transform: translateX(-50%);

  box-sizing: content-box;
}

.raytracer-banner {
  width: 100%;
  height: 130px;
  background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(44, 83, 100, 0.7);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}

.raytracer-banner h1 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: #d5ccbb;
  text-transform: uppercase;
  letter-spacing: 0.12em;

  margin: 0;
}

.raytracer-carousel {
  text-align: center;
  margin: 3rem auto;
  padding: 1rem 2rem;
  max-width: 800px;
}

.raytracer-carousel h2 {
  font-size: 2rem;
  color: #f0a500;
  margin-bottom: 1rem;
}

.carousel {
  position: relative; /* Needed so buttons are positioned relative to this */
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  overflow: hidden;
}

.carousel-images {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-images img {
  min-width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: none;
}

.carousel-images img.active {
  display: block;
}

.carousel-btn {
  position: absolute; /* <--- fixed */
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}
