.footer {
  background-image: linear-gradient(
    to left,
    var(--color-Primary1),
    var(--color-Primary2)
  );
  overflow: hidden;
  padding: 50px 0 25px;
  z-index: 1;
  color: var(--color-white);
  position: relative;
}

.footer::after {
  background-repeat: repeat;
  background-position: center;
  background-image: url(../images/bg-2.png);
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  opacity: 0.5;
  z-index: -1;
}

.footer::before {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url(../images/bg-f.png);
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  top: 70px;
  right: -50px;
  opacity: 0.6;
  z-index: -1;
  animation: rotate360 4s linear infinite;
}

.footer .main-container::after {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url(../images/bg-f.png);
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  top: 70px;
  left: -50px;
  opacity: 0.6;
  z-index: -1;
  animation: rotate360 4s linear infinite;
}

.footer .main-container::before {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url(../images/bg-f.png);
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  bottom: 70px;
  left: 20%;
  opacity: 0.6;
  z-index: -1;
  animation: rotate3602 4s linear infinite;
}

@keyframes rotate360 {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotate3602 {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

.element-footer ul {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 35px;
  justify-content: center;
}

.element-footer ul li a {
  display: block;
  color: var(--color-white);
  position: relative;
  padding: 10px 0;
}
.element-footer ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  transform: scaleX(0);
  transition: transform 0.3s linear;
}
.element-footer ul li a:hover::after {
  transform: scaleX(1);
}

.form-newsletter {
  position: relative;
  width: 45%;
  margin: 25px auto;
  text-align: center;
  position: relative;
}

.form-newsletter button {
  position: absolute;
  right: 10px;
  text-align: center;
  padding: 10px 25px;
  color: var(--color-white);
  font-family: "semiBold";

  border: none;
  border-radius: 15px;
  background-image: linear-gradient(to right, var(--color-Primary1), #00aeef);
  top: 10px;
  height: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  cursor: pointer;
}

.form-newsletter button img {
  margin-right: 5px;
  vertical-align: middle;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Beautiful hover effect for newsletter button */
.form-newsletter button:hover {
  transform: translateY(-1px) scale(1.03);
  background-image: linear-gradient(135deg, #00aeef, var(--color-Primary1));
}

.form-newsletter button:hover img {
  transform: translateX(5px) rotate(15deg) scale(1.2);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

/* Flying paper airplane animation */
@keyframes flyAway {
  0% {
    transform: translateX(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(20px) rotate(30deg) scale(1.3);
    opacity: 0.8;
  }
  100% {
    transform: translateX(40px) rotate(45deg) scale(0.8);
    opacity: 0;
  }
}

.form-newsletter button:active img {
  animation: flyAway 0.6s ease-out forwards;
}

/* Glowing effect on hover */
.form-newsletter button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.form-newsletter button:hover::before {
  left: 100%;
}

.end-page > a img {
  width: 120px;
}

.end-page > a {
  display: flex;
  align-items: center;

  gap: 5px;
}

.end-page > a span {
  color: var(--color-white);
  font-size: 25px;
}

.footer .main-container > h2 {
  font-size: 46px;
  font-family: "font_bold";
  margin: 70px 0 40px;
  text-align: center;
}

.form-control {
  height: 70px;
  border-radius: 20px;
  background-color: #e5eef6b9 !important;
}

.form-control::placeholder {
  color: var(--color-white);
}

.end-page p {
  color: #ffffffbb;
  font-size: 17px;
}

.end-page a {
  display: flex;
  gap: 10px;
  color: var(--color-white);
  align-items: center;
}

.end-page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  margin-top: 75px;
}

.media-footer ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.media-footer ul li a {
  display: flex;
  align-items: center;
  height: 45px;
  padding: 7px 20px;
  border-radius: 20px;
  border: 1px solid #ffffffbb;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.media-footer ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.media-footer ul li a:hover::before {
  left: 100%;
}

/* LinkedIn */
.media-footer ul li:nth-child(1) a:hover {
  background: #0077b5;
  border-color: #0077b5;
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.3);
}

/* Instagram */
.media-footer ul li:nth-child(2) a:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.3);
}

/* Facebook */
.media-footer ul li:nth-child(3) a:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

/* Animation for all social links */
.media-footer ul li a:hover {
  animation: socialPulse 0.6s ease-in-out;
}

@keyframes socialPulse {
  0% {
    transform: translateY(-2px) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.05);
  }
  100% {
    transform: translateY(-2px) scale(1);
  }
}

/* Additional hover effects */
.media-footer ul li a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .media-footer ul {
    justify-content: center;
    gap: 8px;
  }
  
  .media-footer ul li a {
    height: 40px;
    padding: 5px 15px;
    font-size: 14px;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  70% {
    transform: scale(1.5);
  }

  100% {
    transform: scale(1);
  }
}

.remove-mune {
  position: absolute;
  top: 30px;
  right: 30px;
}

.remove-mune span {
  width: 40px;
  height: 40px;
  display: block;
  transition: all 0.2s linear;
  position: relative;
  cursor: pointer;
  transform: rotate(0deg);

  transition-delay: 0.8s;
}

.remove-mune span::after {
  content: "";
  height: 2px;
  background-color: #54595f;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  transition: all 0.6s linear;
}

.remove-mune span::before {
  content: "";
  height: 2px;
  background-color: #54595f;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  transition: all 0.2s linear;

  transition-delay: 0.6s;
}

.menu_responsive.active .remove-mune span::before {
  transform: rotate(90deg) translateY(-50%);
}

.menu_responsive.active .remove-mune span {
  transform: rotate(45deg);
}

.element_menu_responsive ul li {
  transform: translateY(100%);
  transition: all 0.2s linear;
  transition-delay: 0.4s;
  display: block;
  opacity: 0;
}

.menu_responsive {
  transition-delay: 1s;
}

.menu_responsive.active {
  transition-delay: 0.3s;
}

.menu_responsive.active .element_menu_responsive ul li {
  transform: translateY(0%);
}

.menu_responsive.active .element_menu_responsive ul li:nth-of-type(1) {
  transition-delay: 0.4s;
  opacity: 1;
}

.menu_responsive.active .element_menu_responsive ul li:nth-of-type(2) {
  transition-delay: 0.6s;
  opacity: 1;
}

.menu_responsive.active .element_menu_responsive ul li:nth-of-type(3) {
  transition-delay: 0.8s;
  opacity: 1;
}

.menu_responsive.active .element_menu_responsive ul li:nth-of-type(4) {
  transition-delay: 1s;
  opacity: 1;
}

.menu_responsive.active .element_menu_responsive ul li:nth-of-type(5) {
  transition-delay: 1.2s;
  opacity: 1;
}

.menu_responsive.active .element_menu_responsive ul li:nth-of-type(6) {
  transition-delay: 1.4s;
  opacity: 1;
}

.menu_responsive.active .element_menu_responsive ul li:nth-of-type(7) {
  transition-delay: 1.6s;
  opacity: 1;
}

.menu_responsive.active .element_menu_responsive ul li:nth-of-type(8) {
  transition-delay: 1.8s;
  opacity: 1;
}

.menu_responsive.active .element_menu_responsive ul li:nth-of-type(9) {
  transition-delay: 2s;
  opacity: 1;
}

/* Social media icons */
.media-footer ul li a i {
  margin-right: 8px;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.media-footer ul li a:hover i {
  transform: scale(1.2) rotate(5deg);
}

/* LinkedIn icon specific */
.media-footer ul li:nth-child(1) a:hover i {
  transform: scale(1.2) rotate(-5deg);
}

/* Instagram icon specific */
.media-footer ul li:nth-child(2) a:hover i {
  transform: scale(1.2) rotate(10deg);
}

/* Facebook icon specific */
.media-footer ul li:nth-child(3) a:hover i {
  transform: scale(1.2) rotate(-10deg);
}