/* Despre Noi Section - Medical Style */

.despre-section {
  width: 100%;
  padding: 6rem 1rem;
  background: linear-gradient(to bottom, #F2F2EB 0%, #F8F8F2 100%);
  color: #202e44;
  overflow: hidden;
  position: relative;
}

/* Decorative background elements */
.despre-section::before {
  content: '';
  position: absolute;
  top: 5rem;
  left: 2.5rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(255, 107, 61, 0.05);
  filter: blur(60px);
  animation: float-slow 8s ease-in-out infinite;
}

.despre-section::after {
  content: '';
  position: absolute;
  bottom: 5rem;
  right: 2.5rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: rgba(255, 140, 66, 0.05);
  filter: blur(60px);
  animation: float-slow 10s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.despre-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Header */
.despre-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.despre-badge {
  color: #FF6B3D;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.despre-title {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 300;
  margin-bottom: 1rem;
  text-align: center;
}

.despre-underline {
  width: 6rem;
  height: 0.25rem;
  background: #FF6B3D;
  animation: expandWidth 1s ease-out 0.5s both;
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 6rem; }
}

.despre-intro {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto 4rem;
  color: rgba(32, 46, 68, 0.8);
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  position: relative;
  margin-bottom: 6rem;
}

.services-column {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Service Item */
.service-item {
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  transition: transform 0.2s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item:nth-child(1) { animation-delay: 0.2s; }
.service-item:nth-child(2) { animation-delay: 0.4s; }
.service-item:nth-child(3) { animation-delay: 0.6s; }

.service-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-icon-wrap {
  position: relative;
  color: #FF6B3D;
  background: rgba(255, 107, 61, 0.1);
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.service-item:hover .service-icon-wrap {
  background: rgba(255, 107, 61, 0.2);
  transform: rotate(-10deg);
}

.service-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.service-accent-icon {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 1rem;
  height: 1rem;
  color: #FF8C42;
}

.service-name {
  font-size: 1.25rem;
  font-weight: 500;
  color: #202e44;
  transition: color 0.3s ease;
}

.service-item:hover .service-name {
  color: #FF6B3D;
}

.service-description {
  font-size: 0.875rem;
  color: rgba(32, 46, 68, 0.8);
  line-height: 1.6;
  padding-left: 3rem;
}

.service-learn-more {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  padding-left: 3rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #FF6B3D;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-item:hover .service-learn-more {
  opacity: 1;
}

/* Center Image */
.center-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeIn 0.8s ease-out 0.3s both;
}

.center-image-container {
  position: relative;
  width: 100%;
  max-width: 24rem;
}

.center-image {
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.center-image:hover {
  transform: scale(1.03);
}

.center-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(32, 46, 68, 0.5) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  border-radius: 0.5rem;
}

.image-cta-btn {
  background: white;
  color: #202e44;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.image-cta-btn:hover {
  transform: scale(1.05);
}

.image-border {
  position: absolute;
  inset: -0.75rem;
  border: 4px solid #FF8C42;
  border-radius: 0.5rem;
  z-index: -1;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.image-float-accent {
  position: absolute;
  border-radius: 50%;
  animation: float 2s ease-in-out infinite;
}

.float-accent-1 {
  top: -1rem;
  right: -2rem;
  width: 4rem;
  height: 4rem;
  background: rgba(255, 107, 61, 0.1);
  animation-delay: 0.9s;
}

.float-accent-2 {
  bottom: -1.5rem;
  left: -2.5rem;
  width: 5rem;
  height: 5rem;
  background: rgba(255, 140, 66, 0.15);
  animation-delay: 1.1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0; }
  50% { transform: translateY(-10px); opacity: 1; }
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
  background: white;
  transform: translateY(-5px);
}

.stat-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(32, 46, 68, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #FF6B3D;
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon-wrap {
  background: rgba(255, 107, 61, 0.1);
  transform: rotate(360deg);
}

.stat-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: #202e44;
  display: flex;
  align-items: center;
}

.stat-label {
  color: rgba(32, 46, 68, 0.7);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.stat-underline {
  width: 2.5rem;
  height: 0.125rem;
  background: #FF6B3D;
  margin-top: 0.75rem;
  transition: width 0.3s ease;
}

.stat-card:hover .stat-underline {
  width: 4rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #FF6B3D 0%, #FF8C42 100%);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.5s both;
  box-shadow: 0 4px 20px rgba(255, 107, 61, 0.2);
}

.cta-content {
  flex: 1;
}

.cta-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
}

.cta-btn {
  background: white;
  color: #FF6B3D;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cta-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .center-image-wrap {
    order: -1;
    margin-bottom: 2rem;
  }

  .services-column {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .despre-section {
    padding: 4rem 1rem;
  }

  .stats-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .cta-section {
    flex-direction: column;
    padding: 1.5rem;
    text-align: center;
  }

  .service-description,
  .service-learn-more {
    padding-left: 0;
    margin-left: 0;
  }
}
