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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --teal: #1abc9c;
    --dark-teal: #16a085;
    --light-teal: #d1f2eb;
    --navy: #2c3e50;
    --light-navy: #34495e;
    --red: #ed1b24;
    --green: #8dc63f;
}

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

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

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.logo img {
    height: 50px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--teal);
    text-decoration: underline;
}

.nav-links .btn-primary {
    padding: 8px 20px;
    font-size: 0.9rem;
    margin-left: 15px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--dark-teal) 100%);
    color: var(--white);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--teal);
    text-decoration: underline;
}

.nav-links .btn-secondary {
    padding: 8px 20px;
    font-size: 0.9rem;
    margin-left: 15px;
}

@media (max-width: 768px) {
    body {
        display: flex;
        flex-direction: column;
    }

    .navbar {
        order: -1;
    }

    .top-stripe {
        order: 0;
    }

    .navbar .container {
        padding: 10px;
    }

    .logo {
        text-align: center;
    }

    .logo img {
        height: 70px;
    }
}


/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-container.active {
        max-height: 500px;
    }

    .nav-links {
        flex-direction: column;
        padding: 20px;
    }

    .nav-links li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 10px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/BackGround.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}



/* Mobile Hero Section */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
        background-size:auto;
        background-position: center;
        background-attachment: scroll;
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .hero .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .cta-buttons .btn {
        width: 100%;
        margin: 0;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--red) 100%);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-outline {
    border: 2px solid var(--teal);
    color: var(--teal);
    padding: 8px 20px;
    font-size: 0.9rem;
    display: block;
    margin: 0 auto;
    width: fit-content;
}

.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 80%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text h3 {
    margin: 20px 0;
    color: var(--secondary-color);
}

.about-text ul {
    list-style-position: inside;
    margin-top: 20px;
}

/* Mobile About Section */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        order: -1; /* Move image to top */
    }

    .about-image img {
        width: 100%;
        height: 300px;
    }

    .about-text {
        text-align: center;
    }

    .about-text ul {
        text-align: left;
        padding-left: 20px;
    }
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-teal) 100%);
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-image {
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    color: var(--navy);
    margin: 15px;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-color);
    margin: 0 15px 15px;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

.service-card .btn {
    margin: 0 auto 15px;
    padding: 8px 20px;
    font-size: 0.9rem;
    display: block;
    width: fit-content;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .service-image {
        height: 200px;
    }
}

/* Clinic Section */
.clinic {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-teal) 0%, var(--white) 100%);
}

.clinic h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.clinic-gallery {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.clinic-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.clinic-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clinic-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.clinic-controls {
    display: none;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.clinic-prev,
.clinic-next {
    background: var(--teal);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clinic-prev:hover,
.clinic-next:hover {
    background: var(--navy);
}

.clinic-info {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.clinic-info h3 {
    color: #333;
    margin-bottom: 10px;
}

.clinic-info p {
    color: #666;
    font-size: 1.1em;
}

/* Mobile Clinic Gallery */
@media (max-width: 768px) {
    .clinic-track {
        display: flex;
        gap: 0;
        width: 100%;
    }

    .clinic-gallery img {
        flex: 0 0 100%;
        height: 300px;
    }

    .clinic-controls {
        display: flex;
    }
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: var(--light-teal);
}

.reviews-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    padding: 20px 0;
}

.review-card {
    flex: 0 0 calc(33.333% - 20px);
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 10px;
    min-width: 300px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.reviewer-info h3 {
    margin: 0;
    color: var(--navy);
}

.review-date {
    color: var(--text-color);
    font-size: 0.9em;
}

.rating {
    color: var(--teal);
}

.review-text {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.review-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.review-prev,
.review-next {
    background: var(--teal);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.review-prev:hover,
.review-next:hover {
    background: var(--navy);
}

/* Mobile Reviews */
@media (max-width: 768px) {
    .reviews-track {
        gap: 0;
    }

    .review-card {
        flex: 0 0 100%;
        min-width: 100%;
        margin: 0;
        padding: 20px;
    }

    .review-controls {
        margin-top: 20px;
    }
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-teal) 100%);
}

.contact h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--navy);
    font-size: 2.5rem;
    position: relative;
}

.contact h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--teal);
    margin: 15px auto 0;
    border-radius: 2px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    align-items: center;
}

