/********** Template CSS **********/
:root {
  --primary: #7a1e2e;
  --secondary: #f4e6dd;
  --light: #f8f4ef;
  --dark: #1c2a2a;
  --accent: #b8894d;
  --ink: #2b2b2b;
  --glass-light: rgba(255, 255, 255, 0.58);
  --glass-dark: rgba(20, 32, 32, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 18px 45px rgba(28, 42, 42, 0.15);
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background: radial-gradient(
      circle at top right,
      rgba(122, 30, 46, 0.08),
      transparent 55%
    ),
    linear-gradient(180deg, #fdfaf7 0%, #f6efe7 100%);
}

.glass-panel,
.bg-white,
.bg-light,
.service-item,
.causes-item,
.team-text,
.testimonial-carousel .owl-item .testimonial-text {
  background: var(--glass-light) !important;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.navbar,
.top-bar,
.fixed-top.bg-dark {
  background: rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.footer,
.footer .copyright {
  background: var(--glass-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(122, 30, 46, 0.15);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(122, 30, 46, 0.15);
  border-color: rgba(122, 30, 46, 0.4);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: "Playfair Display", serif;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
  color: #ffffff;
}

.btn.btn-primary:hover {
  color: var(--primary);
  background: transparent;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.fixed-top {
  transition: 0.5s;
}

.top-bar {
  height: 45px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
  margin-right: 16px;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  outline: none;
  display: flex;
  align-items: center;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: #ffffff;
}

.navbar .navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 8px 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 22, 28, 0.45);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  z-index: 1020;
}

.nav-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

@media (min-width: 992px) {
  .navbar .navbar-nav {
    align-items: center;
  }
}

.navbar-brand img {
  height: 56px;
  border-radius: 12px;
}

@media (max-width: 991.98px) {
  #navbarCollapse {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(50vw, 360px);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    background: var(--glass-dark);
    /* border-left: 1px solid var(--glass-border); */
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    z-index: 1000002;
  }

  #navbarCollapse.collapse {
    display: block;
  }

  #navbarCollapse.collapsing {
    height: 100vh !important;
    transition: transform 0.35s ease;
  }

  #navbarCollapse.show {
    transform: translateX(0);
  }

  #navbarCollapse:not(.show) {
    pointer-events: none;
  }

  .nav-backdrop {
    display: block;
  }

  .nav-panel-header {
    height: 83px;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 1.25rem;
    color: #fff;
    /* background: rgb(0, 0, 0);
    backdrop-filter: blur(22px) saturate(160%); */
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
  }

  .nav-panel-title {
    /* font-family: "Playfair Display", serif; */
    font-size: 1.1rem;
    letter-spacing: 0.02em;
  }

  .nav-close {
    width: 40px;
    height: 40px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar .navbar-nav {
    margin: 0;
    padding: 0rem !important;
    height: 100%;
    gap: 6px;
    overflow-y: auto;
    border-top: none;
    background: transparent;
  }

  .navbar .navbar-nav .nav-link {
    padding: 8px 16px;
    border-radius: 12px;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    margin-right: 0;
    /* background: rgba(255, 255, 255, 0.12); */
    /* border: 1px solid rgba(255, 255, 255, 0.18); */
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22); */
  }

  .navbar .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .navbar .navbar-nav .nav-link.active {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    border-radius: 0px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  .navbar .navbar-toggler {
    position: relative;
    z-index: 1000003;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    transition: 0.5s;
    opacity: 0;
  }

  .navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    120deg,
    rgba(28, 42, 42, 0.78),
    rgba(122, 30, 46, 0.55)
  );
  z-index: 1;
}

.hero-parallax,
.hero-parallax .carousel-inner,
.hero-parallax .carousel-item {
  height: 100vh;
  min-height: 100svh;
}

.hero-parallax .carousel-item img {
  height: 100%;
  object-fit: cover;
}

.hero-parallax {
  position: relative;
  overflow: hidden;
}

.hero-cta .btn {
  min-width: 150px;
  justify-content: center;
}

/* CLOUDS */
#clouds {
  position: absolute;
  top: 80vh;
  left: 0;
  width: 100%;
  /* height: clamp(160px, 22vw, 320px); */
  height: 40vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 100;
}

#clouds::before,
#clouds::after {
  content: "";
  position: absolute;
  /* top: 10vh; */
  left: 0;
  width: 200%;
  height: 110%;
  background-image: url("../img/cloud.png"), url("../img/cloud.png");
  background-repeat: repeat-x, repeat-x;
  background-size: auto 90%, auto 70%;
  background-position: 0 90%, 30vw 90%;
  animation: cloud-drift 55s linear infinite;
}

#clouds::after {
  opacity: 0.65;
  background-size: auto 110%, auto 85%;
  background-position: 10vw 100%, 20vw 100%;
  animation-duration: 90s;
  animation-delay: -30s;
}

@keyframes cloud-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  #clouds {
    /* height: clamp(200px, 40vw, 320px); */
    height: 30vh;
  }
}

.parallax-layer {
  transform: translate3d(0, 0, 0) scale(1.08);
  will-change: transform;
}

.carousel-control-prev,
.carousel-control-next {
  width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--dark);
  border: 12px solid var(--dark);
  border-radius: 3rem;
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 100svh;
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.page-header {
  min-height: 100vh;
  min-height: 100svh;
  padding: 6rem 0 3rem;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  background: linear-gradient(
      135deg,
      rgba(28, 42, 42, 0.88),
      rgba(122, 30, 46, 0.6)
    ),
    url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

.page-header .container {
  width: 100%;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: #999999;
}

/*** Causes ***/
.causes-item .progress {
  height: 5px;
  border-radius: 0;
  overflow: visible;
}

.causes-item .progress .progress-bar {
  position: relative;
  overflow: visible;
  width: 0px;
  border-radius: 0;
  transition: 5s;
}

.causes-item .progress .progress-bar span {
  position: absolute;
  top: -7px;
  right: 0;
  width: 40px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: var(--primary);
  color: #ffffff;
}

.causes-item .causes-overlay {
  position: absolute;
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  transition: 0.5s;
}

.causes-item:hover .causes-overlay {
  height: 100%;
  opacity: 1;
}

/*** Service ***/
.service-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.06);
}

