/* Layout container */
.footer-container {
  position: relative;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
  color: white;
  z-index: 2;
}

/* Main section flexbox */
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer {
  position: relative;
  padding-top: 40px;
  padding-bottom: 20px;
  border-top: 3px solid #d4a574;
  overflow: hidden;
  background: linear-gradient(135deg, #1a5490 0%, #2d7ab8 100%);
  margin-top: 60px;
  box-shadow: 0 -4px 12px rgba(26, 84, 144, 0.15);
}

/* Brand section */
.brand {
  max-width: 350px;
}

.brand-icon {
  position: relative;
  font-size: 32px;
  color: white;
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.45s ease,
    opacity 0.3s ease;
}

.glow {
  animation: logo-glow 4s infinite alternate;
}

.brand-icon:hover {
  transform: scale(1.18) translateY(-4px);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.55));
  color: white;
  opacity: 0.95;
  cursor: pointer;
}

.brand-title a {
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  font-size: 22px;
  margin-left: 5px;
  background: linear-gradient(to right, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-title a:hover {
  background: linear-gradient(to right, #ffffff, #ffffff);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

/* Links grid */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.link-group h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #d4a574;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.link-group a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.2s, transform 0.2s;
  padding-left: 0;
}

.link-group a:hover {
  color: #d4a574;
  transform: translateX(5px);
}

.link-group a:hover {
  color: white;
  transform: translateX(4px);
}

/* Bottom section */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.legal-links a {
  margin-right: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: 0.2s;
}

.legal-links a:hover {
  color: white;
}

.social i {
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  margin-left: 12px;
  font-size: 20px;
  display: inline-flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.45s ease,
    color 0.25s ease;
}

/* Hover effects with brand colors */
.social i.bi-google:hover {
  color: #da4d40;
  transform: scale(1.5);
}

.social i.bi-twitter-x:hover {
  color: white;
  transform: scale(1.5);
}

.social i.bi-facebook:hover {
  color: #4267B2;
  transform: scale(1.5);
}

.social i.bi-telegram:hover {
  color: #0088cc;
  transform: scale(1.5);
}

.social i.bi-twitter:hover {
  color: #1DA1F2;
  transform: scale(1.5);
}

/* Copyright */
.copyright {
  margin-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* Animated circles */
.animated-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
}

.float-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* Animated circle colors */
.float-circle.blue {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.float-circle.purple {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
}

.float-circle.green {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 100%);
  width: 250px;
  height: 250px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.delay-2 {
  animation-delay: 1s;
}

.delay-4 {
  animation-delay: 2s;
}

/* Responsive Footer */
@media (min-width: 600px) {
  .footer-container {
    padding: 10px 20px;
  }
}

/* Mobile */
@media (max-width: 840px) {
  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-container {
    padding: 10px 10px;
  }

  .footer-links {
    gap: 20px;
  }

  .social {
    display: flex;
    margin-top: 3%;
    justify-content: center;
    gap: 15px;
  }

  .footer-bottom {
    display: flex;
    justify-content: center;
  }
}
