* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

/* Header */
.navbar {
  height: 75px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: linear-gradient(90deg, #67b4e1, #2a8826, #dd4723, #264688);
  background-size: 300% 100%;
  animation: gradientAnimation 15s linear infinite;
}

@keyframes gradientAnimation {
  0% { background-position: 0 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* Logo Size */
.logo {
  width: 100px;
  height: 50px;
}

/* Navbar Links */
.navbar ul {
  display: flex;
  align-items: center;
  list-style: none;
  /* gap: 55px; */
}

/* Navbar Font */
.navbar ul li {
  font-family: Inter;
}

/* Header */
.navbar ul li a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  padding: 10px;
  transition: color 0.3s ease-in-out;
}

.navbar ul li a:hover {
  color: rgb(204, 200, 200);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px;
  transition: 0.3s;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
  .navbar {
      height: 60px;
      padding: 0 15px;
  }

  .logo {
      width: 80px;
      height: 40px;
  }

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  justify-content: center;  /* Centers bars */
  align-items: center;
  gap: -1000px;  /* Space between bars */
}

/* Styling each bar */
.menu-toggle div {
  width: 30px;  /* Adjust width of bars */
  height: 4px;  /* Adjust thickness of bars */
  background-color: white; /* Color of bars */
  border-radius: 5px; /* Round the edges */
  margin: 4px 0; /* Spacing between bars */
  transition: all 0.3s ease-in-out;
}

.menu-toggle.active div:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active div:nth-child(2) {
  opacity: 0; /* Hide middle bar */
}

.menu-toggle.active div:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile View */
@media (max-width: 768px) {
  .menu-toggle {
      display: flex; /* Show menu toggle on mobile */
  }

  .navbar ul {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px;
      right: 0;
      width: 100%;
      background: rgba(0, 0, 0, 0.8);
      text-align: center;
      padding: 10px 0;
  }

  .navbar ul.active {
      display: flex;
  }

  .navbar ul li {
      margin: 15px 0;
  }
}

  .navbar ul {
    width: 50vw;  /* Set it to half of the viewport width */
    max-width: 300px; /* Optional: Prevent it from getting too wide */
    height: 100vh; /* Full height */
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    text-align: center;
    z-index: 9999; /* Ensure it's on top */
    background: linear-gradient(90deg, #67b4e1, #2a8826, #dd4723, #264688);
    background-size: 400% 100%;
    animation: gradientAnimation 15s linear infinite;
  }

  .navbar ul.active {
      display: flex;
  }

  .navbar ul li {
      margin: 15px 0;
  }

  .navbar ul li a {
      font-size: 14px;
  }
}

/* Responsive About Section */
@media (max-width: 768px) {
  .about-container {
      flex-direction: column;
  }
}

/* Apply gap only on larger screens */
@media (min-width: 769px) {
  .navbar ul {
    gap: 55px;
  }
}


.modal {
  display: none;
  /* Hide modal initially */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Semi-transparent background */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.calendly-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  /* Adjust width based on viewport */
  max-width: 1000px;
  /* Prevent excessive scaling */
  height: 80vh;
  /* Adjust height dynamically */
  max-height: 685px;
  /* Keep max height */
  background: none !important;
  padding: 0;
  margin: 0;
  z-index: 9999;
}


.calendly-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
  display: block;
  z-index: 9999;
}


/*------------------------------------------------*/
@media (max-width: 768px) {
  .calendly-container {
    width: 95vw;
    /* Increase width usage */
    height: 70vh;
    /* Reduce height for mobile */
  }
}

@media (max-width: 480px) {
  .calendly-container {
    width: 100vw;
    /* Use full width */
    height: 60vh;
    /* Further reduce height */
  }
}

/*new*/


/* Container with flex layout */
.main {
  display: flex;
  flex:1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  /* space between text and image */
  padding: 50px 70px;
  gap: 30px;
  /* space between text and image */
  background: linear-gradient(to right,
      rgb(239, 241, 248),
      rgba(3, 68, 134, 0.656));

}

.description{
  max-width: 700px;
}

/* Heading style */
.description h1 {
  color: #003366;
  font-size: 70px;
  margin-bottom: 20px;
  font-family: Arial, Helvetica, sans-serif;
}


/* Paragraph style */
.description p {
  color: #333;
  /* forest green */
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Button styling */
.bookappointment {
  background-color: #b22222;
  /* red */
  color: white;
  border: none;
  padding: 15px 30px;
  font-weight: bold;
  font-size: 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.bookappointment:hover {
  background-color: #228b22;
  /* green on hover */
}

.images img.sabas {
  width: 600x;
  height: 550px;
  border-bottom-left-radius: 280px;
  /* adjust radius as you like */
  border-bottom-right-radius: 280px;
  /* adjust radius as you like */
}

.contact {
  background-color: #385e83;
  color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  /* Stack heading and items vertically */
  align-items: center;
  gap: 30px;
  /* Space between heading and contacts */
}

.footer-heading {
  font-size: 35px;
  text-align: center;
}

.contact-items {
  display: flex;
  flex-direction: row;
  /* Contact items side by side */
  gap: 50px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

/* Responsive layout for mobile screens */
@media (max-width: 768px) {
  .main {
    flex-direction: column;         /* stack text and image vertically */
    align-items: center;            /* center items */
    justify-content: center;
    padding: 30px 20px;             /* reduce padding */
    gap: 20px;                      /* reduce gap */
    text-align: center;             /* center text */
  }

  .description h1 {
    font-size: 40px;                /* smaller heading */
  }

  .description p {
    font-size: 14px;                /* smaller paragraph */
  }

  .bookappointment {                   /* button stretches on mobile */
    padding: 12px 20px;
  }

  .images img.sabas {
    width: 100%;                    /* image fills container */
    height: auto;                   /* maintain aspect ratio */
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
  }

  .contact {
    padding: 20px;
    gap: 20px;
  }

  .footer-heading {
    font-size: 28px;
  }

  .contact-items {
    flex-direction: column;         /* stack contacts vertically */
    gap: 20px;
    text-align: center;
  }

  .contact-item {
    justify-content: center;
  }
}

/* Responsive layout for tablet screens */
@media (min-width: 769px) and (max-width: 1024px) {
  .main {
    flex-direction: column;        /* still stack vertically for better readability */
    align-items: center;
    justify-content: center;
    padding: 40px 40px;            /* slightly more padding than mobile */
    gap: 25px;
    text-align: center;
  }

  .description h1 {
    font-size: 50px;               /* larger than mobile, smaller than desktop */
  }

  .description p {
    font-size: 15px;
  }

  .bookappointment {
    padding: 14px 25px;
    font-size: 16px;
  }

  .images img.sabas {
    width: 90%;                    /* narrower than full width for balance */
    height: auto;
    border-bottom-left-radius: 150px;
    border-bottom-right-radius: 150px;
  }

  .contact {
    padding: 25px;
    gap: 25px;
  }

  .footer-heading {
    font-size: 32px;
  }

  .contact-items {
    flex-direction: row;           /* use row on tablet if space allows */
    flex-wrap: wrap;               /* wrap if needed */
    gap: 30px;
    justify-content: center;
    text-align: center;
  }

  .contact-item {
    justify-content: center;
  }
}