/*** Donate ***/
.donate {
  background: rgba(28, 42, 42, 0.82);
}

.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked + label {
  color: var(--primary);
  border-color: var(--primary);
}

/*** Team ***/
.team-item img {
  position: relative;
  top: 0;
  transition: 0.5s;
}

.team-item:hover img {
  top: -30px;
}

.team-item .team-text {
  position: relative;
  height: 100px;
  transition: 0.5s;
}

.team-item:hover .team-text {
  margin-top: -60px;
  height: 160px;
}

.team-item .team-text .team-social {
  opacity: 0;
  transition: 0.5s;
}

.team-item:hover .team-text .team-social {
  opacity: 1;
}

.team-item .team-social .btn {
  display: inline-flex;
  color: var(--primary);
  background: #ffffff;
  border-radius: 40px;
}

.team-item .team-social .btn:hover {
  color: #ffffff;
  background: var(--primary);
}

/*** Founding Leadership ***/
.founder-card {
  position: relative;
  padding: 32px;
  border-radius: 26px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0.18)
  );
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 25px 60px rgba(12, 20, 30, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.founder-card::before,
.founder-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.6;
  filter: blur(2px);
  animation: founder-glow 8s ease-in-out infinite;
}

.founder-card::before {
  top: -120px;
  right: -80px;
}

.founder-card::after {
  bottom: -140px;
  left: -60px;
  animation-delay: -4s;
}

.founder-card__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--primary);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 1;
}

.founder-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 32px;
  animation: founder-float 7s ease-in-out infinite;
}

.founder-card__portrait {
  position: relative;
  flex: 0 0 240px;
  max-width: 240px;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 35px rgba(12, 20, 30, 0.25);
}

.founder-card__portrait::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.founder-card__portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.founder-card__info {
  color: #1c2a2a;
}

.founder-card__org {
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: #1c2a2a;
}

.founder-card__name {
  font-size: 2rem;
  margin-bottom: 12px;
}

.founder-card__text {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #4b5a5a;
}

.founder-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.founder-card__meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 12px;
  color: #1c2a2a;
}

.founder-card:hover {
  box-shadow: 0 35px 70px rgba(12, 20, 30, 0.24);
}

@keyframes founder-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes founder-glow {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(16px) scale(1.05);
  }
}

@media (max-width: 991.98px) {
  .founder-card__content {
    flex-direction: column;
    text-align: center;
  }

  .founder-card__portrait {
    flex: 0 0 auto;
    max-width: 260px;
  }

  .founder-card__meta {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .founder-card {
    padding: 24px;
  }

  .founder-card__badge {
    position: static;
    display: inline-block;
    margin-bottom: 16px;
  }

  .founder-card__content {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .founder-card__content {
    animation: none;
  }

  .founder-card::before,
  .founder-card::after {
    animation: none;
  }
}

/*** Testimonial ***/
.testimonial-carousel::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.testimonial-carousel::after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

@media (min-width: 768px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 200px;
  }
}

@media (min-width: 992px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 300px;
  }
}

.testimonial-carousel .owl-item .testimonial-text {
  background: var(--light);
  transform: scale(0.8);
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
  background: var(--primary);
  transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
  color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
  background: var(--primary) !important;
}

.testimonial-carousel .owl-nav {
  position: absolute;
  width: 350px;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: 0.5s;
  z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
  width: 300px;
  opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  position: relative;
  color: var(--primary);
  font-size: 45px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: var(--dark);
}

.testimonial-container {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
}

.testimonial-container .testimonial-grid {
  display: grid;
  gap: 2.5rem;
}

.testimonial-container .image-container {
  position: relative;
  width: 100%;
  height: 22rem;
  perspective: 1000px;
}

.testimonial-container .testimonial-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.testimonial-container .testimonial-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.testimonial-container .name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.testimonial-container .designation {
  font-size: 0.95rem;
  color: rgba(28, 42, 42, 0.7);
  margin-bottom: 1.5rem;
}

.testimonial-container .quote {
  font-size: 1.1rem;
  color: rgba(28, 42, 42, 0.85);
  line-height: 1.8;
}

.testimonial-container .arrow-buttons {
  display: flex;
  gap: 1rem;
}

.testimonial-container .arrow-button {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.testimonial-container .arrow-button:hover {
  background: rgba(122, 30, 46, 0.9);
  transform: translateY(-2px);
}

.testimonial-container .arrow-button svg {
  width: 20px;
  height: 20px;
  fill: #f8f4ef;
  transition: transform 0.3s;
}

.testimonial-container .prev-button:hover svg {
  transform: rotate(-12deg);
}

.testimonial-container .next-button:hover svg {
  transform: rotate(12deg);
}

.testimonial-container .quote .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(10px);
}

@media (min-width: 768px) {
  .testimonial-container .testimonial-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/*** Footer ***/

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.5);
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: rgba(255, 255, 255, 0.5);
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--light);
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .btn.btn-square {
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.footer .btn.btn-square:hover {
  color: var(--secondary);
  border-color: var(--light);
}

.footer .copyright {
  padding: 25px 0;
  font-size: 15px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: var(--secondary);
}

.footer .copyright a:hover {
  color: var(--primary);
}
