/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

footer {
  padding: 30px 0;
  background-color: #00080a;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px), 
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(45deg, #00f7ff 2px, transparent 2px); 
  background-size: 50px 50px, 50px 50px, 100px 100px, 80px 80px; 
  z-index: 0;
  animation: glitch-effect 1.5s infinite ease-in-out; 
  box-shadow: 0 0 15px 10px rgba(0, 247, 255, 0.8);
}

footer > * {
  position: relative;
  z-index: 1;
}

/* Glitch effect animation */
@keyframes glitch-effect {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
}

/* Blue dot decorative element */
.footer-dot {
  background-color: #00f7ff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 0 15px 5px rgba(0, 247, 255, 0.8);
}

/* Accessibility improvements */
footer {
  font-family: Arial, sans-serif; /* Use a legible font */
  font-size: 16px;
  line-height: 1.5;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-container h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: center;
}

.footer-container h2 span {
  font-size: 2rem;
  color: #8af5ff;
  display: inline-block;
  transition: color 0.3s, text-shadow 0.3s;
  font-family: "Style Script", cursive;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 20px;
}

.footer-container h2 span:hover {
  color: #00eaff;
}

.footer-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.footer-column {
  flex: 1;
  min-width: 100%;
  text-align: center;
}

.footer-column h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #b0b0b0;
  margin-bottom: 10px;
}

.footer-column ul li:hover {
  color: #ffffff;
  cursor: pointer;
}

.footer-column form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column form label {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.footer-column form input[type="email"] {
  padding: 10px;
  width: 100%;
  max-width: 250px;
  margin-bottom: 10px;
  border: 1px solid #555;
  background-color: #222;
  color: #fff;
  border-radius: 5px;
  outline: none;
  transition: all 0.3s;
}

.footer-column form input[type="email"]:focus {
  border-color: #fff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.footer-column form .terms {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #b0b0b0;
}

.footer-column form .terms input {
  margin-right: 5px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.social-icons {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.social-icons a {
  margin: 0 10px;
  opacity: 0.7;
  width: 30px; 
  height: 30px; 
  display: inline-block;
  text-align: center;
}

.social-icons a img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
}

.social-icons a:hover {
  opacity: 1;
  transition: opacity 0.3s;
}

.partners {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.partners img {
  opacity: 0.7;
  height: 30px;
}

.partners img:hover {
  opacity: 1;
  transition: opacity 0.3s;
}

/* Media Queries for Mobile */
@media (min-width: 600px) {
  .footer-sections {
      flex-direction: row;
  }

  .footer-column {
      min-width: 200px;
      text-align: left;
  }

  .footer-container h2 {
      font-size: 2rem;
  }

  .footer-container h2 span {
      font-size: 3rem;
  }

  .footer-bottom {
      flex-direction: row;
      justify-content: space-between;
  }

  .social-icons {
      margin-bottom: 0;
  }
}