/* Enhanced animations for hero section */
.hero-content {
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add scroll-triggered animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Add hero section overlay with gradient */
.hero:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 95, 122, 0.7), rgba(21, 152, 149, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Add animated underline for section headers */
.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2:before {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 2px;
}

.section-header.animated h2:before {
  width: 100px;
}

/* Add 3D card effect */
.feature-card, .diff-item, .investment-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.feature-card:hover, .diff-item:hover, .investment-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
}

/* Add shine effect on cards */
.feature-card:after, .diff-item:after, .investment-card:after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: all 0.75s ease;
}

.feature-card:hover:after, .diff-item:hover:after, .investment-card:hover:after {
  left: 150%;
}

/* Add animated number counters */
.counter-wrapper {
  text-align: center;
  margin: 40px 0;
}

.counter {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.static {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.counter-suffix {
  font-size: 2rem;
  color: var(--accent-color);
  position: absolute;
  right: -20px;
  top: 5px;
}

.counter-title {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-top: 5px;
}

/* Add animated progress bars */
.progress-bar-wrapper {
  margin: 30px 0;
}

.progress-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.progress-title span {
  font-weight: 600;
}

.progress-container {
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Add floating shapes for visual interest */
.shape {
  position: absolute;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.shape-1 {
  top: 20%;
  left: 5%;
  width: 80px;
  height: 80px;
  background-color: var(--accent-color);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  top: 40%;
  right: 10%;
  width: 120px;
  height: 120px;
  background-color: var(--primary-color);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
  bottom: 15%;
  left: 15%;
  width: 100px;
  height: 100px;
  background-color: var(--secondary-color);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, 15px) rotate(5deg);
  }
  50% {
    transform: translate(5px, -10px) rotate(10deg);
  }
  75% {
    transform: translate(-10px, 5px) rotate(5deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* Add text highlight effect */
.highlight-text {
  position: relative;
  display: inline-block;
}

.highlight-text:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: rgba(87, 197, 182, 0.3);
  z-index: -1;
  transform: skewX(-15deg);
}

/* Add animated icons */
.feature-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(26, 95, 122, 0.1), rgba(21, 152, 149, 0.1));
  border-radius: 50%;
  margin-bottom: 25px;
  transition: all 0.4s ease;
}

.feature-icon i {
  font-size: 2.5rem;
  color: var(--accent-color);
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  transform: rotateY(180deg);
}

.feature-card:hover .feature-icon i {
  color: white;
  transform: rotateY(180deg);
}

/* Add image overlay effect */
.image-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.image-overlay img {
  width: 100%;
  height: auto;
  transition: all 0.5s ease;
}

.overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 95, 122, 0.9), rgba(21, 152, 149, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.5s ease;
  padding: 20px;
  text-align: center;
}

.overlay-content h3 {
  color: white;
  margin-bottom: 10px;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.overlay-content p {
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(20px);
  transition: all 0.5s ease 0.1s;
}

.image-overlay:hover img {
  transform: scale(1.1);
}

.image-overlay:hover .overlay-content {
  opacity: 1;
}

.image-overlay:hover .overlay-content h3,
.image-overlay:hover .overlay-content p {
  transform: translateY(0);
}

/* Add animated button with ripple effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.btn-ripple:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

/* Add animated gradient border */
.gradient-border {
  position: relative;
  border-radius: 10px;
  padding: 30px;
  background-color: white;
}

.gradient-border:before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
  background-size: 400% 400%;
  z-index: -1;
  border-radius: 12px;
  animation: gradientBorder 3s ease alternate infinite;
}

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

/* Add text reveal animation */
.text-reveal {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Add staggered animation for lists */
.staggered-list li {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.5s ease;
}

.staggered-list.active li:nth-child(1) {
  transition-delay: 0.1s;
}

.staggered-list.active li:nth-child(2) {
  transition-delay: 0.2s;
}

.staggered-list.active li:nth-child(3) {
  transition-delay: 0.3s;
}

.staggered-list.active li:nth-child(4) {
  transition-delay: 0.4s;
}

.staggered-list.active li:nth-child(5) {
  transition-delay: 0.5s;
}

.staggered-list.active li {
  opacity: 1;
  transform: translateX(0);
}

/* Add enhanced section dividers */
.section-divider {
  height: 100px;
  position: relative;
  overflow: hidden;
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  fill: var(--light-color);
}

/* Add enhanced scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary-color), var(--accent-color));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}
