body {
  margin: 0;
  padding: 0;
}

:root {
  --sidebar-width-expanded: 300px;
  --sidebar-width-collapsed: 60px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--sidebar-width-expanded);
  background-color: white;
  color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: width 0.3s;
  overflow: hidden;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.nav.collapsed {
  width: var(--sidebar-width-collapsed);
}

#toggle-btn {
  background: none;
  border: none;
  color: black;
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  margin: 1rem 0; /* center spacing */
}

#toggle-btn:hover {
  border-radius: 10px;
  background: pink;
  color: crimson;
}

#imgLogo {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin: 1rem 0;
  transition: opacity 0.3s;
}

.nav.collapsed #imgLogo {
  opacity: 0;
}

.nav-links {
  list-style: none;
  padding: 0;
  width: 100%;
}

.nav-links li {
  width: 100%;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: black;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  font-size: 16px;
}

.nav-links a:hover {
  transform: scale(1.09);
  border-radius: 15px;
  background: pink;
  color: crimson;
}

.nav-links i {
  font-size: 20px;
  width: 30px;
  text-align: center;
}

.nav-links span {
  margin-left: 10px;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.nav.collapsed .nav-links span {
  opacity: 0;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin: 1rem 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.social-icons a {
  color: black;
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border-radius: 6px;
  text-decoration: none;
}

.social-icons a:hover {
  transform: scale(1.09);
  background: pink;
  color: crimson;
}

.nav.collapsed .social-icons {
  opacity: 0;
  visibility: hidden;
}

#mainContentHome {
  background-image: url("images/image1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  text-align: center;
}

#section_one {
  height: 100vh;
  color: white;
  padding-left: var(--sidebar-width-expanded);
  box-sizing: border-box;
  transition: padding-left 0.3s;
}

.nav.collapsed ~ #mainContentHome #section_one {
  padding-left: var(--sidebar-width-collapsed);
}

#section_one h1:first-of-type {
  margin-top: 0;
  padding-top: 150px;
}

#section_one h1 {
  font-size: 25px;
}

#section_two {
  position: relative;
  left: var(--sidebar-width-expanded);
  width: calc(100% - var(--sidebar-width-expanded));
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
  box-sizing: border-box;
  padding: 0 1rem;
  transition: left 0.3s, width 0.3s;
}

.nav.collapsed ~ #mainContentHome #section_two {
  left: var(--sidebar-width-collapsed);
  width: calc(100% - var(--sidebar-width-collapsed));
}

.video-container {
  position: relative;
  width: 450px;
  max-width: 800px;
  height: 625px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
}

.video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.overlay-text {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.overlay-text h1 {
  margin: 0;
  font-size: 25px;
}

.overlay-text p {
  margin: 0.5rem 0;
}

.overlay-text span {
  font-size: 23px;
  font-weight: bold;
  color: red;
}

#section_three {
  position: relative;
  left: var(--sidebar-width-expanded);
  width: calc(100% - var(--sidebar-width-expanded));
  box-sizing: border-box;
  transition: left 0.3s, width 0.3s;
  color: white;
  font-size: 25px;
}

#section_three h1 {
  font-size: 25px;
}

.nav.collapsed ~ #mainContentHome #section_three {
  left: var(--sidebar-width-collapsed);
  width: calc(100% - var(--sidebar-width-collapsed));
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  justify-content: center;
}

.gallery-item {
  position: relative;
  width: calc(33.333% - 10px);
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 25px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  text-align: center;
  pointer-events: none;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
}

.gallery-item:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery-item {
    width: 100%;
  }
}

#section_four {
  height: 100vh;
  color: white;
  padding-left: var(--sidebar-width-expanded);
  box-sizing: border-box;
  transition: padding-left 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#section_four img {
  max-width: 90%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.nav.collapsed ~ #mainContentHome #section_four {
  padding-left: var(--sidebar-width-collapsed);
}

@media (max-width: 900px) {
  #section_four img {
    max-width: 400px;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
  }
}

/* Services */
.video-hero {
  position: relative;
  width: calc(100% - var(--sidebar-width-expanded));
  height: 100vh;
  overflow: hidden;
  margin-left: var(--sidebar-width-expanded);
  transition: width 0.3s, margin-left 0.3s;
}

.nav.collapsed ~ #mainContentServices .video-hero {
  width: calc(100% - var(--sidebar-width-collapsed));
  margin-left: var(--sidebar-width-collapsed);
}

#background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
}

