/* Animated background */
body {
  background: linear-gradient(#0f2027, #2c5364, #223d45, #0072ff);
  background-size: 400% 400%;
  animation: gradientBG 18s ease infinite;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Footer styles */
.footer-dark {
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 -8px 32px rgba(31, 38, 135, 0.17);
  backdrop-filter: blur(8px);
  border-top: 1.5px solid rgba(255, 255, 255, 0.08);
  color: #e0f7fa;
  padding: 60px 20px 30px;
}

.footer-dark .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-section {
  flex: 1 1 250px;
  min-width: 220px;
  padding: 1px;
  border-radius: 10px;
  background: transparent ;
  margin-bottom: 20px;
}

.footer-dark h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #00ffff;
  font-weight: 600;
  position: relative;
}

.footer-dark h3::after {
  content: '';
  width: 50px;
  height: 3px;
  background: #00ffff;
  position: absolute;
  bottom: -8px;
  left: 0;
}

.footer-dark p,
.footer-dark li,
.footer-dark ul li a {
  font-size: 16px;
  margin-bottom: 8px;
  color: #ffffff;
}

.footer-dark ul {
  list-style: none;
  padding: 0;
}

.footer-dark ul li a {
  text-decoration: none;
  color: #d3ebf5;
  transition: 0.3s ease;
  font-weight: 400;
}

.footer-dark ul li a:hover {
  color: #00ffff;
  padding-left: 5px;
}

.footer-container newsletter {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-dark .newsletter button {
  width: 80%;
  padding: 10px;
  border-radius: 4px;
  border: none;
  margin: 10px 0;
}

.footer-dark .newsletter input {
  background: #1a2a3a;
  color: #fff;
  width: 80%;
  padding: 10px;
  border-radius: 4px;
  border: none;
  margin: 10px 0;
}

.footer-dark .newsletter button {
  background: #00ffff;
  color: #000;
  font-weight: bold;
  transition: 0.3s ease;
}

.footer-dark .newsletter button:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.social-icons a {
  font-size: 18px;
  background: #1a2a3a;
  color: #fff;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  transition: 0.3s ease;
}

.social-icons a:hover {
  background: #00ffff;
  color: #000;
  transform: scale(1.1);
}

.footer-dark .copyright {
  text-align: end;
  font-size: 18px;
  margin-top: 30px;
  color: #000;
}

.footer-content a {
  color: #fff;
  font-weight: 600;
  font-size: 0.8em;
}

.footer-content a:hover {
  color: #00c6ff;
  transition: color 0.3s;
}

.footer-bottom {
  color: #00c6ff;
  text-align: center;
  padding-top: 12px;
  font-size: 1.1em;
  letter-spacing: 1px;
}

/* High-DPI screen optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .contact-form input,
  .contact-form textarea {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .contact-container,
  .contact-info {
    background: rgba(255, 255, 255, 0.92);
  }

  .contact-form input,
  .contact-form textarea {
    background: #f7fbff;
    color: #333;
  }
}

/* Responsive adjustments */

/* Tablet-specific adjustments (e.g., iPad Air 820px) */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-section {
    width: 100%;
    padding: 10px 0;
    margin: 0 auto;
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-dark h3 {
    font-size: 20px;
  }

  .footer-dark p,
  .footer-dark li,
  .footer-dark ul li a {
    font-size: 15px;
  }

  .footer-dark .newsletter {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-dark .newsletter input,
  .footer-dark .newsletter button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-dark .copyright {
    text-align: center;
    margin-top: 20px;
  }
}

@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    min-width: 100%;
    padding: 10px 0;
  }

  .footer-dark .copyright {
    text-align: center;
  }

  .footer-dark h3 {
    font-size: 16px;
  }

  .footer-dark p,
  .footer-dark li,
  .footer-dark ul li a {
    font-size: 14px;
  }
}

/* Extra small screen fix (phones) */
@media screen and (max-width: 480px) {
  .footer-dark {
    padding: 40px 20px 30px; /* Normal padding */
    margin-bottom: 30px; /* Gap after entire footer ends */
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    padding-left: 0 !important;
    margin: 0 auto;
    gap: 5px; /* Consistent small gap between all sections */
  }

  .footer-section {
    text-align: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0; /* Remove individual section margins */
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-dark .newsletter input,
  .footer-dark .newsletter button {
    font-size: 15px;
  }

  .footer-section ul {
    padding-left: 0;
  }

  .footer-section ul li {
    text-align: center;
    padding-left: 0;
    margin-left: 0;
  }

  .footer-dark p {
    text-align: center;
  }

  .footer-dark .copyright {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
  }
}