/**
 * SatvikSetu - Modern Footer Styling
 * Enhanced footer design with wave animation, better layout, and visual elements
 */

/* Footer General Styling */
.site-footer {
  background-color: #253340;
  color: #f5f5f5;
  position: relative;
  margin-top: 50px;
}

/* Footer Wave */
.footer-wave {
  position: absolute;
  top: -99px;
  left: 0;
  width: 100%;
  line-height: 0;
}

.footer-wave svg {
  width: 100%;
  height: 100px;
}

/* Footer Newsletter Section */
.footer-newsletter {
  background: linear-gradient(135deg, rgba(255, 127, 80, 0.1), rgba(75, 96, 67, 0.15));
  padding: 50px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.newsletter-content {
  flex: 0 0 50%;
  max-width: 50%;
}

.newsletter-content h3 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.8rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
}

.newsletter-content h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.newsletter-form {
  flex: 0 0 45%;
  max-width: 45%;
}

.newsletter-form .form-group {
  position: relative;
}

.newsletter-form input[type="email"] {
  width: 100%;
  height: 55px;
  border-radius: 50px;
  border: none;
  padding: 0 150px 0 25px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input[type="email"]:focus {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-form button {
  position: absolute;
  top: 5px;
  right: 5px;
  height: 45px;
  border-radius: 50px;
  padding: 0 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

/* Footer Main Section */
.footer-main {
  padding: 70px 0 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-gap: 40px;
}

/* Footer Info */
.footer-info {
  margin-right: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 60px;
  height: auto;
  margin-right: 15px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.logo-text span {
  color: var(--primary-color);
}

.tagline {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 500;
}

.tagline i {
  color: var(--primary-color);
  margin-right: 10px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

/* Footer Links */
.footer-links h4,
.footer-contact h4 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-links h4:after,
.footer-contact h4:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

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

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

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-links ul li a i {
  margin-right: 10px;
  font-size: 0.9rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

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

/* Footer Contact */
.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact p i {
  font-size: 1.2rem;
  margin-right: 15px;
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

/* Social Links */
.social-links {
  display: flex;
  margin-top: 25px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-5px);
}

/* Footer Bottom */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 8px;
  transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--primary-color);
}

.footer-bottom-links .divider {
  color: rgba(255, 255, 255, 0.3);
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-info {
    grid-column: span 2;
    margin-bottom: 30px;
  }
  
  .newsletter-content,
  .newsletter-form {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .newsletter-content {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-info {
    grid-column: span 1;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
  }
  
  .footer-bottom-links {
    margin-top: 15px;
  }
  
  .footer-wave {
    top: -60px;
    height: 60px;
  }
  
  .footer-wave svg {
    height: 60px;
  }
}

/* Animating the Newsletter Form Button */
.newsletter-form button {
  position: relative;
  overflow: hidden;
}

.newsletter-form button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  z-index: -1;
}

.newsletter-form button:hover:before {
  width: 100%;
}
