/* ===================================
   Nafisa Wellness Clinic - Stylesheet
   Color Theme: Purple (#4A3B8C) & Teal (#3DB39E)
   =================================== */

/* CSS Variables */
:root {
    --primary-purple: #4A3B8C;
    --primary-teal: #3DB39E;
    --purple-dark: #3A2B6C;
    --teal-dark: #2D9E8E;
    --purple-light: #6A5BAC;
    --teal-light: #5DC3AE;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-600: #6C757D;
    --gray-800: #343A40;
    --text-dark: #212529;
    --text-light: #6C757D;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    min-height: 70px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.clinic-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.tagline {
    font-size: 0.875rem;
    color: var(--teal-light);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--teal-light);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Language Toggle Button */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid var(--white);
    border-radius: 25px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 38px;
}

.lang-toggle:hover {
    background: var(--white);
    color: var(--primary-purple);
    transform: translateY(-2px);
}

.lang-icon {
    font-size: 1.2rem;
}

#langText {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 0.8s ease;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--gray-100);
}

.doctor-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.doctor-title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--teal-light);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--gray-100);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn .icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-teal);
}

.btn-primary:hover {
    background-color: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-teal);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-teal));
    margin: 1rem auto;
    border-radius: 2px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background-color: var(--light-bg);
}

.about-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.highlight-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.achievement-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.achievement-card h3 {
    color: var(--primary-purple);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    text-align: center;
}

.achievement-card p {
    color: var(--text-light);
    line-height: 1.7;
    text-align: center;
}

.achievement-card strong {
    color: var(--primary-teal);
    font-weight: 700;
}

.education-section,
.experience-section {
    margin-top: 3rem;
}

.subsection-title {
    color: var(--primary-purple);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.education-list {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-teal);
    box-shadow: var(--shadow);
}

.education-item h4 {
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.institution {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.year {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.registration {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.experience-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
}

.experience-list li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.8;
}

.experience-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-teal);
    font-weight: bold;
    font-size: 1.25rem;
}

.experience-list strong {
    color: var(--primary-purple);
}

/* COVID Story Section */
.covid-story {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
    color: var(--white);
}

.covid-story .section-title {
    color: var(--white);
}

.covid-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    position: relative;
}

.quote-icon {
    font-size: 5rem;
    color: var(--teal-light);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: Georgia, serif;
}

blockquote {
    position: relative;
    z-index: 1;
}

.story-text {
    font-size: 1.125rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--gray-100);
}

.story-text.emphasis {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--teal-light);
}

.story-impact {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-teal);
}

.story-impact h3 {
    color: var(--teal-light);
    margin-bottom: 1rem;
}

.story-impact ul {
    list-style: none;
}

.story-impact li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--gray-100);
}

.story-impact li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--teal-light);
    font-weight: bold;
}

/* Services Section */
.services {
    background-color: var(--white);
}

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

.service-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    background: var(--white);
    border-color: var(--primary-teal);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--primary-teal);
}

.service-card h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Facilities Section */
.facilities {
    background-color: var(--light-bg);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.facility-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.facility-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.facility-icon.purple {
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-light));
}

.facility-icon.teal {
    background: linear-gradient(135deg, var(--primary-teal), var(--teal-light));
}

.facility-icon svg {
    width: 40px;
    height: 40px;
}

.facility-card h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.facility-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--white);
}

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

.testimonial-card {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    color: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stars {
    color: var(--teal-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--gray-100);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--teal-light);
    font-size: 1.125rem;
}

.testimonial-author span {
    color: var(--gray-200);
    font-size: 0.9rem;
}

/* Blog Section */
.blog {
    background-color: var(--light-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-teal), var(--teal-dark));
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-card h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.blog-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tips-list {
    list-style: none;
    margin-top: 1rem;
}

.tips-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.tips-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-teal);
    font-weight: bold;
    font-size: 1.5rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.contact-details h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.contact-details p {
    color: var(--gray-100);
    line-height: 1.7;
}

.contact-details a {
    color: var(--gray-100);
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--white);
}

.contact-cta {
    display: flex;
    align-items: center;
}

.cta-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    width: 100%;
}

.cta-box h3 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--gray-100);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-buttons .btn {
    justify-content: center;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--primary-purple) 100%);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.footer-section h4 {
    color: var(--teal-light);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--teal-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--gray-200);
    line-height: 1.7;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contact a {
    color: var(--gray-200);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--teal-light);
}

.footer-contact li {
    color: var(--gray-200);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-200);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 300px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-purple);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .section-title {
        font-size: 2rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .doctor-name {
        font-size: 1.75rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .achievements-grid,
    .services-grid,
    .facilities-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .clinic-name {
        font-size: 1.25rem;
    }

    .story-highlight {
        padding: 2rem;
    }

    .quote-icon {
        font-size: 3rem;
    }

    .cta-box {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-cta,
    .cta-buttons,
    .mobile-menu-toggle {
        display: none;
    }

    body {
        background: white;
    }

    section {
        page-break-inside: avoid;
    }
}