/* Footer Variables */
:root {
  --footer-bg: #0a0a0a;
  --footer-text: #a0a0a0;
  --footer-heading: #ffffff;
  --footer-accent: #3b82f6; /* Blue accent */
  --footer-accent-hover: #2563eb;
  --footer-border: #222222;
}

.modern-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 80px 0 0;
  font-family: "Inter", sans-serif;
  border-top: 1px solid var(--footer-border);
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Section Grid */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--footer-border);
}

/* Brand Column */
.footer-logo {
  color: var(--footer-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.footer-logo span {
  color: var(--footer-accent);
}

.footer-desc {
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 15px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--footer-heading);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--footer-accent);
  transform: translateY(-3px);
}

/* Columns Headings */
.footer-col h4 {
  color: var(--footer-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
}

/* Links List */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 15px;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--footer-accent);
  transform: translateX(5px);
}

/* Newsletter */
.newsletter-col p {
  margin-bottom: 20px;
  font-size: 14px;
}

.input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 5px;
  border: 1px solid var(--footer-border);
  transition: border-color 0.3s ease;
}

.input-group:focus-within {
  border-color: var(--footer-accent);
}

.input-group input {
  background: transparent;
  border: none;
  color: var(--footer-heading);
  padding: 10px 15px;
  width: 100%;
  outline: none;
  font-size: 14px;
}

.input-group button {
  background: var(--footer-accent);
  color: white;
  border: none;
  width: 40px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.input-group button:hover {
  background: var(--footer-accent-hover);
}

/* Bottom Section */
.footer-bottom {
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
  background: var(--footer-border);
  color: var(--footer-heading);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--footer-accent);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .brand-col {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .brand-col {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
  }
}
