/*Root Styles*/
:root {
  --text-color-main: var(--white);
}

html, body {
  background: var(--wood-gradient);
  width: 100%;
}

/* Headings */
h1 {
  font-family: "Mestiza", serif;
  font-size: 64px;
  color: var(--text-color-main);
  margin-bottom: 0;
}

h2 {
  font-family: "Mestiza-bold", serif;
  font-size: 48px;
  color: var(--text-color-main);
  margin-bottom: 0;
}

h3 {
  font-family: "civane-normal", sans-serif;
  font-size: 48px;
  color: var(--text-color-main);
  margin-bottom: 0;
}

h4 {
  font-family: "Mestiza", serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--text-color-main);
  margin-bottom: 0;
}

/* Body text */
p {
  font-family: "civane-normal", sans-serif;
  font-size: 32px;
  color: var(--text-color-main);
  margin-bottom: 0;
}

/* Caption / small text */
.caption {
  font-family: "civane-normal", sans-serif;
  font-size: 24px;
}

.dark{
  color: var(--wood-dark);
}

.big-number {
  font-size: 200px;
  font-family: "Mestiza", serif;
}

.small{
  font-size: 16px;
  font-family: "civane-normal", sans-serif;
  color: var(--text-color-main)
}

label{
  font-family: "Mestiza", serif;
  font-size: 32px;
}

li{
  font-family: "civane-normal", sans-serif;
  font-size: 24px;
}

/*Custom scrollbar*/

::-webkit-scrollbar {
  width: 1vw;
}

::-webkit-scrollbar-track {
  background: var(--wood-gradient);
}

::-webkit-scrollbar-thumb {
  background-image: url("media/scrollbar.svg"); 
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;
}

/* Text Logo */
.text-logo {
  display: grid;
  place-items: center;
  user-select: none;
  margin-bottom: 2rem;
}

/* Back leather text */
.logo-back {
  grid-area: 1 / 1;
  font-family: "leather", serif;
  font-size: 15vw;
  color: #0c000b;
  opacity: 0.20;
  white-space: nowrap;
  z-index: 1;
  transform: translate(6px, 6px);
}

/* Front mestiza text */
.logo-front {
  grid-area: 1 / 1;
  font-family: "mestiza", serif;
  font-weight: 700;
  font-size: 10vw;
  color: var(--white);
  white-space: nowrap;
  z-index: 2;
  cursor: pointer;
}