.contact-info {
    padding: 20px;
}

.contact-info h3 {
    color: var(--navy);
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--teal);
}

.contact-info p {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-info i {
    color: var(--teal);
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    background: var(--light-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--teal);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 300px;
}

.map-container iframe {
    border: none;
    width: 100%;
    height: 100%;
}

.contact-form {
    background: var(--light-teal);
    padding: 40px;
    border-radius: 15px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--dark-teal) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .contact h2 {
        font-size: 2rem;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: var(--light-teal);
}

.faq h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--navy);
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: var(--light-teal);
}

.faq-question h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 500;
    flex: 1;
    padding-right: 20px;
}

.faq-question i {
    color: var(--teal);
    transition: transform 0.3s;
    font-size: 1rem;
}

.faq-answer {
    height: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0 20px;
    transition: all 0.3s ease-out;
    background-color: var(--white);
}

.faq-item.active .faq-answer {
    height: auto;
    opacity: 1;
    visibility: visible;
    padding: 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Mobile FAQ Styles */
@media (max-width: 768px) {
    .faq-content {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-question,
    .faq-answer {
        padding: 15px;
    }

    .faq-answer {
        height: 0;
        opacity: 0;
        visibility: hidden;
        padding: 0 15px;
        margin: 0;
        transition: all 0.3s ease-out;
    }

    .faq-item.active .faq-answer {
        height: auto;
        opacity: 1;
        visibility: visible;
        padding: 15px;
        margin-bottom: 0;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--navy) 0%, var(--light-navy) 100%);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    filter: none;
    background-color: var(--white);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    color: var(--teal);
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-media a:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    color: var(--teal);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin-bottom: 12px;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--teal);
    transform: translateX(5px);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--teal);
    font-size: 1.2rem;
    width: 30px;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-left {
        align-items: center;
    }

    .social-media {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}

/* Floating Buttons */
.floating-call-button,
.floating-whatsapp-button {
    position: fixed;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    animation: pulse 2s infinite;
    right: 20px;
}

.floating-call-button {
    bottom: 90px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--dark-teal) 100%);
}

.floating-whatsapp-button {
    bottom: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.floating-call-button:hover,
.floating-whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    color: var(--white);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 188, 156, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(26, 188, 156, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 188, 156, 0);
    }
}

@media (max-width: 768px) {
    .floating-call-button,
    .floating-whatsapp-button {
        width: 40px;
        height: 40px;
        font-size: 18px;
        right: 15px;
    }

    .floating-call-button {
        bottom: 80px;
    }

    .floating-whatsapp-button {
        bottom: 25px;
    }
}

@media (max-width: 768px) {
    .nav-links .nav-whatsapp {
        font-size: 1.3rem;
        width: 35px;
        height: 35px;
    }
}

/* Top Info Stripe */
.top-stripe {
    background: var(--red);
    color: var(--white);
    padding: 4px 0;
    font-size: 0.85rem;
}

.top-stripe-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-stripe-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-stripe-left > * {
    padding: 0 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.top-stripe-left > *:last-child {
    border-right: none;
}

.top-stripe a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.top-stripe a:not(.btn):hover {
    text-decoration: underline;
}

.top-stripe i {
    font-size: 0.9rem;
    margin-right: 6px;
}

.top-stripe span {
    display: flex;
    align-items: center;
}

.top-stripe .btn-primary {
    background: #8dc63f;
    color: var(--white);
    padding: 4px 16px;
    font-size: 0.85rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    line-height: 1.5;
    margin-left: 15px;
}

.top-stripe .btn-primary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
}

@media (max-width: 768px) {
    .top-stripe {
        padding: 8px 0;
    }
    
    .top-stripe-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .top-stripe-left {
        font-size:large;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .top-stripe-left > * {
        padding: 4px 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .top-stripe-left > *:last-child {
        border-bottom: none;
    }
    
    .top-stripe .btn-primary {
        margin: 4px 0 0 0;
    }
}