/* Modern Footer Design */
.modern-footer {
  background: linear-gradient(135deg, #fada2c 70%, #fffbe6 100%);
  color: #222;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -4px 32px 0 rgba(250, 208, 44, 0.18),
    0 -1px 8px 0 rgba(0, 0, 0, 0.07);
  z-index: 2;
}

/* Top section of the footer with all content */
.footer-top {
  padding: 90px 0 70px;
  position: relative;
}

.footer-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(250, 208, 44, 0.18),
    transparent 70%
  );
  pointer-events: none;
}

/* Grid layout for footer content */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
}

/* Brand section with logo, slogan, and contact info */
.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo-container {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo-img,
.footer-img-logo {
  max-width: 200px;
  min-width: 120px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0; /* Remove circle, keep original shape */
  background: transparent !important; /* Remove white background */
  box-shadow: none;
  object-fit: contain;
  filter: none !important; /* Preserve original logo colors */
  padding: 0;
  transition: max-width 0.3s, min-width 0.3s, filter 0.3s;
}

.footer-slogan {
  font-size: 20px;
  margin-bottom: 32px;
  color: #222;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(250, 208, 44, 0.13);
}

.footer-contact-info {
  margin-top: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 15px;
  color: #222;
}

.footer-contact-item i {
  margin-right: 12px;
  color: #b48a00;
  font-size: 18px;
  width: 22px;
  text-align: center;
}

/* Links columns styling */
.footer-links-column h3 {
  font-size: 19px;
  margin-bottom: 25px;
  color: #b48a00;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.footer-links-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 15px;
}

.footer-links-list a {
  color: #222;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: block;
  position: relative;
  padding-left: 15px;
}

.footer-links-list a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-color);
  transform: translateY(-50%) scale(0.6);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.footer-links-list a:hover,
.footer-links-list a:focus {
  color: #fff;
  background: linear-gradient(90deg, #fada2c 60%, #b48a00 100%);
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(250, 208, 44, 0.13);
  outline: none;
}

.footer-links-list a:focus {
  border: 2px solid #fada2c;
}

.footer-links-list a:hover::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

/* Newsletter section */
.footer-newsletter h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #b48a00;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.footer-newsletter h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-newsletter p {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #222;
}

.footer-subscribe-form {
  margin-bottom: 25px;
}

.footer-subscribe-input {
  position: relative;
  display: flex;
}

.footer-subscribe-input input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 1.5px solid #fada2c;
  border-radius: 30px;
  background-color: #fffbe6;
  color: #222;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  box-shadow: 0 1px 8px 0 rgba(250, 208, 44, 0.07);
}

.footer-subscribe-input input::placeholder {
  color: #b48a00;
  opacity: 0.8;
  font-weight: 400;
}

.footer-subscribe-input input:focus {
  outline: 2px solid #b48a00;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(250, 208, 44, 0.18);
}

.btn-subscribe {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-subscribe:hover {
  background-color: #001a4b;
  transform: translateY(-50%) scale(1.05);
}

/* Social icons in footer */
.footer-social-icons {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.social-icon-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #fffbe6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b48a00;
  font-size: 20px;
  box-shadow: 0 2px 8px 0 rgba(250, 208, 44, 0.13);
  transition: all 0.3s cubic-bezier(0.4, 1.7, 0.7, 1.1);
  outline: 2px solid transparent;
}

.social-icon-link:focus,
.social-icon-link:focus-visible {
  outline: 2px solid #b48a00;
  outline-offset: 2px;
  background: #fffde7;
}

.social-icon-link:hover {
  background-color: #fada2c;
  color: #222;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 4px 16px 0 rgba(250, 208, 44, 0.18);
}

/* Divider */
.footer-divider {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    #fada2c 40%,
    #b48a00 60%,
    transparent
  );
  margin: 0 0 28px 0;
  border-radius: 2px;
  box-shadow: 0 2px 8px 0 rgba(250, 208, 44, 0.13);
  position: relative;
  overflow: hidden;
}

.footer-divider::after {
  content: '';
  position: absolute;
  left: -40%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #fffbe6 0%,
    #fada2c 100%,
    transparent 100%
  );
  opacity: 0.7;
  animation: shimmer 2.5s infinite linear;
}

@keyframes shimmer {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}

/* Bottom section with copyright and designer credits */
.footer-bottom-modern {
  background: #181828; /* Dark, cool background */
  color: #fff;
  padding: 24px 0 16px 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.footer-bottom-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-bottom-content p,
.footer-bottom-content a {
  color: #fff !important;
  opacity: 0.95;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.footer-bottom-content a.designer-link {
  color: #fad02c !important;
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.2s;
}

.footer-bottom-content a.designer-link:hover {
  color: #fff200 !important;
}

@media (max-width: 600px) {
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .footer-grid {
    gap: 32px;
  }
  .footer-top {
    padding: 65px 0 45px;
  }
  .footer-bottom-modern {
    padding: 22px 0;
  }
}

@media (max-width: 600px) {
  .footer-top {
    padding: 40px 0 20px;
  }
  .footer-grid {
    gap: 18px;
  }
  .footer-logo-img,
  .footer-img-logo {
    max-width: 140px;
    min-width: 80px;
    padding: 8px;
  }
}

/* Light mode styles */
body.light-mode .modern-footer {
  background-color: #f4f4f8;
  color: #333;
}

body.light-mode .footer-links-list a,
body.light-mode .footer-slogan,
body.light-mode .footer-contact-item,
body.light-mode .footer-newsletter p {
  color: #333;
}

body.light-mode .footer-bottom-modern {
  background-color: #e8e8e8;
}

body.light-mode .footer-subscribe-input input {
  background-color: rgba(0, 0, 0, 0.05);
  color: #333;
}

body.light-mode .social-icon-link {
  background-color: rgba(0, 0, 0, 0.05);
  color: #333;
}

body.light-mode .footer-divider {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.1) 50%,
    transparent
  );
}

body.light-mode .copyright,
body.light-mode .footer-designer {
  opacity: 0.7;
}
