/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #050816; /* Pure black background */
  color: #ffffff;
  line-height: 1.8;
}

/* Navigation Bar */
header {
  display: flex;
  justify-content: space-between; /* Space between logo and navigation */
  align-items: center; /* Align items vertically centered */
  padding: 1rem 2rem;
  background-color: #050816; /* Deep navy background */
  /* border-bottom: 1px solid #00F0FF; Neon blue border for distinction */
  position: fixed; /* Fixed position */
  top: 0; /* Stick to the top */
  left: 0;
  width: 100%; /* Make sure the navbar spans the entire width */
  z-index: 1000; /* Ensure navbar is always above content */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Optional shadow for depth */
}

.navbar {
  display: flex;
  justify-content: center; /* Center the content horizontally */
  align-items: center; /* Center the items vertically */
  width: 100%;
}

.logo {
  font-size: 2rem;
  color: #FFD700; /* Dark Yellow for logo */
  font-weight: bold;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.logo:hover {
  color: #FF4500; /* Glowing orange effect on hover */
  text-shadow: 0 0 10px #FF4500, 0 0 20px #FF4500, 0 0 30px #FF4500;
}

nav {
  flex-grow: 1; /* Allow the nav section to grow and take up available space */
}

.nav-links {
  display: flex;
  justify-content: center; /* Center navigation items */
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-links li {
  position: relative; /* For dropdown positioning */
}

.nav-links li a {
  text-decoration: none;
  color: #00F0FF; /* Light cyan for nav links */
  font-size: 1.2rem;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links li a:hover {
  color: #00B5E2; /* Neon blue on hover */
  transform: scale(1.1); /* Slightly increase link size on hover */
}

/* Dropdown Menu */
.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #050816;
  padding: 1rem;
  border: 1px solid #00F0FF;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  white-space: nowrap; /* Prevent dropdown items from wrapping */
  z-index: 1000; /* Ensure dropdown appears above other content */
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Dropdown Links */
.dropdown-menu a {
  display: block; /* Make sure items appear vertically */
  text-decoration: none;
  color: #00F0FF;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.dropdown-menu a:hover {
  color: #00B5E2;
  transform: scale(1.1);
}


/* Sections */
section {
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 80px; /* Prevent content from being hidden under fixed navbar */
}

h1, h2, h3, h4 {
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1.2rem;
  color: #d1d1d1;
}

/* Button Glow Effect */
.btn.glow {
  position: relative;
  overflow: hidden;
  background-color: #00f0ff;
  color: #000000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn.glow:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.5) 0%, rgba(0, 0, 0, 0) 60%);
  transform: scale(0);
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.btn.glow:active:after {
  transform: scale(2.5);
}



/*------------------------------ Footer ----------------------------*/
.humcare-footer {
  background-color: #100D25; /* Deep navy background matching the navbar */
  color: #A0A0A0; /* Pale blue text color */
  text-align: center;
  padding: 2rem;
  margin-top: 20%;
  border-top: 1px solid transparent; /* Set transparent border */
  border-image: linear-gradient(to right, #2176c0, #681840) 1; /* Horizontal gradient border */
}

.humcare-footer a {
  color: #00F0FF; /* Light cyan for links */
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
  margin: 0 0.3rem;
}

.humcare-footer a:hover {
  color: #FF4500; /* Neon blue for links on hover */
  text-shadow: 0 0 10px #FF4500, 0 0 20px #FF4500, 0 0 30px #FF4500;
}

.humcare-footer p {
  font-size: 1rem;
  margin: 0.5rem 0;
}

/*--------------------For h1 (Contact Us)-------------------*/

.home-content h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;

  color: #FFD700; /* Dark Yellow color */
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
 
}
/*---------------------------------------*/



/* Space Adjustment Between Navbar and Content */
.home {
  margin-top: 100px; /* Adds space between the navbar and "HumCare" */
}

/* H2 with Typewriter Effect */
.home-content h2 {
  font-size: 2rem;
  color: #ffffff;
  overflow: hidden; /* Ensures hidden text does not show */
  border-right: 2px solid #FFD700; /* Adds a blinking cursor effect */
  white-space: nowrap; /* Prevents wrapping */
  width: 0; /* Start with no width for typewriter effect */
  text-align: center; /* Centers the text */
  margin: 0 auto; /* Centers the container */
  animation: typing-effect 7s steps(40, end) infinite, blink-cursor 0.5s step-end infinite; /* Typing and cursor blinking animations */
}

@keyframes typing-effect {
  0% {
    width: 0; /* Start with no width */
  }
  50% {
    width: 31ch; /* Match the length of the text */
  }
  100% {
    width: 0; /* Reset for infinite loop */
  }
}

@keyframes blink-cursor {
  50% {
    border-color: transparent; /* Cursor blinks */
  }
}

/*---------------------- Carousel Section -------------------------*/
.carousel-section {
  text-align: center;
  /*padding: 50px 20px;*/
  padding-bottom: 0%;
  padding-top: 0%;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #00f0ff;
}

.carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0 auto;
  width: 80%;
}

.carousel {
  display: flex;
  gap: 20px;
}

.card {
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #3a81c0, #a8577f) 1;
  border-radius: 0px;
  width: 300px; /* Wider cards */
  height: 300px; /* Square cards */
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  background-color: #1f1f1f;
  text-align: center;
  transition: transform 0.3s ease;
}

.card img {
  width: 100%; /* Take full width of the card */
  height: 10%; /* Take full height of the card */
  object-fit: cover; /* Ensure the image scales proportionally */
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00f0ff, 0 0 30px #00f0ff; /* Glow effect */
  border-color: #00f0ff; /* Ensure the border also glows */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}


/*-------------------------------- Card Container ------------------------------*/
.card-container {
  background-color: #151030;
  color: #ffffff;
  width: 1000px;
  padding: 20px;
  margin: 20px auto;
  align-content: center;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #3a81c0, #a8577f) 1;
}

.card-container:hover {
  transform: scale(1.05); /* Slight scale effect */
  box-shadow: 0px 0px 20px rgba(255, 215, 0, 0.7); /* Glowing effect */
}

/* Card Title */
.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD700;
}

/* Card Text */
.card-text {
  font-size: 1rem;
  margin-bottom: 10px;
  text-align: center;
  color: #ffffff;
}

.card-text a {
  color: #FFD700;
  font-size: 1rem;
}


.card-text a:hover {
  transform: scale(1.05);
  text-shadow: 0 0 15px #00f0ff, 0 0 30px #00f0ff; /* Glow effect */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

/*--------------------------- Heading Secondary (e.g., 2025, 2025, 2023 etc) ------------------------------*/

.headingSecondary {
  font-family: Verdana, sans-serif; /* Use a clean sans-serif font */
  font-size: 3rem; /* Adjust the size */
  font-weight: bold; /* Bold style */
  color: #ffffff; /* White text color */
  text-align: center; /* Center align the text */
  margin: 20px 0; /* Add some spacing */
  letter-spacing: 2px; /* Slight letter spacing */
}


 
/* AOS Animation (on Scroll) */
[data-aos="fade-up"] {
  opacity: 1; /* Visible after animation */
  transform: translateY(0); /* Reset translate */
  transition: transform 0.5s ease, opacity 0.5s ease;
}




  /* Buttons */
  .btn.glow {
    padding: 0.6rem 1rem;
    font-size: 0.9rem; /* Reduced button size */
  }

  /*----------------------For Google Map Location*/
  .map-container {
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 10px;
  border-radius: 12px;
}

.headingSecondary {
   color: #FFD700;
}

 
/*------------------------ Mobile Optimization ------------------------*/
@media (max-width: 768px) {
  /* Navigation Bar */
  header {
    position: relative;
    flex-direction: column !important; /* Stack vertically */
    text-align: center !important;
    padding: 0.5rem 1rem !important;
  }

  .logo {
    font-size: 1.8rem; /* Smaller logo size for mobile */
    margin-bottom: 10px;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
  }

  nav {
    width: 100%;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem; /* Smaller gap between nav items */
    margin-top: 0.5rem;
    padding: 0;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    font-size: 1.1rem; /* Slightly smaller font */
    padding: 0.5rem 0;
    width: 100%;
  }

  /* Dropdown adjustments */
  .dropdown .dropdown-menu {
    position: static;
    width: 100%;
    border-top: 1px solid #00F0FF;
    background-color: #050816;
    box-shadow: none;
    padding: 0;
  }

  .dropdown-menu a {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    display: block;
    text-align: center;
  }

  /* Section spacing */
  .home {
    margin-top: 120px; /* Make sure navbar does not overlap content */
    padding: 2rem 1rem;
    background-color: #050816; /* Pure black background */
  }

  .home-content h1 {
    font-size: 2.5rem; /* Adjust heading size for mobile */
    color: #FFD700;
    margin-bottom: 1rem;
  }

  /* Card container */
  .card-container {
    width: 90%;
    margin: 20px auto;
    padding: 15px;
  }

  /* Map container */
  .map-container {
    width: 100%;
    margin: 30px auto;
    padding: 0;
  }

  /* Footer */
  .humcare-footer {
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
  }
}

