/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6f42c1;
    --secondary-color: #5a32a3;
    --accent-color: #b39ddb;
    --light-bg: #f6f3fb;
    --white: #ffffff;
    --text-dark: #2e1f47;
    --text-light: #7d6fa1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Top Banner */
.top-banner {
    background: var(--accent-color);
    color: var(--white);
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu .cta-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
}

.nav-menu .cta-btn:hover {
    background: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%235a32a3" width="1200" height="600"/><g fill-opacity="0.1"><circle fill="%23ffffff" cx="100" cy="100" r="80"/><circle fill="%23ffffff" cx="1000" cy="400" r="100"/><circle fill="%23ffffff" cx="600" cy="500" r="60"/></g></svg>');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-icons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.icon-item:hover {
    transform: translateY(-5px);
}

.icon-item i {
    font-size: 2rem;
    background: var(--white);
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--box-shadow);
}

.icon-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-item {
    padding: 30px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--light-bg);
    text-align: center;
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-light);
}

/* Why Choose Us Section */
.why-choose {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.why-item {
    padding: 30px;
    transition: var(--transition);
}

.why-item:hover {
    transform: scale(1.05);
}

.why-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.why-item h3 {
    font-size: 1rem;
}

/* Health Plans Section */
.health-plans {
    padding: 80px 0;
    background: var(--light-bg);
    text-align: center;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.plan-card {
    background: var(--white);
    padding: 40px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.plan-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.plan-card.featured h3,
.plan-card.featured p {
    color: var(--white);
}

.plan-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.plan-card.featured i {
    color: var(--white);
}

.plan-card h3 {
    margin-bottom: 10px;
}

.plan-card p {
    color: var(--text-light);
}

/* Form Sections */
.form-section {
    max-width: 600px;
    margin: 50px auto 0;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-section h3 {
    text-align: center;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.1);
}

.confirmation-message {
    display: none;
    background: var(--success);
    color: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 20px;
}

.confirmation-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Appointment Section */
.appointment {
    padding: 80px 0;
    background: var(--white);
}

.appointment .container {
    max-width: 700px;
}

.appointment h2 {
    text-align: center;
    margin-bottom: 40px;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: var(--light-bg);
    text-align: center;
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto 40px;
    min-height: 300px;
}

.testimonial-card {
    display: none;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.patient-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.patient-avatar {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.patient-avatar i {
    font-size: 1.5rem;
}

.patient-info h4 {
    margin: 0;
    color: var(--text-dark);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-map iframe {
    border-radius: var(--border-radius);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-column a {
    display: block;
    color: #ccc;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-column p {
    color: #ccc;
    margin-bottom: 10px;
}

.newsletter input,
.newsletter button {
    width: 100%;
    margin-bottom: 15px;
}

.newsletter input {
    padding: 10px 15px;
    border: 1px solid #555;
    border-radius: var(--border-radius);
    background: #333;
    color: var(--white);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

.modal-content h2 {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 30px;
    margin: 0;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body h3 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.close-modal {
    color: var(--white);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 60px 0;
        min-height: 500px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-icons {
        gap: 20px;
    }

    .icon-item i {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .about,
    .services,
    .why-choose,
    .health-plans,
    .appointment,
    .testimonials,
    .contact {
        padding: 50px 0;
    }

    .form-section {
        padding: 25px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}