/*
==============================================
    Enhanced CSS for EnconeCare
==============================================
*/

:root {
    --primary-color: #4A90E2;
    --secondary-color: #50E3C2;
    --background-color: #F5F7FA;
    --text-color: #000000;
    --heading-color: #333;
    --card-background-color: #fff;
    --navbar-background-color: #fff;
    --footer-background-color: #2c3e50;
    --footer-text-color: #bdc3c7;
    --body-transition: background-color 0.3s, color 0.3s;
}

.dark-mode {
    --primary-color: #58a6ff;
    --secondary-color: #50E3C2;
    --background-color: #121212;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --card-background-color: #1e1e1e;
    --navbar-background-color: #1e1e1e;
    --footer-background-color: #1e1e1e;
    --footer-text-color: #a0a0a0;
}

/* --- Base and Typography --- */
html {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--background-color);
    transition: var(--body-transition);
    height: 100%;
    overflow-y: scroll;
}

body.no-transition * {
    transition: none !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    font-weight: 600;
    color: var(--heading-color);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

html, body {
    height: 100%;
    overflow: auto;
}

html.dark-mode .preloader {
    background-color: var(--background-color);
}

html.dark-mode .bg-light {
    background-color: var(--background-color) !important;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* --- Header and Navigation --- */
.header-area {
    position: relative;
    z-index: 1000;
    width: 100%;
}

.header-area .navbar {
    padding: 5px 0;
    transition: all 0.4s ease;
    background-color: var(--navbar-background-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    z-index: 1020; /* Ensure it's above other content */
    width: 100%;
    box-sizing: border-box;
}

.header-area .logo {
    max-height: 50px;
}

.header-area .navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color);
    margin: 0 10px;
    transition: color 0.3s;
    font-size: 1rem;
}

.header-area .navbar-nav .nav-link:hover,
.header-area .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #45c4a8;
    border-color: #45c4a8;
    transform: translateY(-3px);
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

#heroCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#heroCarousel .carousel-item {
    height: 100vh;
}

#heroCarousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: 15px;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    z-index: 1;
}

.hero-section .container {
    z-index: 2;
    position: relative;
}

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}


/* --- Service Section --- */
.service-card {
    background: var(--card-background-color);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: transform 0.4s, box-shadow 0.4s, background-color 0.3s;
    height: 100%;
    border-bottom: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: transform 0.4s, color 0.4s;
}

.service-card:hover .service-icon {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

#why-us .service-icon:hover {
    transform: scale(1.2);
    color: var(--secondary-color);
}

#gallery .img-fluid {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 15px;
}

#gallery .img-fluid:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* --- Inquiry Form Glass Effect --- */
.inquiry-column-bg {
    background: url('Images/pexels-pixabay-40568.jpg') no-repeat center center;
    background-size: cover;
    padding: 30px;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.inquiry-form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    padding: 40px;
}

.dark-mode .inquiry-form {
    background: rgba(30, 30, 30, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.inquiry-form .contact-heading {
    font-weight: 700;
    font-size: 1.8rem;
    color: #fff; /* Change text to white to be visible on the dark image */
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.inquiry-form p {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}


.inquiry-form .form-control {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    color: #000; /* Black text for light inputs */
    transition: all 0.3s ease;
}

.dark-mode .inquiry-form .form-control {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff; /* White text for dark inputs */
}

.inquiry-form .form-control::placeholder {
  color: #333;
  opacity: 0.9;
}

.dark-mode .inquiry-form .form-control::placeholder {
  color: #ccc;
}

.inquiry-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.3);
}

.dark-mode .inquiry-form .form-control:focus {
    background-color: rgba(0, 0, 0, 0.5);
}

.inquiry-form .btn-primary.inquiry-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.inquiry-form .btn-primary.inquiry-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.5);
}

/* --- Testimonials Section --- */
.testimonial-card {
    background: var(--card-background-color);
    padding: 30px;
    border-radius: 10px;
    border-left: 6px solid var(--secondary-color);
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: background-color 0.3s;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 25px;
}

.testimonial-author img {
    width: 65px;
    height: 65px;
    border-radius: 15px;
    margin-right: 20px;
    border: 3px solid var(--secondary-color);
}