.nav.collapsed ~ #mainContentServices .video-overlay {
  padding-left: var(--sidebar-width-collapsed);
}

.video-overlay h1 {
  font-size: 50px;
  margin: 0.5rem;
}

.hero-button {
  background: transparent;
  color: white;
  border: 2px solid white;
  cursor: pointer;
  font-size: 20px;
  padding: 12px;
  transition: background 0.3s;
}

.hero-button:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: white;
}

.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
  color: white;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.image-hero {
  position: relative;
  width: calc(100% - var(--sidebar-width-expanded));
  height: 100vh;
  overflow: hidden;
  margin-left: var(--sidebar-width-expanded);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: width 0.3s, margin-left 0.3s;
}

.nav.collapsed ~ #mainContentServices .image-hero {
  width: calc(100% - var(--sidebar-width-collapsed));
  margin-left: var(--sidebar-width-collapsed);
}

.image-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
}

.nav.collapsed ~ #mainContentServices .image-overlay {
  padding-left: var(--sidebar-width-collapsed);
}

.image-overlay h1 {
  font-size: 50px;
  margin: 0.5rem;
}

.popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: 90%;
  height: 90%;
  border-radius: 10px;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
  background-image: url(images/image3.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  justify-content: left;
  text-align: left;
  color: white;
  font-weight: bold;
  padding-left: 20px;
  padding-right: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 40px;
}

.popup-content-trauma {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: 90%;
  height: 90%;
  border-radius: 10px;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
  background-image: url(images/image4.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  justify-content: center;
  text-align: center;
  color: black;
  font-weight: bold;
  font-size: 18px;
  padding-left: 20px;
  padding-right: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 40px;
}

.popup-content-SVU {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: 90%;
  height: 90%;
  border-radius: 10px;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
  background-image: url(images/image7.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  justify-content: center;
  text-align: center;
  color: black;
  font-weight: bold;
  padding-left: 20px;
  padding-right: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 40px;
}

.popup-content-SVU .close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
  color: black;
}

.popup-content-SVU ul li {
  text-align: left;
}
.body-no-scroll {
  overflow: hidden;
  height: 100vh;
}

.popup-content-community-projects {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: 90%;
  height: 90%;
  border-radius: 10px;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
  background-image: url(images/image24.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  justify-content: center;
  text-align: center;
  color: black;
  font-weight: bold;
  font-size: 18px;
  padding-left: 20px;
  padding-right: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 40px;
}

.popup-content-community-projects .close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
  color: black;
}

#media-carousel {
  height: 100vh;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding-left: var(--sidebar-width-expanded);
  box-sizing: border-box;
  transition: padding-left 0.3s ease;
}

.nav.collapsed ~ main #media-carousel {
  padding-left: var(--sidebar-width-collapsed);
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item {
  display: none;
  width: 100%;
  height: 100%;
  text-align: center;
}

.carousel-item.active {
  display: block;
}

.carousel-item img,
.carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.carousel-controls button {
  background-color: rgba(0, 0, 0, 0.05);
  border: none;
  color: white;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  pointer-events: all;
  transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
  #media-carousel {
    padding-left: var(--sidebar-width-expanded);
  }

  .carousel {
    width: 90%;
    height: 60%;
  }

  .carousel-controls button {
    padding: 10px 16px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  #media-carousel {
    padding-left: var(
      --sidebar-width-expanded
    ); /* Still respect expanded sidebar */
  }

  .carousel {
    width: 95%;
    height: 50%;
  }

  .carousel-controls button {
    padding: 8px 12px;
    font-size: 18px;
  }

  .carousel-item img,
  .carousel-item video {
    width: 100%;
    height: auto;
    max-height: 100%;
  }
}

#mainContentContactUs {
  text-align: center;
  font-size: 18px;
}

#sectionContactUs {
  height: 100vh;
  color: black;
  padding-left: var(--sidebar-width-expanded);
  box-sizing: border-box;
  transition: padding-left 0.3s;
}

.nav.collapsed ~ #mainContentContactUs #sectionContactUs {
  padding-left: var(--sidebar-width-collapsed);
}

#sectionContactUs h1:first-of-type {
  margin-top: 0;
  padding-top: 45px;
}

#sectionContactUs h1 {
  font-size: 25px;
}

#sectionContactUs span {
  color: crimson;
  font-weight: bold;
}

@media (max-width: 768px) {
  #mainContentContactUs {
    min-height: auto;
  }
}
