/* About Section Styles - ENHANCED */
.about {
  padding: 5rem 0;
  background: linear-gradient(135deg, #003366 0%, #007bbf 50%, #4a90e2 100%);
  position: relative;
  overflow: hidden;
}

/* Enhanced Wave Pattern Background */
.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="40%"><stop offset="0%" stop-color="%23FFF" stop-opacity="0.1"/><stop offset="100%" stop-color="%23FFF" stop-opacity="0"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23a)"/></svg>');
  animation: float 20s ease-in-out infinite;
  z-index: 0;
}

/* NEW: Animated Water Wave Effect at Top */
.about::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background-size: cover;
  animation: wave 15s linear infinite;
  z-index: 0;
}

/* NEW: Animated Water Wave Effect at Bottom */
.about .wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="rgba(255,255,255,0.08)" d="M0,32L48,37.3C96,43,192,53,288,58.7C384,64,480,64,576,58.7C672,53,768,43,864,48C960,53,1056,75,1152,80C1248,85,1344,75,1392,69.3L1440,64L1440,100L1392,100C1344,100,1248,100,1152,100C1056,100,960,100,864,100C768,100,672,100,576,100C480,100,384,100,288,100C192,100,96,100,48,100L0,100Z"></path></svg>'); */
  background-size: cover;
  animation: wave 12s linear infinite reverse;
  z-index: 0;
}

@keyframes wave {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 1440px 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(1deg);
  }
  66% {
    transform: translateY(-5px) rotate(-1deg);
  }
}

/* ===== NEW: FLOATING BUBBLES ===== */
.bubble-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.bubble {
  position: absolute;
  bottom: -100px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.1)
  );
  border-radius: 50%;
  opacity: 0.6;
  animation: rise 10s infinite ease-in;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(255, 255, 255, 0.2);
}

/* Different sizes and positions for each bubble */
.bubble:nth-child(1) {
  width: 40px;
  height: 40px;
  left: 10%;
  animation-duration: 8s;
  animation-delay: 0s;
}

.bubble:nth-child(2) {
  width: 60px;
  height: 60px;
  left: 20%;
  animation-duration: 10s;
  animation-delay: 2s;
}

.bubble:nth-child(3) {
  width: 30px;
  height: 30px;
  left: 35%;
  animation-duration: 7s;
  animation-delay: 1s;
}

.bubble:nth-child(4) {
  width: 50px;
  height: 50px;
  left: 50%;
  animation-duration: 11s;
  animation-delay: 3s;
}

.bubble:nth-child(5) {
  width: 45px;
  height: 45px;
  left: 65%;
  animation-duration: 9s;
  animation-delay: 1.5s;
}

.bubble:nth-child(6) {
  width: 35px;
  height: 35px;
  left: 75%;
  animation-duration: 8.5s;
  animation-delay: 2.5s;
}

.bubble:nth-child(7) {
  width: 55px;
  height: 55px;
  left: 85%;
  animation-duration: 10.5s;
  animation-delay: 0.5s;
}

.bubble:nth-child(8) {
  width: 40px;
  height: 40px;
  left: 90%;
  animation-duration: 9.5s;
  animation-delay: 3.5s;
}

@keyframes rise {
  0% {
    bottom: -100px;
    transform: translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    transform: translateX(50px) scale(1.1);
  }
  100% {
    bottom: 110%;
    transform: translateX(-30px) scale(0.8);
    opacity: 0;
  }
}

/* NEW: Swimming Pool Ripple Effect */
.about .ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
  animation: rippleEffect 4s ease-out infinite;
  z-index: 1;
}

.about .ripple:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.about .ripple:nth-child(2) {
  width: 400px;
  height: 400px;
  top: 50%;
  right: 10%;
  animation-delay: 1.5s;
}

.about .ripple:nth-child(3) {
  width: 250px;
  height: 250px;
  bottom: 15%;
  left: 40%;
  animation-delay: 3s;
}

@keyframes rippleEffect {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  color: white;
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 1s ease-out 0.2s forwards;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #ff6b6b, #4ecdc4);
  animation: expandLine 1.5s ease-out 1s forwards;
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Enhanced About Text Box */
.about-text {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 60px rgba(255, 215, 0, 0.1) inset;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateX(-100px);
  animation: slideInLeft 1s ease-out 0.5s forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* NEW: Shimmer Effect on Hover */
.about-text::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 215, 0, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.about-text:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 80px rgba(255, 215, 0, 0.2) inset;
}

.about-text h3 {
  font-size: 1.5rem;
  color: #003366;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.about-text h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #007bbf, #ffd700);
  animation: pulse 2s ease-in-out infinite;
}

/* Bullet Points List Styling */
.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.about-list li {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.about-list li:nth-child(1) {
  animation-delay: 0.8s;
}

.about-list li:nth-child(2) {
  animation-delay: 1s;
}

.about-list li:nth-child(3) {
  animation-delay: 1.2s;
}

/* Custom Bullet Point - Enhanced SVG Checkmark */
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 18px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23007bbf" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 8px;
  animation: bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 123, 191, 0.3));
}

