@font-face {
  font-family: "MyFont";
  src: url("../fonts/tahoma.woff") format("woff");
}

body {
  font-family: "MyFont";
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* Page Container */
.page-container {
  flex: 1;
}

/* Header Section */
.header-section {
  background: linear-gradient(
      0deg,
      rgba(11, 28, 37, 0.6) 0%,
      rgba(11, 28, 37, 0.6) 100%
    ),
    url("../images/bg-image.jpg") lightgray 0px -52.345px / 100% 179.132% no-repeat;
  height: 50vh;
  color: white;
  position: relative;
}

.header-section .logo {
  width: 174px;
  height: 118px;
}

.header-section h1 {
  display: flex;
  justify-content: center;
  color: #fff;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.29);
  font-size: 70px;
  font-weight: 700;
}

/* For medium and large devices */
@media (min-width: 768px) {
  .justify-content-left {
    justify-content: flex-start;
  }

  .justify-content-end {
    justify-content: flex-end;
  }

  .dnmc-heading {
    font-size: 40px; /* Default size for md/lg */
  }
}

/* For small devices */
@media (max-width: 767px) {
  .justify-content-center-sm {
    justify-content: center !important;
  }

  .header-section h1 {
    font-size: 30px; /* Smaller font size for sm/xs */
  }
}

.nav-link {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.nav-link:hover {
  text-decoration: none;
  color: #fff;
}

/* Footer Section */
.footer-section {
  background-color: #f8f9fa;
  padding: 20px 0;
  margin-top: 50px;
  background: #0b1c25;
}

.footer-section p {
  color: #bebebe;
  text-align: center;
  font-feature-settings: "liga" off, "clig" off;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 16px */
  letter-spacing: 0.16px;
}

/* 3D Button Animation */
.animated-button1 {
  background: linear-gradient(-30deg, #3d0b0b 50%, #2b0808 50%);
  padding: 20px 40px;
  margin: 12px;
  display: inline-block;
  -webkit-transform: translate(0%, 0%);
  transform: translate(0%, 0%);
  overflow: hidden;
  color: #f7d4d4;
  font-size: 20px;
  letter-spacing: 2.5px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  -webkit-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease,
    text-decoration 0.3s ease;
}

.animated-button1:hover {
  transform: translateY(-5px); /* Button 3D hover effect */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  color: #fff; /* Change text color to blue */
  text-decoration: none; /* Underline text */
}

.animated-button1::before {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: #ad8585;
  opacity: 0;
  -webkit-transition: 0.2s opacity ease-in-out;
  transition: 0.2s opacity ease-in-out;
}

.animated-button1:hover::before {
  opacity: 0.2;
}

.animated-button1 span {
  position: absolute;
}

.animated-button1 span:nth-child(1) {
  top: 0px;
  left: 0px;
  width: 100%;
  height: 2px;
  background: linear-gradient(to left, rgba(43, 8, 8, 0), #851851);
  -webkit-animation: 2s animateTop linear infinite;
  animation: 2s animateTop linear infinite;
}

@keyframes animateTop {
  0% {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
  100% {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
}

.animated-button1 span:nth-child(2) {
  top: 0px;
  right: 0px;
  height: 100%;
  width: 2px;
  background: linear-gradient(to top, rgba(43, 8, 8, 0), #851851);
  -webkit-animation: 2s animateRight linear -1s infinite;
  animation: 2s animateRight linear -1s infinite;
}

@keyframes animateRight {
  0% {
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
  }
  100% {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }
}

.animated-button1 span:nth-child(3) {
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, rgba(43, 8, 8, 0), #851851);
  -webkit-animation: 2s animateBottom linear infinite;
  animation: 2s animateBottom linear infinite;
}

@keyframes animateBottom {
  0% {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
  100% {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
}

.animated-button1 span:nth-child(4) {
  top: 0px;
  left: 0px;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, rgba(43, 8, 8, 0), #851851);
  -webkit-animation: 2s animateLeft linear -1s infinite;
  animation: 2s animateLeft linear -1s infinite;
}

@keyframes animateLeft {
  0% {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }
  100% {
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
  }
}

/* Section background */
.cards-section {
  background: #851851;
  width: 100%;
  border-top: 1px solid #511133;
  border-bottom: 1px solid #511133;
  background-image: url("../images/waternark.png");
  background-size: cover;
  padding: 20px 0;
}

/* Card style */
.blockServ {
  padding: 20px;
}

.holdServ {
  position: relative;
  background-image: url("../images/m5.jpg");
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.holdServ::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

/* Hover effect for zoom and shadow */
.holdServ:hover {
  transform: scale(1.05); /* Slight zoom */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Soft shadow */
}

.holdImgServ img {
  width: 50px; /* Adjust icon size */
  height: 50px;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  filter: invert(25%) sepia(89%) saturate(2025%) hue-rotate(300deg)
    brightness(65%) contrast(120%);
}

.holdServ:hover h2 {
  transform: translateY(-60px);
  opacity: 1;
}

.overlayImg {
  position: relative;
  z-index: 2;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.overlayImg a:hover {
  color: #ffdd57;
}

.overlayImg h2 {
  margin-top: 20px;
  font-size: 18px;
  color: #851851;
  font-weight: 900;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}
/* Hover effect to create overlap animation */
.holdServ:hover .holdImgServ img {
  transform: translateY(60px); /* Move icon downward */
  opacity: 1; /* Keep the icon fully visible */
  filter: invert(25%) sepia(89%) saturate(2025%) hue-rotate(300deg)
    brightness(50%) contrast(140%);
}

.overlayImg a {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.overlayImg a:hover {
  color: #ffdd57; /* Optional hover effect for link */
}

/* Specific background images for each card */
.card1 .holdServ {
  background-image: url("../images//m5.jpg");
}

.card2 .holdServ {
  background-image: url("../images/maps.jpg");
}

.card3 .holdServ {
  background-image: url("../images/bg-ai.jpg");
}

.card4 .holdServ {
  background-image: url("../images/bg-flood.jpg");
}
