body {
    background-image: url("../images/site/pinkcloud.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ddecff; /* soft cloud-blue text */
    text-shadow: 0 0 6px rgba(150, 200, 255, 0.8); /* subtle glow for readability */
}

.nav-icon {
  position: relative;
}

/* Tooltip */
.nav-icon::after {
  content: attr(data-label);
  position: absolute;
  right: 120%;
  top: 50%;
  transform: translateY(-50%);
  background:  rgba(140, 184, 255, 0.1);
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(180, 220, 255, 0.35);
  box-shadow: 0 0 10px rgba(159, 162, 255, 0.879);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Show on hover */
.nav-icon:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

/* Floating Utility Bar */
.floating-nav-tools {
  position: fixed;
  right: 2rem;
  top: 40%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
}

.nav-icon {
  background: rgba(159, 207, 255, 0.2);
  border: 1px solid rgba(159, 207, 255, 0.2);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 12px rgba(180, 200, 255, 0.55);
  color: #fff;
  padding: 0.6rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.25s ease;
}

.nav-icon:hover {
  background: rgba(140, 184, 255, 0.1);
  transform: scale(1.1);
}

/* Gentle glow for text */
p {
  color: #cfe6ff;
      text-shadow:
        0 0 8px rgba(159, 207, 255, 0.4),
        0 0 18px rgba(120, 180, 255, 4);
}

h2 {
  text-align: left !important;
}

.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge {
  background: rgba(94, 94, 94, 0.508);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}


/* Floating Navigation Panel */
.floating-nav {
  position: fixed;
  right: 5rem;
  top: 20%;
  width: 240px;
  padding: 1.5rem;
  background: rgba(140, 184, 255, 0.1);
  border: 1px solid rgba(180, 221, 255, 0.35);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 35px rgba(160, 203, 255, 0.35);
  color: #fff;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: all 0.35s ease;
}

.floating-nav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.floating-nav .nav-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.floating-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.floating-nav li {
  margin-bottom: 0.75rem;
}

.floating-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

.floating-nav a:hover,
.floating-nav a.active {
  opacity: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Mobile */
@media (max-width: 768px) {
  .floating-nav {
    right: 1rem;
    width: 80%;
    top: auto;
    bottom: 2rem;
  }

  .floating-nav-tools {
    right: 1rem;
  }
}

/* Darken nav toggle when active */
#navToggle.active {
  background: rgba(140, 184, 255, 0.1);
  border-color: rgba(80, 120, 160, 0.6);
}

.hero-diagram {
    max-width: 350px;
    width: 90%;
    height: auto;
    margin: 1.5rem auto;
    display: block;
}

.hero-banner {
  width: 100%;
  max-width:100%;
  height: auto;
  min-height:40vh;
  background: url('../assets/images/projects/project1/herobanner.png') center/cover no-repeat;
  display: block;
}

.under-construction-img {
    max-width: 350px;
    width: 90%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
}

.architecture-placeholder {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
}

.architecture-diagram {
    max-width: 900px;   
    width: 100%;        
    height: auto;
    display: block;
    margin: 2rem auto;  
}

.screenshot-placeholder {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px; /* optional polish */
}

/* ===== Carousel Container ===== */
.carousel {
  position: relative;
  display: block;
  width: min(100%, 900px);
  margin: 2rem auto;
  border-radius: 14px;
  overflow: visible;
  box-shadow:
    0 0 24px rgba(120, 180, 255, 0.35),
    0 0 80px rgba(40, 60, 120, 0.7);
  border: 1px solid rgba(180, 210, 255, 0.25);
  background:rgba(5, 10, 30, 0.8)
}

li {
  margin-bottom: 8px; /* adjust spacing as needed */
}

ul {
  padding-bottom: 10px;
}


/* ===== Slides ===== */
.carousel-track {
  position: relative;
  width: 100%;
  height: auto;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
  position: relative;
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  object-position: center bottom;  /* keeps the crop centered */
}

/* ===== Navigation Buttons ===== */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e4f0ff;
  font-size: 2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 0 10px rgba(206, 178, 255, 1),
    0 0 20px rgba(206, 178, 255, 0.8);
}

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

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

/* ===== Dots ===== */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: .5rem 0;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(200, 230, 255, 0.4);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.carousel-dots button.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.3);
}

/* ===== Captions ===== */
.carousel .carousel-caption-below {
  text-align: center;
  font-size: 0.95rem;
  color: rgb(159, 207, 255);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* Project Page Code Blocks Styled Like Content Box */
.project-section pre {
  background-color: rgba(6, 63, 86, 1);
    background: radial-gradient(
    circle at top,
    rgba(40, 60, 120, 0.45),
    rgba(5, 10, 30, 0.9)
  );
    white-space: pre-wrap;      /* allows wrapping instead of forcing one long line */
  word-wrap: break-word;      /* breaks long words if needed */
  overflow-x: auto;           /* keeps horizontal scroll if absolutely necessary */
  max-width: 100%;            /* prevents overflow beyond container */
  box-sizing: border-box;     /* ensures padding doesn’t push width past parent */
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);

  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  margin: 1.2rem 0;

  box-shadow: 0 0 18px rgba(180, 200, 255, 0.25);
  overflow-x: auto;
}

.project-section code {
  color: #e8f1ff; /* soft cloud-blue text */
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.95rem;
  color: #e4f0ff;

}

.project-screenshot {
  display: block;
  max-width: 80%;          /* Shrinks image width to 80% of container */
  height: auto;            /* Preserves aspect ratio */
  margin: 1.5rem auto;     /* Centers image with spacing */
  border-radius: 8px;      /* Soft corners for polish */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); /* Subtle depth */
  transition: transform 0.2s ease-in-out;
}

/* Optional hover zoom for clarity */
.project-screenshot:hover {
  transform: scale(1.75);
}

/* Touch-friendly zoom for mobile */
@media (hover: none) and (pointer: coarse) {
  .project-screenshot:active {
    transform: scale(1.75);
  }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .carousel-btn {
    font-size: 1.4rem;
    padding: 0.3rem 0.6rem;
  }
}

.project-title {
  text-align: center;
  display: block;
  margin: 0 auto;
}

.github-button {
  display: inline-block;
  padding: 10px 24px;
  background-color: rgba(200, 170, 255, 0.25); /* soft lavender */
  border: 1px solid rgba(220, 190, 255, 0.45);
  border-radius: 8px;
  color: #f3eaff;
  font-weight: 500;
  text-decoration: none;
  text-shadow: 0 0 6px rgba(230, 210, 255, 0.9);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.github-button:hover {
  box-shadow: 0 0 16px rgba(220, 190, 255, 0.85);
  transform: translateY(-2px);
}

.github-button:active {
  transform: translateY(0);
}

/* Centering container */
.github-button-container {
  text-align: center;
  background: none; /* ensures no outer box */
  backdrop-filter: none;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  margin-left: auto;
  margin-right: auto;
  display: block;
}