/* Hero Section - Full Width */
.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content .container {
  width: 100%;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 22px;
  animation: slideInDown .8s ease;
}

.hero-subtitle::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulseDot 1.5s infinite;
}

.hero-content h1 {
  color: #fff;
  max-width: 700px;
  margin-bottom: 28px;
  animation: slideInUp .8s ease .2s both;
}

.hero-content p {
  font-size: 18px;
  color: #e9e9e9;
  max-width: 620px;
  margin-bottom: 35px;
  line-height: 1.9;
  animation: slideInUp .8s ease .4s both;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  animation: slideInUp .8s ease .6s both;
}

.hero-buttons .btn-outline {
  background: rgba(255, 255, 255, .08);
  border: 2px solid rgba(255, 255, 255, .45);
  color: #fff;
}

.hero-buttons .btn-outline:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .25;
  animation: float 8s infinite ease-in-out;
  z-index: 1;
}

.shape1 {
  width: 250px;
  height: 250px;
  background: #19B5C2;
  left: -100px;
  top: -60px;
}

.shape2 {
  width: 220px;
  height: 220px;
  background: #63C400;
  right: -90px;
  bottom: -90px;
}

@media (max-width: 768px) {
  .hero-content p {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .hero-subtitle {
    font-size: 12px;
    padding: 8px 16px;
  }
  .shape1 {
    width: 150px;
    height: 150px;
    left: -50px;
  }
  .shape2 {
    width: 140px;
    height: 140px;
    right: -50px;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-35px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroZoom {
  0% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1.18);
  }
}

@keyframes pulseDot {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: .5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* About Image Hover Effect */
.about-image {
  overflow: hidden;
  border-radius: 32px;
  position: relative;
}

.about-image img {
  transition: .6s;
  position: relative;
  z-index: 1;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(25, 181, 194, .2), rgba(99, 196, 0, .1));
  opacity: 0;
  transition: .6s;
  z-index: 0;
}

.about-image:hover::before {
  opacity: 1;
}

/* Core Feature Card Customizations */
.feature-causes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.causes-item {
  border-top: 5px solid var(--primary) !important;
  border-radius: var(--radius) !important;
  background-color: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}

/* Smooth hovering mechanics using your shadow definitions */
.causes-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow) !important;
  border-top-color: var(--secondary) !important;
  /* Elegant color shift on hover */
}

/* Category Tag Badge styling */
.tag-badge {
  background-color: var(--primary-light) !important;
  color: var(--primary-dark) !important;
  border-radius: 0 0 var(--radius-xs) var(--radius-xs) !important;
}

.tag-badge small {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

/* Card Heading Text using your deep theme color */
.card-title {
  color: var(--heading) !important;
  font-family: var(--font-heading);
}

/* Descriptive paragraph text */
.card-description-container {
  height: 170px;
  overflow-y: auto;
  scrollbar-width: none;
}
.card-description {
  color: var(--text) !important;
  font-family: var(--font-body);
}

/* Progress Box wrapper layout */
.causes-progress {
  background-color: var(--light) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
}

/* Progress Tracker Bar structural overrides */
.custom-progress-track {
  background-color: var(--light-gray) !important;
  border-radius: var(--radius-xl) !important;
}

.progress-bar {
  background: var(--gradient) !important;
  /* Beautiful fluid Teal-to-Green shift */
  border-radius: var(--radius-xl) !important;
}

.progress-label {
  color: var(--white);
  font-family: var(--font-body);
}

/* Image Container Styles */
.img-hover-container {
  max-height: 380px;
}

.card-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.causes-item:hover .card-img {
  transform: scale(1.08);
}

/* Modern Hover Overlay Blur effect matching your primary palette */
.causes-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--glass), 0.4); /* Uses Bootstrap's primary variable colors */
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.causes-item:hover .causes-overlay {
  opacity: 1;
}

/* Interactive Action Button details */
.action-btn {
  background-color: var(--white) !important;
  color: var(--accent) !important;
  border-radius: var(--radius-xl) !important;
  font-family: var(--font-heading);
}

