body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  margin: 0;
  padding-top: 95px;
  /* 65px header height + 30px padding */
}

header {
  background-color: #000;
  color: white;
  padding: 15px 0;
  position: fixed;
  /* 👈 Make it fixed */
  top: 0;
  /* 👈 Stick to top */
  width: 100%;
  /* 👈 Full width */
  z-index: 1000;
  /* 👈 Stay above other elements */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 65px;
}

/* Basic styles */
.menu-icon {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-right: 25%;
  margin-top: 16px;
}

.nav-right {
  margin-right: 20%;
  /* This shifts the entire nav bar left */
}

.nav-links a.active {
  color: #036fe2;
  /* Highlight color */
  font-weight: bold;
  border-bottom: 2px solid #fff;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  margin-top: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  /* ❌ Remove this: margin-right: 20%; */
}

nav a:hover {
  color: #036fe2;
}

/* Base styles - remove conflicting margins */
.logo-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  /* Remove margin-left: 1%; from here */
}

.logo-left {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5%;
}

.logo-left img {
  width: 250px;
  height: 150px;
}

.site-name {
  font-family: "Roboto Mono", monospace;
  font-weight: bold;
}

.site-name .blink {
  font-size: 35px;
}

.site-name .bowl {
  font-size: 25px;
}

.services-section {
  text-align: center;
  padding: 50px 20px;
}

.services-section h2 {
  font-size: 32px;
  text-align: start;
  margin-left: 15%;
  margin-bottom: 10px;
  margin-top: 45px;
  color: red;
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: flyIn 0.5s forwards;
}

@keyframes flyIn {
  to {
    opacity: 5;
    transform: translateY(0);
  }
}
.services-section p {
  color: #0376f1;
  text-align: start;
  margin-left: 15%;
  margin-bottom: 40px;
}

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

.service-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: 0.3s;
  position: relative;
  padding-bottom: 20px;
  height: 450px;
}

.service-card:hover {
  background: #007bff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.carousel {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.carousel img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel img.active {
  opacity: 1;
  z-index: 1;
}

.icon-circle {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  background: #007bff;
  border: 6px solid #fff;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 2;
  transition: all 0.3s ease;
}

.service-card:hover .icon-circle {
  background: #fff;
  color: #007bff;
  border: 6px solid #007bff;
}

.service-content {
  margin-top: 65px;
  padding: 0 30px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.service-card p {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
  margin-left: 0%;
  transition: color 0.3s ease;
}

.service-card:hover p {
  color: #fff;
}

.service-card a {
  display: inline-block;
  background-color: #fff;
  color: #007bff;
  border: 1px solid #007bff;
  font-weight: bold;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 5px;
  margin-top: 5px;
  transition: background-color 0.3s ease;
}

.service-card a:hover {
  text-decoration: underline;
}

.select-circle {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 3px solid #007bff;
  background-color: white;
  z-index: 2;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  /* hidden by default */
}

.select-circle i {
  display: none;
}

.service-card.selected .select-circle {
  background-color: #fff;
  color: #007bff;
}

.service-card.selected .select-circle i {
  display: block;
}

#nextBtn {
  display: none;

  background-color: #007bff;
  color: white;
  margin: 4% auto 0 auto;
  /* Pushes down and centers */
  width: 200px;
  font-weight: bold;
  text-align: center;
  padding: 14px 28px;
  border: 6px solid #007bff;
  border-radius: 15px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}

#nextBtn:hover {
  background-color: #fff;
  color: #007bff;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-x: auto; /* Enable horizontal scrolling if needed */
  overflow-y: auto; /* Enable vertical scrolling if needed */
  padding: 20px;
  box-sizing: border-box;
}

/* Popup Content */
.popup-content {
  width: 90%;
  max-width: 1000px;
  min-width: 280px; /* Prevent form from becoming too narrow */
  max-height: 90vh;
  background: #fff;
  backdrop-filter: blur(15px);
  border: 2px solid #007bff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 123, 255, 0.3);
  animation: fadeInUp 0.5s ease;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Hide horizontal scroll inside popup */
  overflow-y: auto; /* Enable vertical scrolling inside popup */
  position: relative;
  margin: auto;
}
.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #007bff;
  cursor: pointer;
  z-index: 10000;
  /* Ensure it's on top */
}

