:root {
    --primary-color: #385ca4;
    --secondary-color: #e03c4c;
    --accent-color: #F5F5F7;
    --text-color: #333;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

section {
    margin: 0;
}

/* Updated Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2%;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
}

.dropdown {
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.dropdown-trigger {
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    display: block;
    font-weight: 500;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgba(0, 51, 160, 0.1);
    color: var(--primary-color);
}

.login-btn {
    display: none;
}

/* Updated styles for the simplified content */

.hero {
    position: relative;
    padding: 10rem 5%;
    color: var(--white);
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: url('images/healthcaretech.jpg') center/cover no-repeat fixed;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(56, 92, 164, 0.85) 0%, 
        rgba(56, 92, 164, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Animation for sliding background */
@keyframes slideBackground {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Add floating animation for hero content */
.hero h1 {
    animation: float 6s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

.hero p {
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.2s;
    margin-bottom: 3rem;
}

.hero-buttons {
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Add responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 5%;
        min-height: 60vh;
    }
    
    .sliding-background {
        width: 600%;
    }
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-button.primary {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
}

.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(5px);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Main Features Section */
.main-features {
    padding: 6rem 5%;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.feature-box .icon {
    width: 80px;
    height: 80px;
    background: rgba(93, 78, 156, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-box .icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-box p {
    color: #666;
    line-height: 1.6;
}

/* Call to Action Section */
.cta-section {
    padding: 6rem 5%;
    background: linear-gradient(rgba(93, 78, 156, 0.97), rgba(93, 78, 156, 0.97)),
                url('pattern-bg.png') center/cover;
    color: var(--white);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.contact-btn, .demo-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.contact-btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
}

.demo-btn {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.contact-btn:hover, .demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Updated Footer Styles */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 5% 2rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.company-info p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px auto;
    max-width: 300px;
}

.social-links a {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

/* Brand Colors */
.social-links a.linkedin i {
    color: #0077b5;
}

.social-links a.twitter i {
    color: #000000;
}

.social-links a.facebook i {
    color: #1877f2;
}

.social-links a.instagram i {
    background: radial-gradient(circle at 30% 107%, 
        #fdf497 0%, 
        #fdf497 5%, 
        #fd5949 45%,
        #d6249f 60%,
        #285AEB 90%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.social-links a:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 1);
}

.contact p {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav-links {
        display: none; /* Add mobile menu functionality */
    }
}

/* Additional CSS for new components */

/* Updated Dropdown Styles */
.dropdown-trigger .fa-chevron-down {
    font-size: 0.8em;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* Navigation link styles */
.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: color 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Dropdown indicator styles */
.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-indicator {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-indicator {
    transform: rotate(180deg);
}

/* Add/Update logo styles */
.logo {
    display: flex;
    align-items: center;
    height: 50px;
    margin-right: 1rem;
}

.logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 5%;
    background: var(--accent-color);
    margin-bottom: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.testimonials-slider {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.testimonial-text {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    min-height: 100px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.author-info h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
}

/* Responsive Design for Testimonials */
@media (max-width: 1024px) {
    .testimonial-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonial-cards {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .testimonial-text {
        min-height: auto;
    }
}

/* Add these styles for the About Preview section */
.about-preview {
    padding: 6rem 5%;
    background: var(--white);
    overflow: hidden;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #e03c4c;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #385ca4;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.learn-more-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.image-stack {
    position: relative;
    width: 100%;
    height: 500px;
}

.image-stack img {
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.image-1 {
    position: absolute;
    width: 80%;
    height: 60%;
    top: 0;
    right: 0;
    z-index: 2;
    animation: floatAnimation 3s ease-in-out infinite;
}

.image-2 {
    position: absolute;
    width: 70%;
    height: 50%;
    bottom: 0;
    left: 0;
    z-index: 1;
    animation: floatAnimation 3s ease-in-out infinite reverse;
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Add this specific selector for the Patients dropdown */
.dropdown:last-child .nested-dropdown-content,
.dropdown:last-child .nested-dropdown .nested-dropdown-content {
    left: auto;
    right: 100%; /* This will make the submenu appear on the left */
}

/* Adjust the chevron icon direction for the last dropdown */
.dropdown:last-child .nested-dropdown-trigger .fa-chevron-right {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .image-stack {
        height: 400px;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .image-stack {
        height: 300px;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
}

/* Add responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 5%;
        background-attachment: scroll; /* Better mobile performance */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

/* Add these styles for the footer logo */
.footer-logo {
    margin-bottom: 1.5rem;
    max-width: 300px; /* Adjust this value based on your logo size */
}

.footer-logo img {
    width: 100%;
    height: auto;
    max-height: 50px; /* Adjust this value to control the logo height */
    object-fit: contain;
    filter: brightness(0) invert(1); /* This makes the logo white */
}

/* Update the existing company-info styles */
.company-info {
    display: flex;
    flex-direction: column;
}

.company-info p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Update About Section Styles */
.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #e03c4c;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #385ca4;
}

/* If you have any lists or additional text in the about section */
.about-text ul li,
.about-text .additional-content {
    color: #385ca4;
}

/* For any subheadings in the about section if needed */
.about-text h3,
.about-text h4 {
    color: #e03c4c;
}

/* About Hero Section with blurred background */
.about-hero {
    background: linear-gradient(rgba(56, 92, 164, 0.85), rgba(56, 92, 164, 0.85)),
                url('https://images.pexels.com/photos/3683056/pexels-photo-3683056.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(5px);
    z-index: 1;
}

.about-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.about-hero h1 {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.about-hero p {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    opacity: 0.9;
}

/* Mission Section */
.mission-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.mission-content h2 {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.mission-content p {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

/* What We Do Section */
.what-we-do {
    padding: 5rem 0;
    background-color: var(--accent-color);
}

.what-we-do .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.what-we-do h2 {
    font-family: 'Roboto Flex', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.what-we-do > .container > p {
    font-family: 'Roboto Flex', sans-serif;
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(56, 92, 164, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(56, 92, 164, 0.2);
}

.service-card h3 {
    font-family: 'Roboto Flex', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.service-card p {
    font-family: 'Roboto Flex', sans-serif;
    color: #666;
    line-height: 1.6;
    font-weight: 400;
}

/* Vision Section */
.vision-section {
    background-color: var(--primary-color);
    padding: 5rem 0;
    color: var(--white);
}

.vision-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.vision-content h2 {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.vision-content p {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* Contact CTA Section */
.contact-cta {
    padding: 5rem 0;
    background: linear-gradient(rgba(56, 92, 164, 0.97), rgba(56, 92, 164, 0.97)),
                url('pattern-bg.png') center/cover;
    text-align: center;
    color: var(--white);
}

.contact-cta .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-cta h2 {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-cta p {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button, .secondary-button {
    font-family: 'Roboto Flex', sans-serif;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
}

.secondary-button {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-button:hover, .secondary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.8rem;
    }
    
    .about-hero p {
        font-size: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
}