.action-btn:hover {
  background-color: var(--secondary) !important;
  color: var(--white) !important;
}

.action-btn .btn-sm-square {
  background-color: var(--primary-light) !important;
  color: var(--primary-dark) !important;
}

.action-btn:hover .btn-sm-square {
  background-color: var(--white) !important;
  color: var(--secondary-dark) !important;
}

.reveal-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-card.active {
  opacity: 1;
  transform: translateY(0);
}

/* Feature Cards */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, .25),
      transparent);
  transition: 1s;
  z-index: 1;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card h4 {
  margin-bottom: 18px;
}

.feature-card p {
  margin-bottom: 0;
}

/* Stats Cards */
.stats-card {
  position: relative;
  overflow: hidden;
}

.stats-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  transition: .5s;
  right: -80px;
  bottom: -80px;
}

.stats-card:hover::after {
  opacity: .15;
}

.counter {
  font-size: 54px;
  font-weight: 800;
  font-family: var(--font-heading);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.counter::after {
  content: "+";
}

/* CTA Section */
.cta-section {
  padding-top: 40px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(25, 181, 194, .1) 0%, transparent 70%);
  border-radius: 50%;
  left: -200px;
  top: -100px;
  animation: float 10s infinite ease-in-out;
}

.cta-section::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(99, 196, 0, .1) 0%, transparent 70%);
  border-radius: 50%;
  right: -150px;
  bottom: -100px;
  animation: float 10s infinite ease-in-out 2s;
}

.cta-section .glass-card {
  padding: 70px;
  background: linear-gradient(135deg,
      rgba(25, 181, 194, .08),
      rgba(99, 196, 0, .10));
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  transition: .4s;
}

.cta-section .glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(25, 181, 194, .25);
}

.cta-section h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.cta-section p {
  max-width: 720px;
  margin: auto;
  margin-bottom: 35px;
  font-size: 18px;
}

/* Theme Card Enhancements */
.theme-card {
  position: relative;
  overflow: hidden;
}

.theme-card::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, .25),
      transparent);
  transition: 1s;
}

.theme-card:hover::before {
  left: 100%;
}

.theme-card h4 {
  margin-bottom: 18px;
}

.theme-card p {
  margin-bottom: 0;
}

.icon-box {
  transition: .35s;
}

.theme-card:hover .icon-box {
  transform: rotate(10deg) scale(1.1);
}

/* Animations */
@keyframes counterGlow {
  0% {
    transform: scale(.8);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.counter-active {
  animation: counterGlow 1.2s ease;
}

@keyframes ctaPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

.cta-pulse {
  animation: ctaPulse .8s ease;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: .8s ease;
}

.reveal.active {
  opacity: 1;
  transform: none;
}

.theme-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity .7s ease, transform .7s ease;
}

.theme-card.card-visible {
  opacity: 1;
  transform: none;
}

/* Responsive Design */
@media(max-width:1200px) {
  .cta-section .glass-card {
    padding: 50px;
  }

  .feature-causes {
    display: grid;
    grid-template-columns: auto;
    gap: 20px;
  }
}

@media(max-width:992px) {
  .hero-section {
    height: 80vh;
  }

  .cta-section .glass-card {
    padding: 45px;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .counter {
    font-size: 42px;
  }
}

@media(max-width:768px) {
  .hero-section {
    height: 70vh;
    padding-top: 100px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-subtitle {
    font-size: 12px;
    padding: 8px 18px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons a {
    width: 100%;
    justify-content: center;
  }

  .cta-section h2 {
    font-size: 32px;
  }

  .cta-section .glass-card {
    padding: 30px;
  }
}

@media(max-width:576px) {
  .hero-section {
    height: 60vh;
    padding-top: 80px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .counter {
    font-size: 36px;
  }

  .cta-section .glass-card {
    padding: 20px;
  }

  .shape1 {
    width: 150px;
    height: 150px;
  }

  .shape2 {
    width: 130px;
    height: 130px;
  }
}