/* Title styling */
.popup-title {
  text-align: center;
  font-size: 28px;
  font-family: cursive;
  color: #007bff;
  padding: 5px 0 0 0;
}

/* Horizontal split: image + form */
.popup-body {
  display: flex;
  flex-direction: row;
}

/* Left side image */
.popup-left {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-left img {
  width: 450px;
  height: 70%;
  object-fit: cover;
  display: block;
  justify-items: center;
  justify-content: center;
}

/* Right side form */
.popup-right {
  width: 50%;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-right input,
.popup-right textarea {
  padding: 10px;
  margin-bottom: 15px;
  width: 90%;
  border: 2px solid #007bff;
  border-radius: 8px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(3px);
}

/* Style for gender select dropdown */
#gender {
  width: 95%;
  height: 35px;
  padding: 10px ;
  margin-bottom: 15px;
  border: 2px solid #007bff;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.6);
  color: #333;
  cursor: pointer;
}

/* Style the placeholder/default option */
#gender option {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(3px);
  color: #333;
  padding: 10px;
}

#gender option:first-child {
  color: #999;
}

/* Hover state */
#gender:hover {
  border-color: #0056b3;
}

/* Focus state */
#gender:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* Responsive for 768px */
@media (max-width: 768px) {
  #gender {
    width: 80%;
    padding: 12px;
    font-size: 15px;
    background-position: right 12px center;
  }
}

@media (max-width: 480px) {
  #gender {
    width: 80%;
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 10px;
    background-position: right 8px center;
    background-size: 14px;
  }
}
.popup-right button {
  background-color: #007bff;
  color: white;
  margin-left: auto;
  width: 150px;
  font-weight: bold;
  padding: 10px 20px;
  border: 6px solid #007bff;
  border-radius: 15px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
}

.popup-right button:hover {
  background-color: #fff;
  color: #007bff;
}

/* Success Message Popup */
#successMessage .popup-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

/* Success Image */
#successMessage .popup-left {
  width: 100%;
  display: flex;
  justify-content: center;
}

#successMessage .popup-left img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Success Heading */
#successMessage .popup-title h2 {
  font-size: 23px;
  margin-top: 20px;
  color: #007bff;
  font-family: cursive;
}

/* Message Paragraph */
#successMessage .popup-right p {
  margin-top: 0%;
  font-size: 14px;
  color: #333;
}

