@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
}

/* Header Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Logo Styling */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 80px;
    margin-right: 10px;
    padding-bottom: 40px;
}

.logo-text {
    font-size: 32px;
    font-weight: bold;
    color: darkgreen;
}



.slider {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    width: 100%;
    height:60%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
}

.slide img {
    width: 100%;
    height: 60%;
    object-fit: cover;
}

.text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
}

.text h2 {
    font-size: 19px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.text h1 {
    font-size: 42px;
    font-weight: bold;
}

.text p {
    font-size: 19px;
    margin-top: 10px;
}

.buttons {
    margin-top: 20px;
}



/* Hamburger menu styles */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px; /* Adjusted height for better composition */
    cursor: pointer;
    z-index: 2;
    position: relative;
}

.bar {
    width: 30px;
    height: 4px;
    background-color: darkgreen; /* Brand color */
    transition: all 0.3s ease;
}

/* Active State for Hamburger (X Animation) */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg);
    top: -8px;
}

/* Nav Links Styles */
.nav-links {
    position: fixed;
    top: 0;
    right: -250px; /* Hidden by default */
    height: 50%;
    width: 250px;
    background-color: greenyellow; /* Background color of the nav */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: -3px 0 5px rgba(0, 0, 0, 0.3);
}

.nav-links li {
    list-style: none;
    margin: 20px 0;
    position: relative;
}

/* Underline effect */
.nav-links a {
    text-decoration: none;
    color: darkgreen; /* Brand color */
    font-size: 18px;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
    overflow: hidden;
}

.nav-links a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: darkgreen; /* Brand color for underline */
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: bottom right;
}

.nav-links a:hover:before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Active State for Links (Underline fills when clicked) */
.nav-links li.active a:before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Show the nav links when active */
.nav-links.active {
    right: 0; /* Slide in */
}

/* Optional: When the menu is opened, body background can be dimmed */
body.menu-active {
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
}






.btn {
    display: inline-block;
    padding: 10px 20px;
    font-family: "Poppins", sans-serif; 
    font-weight: bold; /* Optional: Adjust weight */
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px;
}

.btn.orange {
    background-color: darkgreen;
    color: white;
}

.btn.white {
    background-color: white;
    color: black;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    background-color: rgba(173, 255, 47, 0.7);
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 3;
}

.prev { left: 20px; }
.next { right: 20px; }

.dots {
    position: absolute;
    bottom: 440px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: greenyellow;
}

/* Animations */
.animate-top {
    animation: slideTop 1s ease-out;
}

.animate-bottom {
    animation: slideBottom 1s ease-out;
}

@keyframes slideTop {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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





.about-header {
    display: inline-block;
    color: darkgreen;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    max-width: 300px;
    padding: 10px 20px;
    margin: 30px auto;
    display: block;
}

.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background: white;
    text-align: center;
}

.counter-container {
    display: flex;
    flex-wrap: wrap; /* Allows counters to move to the next line on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensures it fits within the parent container */
    overflow: hidden; /* Prevents content from going off-screen */
}

.counter-box {
    flex: 1 1 200px; /* Allows counters to shrink or grow */
    max-width: 200px; /* Prevents counters from being too wide */
    text-align: center;
    padding: 15px;
    border: 2px solid #008000; /* Green border */
    border-radius: 10px;
    background: #fff; /* White background */
}

.counter-box i {
    font-size: 30px;
    margin-top: 12px;
    color: #008000; /* Green icon */
}

.about-text {
    max-width: 500px;
    margin-left: 20px;
    font-family: "Poppins", sans-serif; /* Custom Font */
    font-size: 18px;
    color: darkgreen;
}

.about-text h3 {
    font-size: 26px;
    color: darkgreen;
}



/* Styling the About Image */
.about-image {
    flex: 1;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Make the image responsive */
.about-image img {
    width: 100%;
    height: auto;
    max-width: 500px; /* You can adjust the max-width as needed */
}



.abt-text {
  font-size: 40px;
  color: darkgreen;
}





.about-image h2{
  font-size: 40px;
  color: darkgreen;
}

.about-text p {
    font-size: 20px;
    margin-top: 11px;
    color: black;
}

/* Animation */
.about-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

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

/* Responsive */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        text-align: center;
    }

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

    .about-text {
        margin-left: 0;
        margin-top: 20px;
    }
}





