:root {
    --primary: #4B3FD4;
    --secondary: #FF6FAE;
    --white: #FFFFFF;
    --text-dark: #2D2E32;
    --text-light: #676767;
    --bg-light: #F8F9FF;
    --shadow: 0 10px 30px rgba(75, 63, 212, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(75, 63, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(75, 63, 212, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: 2px solid var(--primary);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-call {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #F8F9FF 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(75, 63, 212, 0.03);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.trust-badge {
    background: rgba(255, 111, 174, 0.1);
    color: var(--secondary);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 60px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.hero-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.6;
}

.patient-avatars {
    margin-bottom: 40px;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-right: -10px;
}

.avatar-group span {
    margin-left: 20px;
    font-weight: 600;
    color: var(--text-light);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Hero Image & Floating Cards */
.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
}

.main-doctor {
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    animation: floating 6s ease-in-out infinite;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    animation: floating-opposite 5s ease-in-out infinite;
}

.floating-card i {
    font-size: 24px;
    color: var(--primary);
}

.floating-card h4 {
    font-size: 18px;
    margin: 0;
}

.floating-card p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

.card-exp {
    top: 20%;
    left: -50px;
}

.card-doctors {
    bottom: 10%;
    right: -20px;
}

/* Animations */
@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes floating-opposite {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(15px);
    }
}

/* WhatsApp & Chatbot */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(75, 63, 212, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chatbot-header button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
}

.chat-messages {
    height: 300px;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 14px;
}

.message.bot {
    background: var(--bg-light);
    align-self: flex-start;
}

.message.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
}

.chat-options {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #eee;
}

.chat-options button {
    background: var(--bg-light);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.chat-options button:hover {
    background: var(--primary);
    color: white;
}

/* Footer Rendering */
footer {
    background: #0B0B0D;
    color: var(--white);
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: #999;
    margin: 20px 0 30px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #1A1A1C;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
}

.footer-links h4,
.footer-newsletter h4 {
    margin-bottom: 30px;
    font-size: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter p {
    color: #999;
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    background: #1A1A1C;
    padding: 5px;
    border-radius: 50px;
}

.newsletter-form input {
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: white;
    flex: 1;
    outline: none;
}

.newsletter-form button {
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.footer-bottom {
    border-top: 1px solid #1A1A1C;
    padding-top: 40px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Section Titles */
.section-title {
    font-size: 42px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--bg-light);
    clip-path: ellipse(150% 100% at 50% 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.patient-img {
    width: 100%;
    border-radius: 30px;
}

.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: scale(1.02);
}

.feature-card i {
    font-size: 30px;
    color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 36px;
    color: var(--primary);
}

/* Team Section */
.team-section {
    padding: 100px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 30px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.team-social a {
    color: var(--primary);
    font-size: 18px;
    transition: var(--transition);
}

.team-social a:hover {
    transform: scale(1.2);
}

/* Appointment Section */
.appointment-section {
    padding: 100px 0;
}

.appointment-bg {
    background: linear-gradient(135deg, #4B3FD4 0%, #2D2E32 100%);
    border-radius: 40px;
    padding: 60px;
    color: var(--white);
}

.appointment-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.booking-form h2 {
    margin-bottom: 30px;
}

#appointment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

#appointment-form input,
#appointment-form select {
    padding: 15px 25px;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 16px;
}

.appointment-img img {
    width: 100%;
    border-radius: 30px;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: scale(1.05);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
}

.view-details {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

/* Before After Slider */
.before-after-section {
    padding: 100px 0;
}

.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
}

.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-after-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--white);
    z-index: 3;
    pointer-events: none;
}

.slider-handle::after {
    content: '\f337';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Why Choose Us */
.why-choose-section {
    padding: 100px 0;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.check-list {
    list-style: none;
}

.check-list li {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.check-list i {
    color: var(--primary);
    font-size: 24px;
}

.why-choose-gallery img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

/* Dr Profile */
.dr-profile-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.dr-profile-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.dr-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.dr-profile-img {
    position: relative;
}

.dr-profile-img img {
    width: 100%;
    border-radius: 30px;
}

.cert-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.pricing-card.premium {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.pricing-card ul {
    list-style: none;
    margin: 30px 0;
}

.pricing-card li {
    margin-bottom: 15px;
    opacity: 0.8;
}

.price {
    font-size: 48px;
    font-weight: 800;
    margin: 20px 0;
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

/* Blog & Testimonials */
.blog-section,
.testimonials-section {
    padding: 100px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.blog-content {
    padding: 25px;
}

.testimonial-card {
    background: var(--white);
    padding: 50px;
    border-radius: 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.contact-details {
    list-style: none;
    margin-top: 30px;
}

.contact-details li {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    font-size: 18px;
}

.contact-details i {
    color: var(--primary);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .hero-text h1 {
        font-size: 50px;
    }

    .about-grid,
    .appointment-grid,
    .why-choose-grid,
    .dr-profile-grid,
    .contact-grid {
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    /* Navbar Mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: 0.5s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--primary);
    }

    .nav-cta {
        display: none;
    }

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .avatar-group {
        justify-content: center;
    }

    .hero-image {
        margin-top: 50px;
    }

    .card-exp {
        left: 0;
    }

    .card-doctors {
        right: 0;
    }

    /* Grids */
    .team-grid,
    .services-grid,
    .pricing-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .appointment-grid,
    .why-choose-grid,
    .dr-profile-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image,
    .appointment-img,
    .why-choose-gallery,
    .dr-profile-img {
        order: -1;
    }

    .pricing-card.premium {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .section-title {
        font-size: 32px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .team-grid,
    .services-grid,
    .pricing-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .appointment-bg {
        padding: 30px;
    }

    #appointment-form .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links,
    .footer-links ul {
        justify-content: center;
    }

    .comparison-slider {
        height: 350px;
    }

    .chatbot-container {
        width: 90%;
        right: 5%;
        bottom: 90px;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .stat-item h3 {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }
}