/* Back Button */
#successMessage .popup-right button {
  margin-top: 10px;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  padding: 10px 15px;
  justify-items: center;
  margin-right: 0%;
  border: 2px solid #007bff;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#successMessage .popup-right button:hover {
  background-color: #fff;
  color: #007bff;
}
/* Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 120px;
  right: 30px;
  z-index: 999;
  background: linear-gradient(145deg, #007bff, #0056b3);
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 34px;
  font-weight: 900;
  line-height: 60px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(0, 123, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

#scrollTopBtn:hover {
  background: #fff;
  color: #007bff;
  border: 2px solid #007bff;
  transform: scale(1.1);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  animation: moveUpDown 1.2s ease-in-out infinite;
}

@keyframes moveUpDown {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}
@keyframes fadeInUp {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

footer {
  background-color: #000;
  padding: 10px;
  margin: 0;
  text-align: center;
  margin-top: 50px;
  color: white;
}

footer a {
  color: white;
  text-decoration: none;
}

/* Responsive for tablets and below */
@media (max-width: 992px) {
  .header-container {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }

  .logo-left {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .logo-link {
    margin-left: 0;
    margin-right: 0; /* Reset all margins */
    flex-shrink: 0; /* Prevent logo from shrinking */
  }

  .logo-left img {
    width: 200px; /* Fixed width */
    height: auto; /* Auto height to maintain aspect ratio */
    max-width: 100%; /* Prevent overflow */
  }

  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 79px;
    left: 41%;
    width: 60%;
    background-color: #000;
    border-radius: 0 0 20px 20px;
    padding: 5px 5px 25px 2px;
    /* Increased bottom padding */
    z-index: 1001;
    align-items: center;
    gap: 4px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    font-size: 14px;
    padding: 12px 20px;
    width: 80%;
    max-width: 110px;

    background-color: #036fe2;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
  }
  .nav-links a.active {
    color: #000;
  }
  /* Hover effect */
  .nav-links a:hover {
    background-color: white;
    color: #036fe2;
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }

  .nav-links.show {
    display: flex;
  }

  .site-name .blink {
    font-size: 24px;
  }

  .site-name .bowl {
    font-size: 21px;
  }

  footer {
    background-color: #000;
    padding: 5px;
    margin: 0;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: white;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
  }
  .services-section {
    text-align: center;
    padding: 30px 15px;
    margin-left: 55px;
  }

  .services-section h2 {
    font-size: 20px;
    text-align: start;
    margin-left: 25px;
    margin-bottom: 5px;
  }

  .services-section p {
    color: #0376f1;
    text-align: start;
    margin-bottom: 30px;
    margin-left: 25px;
  }

  .service-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    padding-bottom: 20px;
    height: 330px;
    width: 300px;
  }

  .carousel {
    position: relative;
    width: 100%;
    height: 165px;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .carousel img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.8s ease-in-out;
  }

  .icon-circle {
    position: absolute;
    top: 140px;
    left: 50%;
    font-size: 20px;
  }

  .service-content {
    margin-top: 50px;
    padding: 0 15px;
  }

  .service-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .service-card p {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
    margin-left: 0%;
    transition: color 0.3s ease;
  }

  .service-card a {
    display: inline-block;
    background-color: #fff;
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 8px;
    transition: background-color 0.3s ease;
  }

  #nextBtn {
    display: none;

    background-color: #007bff;
    color: white;
    margin: 4% auto 0 auto;
    /* Pushes down and centers */
    width: 150px;
    font-weight: bold;
    text-align: center;
    padding: 10px 20px;
    border: 6px solid #007bff;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 8px 0; /* reduce header padding */
  }

  .header-container {
    height: 60px; /* reduce header height */
    padding: 0 10px;
  }
  footer {
    padding: 12px; /* reduce footer padding */
    font-size: 12px;
    margin-top: 15px;
  }
  .nav-links {
    top: 60px;
  }
  .logo-left img {
    width: 180px; /* Smaller fixed width for mobile */
    height: auto;
  }

  .logo-link {
    margin-right: 0; /* Ensure no right margin */
    margin-left: -16px;
  }

  .site-name .blink {
    font-size: 24px;
  }

  .site-name .bowl {
    font-size: 20px;
  }

  /* Services Section */
  .services-section h2 {
    font-size: 24px;
  }

  .services-section p {
    font-size: 14px;
  }

  .services-grid {
    gap: 15px;
  }

  .service-card {
    height: 400px;
  }

  .carousel {
    height: 180px;
  }

  .carousel img {
    height: 180px;
  }

  .icon-circle {
    top: 155px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-width: 4px;
  }

  .service-content {
    margin-top: 48px;
    padding: 0 12px;
  }

  .service-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .service-card p {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .service-card a {
    padding: 6px 12px;
    font-size: 13px;
  }

  /* Popup */
  .popup-body {
    flex-direction: column;
  }

  .popup-left,
  .popup-right {
    width: 100%;
  }

  .popup-left {
    margin-bottom: 20px;
  }

  .popup-left img {
    max-width: 250px;
  }

  .popup-title {
    font-size: 24px;
  }

  .popup-right button {
    width: 100%;
  }

  /* Next Button */
  #nextBtn {
    width: 180px;
    padding: 12px 24px;
    font-size: 16px;
  }

  /* Scroll Button */
  #scrollTopBtn {
    width: 50px;
    height: 50px;
    font-size: 28px;
    bottom: 100px;
    right: 20px;
  }

  .popup-content {
    width: 95%;
    max-width: 100%;
    height: 98%;
    flex-direction: column;
    /* Stack image and form vertically */
  }

  .popup-title {
    font-size: 17px;
  }

  .popup-body {
    flex-direction: column;
    /* Stack on top of each other */
  }

  .popup-left,
  .popup-right {
    width: 100%;
    margin-left: 20px;
  }

  .popup-left img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    margin-top: 0%;
    margin-right: 33px;
  }

  .popup-right {
    padding: 15px;
    margin-top: 0%;
    align-items: center;
  }

  .popup-right input,
  .popup-right textarea {
    width: 75%;
  }

  .popup-close {
    top: 10px;
    right: 10px;
    font-size: 20px;
  }

  .popup-right button {
    width: 50%;
    max-width: 150px;
    margin-right: 10%;

    padding: 8px 16px;
  }
}

