body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  margin: 0;
  padding-top: 90px;
  /* 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: 50%;
  /* 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;
}

.service-content {
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto 50px auto; /* Centers horizontally and adds bottom margin */
  text-align: center;
  color: #444;
  justify-content: center;
}

.service-heading {
  color: #000000;
  font-size: 28px;
  text-align: center;
  /* ✅ Centers the heading text */
  margin-bottom: 40px;
  margin-top: 60px;
}

.service-text h3 {
  font-size: 20px;
  font: bold;
  text-align: center;
  color: #000000;
}

.service-text {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  margin-top: 40px;

  color: #777;
  font-family: Arial, sans-serif;
}

.carousel {
  position: relative;
  width: 500px;
  height: 300px;
  overflow: hidden;
  border-radius: 15px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  /* Center vertically */
  background: rgba(255, 255, 255, 0.1);
  /* Light background for glass effect */
  backdrop-filter: blur(10px);
  /* Glass blur */
  -webkit-backdrop-filter: blur(10px);
  /* Safari support */
  border: 2px solid #007bff;
  /* Blue border */
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
  /* Blue glow shadow */
}

.carousel img {
  width: 500px;
  /* Fixed width */
  height: 300px;
  /* Scales height */
  object-fit: cover;
  opacity: 0;
  position: absolute;
  transition: opacity 0.8s ease-in-out;
  border-radius: 10px;
  /* Optional: smooth image corners */
  border: 2px solid #007bff;
  /* Blue border around image */
}

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

.apply-btn {
  display: block;
  /* Makes centering via margin work */
  background-color: #007bff;
  color: white;
  margin: 4% auto 0 auto;
  /* Pushes down and centers */
  width: 320px;
  font-weight: bold;
  text-align: center;
  padding: 16px 36px;
  border: 6px solid #fff;
  border-radius: 15px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(153, 153, 168, 0.941);
  transition: 0.3s ease;
}

.apply-btn:hover {
  background-color: #fff;
  color: #007bff;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: none !important;
  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;
}

/* Title styling */
.popup-title {
  text-align: center;
  font-size: 25px;
  font-family: cursive;
  color: #007bff;
  padding: 20px 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 the select dropdown to match input fields */
.popup-right select {
  padding: 10px;
  margin-bottom: 15px;
  width: 96%;
  border: 2px solid #007bff;
  border-radius: 8px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(3px);
  color: #333;
}

/* Style the placeholder/default option */
.popup-right select option {
  background: white;
  color: #333;
  padding: 10px;
}

.popup-right select option:first-child {
  color: #999;
}

/* Hover state */
.popup-right select:hover {
  border-color: #0056b3;
}

/* Focus state */
.popup-right select: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) {
  .popup-right select {
    width: 90%;
    padding: 12px;
    font-size: 15px;
    background-position: right 12px center;
  }
}