.read-more {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 15px;
    text-decoration: none;
    background: #006400; /* Dark Green */
    color: white;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid #004d00; /* Slightly darker green border */
    transition: 0.3s ease-in-out;
}

.read-more i {
    margin-left: 8px; /* Space between text and icon */
}

.read-more:hover {
    background: #004d00; /* Darker green on hover */
    color: white;
    transform: scale(1.05);
}



.counter-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.counter-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 150px;
    border: 3px solid darkgreen;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.counter-box i {
    font-size: 40px;
    color: greenyellow;
}

.counter-box span {
    font-size: 25px;
    font-weight: bold;
    margin-top: 5px;
}



#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #008000; /* Green */
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out;
}

#backToTop:hover {
    background-color: #006400; /* Darker Green */
}





.services h3{
    text-align: center;
    padding: 10px 10px;
    background: #fff;
}

.section-title {
    font-size: 40px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    padding: 10px 20px;
    color: darkgreen;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}

.service-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-box img {
    width: 100%;
    border-radius: 8px;
}

.service-box h3 {
    font-size: 20px;
    margin: 15px 0;
}

.service-box p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    color: white; /* Orange */
    transition: 0.3s ease;
}

.read-more a {
  color: white;
}

.read-more i {
    margin-left: 5px;
    color: white;
}

.read-more:hover i {
  color: greenyellow;
}

.read-more:hover {
    color: greenyellow;
}



.service-box img {
    transition: transform 0.1s ease-in-out; /* Smooth transition */
}

.service-box img:hover {
    transform: scale(1.04); /* Zoom in effect */
}



footer {
    background: darkgreen;
    color: white;
    padding: 40px 0;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

.footer-column {
    width: 22%;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 25px;
    margin-bottom: 10px;
}

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

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-column ul li a:hover {
    color: greenyellow;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icons img {
    width: 25px;
    height: 25px;
}

.newsletter form {
    display: flex;
    gap: 5px;
}

.newsletter input {
    padding: 8px;
    width: 70%;
    border: none;
    border-radius: 3px;
}

.newsletter button {
    background: greenyellow;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 3px;
}

.newsletter:hover button {
  color: black;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #444;
}

.social-icons {
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: greenyellow;
    font-size: 24px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: white;
}





/* Styling for the separator */
.nav-links .separator {
    text-align: center;
    color: darkgreen; /* Brand color */
    font-size: 15px;
    margin: 0px 10px;
}

/* Styling for the Book Appointment button */
.nav-links .appointment-btn {
    text-decoration: none;
    background-color: darkgreen; /* Button background color */
    color: white; /* Text color */
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    width: 80%; /* Adjust the width of the button */
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}



.nav-links .appointment-btn:hover {
    background-color: greenyellow; /* Hover effect */
    color: darkgreen;
}

/* Optional: Ensure the button is centered and has space */
.nav-links li {
    list-style: none;
    margin: 20px 0;
    position: relative;
}

.nav-links .appointment-btn {
    margin-top: 20px;
}


#backToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: darkgreen;
    color: white;
    border: none;
    border-radius: 3%;
    padding: 15px;
    font-size: 40px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
}

#backToTopBtn:hover {
    background-color: greenyellow;
    color: black;
}


#preloader {
  position: fixed;
  inset: 0;
  background-color: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease;
}

.circle-loader {
  display: flex;
  gap: 10px;
}

.circle {
  width: 50px;
  height: 50px;
  background-color: darkgreen;
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out;
}

.one { background-color: darkgreen; animation-delay: -0.3s; }
.two { background-color: greenyellow; animation-delay: -0.2s; }
.three { background-color: darkgreen; animation-delay: -0.1s; }
.four { background-color: greenyellow; animation-delay: 0s; }

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}





#afterMessage {
  transition: opacity 1s ease;
}