/* Main stylesheet */

/* Features Section */
.features-section {
  padding: 80px 0;
  background: var(--surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature-item {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  background: var(--background);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  svg {
    width: 50px;
    height: 50px;
  }
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.feature-item p {
  color: var(--text-secondary);
}

/* Services Section */
.services-section {
  padding: 100px 0;
}

.services-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.services-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--shadow);
}

.services-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.2;
}

.services-text p {
  font-size: 1.125rem;
  margin-bottom: 30px;
}

.services-text ul {
  list-style: none;
  padding: 0;
  li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
    font-size: 1.125rem;
  }
  li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
  }
  .procedure-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow);
  }
}

/* Testimonials Section */
.testimonials-section {
  padding: 100px 0;
  background: var(--surface);
}

.testimonial-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-carousel {
  overflow: hidden;
  border-radius: 20px;
  padding: 0 20px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 30px;
}

.testimonial-slide {
  flex: 0 0 calc(33.333% - 20px); /* Desktop: 3 items */
  padding: 0;
}

.testimonial-item {
  background: var(--background);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 25px var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-5px);
}

.text-testimonial {
  align-items: flex-start;
}

.video-testimonial {
  align-items: center;
  text-align: center;
}

.testimonial-avatar {
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stars {
  color: #fbbf24;
  font-size: 1.2rem;
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  flex: 1;
}

.testimonial-content cite {
  font-weight: 600;
  color: var(--text-primary);
  font-style: normal;
  font-size: 1rem;
  margin-top: auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-hover)
  );
  padding: 3px;
}

.video-wrapper.reel-format {
  aspect-ratio: 9 / 16; /* Vertical aspect ratio for reels */
  max-width: 100%;
  height: 420px;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 17px;
  overflow: hidden;
  background: #000;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 17px;
}

/* Custom video controls overlay */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px 15px 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.video-wrapper:hover .video-controls,
.video-wrapper.playing .video-controls {
  transform: translateY(0);
}

.video-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin-bottom: 10px;
  cursor: pointer;
  overflow: hidden;
}

.video-progress {
  height: 100%;
  background: var(--primary-color);
  width: 0%;
  transition: width 0.1s ease;
  border-radius: 2px;
}

.video-control-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.video-time {
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 60px;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 1;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.video-wrapper:hover .video-overlay {
  opacity: 0.6;
}

.video-wrapper.playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}

/* Enhanced play button with pulse animation */
.play-button {
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
}

.play-button::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.play-button:hover {
  transform: scale(1.1);
  background: var(--primary-hover);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.play-button i {
  margin-left: 3px; /* Adjust play icon position */
}

.video-description {
  font-size: 0.9rem !important;
  color: var(--text-secondary) !important;
  margin-top: 10px !important;
  text-align: center;
}

/* Volume and fullscreen controls */
.volume-control,
.fullscreen-control {
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.volume-control:hover,
.fullscreen-control:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Carousel Navigation */
.carousel-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.carousel-btn {
  background: var(--background);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  box-shadow: 0 4px 15px var(--shadow);
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.prev-btn {
  margin-left: -25px;
}

.next-btn {
  margin-right: -25px;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Responsive breakpoints for multi-item display */
/* Tablet: 2 items */
@media (max-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 calc(50% - 15px);
  }

  .testimonial-track {
    gap: 20px;
  }
}

/* Mobile: 1 item with improved spacing */
@media (max-width: 768px) {
  .testimonial-slide {
    flex: 0 0 calc(100% - 10px);
  }

  .testimonial-carousel {
    padding: 0 15px;
  }

  .testimonial-track {
    gap: 15px;
  }

  .testimonial-item {
    padding: 25px 20px;
    margin: 0 5px;
  }

  .text-testimonial {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .testimonial-avatar img {
    width: 50px;
    height: 50px;
  }

  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .prev-btn {
    margin-left: -22px;
  }

  .next-btn {
    margin-right: -22px;
  }

  .video-wrapper.reel-format {
    max-width: 100%;
  }

  .play-button {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .testimonial-carousel {
    padding: 0 10px;
  }

  .testimonial-item {
    padding: 20px 15px;
    margin: 0 2px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .prev-btn {
    margin-left: -20px;
  }

  .next-btn {
    margin-right: -20px;
  }

  .testimonial-content p {
    font-size: 0.9rem;
  }

  .stars {
    font-size: 1rem;
  }

  .video-wrapper.reel-format {
    max-width: 100%;
  }

  .play-button {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }

  .video-controls {
    padding: 15px 10px 10px;
  }

  .video-time {
    font-size: 0.7rem;
  }
}

/* About Section */
.about-section {
  padding: 100px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-doctor-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--shadow);
}

.about-text ul {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  li {
    display: flex;
    align-items: start;
    justify-content: space-between;
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
    font-size: 1.125rem;
  }
  li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
  }
  .procedure-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow);
  }
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.about-text p {
  font-size: 1.125rem;
  margin-bottom: 25px;
  line-height: 1.7;
}

.credentials {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.credential-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Procedures Section */
.procedures-section {
  padding: 100px 0;
  background: var(--surface);
}

.procedures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.procedure-card {
  background: var(--background);
  padding: 50px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 0.3s ease;
}

.procedure-card:hover {
  transform: translateY(-10px);
}

.procedure-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.procedure-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.procedure-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.faq-question {
  width: 100%;
  padding: 30px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 200px;
  padding-bottom: 30px;
}

.faq-answer p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Before/After Section */
.before-after-section {
  padding: 100px 0;
  background: var(--surface);
}

.before-after-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.before-after-images {
  display: flex;
  gap: 20px;
}

.comparison-image {
  position: relative;
  flex: 1;
}

.comparison-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px var(--shadow);
}

.image-label {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
}

.before-after-text h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.before-after-text p {
  font-size: 1.125rem;
  margin-bottom: 40px;
}

.before-after-text .hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.contact-info p {
  font-size: 1.125rem;
  line-height: 1.7;
}

.contact-form-wrapper {
  background: var(--surface);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--shadow);
}

.form-group {
  margin-bottom: 25px;
}

.contact-form input,
.contact-form select {
  background: var(--background);
}

/* Footer */
.footer {
  background: var(--surface);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-info .logo {
  margin-bottom: 20px;
}

.footer-info p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-contact h4,
.footer-social h4 {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.footer-contact i {
  color: var(--primary-color);
  width: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content,
  .services-content,
  .about-content,
  .before-after-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid,
  .procedures-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-item {
    flex-direction: column;
    text-align: center;
  }

  .before-after-images {
    flex-direction: column;
  }

  .credentials {
    justify-content: center;
  }

  .contact-form-wrapper {
    padding: 30px;
  }

  .hero-buttons,
  .before-after-text .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .services-section,
  .testimonials-section,
  .about-section,
  .procedures-section,
  .faq-section,
  .before-after-section,
  .contact-section {
    padding: 60px 0;
  }
  .hero-section {
    padding: 60px 0 0 0;
  }

  .footer {
    padding: 60px 0 30px;
  }

  .btn {
    padding: 14px 24px;
    min-width: 140px;
  }
}