/* Gradient layer */
.logo-gradient {
  grid-area: 1 / 1;
  font-family: "mestiza", serif;
  font-weight: 700;
  font-size: 10vw;
  white-space: nowrap;
  background: linear-gradient(90deg, #B6D9AD, #9BD7BA, #DCB3BA, #F6B0BB);
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

/* Hover fade-in gradient */
.text-logo:hover .logo-gradient {
  opacity: 1;
  animation: gradientMove 3s ease infinite;
}

/* Gradient animation */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Navbar Styles */
.navbar {
  padding-left: 5%;
  padding-right: 5%;
  transition: all 0.4s ease;
  background: transparent;
}

.navbar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--wood-dark);
  backdrop-filter: blur(10px);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar .container-fluid {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

/* Even spacing for nav items */
.navbar-nav {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  opacity: 1;
  transform: translateY(-50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Fade in from top animation when sticky - all items together */
.navbar:not(.sticky) .navbar-nav {
  opacity: 1;
  transform: translateY(-50px);
}

.navbar.sticky .navbar-nav {
  opacity: 1;
  transform: translateY(0);
}

/* Small logo that fades in from top */
.navbar-logo-small {
  width: 15%;
  height: auto;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(-50px);
  transition: all 0.5s ease;
  position: absolute;
  left: 0;
}

.navbar.sticky .navbar-logo-small {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

/* Navbar collapse - full width for even spacing */
.navbar-collapse {
  flex-grow: 1;
}

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

.navbar-nav .nav-link {
  color: var(--white);       
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;  
  display: inline-block;
  position: relative;
  font-size: 36px;
}

/* Underline */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: currentColor;
  transition: all 0.35s ease;
  transform: translateX(-50%);
}

/* Hover underline */
.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Hover colors */
.nav-aboutus:hover { color: #c1e0af; }
.nav-awards:hover { color: #9bd7ba; }
.nav-donors:hover { color: #9bd7ba; }
.nav-theses:hover { color: #dcb3ba; }
.nav-archive:hover { color: #dcb3ba; }

/* Active (clicked) state */
.navbar-nav .nav-link.active {
  color: var(--white) !important;
}

.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* Hamburger icon */
.navbar-toggler {
  border: none;
  background: var(--celadon);
  flex-shrink: 0;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/ %3E%3C/svg%3E");
}

/* Soft glow on hover using your colors */
#logo-link:hover img {
  filter: drop-shadow(0 0 4px var(--celadon))
          drop-shadow(0 0 8px var(--tea-green))
          drop-shadow(0 0 10px var(--blossom));
  transition: filter 0.4s ease;
}

/* Remove glow on click */
#logo-link:active img {
  filter: none;
  transition: filter 0.2s ease;
}

/* Responsive */
@media (max-width: 991px) {
  .navbar-nav {
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 18px;
    padding: 0.5rem 1rem;
  }
  
  .navbar-logo-small {
    width: 20%;
    min-width: 50px;
  }
}
/*back to top button*/
.back-to-top {
  position: fixed;
  bottom: 2.5vw;
  right: 2.5vw;
  width: 54px;
  height: 54px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,0.25);

  cursor: pointer;
  z-index: 200;

  opacity: 0.7;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top img {
  width: 55%;
  height: auto;
  transition: transform 0.25s ease;
}

/* hover */
.back-to-top:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* click state */
.back-to-top.clicked {
  opacity: 0.4;
}


/*Index Section */
.homepage-hero {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10% 5% 0 5%;
}
.component-socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5%;
  gap: 3vh;
}
.social-icons {
  display: flex;
  flex-direction: row;
  gap: 45%;
  justify-content: center;
}
.icons {
  height: 30%;
}
.component-gradient-line {
  background: linear-gradient(90deg, #b6d9ad, #83c9b3 24.04%, #f6b0bb 94.71%) border-box;
  border-top: 7px solid transparent;
  box-sizing: border-box;
  width: 70vw;
}
.component-gallery {
  display: flex;
  flex-direction: row;
  gap: 5%;
  align-items: center;
}
.social-media-post-1 {
  background-color: var(--white);
  width: 564px;
  height: 656px;
  overflow: hidden;
}
.social-media-post {
  display: inline-block;
  width: 352px;
  height: 43px;
}

.home-instagram-feed {
  display: flex;
  flex-direction: column;
  gap: 1vh;
}

.home-hero-text{
  text-align: right;
}

/* About Us Section */
.about-us,
.about-us * {
  box-sizing: border-box;
}
.about-us {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  overflow-x: clip;
}
.about-hero-container {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.component-arches-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.component-small-arch {
  transform: scaleX(-1);
}

.about-hero {
  margin: -150px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 70vw;
}
.hero-title {
  text-align: left;
  position: relative;
  align-self: stretch;
}
.about-hero-text {
  display: block;
  position: relative;
}
.about-hero-text {
  display: block;
  position: relative;
  width: 100%;
}
.hero-body {
  text-align: left;
  position: relative;
}
.about-img-groupPhoto {
  background: #d9d9d9;
  width: 416px;
  height: 416px;
  float: right;
  margin-left: 34px;
  margin-bottom: 20px;
  shape-outside: margin-box;
}
.about-goal {
  padding: 0px 10% 0px 10%;
  display: flex;
  flex-direction: row;
  gap: 10%;
  align-items: center;
  justify-content: center;
}
.component-leaf-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 40vh;
}
.about-vision {
  display: flex;
  flex-direction: column;
  gap: 15%;
  align-items: center;
  justify-content: center;
}
.component-long-frame {
  width: 100%;
}
.component-long-frame-flipped {
  width: 100%;
  transform-origin: center;
  transform: rotate(180deg);
  padding-bottom: 5%;
}
.component-pillar {
  flex-shrink: 0;
  width: 62px;
  height: 420px;
  position: relative;
  aspect-ratio: 62/420;
}
.about-mission {
  display: flex;
  flex-direction: column;
  gap: 15%;
  align-items: center;
  justify-content: center;
}
.about-goal-body {
  text-align: center;
}
.component-divider {
  padding: 5% 0 5% 0;
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
  justify-content: space-evenly;
  align-self: stretch;
}
.about-profile {
  padding: 50px 30px 50px 30px;
  display: flex;
  flex-direction: row;
  gap: 50px;
  align-items: center;
  justify-content: center;
  align-self: stretch;

}
.component-left-corner-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  align-self: stretch;
}

.component-right-corner-container {
  display: flex;
  flex-direction: column; 
  align-items: flex-start;
  justify-content: space-between;
  align-self: stretch;
  transform: scaleX(-1);
}

.component-tiny-arch-top {
  transform: scaleY(-1);
}
.component-tiny-arch2 {
  flex-shrink: 0;
  width: 96.18px;
  height: 96.18px;
  position: relative;
  transform-origin: 0 0;
  transform: rotate(-180deg) scale(1, 1);
  overflow: hidden;
}
.about-img-profile {
  border-radius: 5%;
  width: 25vw;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.about-img-profile img {
  width: 100%;
  object-fit: cover;
  object-position: top;
}
.bar {
  align-self: center;
  flex-shrink: 0;
  position: relative;
}

.about-profile-discription {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  width: 714px;
  position: relative;
}
.about-profile-name {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-end;
  justify-content: flex-start;

}
.component-bar {
  align-self: stretch;
  flex-shrink: 0;
  width: 82.88px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 82.88/492;
}
.component-right-corner-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  align-self: stretch;

}
.about-associates {
  padding: 5% 3% 5% 3%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 5%;

}
.img-associates {
  background: #d9d9d9;
  border-radius: 10px;
  flex-shrink: 0;
  width: 30vw;
  height: 60vh;
  position: relative;
}
.about-associates-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;

}
.about-associates-grid {
  flex-shrink: 0;
  display: grid;
  gap: 20px;
  position: relative;
  grid-template-columns: repeat(3, fit-content(100%));
  grid-template-rows: repeat(2, fit-content(100%));
}
.about-production-associates {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  grid-column: 3 / span 1;
  grid-row: 1 / span 1;
}
.about-marketing-associates {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  grid-column: 2 / span 1;
  grid-row: 1 / span 1;
}
.about-multimedia-associates {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  grid-column: 2 / span 1;
  grid-row: 2 / span 1;
}
.about-creative-associates {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  grid-column: 1 / span 1;
  grid-row: 1 / span 1;
}
.about-editorial-associates {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  grid-column: 1 / span 1;
  grid-row: 2 / span 1;
}

/* Archive Section */
.archive {
  width: 100%;
  overflow: hidden;
  text-align: center;
  padding: 5%;
}

.archive-hero {
  display: flex;
  flex-direction: column;
  gap: 3vh;
  width: 80vw;
  margin: 0 auto 5vh auto;
}

.cover-img:hover {
  box-shadow: 0 12px 30px var(--blossom);
  transform: translateY(-4px);
}

.cover-img-container {
  position: relative; /* container for pseudo-element */
  display: inline-block;
  height: 80%;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 2; /* above the glass shadow */
  border-radius: 0.5rem; /* same rounding as image */
  transition: transform 0.25s ease;
}

/* Pseudo-element for the offset glass effect */
.cover-img-container::after {
  content: "";
  position: absolute;
  bottom: -12px;    /* offset down */
  right: -12px;     /* offset right */
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15); /* glassy white */
  backdrop-filter: blur(10px);           /* glass effect */
  border-radius: 0.5rem;                 /* match image */
  z-index: 1;                             /* behind image */
  transition: background 0.25s ease, transform 0.25s ease;
}

/* Hover effect */
.cover-img-container:hover::after {
  background: var(--blossom, rgba(255, 182, 193, 0.3));
  transform: translate(4px, 4px); /* slight pop on hover */
}

.cover-img-container:hover .cover-img {
  transform: translate(-2px, -2px); /* lift image slightly */
}

/*theses Section */
.theses {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: 10%;
}
.theses-hero {
  display: flex;
  flex-direction: column;
  gap: 2vh;
  align-items: center;
  justify-content: center;
  width: 70vw;
  text-align: center;
  padding-top: 5%;
}
.theses-preview {
  display: flex;
  align-items: flex-end;
  padding: 3% 15%;
}

.theses-container {
  position: relative;
  width: 100%;
  border-radius: 30px;

  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);

  border: 1px solid rgba(255,255,255,0.35);

  box-shadow:
    0 10px 35px rgba(0,0,0,0.25),
    inset 0 0 25px rgba(255,255,255,0.35);

  display: flex;
  flex-direction: row;  
  align-items: center;
  padding: 5% 10%;
  justify-content: space-between;

  overflow: hidden;
}

.theses-container::before {
  content: "";
  position: absolute;
  inset: 5%;
  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(
      420px circle at var(--x, 50%) var(--y, 50%),
      rgba(131,201,179,0.35),
      rgba(182,217,173,0.38),
      rgba(246,176,187,0.32),
      transparent 80%
    );

  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.theses-container:hover::before {
  opacity: 1;
}

.theses-container::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 29px;
  z-index: 1;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.65),
    transparent 40%,
    transparent 60%,
    rgba(255,255,255,0.35)
  );

  pointer-events: none;
  opacity: 0.45;
}

.theses-container > * {
  position: relative;
  z-index: 2;
}

.theses-text {
  display: flex;
  flex-direction: column;
  gap: 2vh;
  flex-shrink: 0;
  width: 65%;
}

.theses-button {
  width: 10vw;
  border-radius: 6px;
  background-color: var(--wood-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2%;
  cursor: pointer;
  gap: 1vw;
  transition: width 0.4s ease;
}

.theses-button.active {
  width: 20vw;
}

.theses-button p {
  margin: 0;
  color: var(--white);
  transition: color 0.4s ease;
  white-space: nowrap;
}

.theses-button .play-icon {
  transition: opacity 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

/* Progress container */
.audio-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.4s ease, opacity 0.3s ease;
}

.theses-button.active .audio-progress {
  width: 200px;
  opacity: 1;
}

.audio-progress input[type="range"] {
  width: 120px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 5px;
  background: linear-gradient(90deg, #B6D9AD, #9BD7BA, #DCB3BA, #F6B0BB);
  background-size: 300%;
  outline: none;
  animation: gradientMove 3s ease infinite;
}

.audio-progress input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.audio-progress input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.audio-progress .time {
  color: var(--white);
  font-size: 0.85rem;
  min-width: 35px;
}

@keyframes gradientMove {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Hover states for play icon - default state */
.theses-button .play-icon:not(.paused):hover {
  content: url("media/play-button-blossom.svg");
  color: var(--blossom);
}

/* Hover state for pause icon - when playing */
.theses-button .play-icon.paused:hover {
  content: url("media/pause-button-blossom.svg");
  color: var(--blossom);
}

.theses-glass {
  height: 291px;
  width: 291px;
  object-fit: contain;
  flex-shrink: 0;
  z-index: 2;
}

.theses-nav {
  position: fixed;
  left: 3vw;
  transform: translateY(-50%) translateX(0);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theses-nav.theses-fade-out {
  opacity: 0;
  transform: translateY(-50%) translateX(-30px);
}

.theses-nav.theses-fade-in {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.theses-nav img {
  opacity: 0.4;
  cursor: pointer;
  transition: 0.3s ease;
}

.theses-nav img.active {
  opacity: 1;
}

.theses-nav.ready {
  opacity: 1;
}

.theses-icon {
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.theses-icon:hover {
  opacity: 1;
}

.theses-icon:active {
  opacity: 0.4;
}

/* awards section */
.awards {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10%;
  text-align: center;
  padding-top: 10vh;
}
.awards-window-container {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10%;
  z-index: 4;
}
.awards-center-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 5vh;
  z-index: 5;
  max-width: 80vw;
}
.circle-window-icon {
  padding-top: 5vh;
  width: 25%;
}


.awards-text,
.awards-text * {
  background: linear-gradient(90deg, #B6D9AD, #9BD7BA, #DCB3BA, #F6B0BB);
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--white);
  transition: color 0.6s ease;
}
.awards-text:hover,
.awards-text:hover * {
  color: transparent;
  animation: gradientMove 3s ease infinite;
}

/* Donors Section */
.donors {
  	width: 100%;
  	position: relative;
  	display: flex;
  	flex-direction: column;
  	align-items: center;
  	justify-content: center;
  	text-align: center;
    gap: 5vh;
    padding: 3vh;
}
.donors-header{
  width: 80vw;
}

.donor-card-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 0;
  padding-bottom: 100%; 
  position: relative;
  border-radius: 20px;

  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);

  border: 1px solid rgba(255,255,255,0.35);

  box-shadow:
    0 10px 35px rgba(0,0,0,0.25),
    inset 0 0 25px rgba(255,255,255,0.35);

  overflow: hidden;
  transition: transform 0.3s ease;
}

.donor-card-glass::before {
  content: "";
  position: absolute;
  inset: 5%;
  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(
      100px circle at var(--x, 50%) var(--y, 50%),
      #83c9b3,
      #b6d9ad,
      #f6b0bb,
      transparent 70%
    );

  filter: blur(25px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.donor-card-glass:hover::before {
  opacity: 1;
}

.donor-card-glass::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  z-index: 1;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.65),
    transparent 40%,
    transparent 60%,
    rgba(255,255,255,0.35)
  );

  pointer-events: none;
  opacity: 0.45;
}

.donor-card-glass > * {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 90%;
}

.donor-card-glass img {
  max-width: 100%;
  object-fit: contain;
}

.join-us-container {
  padding: 50px 30px 50px 30px;
  display: flex;
  flex-direction: row;
  gap: 5vw;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.join-us{
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3vh;
  padding: 3vh;
}

.join-us-text{
  width: 70vw;
}

.contact-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 12px 28px;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: none; /* default no glow */
}

/* Outer glow on hover */
.contact-button:hover {
  box-shadow: 0 0 4px var(--celadon),
              0 0 8px var(--tea-green),
              0 0 12px var(--blossom);
}

/* Text layers */
.contact-button .button-text {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

.contact-button .button-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--tea-green), var(--celadon), var(--blossom));
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* Gradient text on hover */
.contact-button:hover .button-gradient {
  opacity: 1;
  animation: gradientMove 3s ease infinite;
}

.contact-button:hover .button-text {
  color: transparent;
}

/* Clicked state */
.contact-button.clicked {
  background: rgba(255, 255, 255, 0.25); /* brighter glass */
  box-shadow: none; /* remove glow */
}

.contact-button.clicked .button-text {
  color: white !important;
}

.contact-button.clicked .button-gradient {
  opacity: 0 !important;
}

/* Gradient animation */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------------- Base fade animations ---------------- */
.fade-in {
  opacity: 0;
  transform: translate(0, 0);
  transition: all 0.8s ease-out;
}

/* When element is visible */
.fade-in.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Directions for initial offset */
.fade-top { transform: translateY(-40px); }
.fade-bottom { transform: translateY(40px); }
.fade-left { transform: translateX(-40px); }
.fade-right { transform: translateX(40px); }

/* Stagger for gates or multiple elements */
.stagger {
  transition-delay: var(--delay, 0s);
}

/* Optional: slightly smoother animation curve */