.testimonial-author h5 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--heading-color);
}


/* --- Contact Section --- */
.contact-info p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.3rem;
}

.contact-heading {
    margin-bottom: 25px;
    font-size: 1.7rem;
}

.social-icons a {
    font-size: 1.7rem;
    margin-right: 20px;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a i {
    display: inline-block;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.social-icons a:hover i {
    animation: bounce 0.8s ease-in-out;
}







.social-icons a .lni-facebook-filled {
    color: #3b5998; /* Facebook Blue */
}

.social-icons a .lni-twitter-filled {
    color: #00acee; /* Twitter Blue */
}

.social-icons a .lni-linkedin-original {
    color: #0077b5; /* LinkedIn Blue */
}

.social-icons a .lni-pinterest {
    color: #E60023; /* Pinterest Red */
}

.social-icons a .lni-instagram {
    color: #E1306C; /* Instagram Red-Purple */
}

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

/* --- Footer --- */
.footer-area {
    background-color: var(--footer-background-color);
    color: var(--footer-text-color);
}

.footer-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: color 0.3s;
    line-height: 2;
}

.footer-links li a:hover {
    color: var(--secondary-color);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

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

.footer-contact i {
    margin-right: 15px;
    color: var(--secondary-color);
}

.copyright-text {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* --- Scroll-to-top button --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #357ABD;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #25D366; /* WhatsApp green */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 2rem;
    line-height: 50px; /* Vertically center icon */
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex; /* Use flexbox for better centering */
    justify-content: center;
    align-items: center;
    text-decoration: none; /* Remove underline */
}

.whatsapp-float:hover {
    background-color: #1DA851; /* Darker green on hover */
    transform: scale(1.1);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInAnimation 0.8s ease-out forwards;
}

@keyframes fadeInAnimation {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* --- Dark Mode Toggle Switch --- */
.dark-mode-toggle-switch {
    align-self: center;
}

#dark-mode-toggle-button {
    padding: 8px 12px;
    font-size: 14px;
}

.dark-mode-toggle-switch #dark-mode-checkbox {
    display: none;
}

.toggle-label {
    background: #2c3e50;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    position: relative;
    height: 30px;
    width: 65px;
    transition: background 0.2s ease-in-out;
}

.toggle-ball {
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    height: 26px;
    width: 26px;
    transition: transform 0.2s ease-in-out;
}

#dark-mode-checkbox:checked + .toggle-label {
    background: var(--primary-color);
}

#dark-mode-checkbox:checked + .toggle-label .toggle-ball {
    transform: translateX(35px);
}

.toggle-label .lni-sun, .toggle-label .lni-moon {
    font-size: 16px;
    color: #f1c40f;
}

.dropdown-menu {
    transition: all 0.3s ease-in-out;
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: var(--card-background-color);
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .dropdown-menu {
        display: none;
    }

    .dropdown-menu.show {
        display: block;
    }
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dark-mode .dropdown-menu {
    background-color: var(--card-background-color);
}

.dark-mode .dropdown-item {
    color: var(--text-color);
}

.dark-mode .dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
}

@media (max-width: 991px) {
    .dark-mode-toggle-switch.ms-lg-3 {
        margin-left: 0 !important;
        margin-top: 10px;
    }
}

@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }

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

    .footer-area {
        text-align: center;
    }

    .footer-widget {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 70vh;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

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

    .service-card {
        height: auto;
        margin-bottom: 30px;
    }

    .inquiry-column-bg {
        padding: 20px;
    }

    .inquiry-form {
        padding: 30px;
    }
}

.book-appointment-float {
    position: fixed;
    bottom: 20px; /* Adjust as needed */
    left: 20px; /* Adjust as needed */
    background-color: var(--primary-color); /* Using primary color for consistency */
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    z-index: 1000; /* Ensure it's on top */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.book-appointment-float:hover {
    background-color: #357ABD; /* Darker shade on hover */
    transform: translateY(-3px);
}


.service-page-img-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 15px;
}

.service-page-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}
.gallery-img {
       height: 250px; 
       object-fit: cover;
       width: 100%;
   }