/* 🔽 Responsive for Mobile Devices */
@media screen and (max-width: 768px) {
  #successMessage .popup-content {
    max-width: 95%;
    height: auto;
    padding: 25px 18px;
    margin: 0;
  }
  #successMessage .popup-left img {
    max-width: 90%;
  }

  #successMessage .popup-title h2 {
    font-size: 20px;
  }

  #successMessage .popup-right p {
    font-size: 13px;
  }

  #successMessage .popup-right button {
    width: 100%;

    padding: 10px;
    font-size: 13px;
    margin-left: 0%;
  }
}

/* Responsive for phones and small devices */
@media (max-width: 600px) {
  .logo-left img {
    width: 180px;

    justify-items: flex-start;
  }

  .site-name .blink {
    font-size: 24px;
  }

  .site-name .bowl {
    font-size: 21px;
  }

  .welcome-section,
  .services-section {
    padding: 20px 15px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0 auto;
  }

  .service-card {
    width: 90%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
  }

  .service-card p {
    font-size: 14px;
  }

  .service-card h3 {
    font-size: 18px;
  }
  #scrollTopBtn {
    width: 45px;
    height: 45px;
    font-size: 24px;
    line-height: 45px;
    bottom: 85px;
    right: 10px;
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
  }
}
/* Medium Phone (480px and below) */
@media (max-width: 480px) {
  .logo-left {
    gap: 5px; /* Reduce gap on very small screens */
  }

  .logo-left img {
    width: 170px; /* Even smaller for very small screens */
  }
  .site-name .blink {
    font-size: 20px;
  }

  .site-name .bowl {
    font-size: 16px;
  }

  .menu-icon {
    font-size: 24px;
  }

  /* Services Section */
  .services-section {
    padding: 20px 10px;
  }

  .services-section h2 {
    font-size: 22px;
    margin-top: 20px;
    padding: 0 10px;
  }

  .services-section p {
    padding: 0 10px;
    font-size: 13px;
    margin-bottom: 25px;
  }

  .services-grid {
    padding: 0 10px;
    gap: 20px;
  }

  .service-card {
    min-height: 360px;
  }

  .carousel {
    height: 180px;
  }

  .carousel img {
    height: 180px;
  }

  .icon-circle {
    top: 155px;
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-width: 3px;
  }

  .service-content {
    margin-top: 48px;
    padding: 0 10px;
  }

  .service-card h3 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .service-card p {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .service-card a {
    padding: 5px 10px;
    font-size: 12px;
  }

  .select-circle {
    width: 30px;
    height: 30px;
    font-size: 14px;
    border-width: 2px;
  }

  /* Next Button */
  #nextBtn {
    width: 160px;
    padding: 10px 20px;
    font-size: 14px;
    margin: 30px auto 0;
  }

  /* Popup */
  .popup-overlay {
    padding: 10px;
  }

  .popup-content {
    width: 90%;
    height: 90%;

    align-items: center;
    margin-left: 15px;
  }

  .popup-title {
    font-size: 17px;
  }

  .popup-left img {
    max-width: 200px;
  }

  .popup-right input,
  .popup-right textarea {
    padding: 8px;
    font-size: 13px;
  }

  .popup-right button {
    padding: 10px 20px;
    font-size: 14px;
    min-width: 120px;
  }

  /* Success Popup */
  #successMessage .popup-left img {
    max-width: 150px;
  }

  #successMessage .popup-title h2 {
    font-size: 18px;
  }

  #successMessage .popup-right p {
    font-size: 13px;
  }

  /* Scroll Button */
  #scrollTopBtn {
    width: 40px;
    height: 40px;
    font-size: 22px;
    bottom: 80px;
    right: 15px;
  }

  /* Footer */
  footer {
    padding: 15px;
    font-size: 12px;
    margin-top: 30px;
  }
}
