/* ========================= */
/* 1. Root & General Styles  */
/* ========================= */
:root {
  --primary-color: #0731d1;
  --text-color: #000000;
  --background-color: #ffffff;
  --light-text: #ffffff;
  --link-color: #0731d1;
  --section-padding: 1.5rem;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Barlow", sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
}

a {
  font-size: 30px;
  color: var(--link-color);
  text-decoration: none;
}

/* ========================= */
/* 2. Header & Breadcrumb    */
/* ========================= */
.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.details-header {
  text-align: center;
  display: flex;
}

.details-header a {
  font-size: 5rem;
  padding: 5rem 2rem;
  color: #000;
}

.breadcrumb-nav {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 2%;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 0.8rem;
  font-family: "Barlow", sans-serif;
  width: 100%;
}

@media (min-width: 1200px) {
  .breadcrumb-nav {
    display: none !important;
  }
}

.breadcrumb-nav a {
  color: var(--link-color);
  font-size: 0.8rem;
  text-decoration: none;
  padding: 1rem;
}

/* ========================= */
/* 3. Main Content           */
/* ========================= */
.main-content {
  flex: 1;
  margin-top: 0px;
}

/* ========================= */
/* 4. Project Info & Details */
/* ========================= */
.project-info {
  background: var(--background-color);
  text-align: center;
}

.project-details h1 {
  text-decoration: underline;
  font-size: 5rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.details-grid {
  width: 50%;
  left: 20%;
  position: relative;
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  font-size: 100px;
  align-items: center;
  align-content: center;
  align-self: center;
  padding: 5rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #000;
  padding-bottom: 1rem;
}

.detail-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.detail-item p {
  font-size: 1rem;
  margin: 0;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #000;
  padding-bottom: 1rem;
}

.detail-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.detail-item p {
  font-size: 1rem;
  margin: 0;
}

.details-grid {
  width: 50%;
  left: 20%;
  position: relative;
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  font-size: 100px;
  align-items: center;
  align-content: center;
  align-self: center;
  padding: 5rem;
}

.project-details {
  padding: 0 2rem;
  margin-bottom: 4rem;
}

/* ========================= */
/* 5. Hero Section           */
/* ========================= */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -80px;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--light-text);
  margin: 0;
}

/* ========================= */
/* 6. Second Hero Section    */
/* ========================= */
.second-hero-section {
  position: relative;
  height: 100vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  text-align: center;
}

.second-hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.second-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.second-hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--light-text);
  margin: 0;
}

/* ========================= */
/* 7. Project Description    */
/* ========================= */
.hero-description {
  padding: 10rem;
}

.project-description {
  padding: 0rem;
}

.project-description h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.description-text {
  display: flex;
  justify-content: space-between;
  text-align: left;
  padding: 5rem;
}

.description-text h2 {
  width: 20%;
  font-size: 2rem;
  text-align: center;
}

.description-text p {
  width: 40%;
  font-size: 1.25rem;
}

/* ========================= */
/* 8. Image Gallery & Carousel */
/* ========================= */
.image-gallery {
  padding: 2rem 0;
  background: var(--background-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #f0f0f0;
  position: relative;
  width: 100%;
  height: auto;
  max-height: 1000px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #ffffff;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
  touch-action: pan-y;
}

.slide {
  min-width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0rem;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.blinking-dot {
  animation: blink 1s infinite;
  font-size: 1.5rem;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ========================= */
/* 9. Custom Cursor          */
/* ========================= */
@media (hover: none) and (pointer: coarse) {
  #custom-cursor {
    display: none !important;
  }
}

/* ========================= */
/* 10. Responsive Design     */
/* ========================= */
@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-section {
    height: 30vh;
  }
  .carousel-container {
    left: -8%;
  }

  .details-grid {
    padding: 0%;
    text-align: right;
    left: 0%;
    width: fit-content;
    grid-template-columns: 1fr;
    height: 20%; /* Reduce height by 50% */
    font-size: 10px; /* Reduce font size by 50% */
  }

  .project-details {
    padding: 0 2rem;
  }

  .description-text {
    flex-direction: column;
    padding: 2rem;
  }

  .description-text p {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 15px;
  }

  .description-text h2 {
    width: 100%;
    text-align: left;
  }

  .carousel-container {
    height: 100vh; /* Ensure carousel spans the entire screen */
    width: 100vw; /* Ensure full width */
  }

  .carousel img {
    object-fit: cover; /* Adjust image to cover the screen */
  }
  main {
    width: 100%;
  }

  .carousel-container {
    height: 80vh !important;
    min-height: 300px !important;
    max-height: 600px !important;
  }
  .carousel img,
  .slide {
    object-fit: cover !important;
    height: 100% !important;
    min-height: 200px !important;
  }
  .hero-description {
    padding: 2rem !important;
    font-size: 0.9rem !important;
  }
  .details-grid {
    left: 0 !important;
    padding: 1rem !important;
    font-size: 1rem !important;
  }
  .project-details h1 {
    font-size: 2.5rem !important;
  }

  .project-details a {
    font-size: 2.5rem !important;
  }
  .description-text {
    flex-direction: column !important;
    padding: 1.5rem !important;
  }
  .description-text h2,
  .description-text p {
    width: 100% !important;
    text-align: left !important;
    font-size: 1.1rem !important;
  }
  .nav-btn {
    font-size: 1.2rem !important;
    padding: 6px 12px !important;
  }
  header nav ul {
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding-left: 0 !important;
  }
  header .logo {
    font-size: 1.1rem !important;
  }
  .cta-button {
    font-size: 1rem !important;
    padding: 0.5rem 1rem !important;
  }
  .site-footer {
    font-size: 0.9rem !important;
    padding: 1rem !important;
  }
}
