﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #222;
    transition: background-color 0.3s, color 0.3s;
}

    body.dark {
        background-color: #181818;
        color: #f1f1f1;
    }

header {
    background: linear-gradient(90deg, #ffffff 0%, #f2f2f2 100%);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

body.dark header {
    background: linear-gradient(90deg, #1e1e1e 0%, #2c2c2c 100%);
}

header nav a {
    margin: 0 15px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    transition: color 0.3s;
}

    header nav a:hover {
        color: #640487;
    }

.btn {
    background-color: #640487;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(100, 4, 135, 0.2);
}

    .btn:hover {
        background-color: #640487;
        box-shadow: 0 6px 14px rgba(100, 4, 135, 0.2);
    }

.toggle-darkmode {
    margin-left: 20px;
    cursor: pointer;
    font-size: 18px;
}

.hero, .section {
    padding: 80px 40px;
}

.hero {
    padding: 100px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #f3e8ff 0%, #fff 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    margin-bottom: 20px;
}

    .hero .btn {
        padding: 12px 28px;
        font-size: 1rem;
        border-radius: 12px;
        margin-top:20px;
    }

body.dark .hero {
    background: linear-gradient(135deg, #1e1e1e 0%, #2c2c2c 100%);
}

.hero-text {
    flex: 1;
}

    .hero-text h1 {
        font-size: 3.5rem;
        font-weight: 700;
        line-height: 1.2;
        color: #2d033b;
    }

    .hero-text p {
        font-size: 1.25rem;
        color: #444;
    }

.hero img {
    /* max-width: 400px; */
    height: 400px;
    width: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    flex: 1;
    min-width: 280px;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #eee;
}

body.dark .card {
    background-color: #242424;
    border: 1px solid #333;
}

    body.dark .card p,
    body.dark .card h3,
    body.dark .card h4 {
        color: #ddd;
    }

.card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 24px rgba(100, 4, 135, 0.1);
}

.card i {
    background-color: #f3e8ff;
    padding: 12px;
    border-radius: 50%;
}

.faq-item {
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-bottom: 1px solid #ccc;
}

.faq-question {
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 15px;
}

.footer-new {
    background-color: #f9f9f9;
    padding: 60px 40px;
    color: #333;
    font-size: 14px;
}

body.dark .footer-new {
    background-color: #1e1e1e;
    color: #ddd;
}

.footer-new .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

    .footer-new .footer-top h3 {
        font-size: 20px;
    }

.footer-new hr {
    border: none;
    border-top: 1px solid #ccc;
    margin-bottom: 30px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    justify-content: space-between;
}

.footer-newsletter {
    flex: 1 1 300px;
    margin-bottom: 40px;
}

    .footer-newsletter h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }

.newsletter-form {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    max-width: 300px;
}

    .newsletter-form input {
        border: none;
        padding: 10px;
        flex: 1;
        font-size: 14px;
    }

    .newsletter-form button {
        background: #640487;
        border: none;
        color: #fff;
        padding: 0 15px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .newsletter-form button i {
            font-size: 16px;
        }

.footer-links {
    display: flex;
    flex: 2 1 600px;
    gap: 80px;
    flex-wrap: wrap;
}

    .footer-links h5 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .footer-links ul {
        list-style: none;
    }

        .footer-links ul li {
            margin-bottom: 8px;
        }

            .footer-links ul li a {
                text-decoration: none;
                color: inherit;
                transition: color 0.3s;
            }

                .footer-links ul li a:hover {
                    color: #640487;
                }

.footer-bottom {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

.social-icons a {
    margin-right: 15px;
    color: inherit;
    font-size: 18px;
    transition: color 0.3s;
}

    .social-icons a:hover {
        color: #640487;
    }

body.dark .footer-new hr,
body.dark .footer-bottom {
    border-color: #444;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;

}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

    .modal-content input, .modal-content textarea {
        width: 100%;
        margin-bottom: 15px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
    }

.modal-close {
    float: right;
    cursor: pointer;
    font-size: 20px;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

    #loader.fade-out {
        opacity: 0;
        pointer-events: none;
    }

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e0e0e0;
    border-top: 6px solid #640487;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.about-us .about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
}

.testimonials .card p {
    font-size: 16px;
    margin-bottom: 10px;
}

.testimonials .card h4 {
    font-weight: 600;
    color: #555;
}

#backToTop {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 100;
    background-color: #640487;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

    #backToTop.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    #backToTop:hover {
        background-color: #640487;
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(100, 4, 135, 0.2);
    }

.logo-container {
    height: 50px;
    display: flex;
    align-items: center;
}

    .logo-container img {
        height: 100px;
        width: 170px;
    }

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-right: 50px;
    gap: 20px;
}

    .nav a {
        position: relative;
    }

        .nav a::after {
            content: "";
            position: absolute;
            width: 0%;
            height: 2px;
            background: #640487;
            left: 0;
            bottom: -4px;
            transition: 0.3s;
        }

        .nav a:hover::after {
            width: 100%;
        }

.contact-section {
    background-color: #f9f9f9;
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    width: 90%;
    max-width: 800px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.contact-info,
.contact-form {
    padding: 40px;
    flex: 1 1 100%;
}

@media (min-width: 768px) {
    .contact-info,
    .contact-form {
        flex: 1 1 50%;
    }
}

.contact-info {
    background: #640487;
    color: #fff;
}

    .contact-info h5 {
        color: #ffd700;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    .contact-info h2 {
        font-size: 28px;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .contact-info p {
        margin-bottom: 8px;
        font-size: 15px;
    }

.contact-form {
    background: #fff;
}

    .contact-form form {
        display: flex;
        flex-direction: column;
    }

    .contact-form .form-row {
        display: flex;
        gap: 20px;
        margin-bottom: 20px;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 14px;
    }

    .contact-form textarea {
        resize: none;
        margin-bottom:20px;
    }

.appointment-btn {
    background-color: #640487;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .appointment-btn:hover {
        background-color: #51036f;
    }

@media (max-width: 576px) {
    .contact-form .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

body.dark .contact-content h2,
body.dark .contact-content p {
    color: #eee;
}

body.dark .contact-form input,
body.dark .contact-form textarea {
    background-color: #2c2c2c;
    color: #f1f1f1;
    border: 1px solid #444;
}

    body.dark .contact-form input::placeholder,
    body.dark .contact-form textarea::placeholder {
        color: #aaa;
    }

.success-message {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    color: green;
    margin-top: 15px;
    font-weight: 500;
}

    .success-message.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

