:root {
    --primary: #a259e6;
    --secondary: #f8f6fc;
    --accent: #f7c873;
    --text: #22223b;
    --muted: #6c757d;
    --radius: 1.2rem;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: var(--secondary);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.4s, color 0.4s;
}
/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
header {
    background: linear-gradient(120deg, var(--primary) 60%, var(--accent) 100%);
    color: #fff;
    padding: 2.5rem 1.2rem 2rem 1.2rem;
    text-align: center;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
header > *:not(.hero-bg-pattern) {
    position: relative;
    z-index: 1;
}
.clinic-logo {
    font-family: 'Playfair Display', serif;
    font-size: 3.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.7rem;
    color: #a259e6;
    background: linear-gradient(90deg, #a259e6 60%, #f7c873 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow:
      0 2px 4px #fffbe6aa,
      0 1px 0 #fff,
      0 0 0.5px #a259e6;
    -webkit-text-stroke: 1px #a259e6;
    text-stroke: 1px #a259e6;
    transition: font-size 0.3s;
}
@media (max-width: 500px) {
  .clinic-logo {
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
  }
}
.tagline {
    font-size: 1.13rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
    font-family: 'Montserrat', Arial, sans-serif;
}
.cta-btn {
    background: linear-gradient(90deg, var(--accent) 60%, #fffbe6 100%);
    color: var(--text);
    padding: 0.8rem 2.2rem;
    border: none;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(162,89,230,0.08);
    transition: background 0.2s, box-shadow 0.2s;
    border: 2px solid var(--accent);
}
.cta-btn:hover {
    background: linear-gradient(90deg, #ffe6a7 60%, var(--accent) 100%);
    box-shadow: 0 4px 16px rgba(247,200,115,0.18);
}
main {
    padding: 1.5rem 1.2rem 0 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}
section {
    margin-bottom: 2.5rem;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.section-title::after {
    content: '';
    display: block;
    margin: 0.4rem auto 0 auto;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
    opacity: 0.7;
}
.about {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: 0 2px 12px rgba(162,89,230,0.06);
    text-align: center;
}

.testimonials {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: 0 2px 12px rgba(162,89,230,0.06);
}
.testimonial {
    margin-bottom: 1.2rem;
}
.testimonial:last-child {
    margin-bottom: 0;
}
.testimonial-text {
    font-style: italic;
    color: var(--muted);
}
.testimonial-author {
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.3rem;
}
.contact-form {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: 0 2px 12px rgba(162,89,230,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.contact-form input,
.contact-form textarea {
    padding: 0.7rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.7rem;
    font-size: 1rem;
    font-family: inherit;
}
.contact-form textarea {
    resize: vertical;
    min-height: 80px;
}
.contact-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-form button:hover {
    background: #7c3aed;
}
footer {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 1.2rem 0 1.2rem 0;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    margin-top: 2rem;
    font-size: 0.95rem;
}
.social-icon {
    display: inline-block;
    margin: 0 0.4rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 50%;
    padding: 0.2rem;
}
.social-icon:hover {
    background: #fff2;
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(162,89,230,0.12);
}
@media (min-width: 700px) {
    main {
        max-width: 900px;
    }
    
}
.faq-list {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}
.faq-item {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(162,89,230,0.06);
    margin-bottom: 1rem;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--primary);
    padding: 1rem 1.2rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}
.faq-question:hover {
    background: #f3eaff;
}
.faq-answer {
    padding: 0 1.2rem 1rem 1.2rem;
    color: var(--muted);
    font-size: 1rem;
    display: none;
    animation: fadeInFaq 0.5s;
}
.faq-item.active .faq-answer {
    display: block;
}
@keyframes fadeInFaq {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.testimonial-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}
.testimonial-list {
    width: 100%;
    max-width: 350px;
    min-height: 90px;
    position: relative;
}
.testimonial {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}
.testimonial.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}
.testimonial-arrow {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(162,89,230,0.08);
}
.testimonial-arrow:hover {
    background: var(--accent);
    color: var(--text);
    transform: scale(1.1);
}
@media (max-width: 500px) {
    .testimonial-list {
        max-width: 98vw;
    }
}
.faq-question {
    color: var(--primary);
}
.faq-item.active .faq-question {
    color: var(--accent);
}
.theme-toggle {
    position: fixed;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 100;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(162,89,230,0.10);
    transition: background 0.3s, border 0.3s;
}
.theme-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
}
.theme-icon {
    display: none;
}
.theme-toggle .sun { display: block; }
body.dark .theme-toggle .sun { display: none; }
body.dark .theme-toggle .moon { display: block; }
body.dark {
    background: #18162a;
    color: #f8f6fc;
}
body.dark header {
    background: linear-gradient(120deg, #2d1e4f 60%, #f7c873 100%);
}
body.dark .about,
body.dark .testimonials,
body.dark .contact-form,
body.dark .faq-item,

body.dark .cta-btn {
    background: linear-gradient(90deg, #f7c873 60%, #2d1e4f 100%);
    color: #232046;
    border-color: #f7c873;
}
body.dark .cta-btn:hover {
    background: linear-gradient(90deg, #2d1e4f 60%, #f7c873 100%);
    color: #f7c873;
}
body.dark .social-icon {
    background: #232046;
}
/* Ripple effect for buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background: rgba(162,89,230,0.25);
    pointer-events: none;
    z-index: 2;
}
@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}
/* Animated CTA icon */
.cta-btn .cta-anim {
    display: inline-block;
    margin-left: 0.5em;
    transition: transform 0.3s;
}
.cta-btn:hover .cta-anim {
    transform: translateY(-4px) scale(1.2) rotate(-8deg);
}



.services-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 1rem 0 2rem;
}
.services-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1rem;
    padding-bottom: 1rem;
}
.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem 1.2rem;
    min-width: 250px;
    box-shadow: 0 2px 12px rgba(162,89,230,0.06);
    text-align: center;
    flex-shrink: 0;
}
.service-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}
.service-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}
.service-card p {
    color: var(--muted);
    font-size: 0.9rem;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--muted);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s;
}
.carousel-dot.active {
    background: var(--primary);
    opacity: 1;
    transform: scale(1.1);
}

body.dark .service-card {
    background: #232046;
}
@media (max-width: 500px) {
  .service-card {
    min-width: 0;
    width: 100%;
    padding: 1rem 0.5rem;
    box-sizing: border-box;
  }
  .service-card p {
    font-size: 1.05rem;
    word-break: break-word;
    white-space: normal;
    line-height: 1.5;
  }
}
.whatsapp-float {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 200;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,211,102,0.18);
  border-radius: 50%;
  animation: whatsapp-bounce 1.6s infinite;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-float:hover {
  transform: scale(1.13) rotate(-8deg);
  box-shadow: 0 8px 24px rgba(37,211,102,0.28);
}
@keyframes whatsapp-bounce {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(-8px); }
  40% { transform: translateY(0); }
  60% { transform: translateY(-4px); }
  80% { transform: translateY(0); }
}