/* ===== GENERAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body,
html {
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* ===== HERO SECTION ===== */
.project-hero {
  position: relative;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.project-hero h1 {
  position: relative;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  z-index: 2;
}

/* ===== CONTENT ===== */
.project-content {
  max-width: 90%;
  margin: 5rem auto;
  padding: 0 1.5rem;
  color: #222;
}

.project-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-content p {
  line-height: 1.7;
  color: #444;
  margin-bottom: 2rem;
}

/* ===== GALLERY ===== */
.project-gallery img {
  height: 300px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===== BACK BUTTON ===== */
.back-btn {
  padding: 0.8rem 2rem;
  background: transparent;
  border: 2px solid #111;
  border-radius: 50px;
  font-size: 1rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.back-btn:hover {
  background: #111;
  color: #fff;
}

/* === FLOATING NAV === */
.bottom-nav {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: auto;
  animation: floatDock 3s ease-in-out infinite alternate;
}

@keyframes floatDock {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.9),
    rgba(60, 60, 60, 0.6)
  );
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

/* ICON BUTTONS */
.nav-item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease, transform 0.25s ease;
  position: relative;
}

.nav-item a {
  color: inherit;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: all 0.3s ease;
}

/* HOVER EFFECT */
.nav-item:hover {
  transform: translateY(-5px) scale(1.1);
  color: #fff;
}

.nav-item:hover::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  animation: bounce 0.5s ease infinite alternate;
}

@keyframes bounce {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  100% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* Make nav responsive on tablets */
@media (max-width: 992px) {
  .bottom-nav {
    bottom: 20px;
    padding: 0 1rem;
  }

  .nav-inner {
    gap: 10px;
    padding: 10px 15px;
  }

  .nav-item {
    width: 42px;
    height: 42px;
  }

  .nav-item svg {
    width: 18px;
    height: 18px;
  }
}

/* Desktop nav inner */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.9),
    rgba(60, 60, 60, 0.6)
  );
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

/* Tablet view */
@media (max-width: 992px) {
  .bottom-nav {
    bottom: 20px;
  }

  .nav-inner {
    gap: 10px;
    padding: 10px 15px;
  }

  .nav-item {
    width: 42px;
    height: 42px;
  }

  .nav-item svg {
    width: 18px;
    height: 18px;
  }
}

/* Mobile view: full width, scrollable */
@media (max-width: 576px) {
  .bottom-nav {
    transform: none;
    width: 100%;
    padding: 0 5px;
  }

  .nav-inner {
    gap: 10px;
    overflow-x: auto;
    padding: 8px;
  }

  .nav-inner::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
  }
}

/* ACTIVE BUTTON POP + GLOW */
.nav-item.active {
  background: linear-gradient(135deg, #fff, #f0f0f0);
  color: #000;
  transform: translateY(-2px) scale(1.2);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3),
    0 0 12px rgba(255, 255, 255, 0.2);
}

/* === CONTACT SECTION RESPONSIVE === */

.contact-section {
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

.contact-container {
  max-width: 1300px;
  margin: 0 auto;
}

.contact-section h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.divider-line {
  position: relative;
  height: 1px;
  background-color: #111;
  width: 100%;
}

.get-in-touch-btn {
  position: absolute;
  top: 50%;
  right: 20%;
  transform: translateY(-50%);
  background-color: #3d5afe;
  color: white;
  border: none;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.get-in-touch-btn:hover {
  background-color: #455ce9;
  transform: translateY(-50%) scale(1.05);
}

.contact-info {
  margin-top: 5rem;
}

.contact-info .col-md-6 {
  display: flex;
  flex-direction: column;
}

.contact-info p.small {
  color: #888;
}

@media (max-width: 992px) {
  .get-in-touch-btn {
    right: 10%;
    width: 120px;
    height: 120px;
    font-size: 1rem;
  }

  .contact-section h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

.chaos-section {
  min-height: 70vh;
  padding: 6rem 5vw;
  background-color: #000;
  color: #fff;
  display: flex;
  align-items: center;
}

.chaos-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chaos-text .tagline {
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 300;
  color: #d1d1d1;
  margin-bottom: 0.5rem;
}

.chaos-text .name {
  font-size: clamp(10rem, 22vw, 18rem);
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

/* --- Button + Icon --- */
.arrow-btn {
  background-color: #fff;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.arrow-btn:hover {
  background-color: #ddd;
}

/* Arrow styling */
.arrow-icon {
  width: 36px;
  height: 36px;
  fill: #000; /* solid black arrow */
  transition: none; /* keeps it stable */
}

@media (max-width: 992px) {
  .chaos-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .arrow-btn {
    width: 80px;
    height: 80px;
  }

  .arrow-icon {
    width: 28px;
    height: 28px;
  }

  .chaos-text .name {
    font-size: clamp(3rem, 10vw, 6rem);
  }
}

/* === CHAOS SECTION RESPONSIVE === */
@media (max-width: 992px) {
  .chaos-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
  }

  .chaos-text .tagline {
    font-size: clamp(1rem, 4vw, 1.4rem);
  }

  .chaos-text .name {
    font-size: clamp(3rem, 10vw, 6rem);
  }

  .arrow-btn {
    width: 80px;
    height: 80px;
  }

  .arrow-icon {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 576px) {
  .chaos-section {
    padding: 4rem 1.5rem;
    min-height: 60vh;
  }
}

/* Force modal images to a consistent size */
#galleryModal .carousel-item img {
  height: 75vh; /* consistent height */
  width: 100%; /* fill horizontally */
  object-fit: contain; /* keep full image visible without cropping */
  background: #000; /* optional: adds clean padding behind image */
  border-radius: 20px;
}

.project-hero h1 {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}