.about-list li:nth-child(2)::before {
  animation-delay: 0.3s;
}

.about-list li:nth-child(3)::before {
  animation-delay: 0.6s;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Enhanced Promise Box with Glow Effect */
.promise-box {
  background: linear-gradient(135deg, #007bbf 0%, #4a90e2 100%);
  padding: 1.5rem;
  border-radius: 15px;
  color: white;
  margin-top: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 123, 191, 0.3),
    0 0 40px rgba(0, 123, 191, 0.2);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 1.6s forwards,
    glowPulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

/* NEW: Glow Pulse Animation */
@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 10px 25px rgba(0, 123, 191, 0.3),
      0 0 40px rgba(0, 123, 191, 0.2);
  }
  50% {
    box-shadow: 0 10px 30px rgba(0, 123, 191, 0.4),
      0 0 60px rgba(0, 123, 191, 0.4);
  }
}

/* NEW: Animated Border Effect */
.promise-box::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #0015ff77, #007cbf84, #4a90e2, #3700ff39);
  border-radius: 16px;
  z-index: -1;
  animation: rotateBorder 10s linear infinite;
  opacity: 0.5;
}

@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.promise-box strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #ffd700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.promise-box span {
  font-size: 1rem;
  line-height: 1.6;
}

/* Enhanced Image Container */
.about-image {
  text-align: center;
  opacity: 0;
  transform: translateX(100px);
  animation: slideInRight 1s ease-out 0.7s forwards;
}

.image-container {
  position: relative;
  display: inline-block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 60px rgba(255, 215, 0, 0.15);
  transition: all 0.4s ease;
}

/* NEW: Rotating Border Around Image */
.image-container::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(45deg, #ffd700, #007bbf, #4a90e2, #ffd700);
  border-radius: 24px;
  z-index: -1;
  animation: rotateBorder 6s linear infinite;
  opacity: 0.6;
}

.image-container:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 80px rgba(255, 215, 0, 0.3);
}

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

.image-container:hover::before {
  left: 100%;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

/* Enhanced Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  animation: floatUpDown 6s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.floating-circle:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-circle:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: -2s;
}

.floating-circle:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 20%;
  animation-delay: -4s;
}

@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-30px) rotate(180deg) scale(1.1);
    opacity: 1;
  }
}

/* Animations */
@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes expandLine {
  to {
    width: 120px;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
  50% {
    transform: scaleX(1.2);
    opacity: 0.8;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .about {
    padding: 3rem 0;
  }

  .about::after,
  .about .wave-bottom {
    height: 60px;
  }

  .about .ripple {
    display: none;
  }

  /* Hide some bubbles on mobile for performance */
  .bubble:nth-child(n + 5) {
    display: none;
  }

  .container {
    padding: 0 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text {
    padding: 2rem 1.5rem;
    order: 2;
    transform: none;
    animation: fadeInUp 1s ease-out 0.3s forwards;
  }

  .about-image {
    order: 1;
    transform: none;
    animation: fadeInUp 1s ease-out 0.1s forwards;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .about-text h3 {
    font-size: 1.3rem;
  }

  .about-list li {
    font-size: 0.95rem;
    padding-left: 1.8rem;
  }

  .about-list li::before {
    width: 16px;
    height: 16px;
  }

  .promise-box {
    padding: 1.2rem;
  }

  .promise-box strong {
    font-size: 1.1rem;
  }

  .promise-box span {
    font-size: 0.9rem;
  }

  .floating-circle {
    display: none;
  }
}

@media (max-width: 480px) {
  .about {
    padding: 2.5rem 0;
  }

  .about-text {
    padding: 1.5rem 1rem;
  }

  .about-text h3 {
    font-size: 1.2rem;
  }

  .about-list li {
    font-size: 0.9rem;
    line-height: 1.6;
    padding-left: 1.5rem;
  }

  .about-list li::before {
    width: 14px;
    height: 14px;
  }

  .promise-box {
    padding: 1rem;
  }

  .promise-box strong {
    font-size: 1rem;
  }

  .promise-box span {
    font-size: 0.85rem;
  }
}

/* Scroll triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

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