/* Animation classes */
.anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.anim-fade {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* End Animation */

.iframe-container {
  position: relative;
  width: 100%;
  height: 1500px;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}
.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#about-us, #services, #requirements, #contact {
  scroll-margin-top: 50px;
}

/* Overlay styles */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 88888;
}

/* Side navigation styles */
.side-nav {
  position: fixed;
  left: 0;
  transform: translateX(-100%);
  top: 0;
  height: 100%;
  background: #fff;
  z-index: 99999;
  transition: 0.3s;
}

/* Active class for sliding in */
.side-nav.active {
  transform: translateX(0);
}

/* Close button styles */
.close-btn {
  font-size: 30px;
  color: #1c1c1c;
  background: none;
  border: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  text-align: right;
  pointer-events: none;
}

#home {
  background-color: #fff;
  background-image: radial-gradient(rgba(69, 71, 100, .5) 0.5px, #fff 0.5px);
  background-size: 10px 10px;
  background-attachment: fixed;
}

#cta {
  background-color: #B12224;
  opacity: 1;
  background-image:  linear-gradient(#b43131 1px, transparent 1px), linear-gradient(to right, #b43131 1px, #B12224 1px);
  background-size: 20px 20px;
  background-attachment: fixed;
}

#contact {
  position: relative;
  background-image: url("../imgs/grid.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}

#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); /* dark overlay */
  backdrop-filter: blur(2px); /* blur effect */
  -webkit-backdrop-filter: blur(2px); /* Safari support */
  background-image: url("https://www.transparenttextures.com/patterns/noise.png"); /* subtle grain */
  background-size: 200px 200px;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

#contact > * {
  position: relative;
  z-index: 1;
}
