/* ============================================
   TALEY DESIGN SYSTEM - ABOUT PAGE STYLES
   Modern glassmorphism and animation effects
============================================ */

/* ============================================
   HERO SECTION - GRADIENT MESH BACKGROUND
============================================ */
.about-hero {
  position: relative;
  padding: 140px 20px 80px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 180, 135, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 170, 50, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 150, 120, 0.05) 0%, transparent 70%), var(--gray-50);
  overflow: hidden;
}

.features.bg-gray {
  background: var(--gray-50);
}

/* Floating decorative elements */
.about-hero::before {
  content: '✨';
  position: absolute;
  top: 20%;
  left: 10%;
  font-size: 24px;
  opacity: 0.4;
  animation: float 6s ease-in-out infinite;
}

.about-hero::after {
  content: '📚';
  position: absolute;
  top: 30%;
  right: 15%;
  font-size: 28px;
  opacity: 0.3;
  animation: float 8s ease-in-out infinite 2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

/* ============================================
   GLASSMORPHISM CAROUSEL
============================================ */
.carousel-glass {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 28px;
  overflow: hidden;

  /* Glassmorphism effect */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);

  /* Use aspect ratio for consistent sizing that shows full images */
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-glass::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 180, 135, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

/* ============================================
   VALUE CARDS - GLASSMORPHISM
============================================ */
.value-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Glow effect on hover */
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 180, 135, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px rgba(0, 180, 135, 0.15),
    0 0 0 1px rgba(0, 180, 135, 0.1);
}

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

/* Icon animation on hover */
.value-card .feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
============================================ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered reveal for grid items */
.reveal-stagger>*:nth-child(1) {
  transition-delay: 0s;
}

.reveal-stagger>*:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-stagger>*:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal-stagger>*:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal-stagger>*:nth-child(5) {
  transition-delay: 0.4s;
}

/* ============================================
   TEAM SIGNATURE - ENHANCED
============================================ */
.team-signature {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-700);
  text-align: center;
  margin-top: 24px;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(0, 180, 135, 0.08) 0%, rgba(255, 170, 50, 0.05) 100%);
  border-radius: 12px;
  display: inline-block;
}

/* ============================================
   STORY SECTION - SPLIT LAYOUT
============================================ */
.story-section {
  background: var(--gray-50);
  padding: 80px 20px;
}

.story-content {
  max-width: 900px;
  margin: 0 auto;
}

.story-block {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
}

.story-block:nth-child(even) {
  flex-direction: row-reverse;
}

.story-text {
  flex: 1;
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-700);
}

.story-visual {
  flex: 0 0 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

/* Timeline connector */
.story-timeline {
  position: relative;
  padding-left: 40px;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--green-primary) 0%, var(--orange-primary) 100%);
}

.story-timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.story-timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--green-primary);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green-primary);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ */
@media (max-width: 768px) {
  .about-hero {
    padding: 100px 16px 60px;
  }

  .about-hero::before,
  .about-hero::after {
    display: none;
  }

  .carousel-glass {
    margin: 24px auto;
    /* Maintain aspect ratio on mobile but slightly taller for portrait images */
    aspect-ratio: 3 / 4;
    border-radius: 20px;
  }

  .value-card {
    padding: 24px 20px;
  }

  .value-card .feature-icon {
    font-size: 40px;
  }

  .story-block {
    flex-direction: column !important;
    gap: 24px;
  }

  .story-visual {
    flex: 0 0 120px;
    height: 120px;
    font-size: 48px;
  }

  .story-timeline {
    padding-left: 32px;
  }
}