/* Navbar */
.nav-link.active, .nav-link:hover {
  color: #198754 !important;
  font-weight: 600;
}

.navbar-brand img {
  max-height: 140px;
  width: auto;
  animation: pulse 3s infinite ease-in-out;
}

.navbar-brand {
  padding: 0;
}

/* Hero Section */
.hero {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  margin-top: -1px;
  min-height: 70vh;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  filter: brightness(0.75);
}

.hero-overlay {
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  position: relative;
  z-index: 3;
  max-width: 600px;
  animation: fadeInDown 3s ease-out forwards;
  opacity: 0;
}

.hero-text h1 {
  font-size: 2rem;
}

.hero-text p {
  font-size: 1rem;
}

/* Wavy SVGs */
.hero-wave {
  display: block;
  width: 100%;
  height: 80px;
  position: absolute;
  left: 0;
  z-index: 5;
  pointer-events: none;
}
.hero-wave-top {
  position: absolute;        
  top: -1px;                 
  left: 0;
  width: 100%;               
  transform: scaleY(-1);     
  animation: waveMovementTop 2s infinite ease-in-out;
}

.hero-wave-bottom {
  bottom: 0;
  animation: waveMovement 2s infinite ease-in-out;
}

/* Section Headings */
.text-success {
  color: #198754 !important;
}

/* Animations */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes waveMovement {
  0% { transform: translateY(0); }
  50% { transform: translateY(10px); }
  100% { transform: translateY(0); }
}

@keyframes waveMovementTop {
  0% { transform: scaleY(-1) translateY(0); }
  50% { transform: scaleY(-1) translateY(10px); }
  100% { transform: scaleY(-1) translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes revealFromLeft {
  0% { opacity: 0; transform: translateX(-40px); letter-spacing: 0.3em; }
  100% { opacity: 1; transform: translateX(0); letter-spacing: normal; }
}

#turtle-title {
  opacity: 0;
  animation: revealFromLeft 1s ease-out forwards;
  animation-delay: 1.3s;
}

/* Fade-In Classes */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 2.5s ease-out;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.sea-turtles-section {
  background: url('images/icons/backgroundocean.png') center center/cover no-repeat;
  color: white;
  padding: 100px 0;
  min-height: 450px;
  position: relative;
  background-color: #0fa0d1;
}

.sea-turtles-section h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInDown 3s ease-out forwards;
}

/* Turtle Card */
.turtle-card {
  text-align: center;
  cursor: pointer;
}

.turtle-icon {
  width: 80px;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

.turtle-card:hover .turtle-icon {
  transform: scale(1.4);
}

.read-more-btn {
  display: none;
  margin-top: 10px;
  padding: 5px 10px;
  font-size: 0.9rem;
  color: white;
  background-color: #198754;
  border: none;
  border-radius: 4px;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.turtle-card:hover .read-more-btn {
  display: inline-block;
  opacity: 1;
  animation: fadeInDown 0.5s ease forwards;
}

.turtle-name {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 10px;
  text-transform: capitalize;
}

/* Divider Section */
.divider-section {
  background-color: #ffffff;
  height: 60px;
}

/* Welcome Section */
.welcome-section {
  background-image: url('images/optimized_turtle.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding-top: 7rem;
  padding-bottom: 5rem;
  min-height: 850px;
  z-index: 1;
}

.staggered-img {
  position: absolute;
  width: 60%;
}

.staggered-img.img-1 {
  top: 0;
  right: 0;
  transform: translate(-15%, 0);
  z-index: 2;
}

.staggered-img.img-2 {
  bottom: 0;
  left: 30%;
  transform: translate(-10%, 10%);
  z-index: 1;
}
.welcome-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); 
  z-index: 0; /* Make sure it stays behind text and images */
}

/* Desktop Specific */
.welcome-section .col-md-6:last-child {
  padding-bottom: 5rem; /* Adds bottom padding on desktop */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .welcome-section {
    padding-bottom: 8rem; /* Adds bigger bottom padding */
  }
  .welcome-section .col-md-6 {
    text-align: center;
  }
  .welcome-section .col-md-6:last-child {
    padding-bottom: 8rem; /* More padding after text */
  }
  .staggered-img {
    position: static;
    transform: none;
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Welcome Text */
.welcome-section h2 {
  font-size: 2.5rem;
}

.welcome-section p {
  font-size: 1.1rem;
}

/* Waves */
.custom-wave-top {
  position: absolute;
  top: -8px;       /* pull it up 1px to hide any background peek */
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.custom-wave-top svg {
  display: block;
  width: 100%;
  height: 100px;
  transform: scaleY(-1);
}

.custom-wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
  margin-bottom: -2px;
  overflow: hidden; 
}

.custom-wave-bottom svg {
  display: block;
  width: 100%;
  height: 100px;
}

.welcome-section .custom-wave-top {
  margin-top: -2px;
}

/* Carousel Section */
.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  background-color: #ffffff;
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scroll-left 30s linear infinite;
}

.carousel-img {
  height: 180px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  flex-shrink: 0;
  object-fit: cover;
  background-color: #ffffff;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-3780px); }
}

/* How You Can Help Section */
.help-section {
  background: url('images/cartoons/banner.webp') no-repeat center center / cover;
  padding: 80px 0;
  color: white;
  min-height: 600px;
  position: relative;
  z-index: 1;
  overflow: hidden; /* Ensures the overlay doesn't spill */
}
.help-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.3); /* Adjust darkness as needed */
  z-index: 0;
}