@media (max-width: 480px) {
  .popup-right select {
    padding: 8px;
    width: 90%;
    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;
}

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

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
/* 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;
}
footer {
  background-color: #000;
  padding: 10px;
  margin: 0;
  text-align: center;
  margin-top: 50px;
  color: white;
}

footer a {
  color: white;
  text-decoration: none;
}
/* 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;
}
.certificate-link {
  color: #007bff;
  font-size: 18px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  text-align: center;
  justify-content: center;
}
.certificate-text {
  text-align: center;
}
.certificate-link:hover,
.certificate-link:hover i {
  text-decoration: underline;
}
/* Mobile view */
@media (max-width: 768px) {
  .certificate-text {
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
  }

  .certificate-link {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    text-align: center;
  }
}
@keyframes moveUpDown {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}
/* 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 a.active {
    color: #000;
  }
  .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;
  }

  /* 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;
  }

  /* Mobile-first approach */
  .service-content {
    text-align: center;
    padding: 0 20px; /* Equal left/right spacing */
    font-size: 14px;
    margin-left: 0%;

    max-width: 100%;
    box-sizing: border-box; /* Ensures padding is included in width */
  }

  .service-heading {
    padding: 5px 20px; /* Equal left/right padding */
    font-size: 16px;
    text-align: center;
    margin: 30px auto 20px; /* Center with auto margins */
    max-width: 100%;
    box-sizing: border-box;
  }

  .service-text h3 {
    font-size: 15px;
    font-weight: bold; /* Use 'font-weight' instead of 'font' */
    text-align: center;
    color: #000000;
    padding: 0 20px; /* Equal left/right spacing */
    margin: 0 auto;
    box-sizing: border-box;
  }

  .service-text {
    padding: 10px 20px; /* Equal left/right spacing */
    margin: 4px auto 0;
    text-align: center;
    font-size: 14px;
    color: #777;
    font-family: Arial, sans-serif;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.5; /* Better readability on mobile */
  }
  .carousel {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 200px;
    margin: 0 auto; /* Center horizontally */
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */

    /* Glassmorphism styles */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 15px;
    border: 2px solid #007bff;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);

    padding: 0 16px; /* Optional: inner padding */
  }

  .apply-btn {
    display: block;
    /* Makes centering via margin work */
    background-color: #007bff;
    color: white;
    margin: 4% auto 0 auto;
    /* Pushes down and centers */
    width: 300px;
    font-weight: bold;
    text-align: center;
    padding: 8px 16px;
    border: 6px solid #fff;
    border-radius: 15px;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(153, 153, 168, 0.941);
    transition: 0.3s ease;
  }

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

  /* Popup Content */
  .popup-content {
    width: 98%;
    max-width: 1000px;
    min-width: 280px; /* Prevent form from becoming too narrow */
    height: 98%;
    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-body {
    flex-direction: column;
  }

  .popup-left,
  .popup-right {
    width: 80%;

    font-size: 15px;
    padding: 2px 4px;
  }

  /* Show image first */
  .popup-left {
    order: 1;
    margin-left: 30px;
  }

  .popup-right {
    order: 2;
    margin-left: 102px;
  }

  .popup-left img {
    width: 70%;
    height: 150px;
    margin-top: 0%;
    margin-bottom: 10px;
  }

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

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

    font-size: 14px;
  }
  .popup-right select {
    padding: 10px;

    width: 90%;
  }
  .popup-right button {
    width: 50%;
    max-width: 150px;
    margin-left: 60px;

    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .service-heading {
    font-size: 20px;
    /* Smaller font size for headings */
  }

  .service-text h3 {
    font-size: 18px;
    /* Smaller font size for service text */
  }

  .popup-title {
    font-size: 19px;
    /* Smaller font size for popup title */
    margin-top: 0%;
  }

  .popup-right button {
    width: 100%;
    /* Full width for buttons in popup */
  }
}

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

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

  .site-name .bowl {
    font-size: 21px;
  }
  #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);
  }
}
/* 768px Responsive Styles - Tablet Portrait */
@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;
  }
  .apply-btn {
    width: 200px;
  }

  /* Popup Content */
  .popup-content {
    width: 98%;
    max-width: 1000px;
    min-width: 280px; /* Prevent form from becoming too narrow */
    max-height: 90vh;
    height: 98%;
    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-body {
    flex-direction: column;
  }

  .popup-left,
  .popup-right {
    width: 80%;
    margin: 0 auto; /* Center the form */
    font-size: 15px;
    padding: 2px 4px;
  }

  /* Show image first */
  .popup-left {
    order: 1;
    margin-left: 30px;
  }

  .popup-right {
    order: 2;
    margin: 0 auto; /* Center the form */
  }

  .popup-left img {
    width: 100%;
    height: 130px;
    margin-top: 0%;
    margin-bottom: 15px;
  }

  .popup-title {
    font-size: 16px;
    margin-top: -3%;
  }

  .popup-right input,
  .popup-right textarea {
    width: 90%;
    font-size: 14px;
  }
  .popup-right select {
    padding: 10px;

    width: 95%;
  }
  .popup-right button {
    width: 50%;
    max-width: 150px;
    margin-left: 0px;

    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%;
  }
}
/* 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 */
  }
}
