/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

:root {
    --primary-color: #2c5f7c;
    --primary-dark: #1e4258;
    --secondary-color: #4a90a4;
    --accent-color: #6bb3c7;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #e3f2fd;
    --bg-white: #ffffff;
    --border-color: #bbdefb;
    --success-color: #28a745;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    animation: fadeIn 0.5s ease-out;
}

/* Page load fade in */
@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(44, 95, 124, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-text {
    text-align: center;
    animation: fadeInUp 1s ease-out 0.2s both;
    position: relative;
    z-index: 1;
}

.hero-headline {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subheadline {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.4s both, float 6s ease-in-out infinite;
    animation-delay: 0.4s, 1.4s;
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    min-width: 200px;
    animation: pulse 2s ease-in-out infinite;
    animation-delay: 2s;
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: white;
}

.cta-button.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(44, 95, 124, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button.primary:active {
    transform: translateY(-1px) scale(0.98);
}

.cta-button.secondary {
    background-color: var(--secondary-color);
    color: white;
}

.cta-button.secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(74, 144, 164, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button.secondary:active {
    transform: translateY(-1px) scale(0.98);
}

.cta-button.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    width: 100%;
}

.cta-center {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* Section Styles */
section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services {
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.service-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: var(--spacing-lg);
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.service-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(33, 150, 243, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: var(--bg-white);
}

.why-choose-us .section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.why-choose-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.why-choose-item {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: var(--spacing-lg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    border: 1px solid rgba(33, 150, 243, 0.25);
    border-left: 4px solid var(--primary-color);
}

.why-choose-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.why-choose-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
    border-left-width: 6px;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

.why-choose-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    transition: color 0.3s ease;
}

.why-choose-item:hover h3 {
    color: var(--secondary-color);
}

.why-choose-item p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.125rem;
    margin: 0;
}

/* Doctor Section */
.doctor-section {
    background-color: var(--bg-white);
}

.doctor-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.doctor-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease;
}

.doctor-image.animated {
    opacity: 1;
    transform: scale(1);
}

.doctor-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.doctor-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.doctor-info {
    text-align: center;
}

.doctor-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.5px;
}

.doctor-tagline {
    font-size: 1.25rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.doctor-description {
    text-align: left;
}

.doctor-description p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.testimonial {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: var(--spacing-lg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    border: 1px solid rgba(33, 150, 243, 0.25);
    border-left: 4px solid var(--primary-color);
}

.testimonial.animated {
    opacity: 1;
    transform: translateY(0);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.3);
    border-left-width: 6px;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

.testimonial-quote {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.testimonial-case {
    font-size: 0.875rem;
    color: var(--text-light);
}

.trust-signals {
    text-align: center;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    border: 1px solid rgba(33, 150, 243, 0.25);
}

.trust-text {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Booking Form Section */
.booking {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.booking-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.booking-form.animated {
    opacity: 1;
    transform: translateY(0);
}

.booking-form:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.1);
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.privacy-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

/* FAQs Section */
.faqs {
    background-color: var(--bg-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.faq-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(44, 95, 124, 0.1);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 var(--spacing-md);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: var(--spacing-md);
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Map Section */
.map-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: var(--spacing-xxl) 0;
}

.map-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto var(--spacing-md);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

.map-address {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.map-address p {
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.map-address strong {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.map-address a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.map-address a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--spacing-sm);
    color: white;
}

.footer-section p {
    margin-bottom: var(--spacing-xs);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.footer-section a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }

    .hero-text {
        text-align: left;
    }

    .hero-headline {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-choose-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-button.large {
        width: auto;
        min-width: 250px;
    }

    .map-container iframe {
        height: 500px;
    }

    .doctor-content {
        grid-template-columns: 1fr 1.5fr;
        text-align: left;
    }

    .doctor-info {
        text-align: left;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-choose-items {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-headline {
        font-size: 3.5rem;
    }

    .doctor-content {
        grid-template-columns: 1fr 2fr;
        gap: var(--spacing-xxl);
    }

    .doctor-name {
        font-size: 2.5rem;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Section Background Animations */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 95, 124, 0.03), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
    z-index: 0;
}

section > .container {
    position: relative;
    z-index: 1;
}

/* Smooth page transitions */
html {
    scroll-behavior: smooth;
}

/* Enhanced button ripple effect */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:active::after {
    width: 300px;
    height: 300px;
}

/* Image hover zoom effect */
img {
    transition: transform 0.5s ease;
}

.hero-image img:hover,
.doctor-image img:hover,

/* Staggered animation for lists */
@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