.help-section > .container {
  position: relative;
  z-index: 1;
}

.help-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
}

.help-section p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.6;
}

.help-section .btn {
  min-width: 180px;
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.help-section .btn:hover {
  background-color: #198754;
  color: white;
}


/* Help Section Animations */
@keyframes fadeInTop {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.fade-top.visible { animation: fadeInTop 1s ease forwards; }
.fade-up.visible { animation: fadeInUp 1s ease forwards; }
.pop-in.visible { animation: popIn 0.8s ease forwards; }

/* Fade-In Setup */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease-out;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bubbles (Turtle Section) */
.bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.bubble {
  position: absolute;
  bottom: -50px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  opacity: 0.6;
  animation: rise 6s infinite ease-in;
}

.bubble:nth-child(1) { width: 20px; height: 20px; left: 20%; animation-duration: 12s; }
.bubble:nth-child(2) { width: 15px; height: 15px; left: 40%; animation-duration: 15s; }
.bubble:nth-child(3) { width: 25px; height: 25px; left: 60%; animation-duration: 10s; }
.bubble:nth-child(4) { width: 10px; height: 10px; left: 80%; animation-duration: 18s; }
.bubble:nth-child(5) { width: 18px; height: 18px; left: 30%; animation-duration: 14s; }

@keyframes rise {
  0% { bottom: -50px; transform: translateX(0) scale(1); opacity: 0.7; }
  50% { opacity: 1; }
  100% { bottom: 100%; transform: translateX(20px) scale(1.3); opacity: 0; }
}

/* Meet the Team Section */
.team-section {
  width: 100%;
  background: url('images/icons/backgroundocean.png') center center/cover no-repeat;
  padding: 80px 0;
  color: white;
  position: relative;
}

.team-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.team-section .container {
  position: relative;
  z-index: 2;
}

.team-section h3,
.team-section h5,
.team-section p {
  color: #fff;
}
/* Make Meet the Team grid responsive */
.team-section .col-md-3 {
  margin-bottom: 2rem;
}

@media (max-width: 767px) {
  .team-section .row {
    flex-direction: column;
    align-items: center;
  }
  .team-section .col-md-3 {
    width: 80%;
    max-width: 300px;
  }
}
/* General Fade-In on Scroll */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Team Section "Pop" Effect */
.team-card {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease;
}

.team-card.visible {
  opacity: 1;
  transform: scale(1);
}

/* Turtle Bros Text Sliding */
.slide-in-left, .slide-in-right {
  opacity: 0;
  transition: all 1s ease;
}

.slide-in-left {
  transform: translateX(-50px);
}

.slide-in-right {
  transform: translateX(50px);
}

.slide-in-left.visible, .slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Meet the Team Scroll Animation */
.team-member {
  opacity: 0;
  transform: translateY(30px);
}

/* When visible */
.team-member.visible {
  animation: fadeInUp 2.5s ease forwards;
}

/* Keyframes */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Team Photo Hover */
.team-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-photo:hover {
  transform: scale(1.1);
}
/* ── Hide the top wave on mobile ── */
@media (max-width: 768px) {
  .custom-wave-top {
    display: none;
  }
}
@media (max-width: 768px) {
  .help-section {
    /* absolute path ensures it’s the same everywhere */
    background: url('/images/cartoons/banner.webp') no-repeat center center/cover !important;
  }
}
/* Internal links that look like regular text */
.internal-link {
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}
.internal-link:hover {
  text-decoration: underline !important;
}