:root {
  --primary-blue: #0056b3;
  --primary-blue-dark: #004494;
  --accent-red: #dc3545;
  --success-green: #28a745;
  --bg-light: #f4f7f9;
  --white: #ffffff;
  --text-main: #333333;
  --text-muted: #e0e0e0; /* Adjusted for dark background readability */
  --border-color: #dddddd;
  --footer-bg: #002d5d; /* Darker variant of primary blue for professional depth */
  --footer-text: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--bg-light);
}

/* Footer Styles */
footer {
  background-color: var(--footer-bg);
  color: var(--white);
  padding: 40px 20px;
  border-top: 4px solid var(--primary-blue);
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr; /* Mobile First: 1 column */
  gap: 40px;
}

/* 1. Company Section */
.company-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  height: 90px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  /* Ensure placeholder is visible on dark bg */
}

.company-desc {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 400px;
}

/* 2. Quick Links Section */
.footer-heading {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background-color: var(--primary-blue);
}

.links-list {
  list-style: none;
}

.links-list li {
  margin-bottom: 12px;
}

.links-list a {
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.links-list a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--white);
  transition: width 0.3s ease;
}

.links-list a:hover {
  color: var(--white);
}

.links-list a:hover::after {
  width: 100%;
}

/* 3. Social Media Section */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--white);
  text-decoration: none;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-btn:hover {
  background-color: var(--accent-red);
  transform: translateY(-3px);
}

/* 4. Newsletter Section */
.newsletter-section p {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
  border-color: var(--primary-blue);
}

.newsletter-form button {
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  background-color: var(--primary-blue);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--primary-blue-dark);
}

#success-message {
  margin-top: 10px;
  color: var(--success-green);
  font-size: 0.85rem;
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 5. Copyright Line */
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: var(--white);
}

/* Tablet Layout */
@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 60px 20px;
  }
}

/* Desktop Layout */
@media (min-width: 1024px) {
  footer {
    padding: 80px 40px;
  }
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
  .newsletter-form {
    flex-direction: row;
  }
  .newsletter-form input {
    flex: 1;
  }
}
