/* New About Section Design - Modern Elegance */

.about-section-modern {
  padding: 120px 0;
  position: relative;
  background-color: transparent; /* Changed to transparent to show fixed background */
  color: #fff;
  overflow: hidden;
  z-index: 1;
}

/* Background implementation moved to fixed-global-background.css */

/* Mobile support for static backgrounds - now in fixed-global-background.css */
@media (max-width: 767px) {
  .about-section-modern {
    background-color: rgba(
      3,
      3,
      20,
      0.6
    ); /* Semi-transparent background for mobile */
  }
}

/* Modified for background in fixed-global-background.css */

/* Creative Background - Overlay */
.about-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.9; /* Increased opacity for better overlay effect */
}

.about-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(20, 10, 40, 0.05) 0%,
    /* Further reduced opacity */ rgba(5, 2, 20, 0.07) 100%
      /* Further reduced opacity */
  );
  /* Removed inner shadow for more visibility */
}

.about-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4; /* Further reduced pattern opacity for more background visibility */
}

/* Floating Elements */
.floating-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(20px);
}

.floating-1 {
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(250, 208, 44, 0.4) 0%,
    rgba(250, 208, 44, 0) 70%
  );
  animation: float 20s infinite ease-in-out;
}

.floating-2 {
  bottom: 15%;
  right: 5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  animation: float 15s infinite ease-in-out reverse;
}

.floating-3 {
  bottom: 30%;
  left: 15%;
  width: 180px;
  height: 180px;
  background: radial-gradient(
    circle,
    rgba(92, 219, 211, 0.3) 0%,
    rgba(92, 219, 211, 0) 70%
  );
  animation: float 25s infinite ease-in-out 5s;
}

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

/* Section Layout */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.about-header-modern {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(to right, #fad02c, #e0a526);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.about-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
}

.title-decoration {
  position: relative;
  width: 100px;
  height: 4px;
  margin: 20px auto 30px;
  overflow: hidden;
  background: rgba(250, 208, 44, 0.3);
  border-radius: 2px;
}

.title-decoration:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 50px;
  background-color: #fad02c;
  animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

/* Content Layout */
.about-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.about-image-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: perspective(1000px) rotateY(2deg);
  transition: transform 0.5s ease;
}

.about-image-container:hover {
  transform: perspective(1000px) rotateY(-1deg);
}

.about-image-frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid rgba(250, 208, 44, 0.3);
  box-shadow: inset 0 0 30px rgba(250, 208, 44, 0.1);
  pointer-events: none;
  border-radius: 10px;
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

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

/* Text Content */
.about-text-container {
  padding-left: 20px;
}

.about-text-header {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #fff;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
}

/* Feature Pillars */
.about-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-top: 40px;
}

.pillar-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 20px;
  border-left: 3px solid #fad02c;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.pillar-icon {
  width: 50px;
  height: 50px;
  background: rgba(250, 208, 44, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 20px;
  color: #fad02c;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pillar-img-decor {
  width: 70px;
  height: 70px;
  margin-right: 18px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18), 0 1.5px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
}

.pillar-img-zoom {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.3s;
  border-radius: 12px;
  display: block;
}

.pillar-item:hover .pillar-img-zoom {
  transform: scale(1.15) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(250, 208, 44, 0.18),
    0 2px 12px rgba(0, 0, 0, 0.13);
  z-index: 2;
}

.pillar-content h3 {
  color: #fad02c;
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.pillar-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.5;
}

/* Journey Timeline */
.journey-timeline {
  margin-top: 80px;
  position: relative;
  padding: 40px 0;
  backdrop-filter: blur(
    2px
  ); /* Subtle blur effect to separate from main background */
  -webkit-backdrop-filter: blur(2px);
}

/* Timeline background treatment - removed separate image to work better with main background */
.journey-timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 2, 20, 0.4); /* Semi-transparent background */
  z-index: -1;
  pointer-events: none; /* Ensures the background doesn't interfere with interactions */
  border-radius: 8px;
}

.journey-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.journey-header h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  position: relative;
  display: inline-block;
}

.journey-header h2:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fad02c;
  box-shadow: 0 0 10px rgba(250, 208, 44, 0.5);
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 2; /* Ensure content is above the fixed background */
}

.timeline-center-line {
  position: absolute;
  width: 4px;
  background: linear-gradient(
    to bottom,
    rgba(250, 208, 44, 0.1),
    rgba(250, 208, 44, 0.3),
    rgba(250, 208, 44, 0.1)
  );
  top: 20px;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-event {
  display: flex;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-event.left {
  flex-direction: row;
  padding-right: calc(50% + 30px);
}

.timeline-event.right {
  flex-direction: row-reverse;
  padding-left: calc(50% + 30px);
}

.timeline-event.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: rgba(255, 255, 255, 0.95);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.15);
}

.timeline-content:before {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background: #fad02c;
  border-radius: 50%;
  top: 30px;
}

.timeline-event.left .timeline-content:before {
  right: -37px;
}

.timeline-event.right .timeline-content:before {
  left: -37px;
}

.timeline-content:after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: rgba(250, 208, 44, 0.5);
  top: 37px;
}

