/* footer.css */
:root {
  --primary-green: #1a7f5c;
  --primary-aqua: #2dd4bf;
  --dark-green: #0f5132;
  --light-green: #d1fae5;
  --gray-bg: #f9fafb;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

.footer-section {
  background: linear-gradient(
    135deg,
    var(--dark-green) 0%,
    var(--primary-green) 100%
  );
  color: var(--white);
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Top Section Styles */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.footer-logo-container {
  flex: 1;
  min-width: 300px;
  margin-right: 2rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo {
  width: 80px;
  height: 80px;
  /* margin-right: 1rem; */
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-top {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-aqua);
  text-shadow: 0 0 10px rgba(45, 212, 191, 0.3);
}

.logo-bottom {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--light-green);
  margin-top: 0.25rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 600px;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-primary,
.btn-secondary,
.btn-subscribe,
.btn-quote {
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-aqua);
  color: var(--dark-green);
}

.btn-primary:hover {
  background-color: #22b8a7;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(45, 212, 191, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--primary-aqua);
}

.btn-secondary:hover {
  background-color: rgba(45, 212, 191, 0.1);
  transform: translateY(-3px);
}

/* Middle Section Styles */
.footer-middle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-heading {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-aqua);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-aqua);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  padding-left: 0;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-aqua);
  padding-left: 10px;
}

.footer-links a::before {
  content: "▸";
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: var(--transition);
  color: var(--primary-aqua);
}

.footer-links a:hover::before {
  left: 0;
  opacity: 1;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-info i {
  color: var(--primary-aqua);
  margin-right: 10px;
  width: 20px;
}

.newsletter h4 {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-aqua);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.2);
}

.btn-subscribe {
  background-color: var(--primary-aqua);
  color: var(--dark-green);
  font-weight: 600;
  padding: 0.8rem 1.5rem;
}

.btn-subscribe:hover {
  background-color: #22b8a7;
  transform: translateY(-2px);
}

/* Bottom Section Styles */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.social-icon .icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--primary-aqua) 100%
  );
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.social-icon i {
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.social-icon:hover .icon-bg {
  opacity: 1;
  transform: scale(1.1);
}

.social-icon:hover i {
  transform: rotate(360deg) scale(1.1);
}

/* Facebook Icon Specific */
.social-icon:nth-child(1):hover i {
  color: #1877f2;
}

/* Twitter Icon Specific */
.social-icon:nth-child(2):hover i {
  color: #1da1f2;
}

/* LinkedIn Icon Specific */
.social-icon:nth-child(3):hover i {
  color: #0077b5;
}

/* Instagram Icon Specific */
.social-icon:nth-child(4):hover i {
  color: #e4405f;
}

/* GitHub Icon Specific */
.social-icon:nth-child(5):hover i {
  color: #333;
}

/* YouTube Icon Specific */
.social-icon:nth-child(6):hover i {
  color: #ff0000;
}

.copyright {
  flex: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.copyright a {
  color: var(--primary-aqua);
  text-decoration: none;
  transition: var(--transition);
}

.copyright a:hover {
  text-decoration: underline;
}

.btn-quote {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--primary-aqua);
  padding: 0.8rem 2rem;
}

.btn-quote:hover {
  background-color: var(--primary-aqua);
  color: var(--dark-green);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(45, 212, 191, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
  .footer-top {
    flex-direction: column;
  }

  .footer-logo-container {
    margin-right: 0;
    margin-bottom: 2rem;
  }

  .footer-cta {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .footer-middle {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .copyright {
    order: 3;
    width: 100%;
    margin-top: 1rem;
  }

  .social-icons {
    order: 1;
    margin-bottom: 1rem;
  }

  .footer-quote {
    order: 2;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    min-width: 100%;
  }
}

@media (max-width: 576px) {
  .footer-section {
    padding: 2rem 1rem;
  }

  .footer-logo-container {
    min-width: 100%;
  }

  .logo-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logo {
    margin-bottom: 1rem;
  }

  .footer-heading {
    font-size: 1.2rem;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-cta {
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
