html {
  scroll-behavior: smooth;
  font-family: "Montserrat", sans-serif;
  font-size: 20px; /* Adjust the base font size */
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 1.0rem; /* Slightly larger text for readability */
  /* background: linear-gradient(to bottom, #858585, #525252); */
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #333333;
}

/* Fade effect */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
}

.fade-out {
  opacity: 1;
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

h1 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
}
ul {
  font-size: 0.95rem;
  line-height: 1.6;
}
p {
  font-size: 1rem;
  line-height: 1.5;
}
.btn {
  background-color: #bc4749;
  border: transparent
}
.btn:hover {
  background-color: #a7c957;
}
.service-card,
.process-card,
.why-card,
.pricing-card {
  transition: ease-in-out 0.3s;
}
.service-card:hover,
.process-card:hover,
.why-card:hover,
.pricing-card:hover {
  transform: scale(1.05);
}

main h1 {
  text-wrap: balance;
}
main {
  margin-bottom: 50px;
}
section[id] {
  scroll-margin-top: 80px; /* Match navbar height */
}
.hero-bg {
  background-image: url('/images/contact-4.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}
.contact-bg {
  background-image: url('/images/contact-8.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  min-height: 100vh;
}
.hero-bg .overlay,
.contact-bg .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Adjust if needed */
  z-index: 0;
}
#infoText {
  background-color: rgba(255, 255, 255, 0.15); /* light transparent background */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* for Safari */
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.hero-bg .container,
.hero-bg .row,
.hero-bg .col-md-4,
.hero-bg .col-md-8 {
  position: relative;
  z-index: 1;
}

#hero {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)),
              url('/images_herome.jpg') no-repeat center center fixed;
  background-size: cover;
  max-width: 310px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}
#home {
  background-color: #fefefe;
  padding-top: 50px;
}
#service {
  background-color: #F5F7FA;
  color: black;
  padding-top: 50px;
  padding: 50px;
}
.service-card {
  background-color: #f2e8cf;
  color:#2c2c2c;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}
#process {
  background-color: 	#fefefe;
}
.process-card {
  background-color: #a1c181 !important;;
  border-radius: 10px;
}
#why-me {
  background-color: #F5F7FA;
}
.why-card {
  background-color: #a7c957;
}
#pricing {
  background-color: #F5F7FA;
}

#project {
  background-color: #f4edea;
  overflow: auto;
}
.project-box {
  border-radius: 0px;
  padding-top: 30px;
  padding-bottom: 15px;
  margin: 0 auto;
  margin-top: 50px;
  margin-bottom: 20px;
  width: 18rem;
  transition: transform 0.3s ease;
}
.project-box .card {
  border: 2px solid #2c2c2c;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.project-box:hover {
  transform: scale(1.05);
}
#contact {
  background-color: #F5F7FA;
  /* border: 2px solid rgb(107, 107, 107);
  border-radius: 0px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); */
}
.contact-box {
  /* border: 2px solid #2c2c2c; */
  border-radius: 0px;
  /* background: rgba(255, 255, 255, 0.2); */
  padding: 20px; /* Space inside the box */
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 20px;
  max-width: 700px; /* Keep it a nice width */
  width: 100%;
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); */
}
.contact-box input {
  border: 2px solid #2c2c2c;
}
.contact-box textarea {
  border: 2px solid #2c2c2c;
}


#notificationText {
  font-weight: bold;
  position: relative;
  z-index: 10;
}
.card-link {
  text-decoration: none;
}

.success {
  color: forestgreen;
}
.error {
  color: crimson;
}
.show {
  display: block;
}
.hidden {
  display: none;
}
@media (max-width: 768px) {
  body p, ul {
    font-size: 0.8rem;
  }
  body h1 {
    font-size: 1.4rem;
  }
  #navbar {
    position: relative;
    top: 5px; /* Add space for mobile */
    padding: 10px 10px; /* Optional: Add padding to make the navbar look better */
    margin: 10px 10px;
    width: calc(100% - 20px); /* Ensures it fits within screen */
  }
  section {
    padding-top: 10px;
  }
  #about {
    padding: 10px;
  }
  .about-box {
    margin-top: 2px;
    padding: 15px;
  }
  .project-box {
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }
  .pricing .p-4 {
    padding: 1.25rem;
  }
}