.timeline-event.left .timeline-content:after {
  right: -20px;
}

.timeline-event.right .timeline-content:after {
  left: -20px;
}

.timeline-year {
  font-size: 1.5rem;
  color: #fad02c;
  margin-bottom: 10px;
  font-weight: 700;
  display: inline-block;
  padding: 0 15px;
  border-radius: 20px;
  background: rgba(250, 208, 44, 0.1);
}

.timeline-title {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 600;
}

.timeline-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Stats Section */
.about-stats-modern {
  margin-top: 60px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat-card {
  text-align: center;
  padding: 25px 20px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

.stat-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(250, 208, 44, 0.1),
    transparent 70%
  );
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover:before {
  opacity: 1;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #fad02c;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.stat-number:after {
  content: attr(data-symbol);
  font-size: 1.5rem;
  position: absolute;
  top: 0;
  right: -15px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- About Hero Cards --- */
.about-hero-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 48px;
  margin: 64px 0 48px 0;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}
.about-hero-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2.5rem;
  box-shadow: 0 12px 48px 0 rgba(40, 40, 80, 0.18),
    0 2px 12px rgba(250, 208, 44, 0.1);
  overflow: visible;
  width: 370px;
  min-width: 260px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 0 38px 0;
  border: none;
  transition: box-shadow 0.35s, transform 0.35s;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  animation: floatCard 4.5s ease-in-out infinite alternate;
}
.about-hero-card:hover {
  box-shadow: 0 24px 64px 0 rgba(250, 208, 44, 0.22),
    0 4px 24px rgba(40, 40, 80, 0.13);
  transform: scale(1.035) translateY(-8px);
}
.about-hero-img-wrap {
  width: 100%;
  height: 320px;
  position: relative;
  border-radius: 2.5rem 2.5rem 1.2rem 1.2rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(135deg, #fad02c22 0%, #fffbe6 100%);
  box-shadow: 0 8px 32px rgba(250, 208, 44, 0.1), 0 1.5px 8px rgba(0, 0, 0, 0.1);
}
.about-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.3s;
}
.about-hero-card:hover .about-hero-img {
  transform: scale(1.08) rotate(-1deg);
  box-shadow: 0 8px 32px rgba(250, 208, 44, 0.22),
    0 2px 12px rgba(0, 0, 0, 0.13);
}
.about-hero-title-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 0 12px 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.82) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  color: #fad02c;
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  border-bottom-left-radius: 1.2rem;
  border-bottom-right-radius: 1.2rem;
  z-index: 2;
  pointer-events: none;
}
.about-hero-desc {
  padding: 38px 32px 0 32px;
  text-align: center;
  font-size: 1.13rem;
  color: rgba(255, 255, 255, 0.97);
  font-weight: 400;
  line-height: 1.7;
  z-index: 2;
  position: relative;
}
@media (max-width: 1100px) {
  .about-hero-cards {
    gap: 24px;
  }
  .about-hero-card {
    width: 300px;
  }
  .about-hero-img-wrap {
    height: 200px;
  }
}
@media (max-width: 900px) {
  .about-hero-cards {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .about-hero-card {
    width: 95vw;
    min-width: 0;
    max-width: 99vw;
  }
}
@media (max-width: 600px) {
  .about-hero-img-wrap {
    height: 120px;
  }
  .about-hero-desc {
    padding: 18px 8px 0 8px;
    font-size: 1rem;
  }
  .about-hero-title-overlay {
    font-size: 1.1rem;
    padding: 10px 0 6px 0;
  }
  .about-hero-card {
    padding-bottom: 18px;
  }
}

/* Responsive Styles */
@media (max-width: 991px) {
  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 30px;
  }

  .about-text-container {
    padding-left: 0;
  }

  .timeline-center-line {
    left: 30px;
  }

  .about-section-modern::before {
    animation: none; /* Disable animation on smaller screens for better performance */
    transform: scale(1.05);
  }

  .timeline-event.left,
  .timeline-event.right {
    padding-right: 0;
    padding-left: 60px;
    flex-direction: row;
  }

  .timeline-event.left .timeline-content:before,
  .timeline-event.right .timeline-content:before {
    left: -37px;
    right: auto;
  }

  .timeline-event.left .timeline-content:after,
  .timeline-event.right .timeline-content:after {
    left: -20px;
    right: auto;
  }

  .about-stats-modern {
    grid-template-columns: 1fr;
  }

  .journey-timeline:before {
    background-attachment: scroll; /* For better mobile compatibility */
  }

  .timeline-event.left .timeline-content,
  .timeline-event.right .timeline-content {
    background: rgba(
      255,
      255,
      255,
      0.15
    ); /* Slightly more opaque on smaller screens */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }
}

@media (max-width: 767px) {
  .about-section-modern {
    padding: 80px 0;
  }

  .about-title {
    font-size: 2.5rem;
  }

  .about-text-header {
    font-size: 1.8rem;
  }

  .journey-header h2 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .journey-timeline {
    padding: 30px 0;
  }

  .journey-timeline:before {
    opacity: 0.1; /* Lower opacity for mobile to ensure better readability */
  }
}
