/* About Section Styles */

/**
 * Custom styles for about section component
 * Uses brand color system and CSS variables from animations.css
 * Enhances Tailwind utility classes with specific animations and effects
 * Updated to work with Jarallax parallax system
 */

/* ========== Jarallax Related ========== */
.jarallax > .jarallax-img,
picture.jarallax-img img {
  position: absolute;
  object-fit: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

@media screen and (max-width: 768px) {
  .jarallax > .jarallax-img,
  picture.jarallax-img img {
    position: relative;
  }
}

.jara-mask-1 {
  width: 100%;
  padding-top: 100%;
  backdrop-filter: blur(20px);
  border-radius: 10px;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .jara-mask-1 {
    padding-top: inherit;
  }
}

.about-image-height {
  min-height: 400px;
  min-width: 100%;
}

@media screen and (max-width: 768px) {
  .about-image-height {
    min-height: 320px;
  }
}

/* Parallax Image Styling for Jarallax */
.about-section .about-image .jarallax {
  border-radius: 1rem;
  overflow: hidden;
}

.about-section .about-image .jarallax-img {
  object-position: center 40%;
  object-fit: cover;
}

/* ========== Experience Badge - Brand Colors ========== */
.experience-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 7rem;
  height: 6rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  background: linear-gradient(135deg, var(--color-primary-200), var(--color-primary-300));
  border: 2px solid var(--color-primary-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 30;
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.experience-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.6s ease;
  z-index: 1;
}

.experience-badge:hover::before {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

.experience-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(92, 225, 230, 0.3), 0 10px 10px -5px rgba(92, 225, 230, 0.04);
}

.group:hover .experience-badge {
  transform: scale(1.05);
}

.experience-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-800);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  line-height: 1;
  position: relative;
  z-index: 2;
}

.experience-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary-700);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 0.25rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
/* ========== Fallback Background - Brand Colors ========== */
.about-fallback-bg {
  background: linear-gradient(135deg, var(--color-secondary-500), var(--color-secondary-600), var(--color-secondary-700));
}

.about-pattern-overlay {
  opacity: 0.2;
}

.about-clinic-icon {
  opacity: 0.3;
}

/* ========== Decorative Blobs - Brand Colors ========== */
.about-blob-1 {
  position: absolute;
  top: -1.75rem;
  right: -1.75rem;
  width: 6rem;
  height: 6rem;
  background: var(--color-accent-200);
  opacity: 0.3;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  animation: float-subtle 8s ease-in-out infinite;
}

.about-blob-2 {
  position: absolute;
  bottom: -2.5rem;
  left: -2.5rem;
  width: 9rem;
  height: 9rem;
  background: var(--color-secondary-100);
  opacity: 0.3;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  animation: float-subtle 10s ease-in-out infinite reverse;
}

@keyframes float-subtle {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ========== Accessibility & Focus States ========== */
/* Component-specific focus styles can be added here if needed */

/* ========== About Section Layout Fixes ========== */
.about-content {
  /* Ensure proper alignment of content */
  display: flex;
  justify-content: center;
}

.about-content > div {
  /* Ensure button alignment follows text alignment */
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-content > div {
    /* On large screens, align everything to the left */
    align-items: flex-start;
  }
}

/* Button container alignment */
.about-content .mt-6 {
  /* Ensure button follows the same alignment pattern */
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .about-content .mt-6 {
    /* On large screens, align button to the left */
    justify-content: flex-start;
  }
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
  .about-section h2 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .about-section .about-text {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Fix mobile image container width */
  .about-section .about-image {
    max-width: 100%;
    overflow: hidden;
  }
  
  .about-section .about-image > div {
    max-width: 100%;
    margin: 0 auto;
  }
  
  /* Adjust experience badge for mobile */
  .experience-badge {
    width: 6rem;
    height: 5rem;
    padding: 0.5rem;
  }
  
  .experience-number {
    font-size: 1.25rem;
  }
  
  .experience-text {
    font-size: 0.625rem;
  }
}

/* ========== High Contrast & Reduced Motion Support ========== */
@media (prefers-contrast: high) {
  .about-section {
    border: 2px solid;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .about-section *,
  .experience-badge,
  .about-blob-1,
  .about-blob-2 {
    animation: none !important;
    transition: none !important;
  }
  
  .about-section .parallax-subtle {
    transform: none !important;
  }
  
  .about-section .hover-lift:hover,
  .experience-badge:hover {
    transform: none !important;
  }
}
