/* =============================================
   FOOTER CSS - MODERN & RESPONSIVE
   ============================================= */

:root {
  /* Colors */
  --primary-color: #0b3c6d;
  --primary-light: #1e5a9a;
  --primary-dark: #072a4e;
  --secondary-color: #ff7e00;
  --secondary-light: #ff9933;
  --text-color: #333333;
  --text-light: #666666;
  --light-color: #f8f9fa;
  --off-white: #f5f7fa;
  --border-color: #e9ecef;
  --light-gray: #cccccc;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0b3c6d, #1e5a9a);
  --gradient-secondary: linear-gradient(135deg, #ff7e00, #ff9933);
  
  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --border-radius: 8px;
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.6s ease;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes footer_fade_in_up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes footer_slide_in_left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes footer_slide_in_right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes footer_float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* =============================================
   MAIN FOOTER
   ============================================= */
.footer-main {
  position: relative;
  background: linear-gradient(135deg, #0b3c6d 0%, #1e5a9a 50%, #072a4e 100%);
  color: #ffffff;
  padding: 4rem 0 0;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

.footer-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.footer-main .container {
  position: relative;
  z-index: 2;
}

/* =============================================
   FOOTER TOP SECTION
   ============================================= */
.footer-top-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: flex-start;
  animation: footer_fade_in_up 0.8s ease-out;
}

/* Company Information */
.footer-company-wrapper {
  animation: footer_slide_in_left 0.8s ease-out 0.2s both;
}

.footer-company-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

.footer-company-highlight {
  color: var(--secondary-color);
  position: relative;
}

.footer-company-highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-secondary);
  border-radius: 1px;
}

.footer-company-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Social Media Links */
.footer-social-container {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-link:hover {
  background: var(--secondary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 126, 0, 0.3);
}

.footer-social-link i {
  font-size: 1.1rem;
}

/* Section Titles */
.footer-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  display: inline-block;
  letter-spacing: 0.5px;
}

.footer-section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.footer-section-title:hover::after {
  width: 60px;
}

/* Quick Links */
.footer-links-wrapper {
  animation: footer_slide_in_left 0.8s ease-out 0.4s both;
}

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

.footer-link-item {
  margin-bottom: 0.8rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.footer-link::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: var(--transition);
  color: var(--secondary-color);
}

.footer-link:hover {
  color: var(--secondary-color);
  transform: translateX(20px);
}

.footer-link:hover::before {
  opacity: 1;
}

/* Services */
.footer-services-wrapper {
  animation: footer_slide_in_left 0.8s ease-out 0.6s both;
}

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

.footer-service-item {
  margin-bottom: 0.8rem;
}

.footer-service-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.footer-service-link::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: var(--transition);
  color: var(--secondary-color);
}

.footer-service-link:hover {
  color: var(--secondary-color);
  transform: translateX(20px);
}

.footer-service-link:hover::before {
  opacity: 1;
}

/* Contact Information */
.footer-contact-wrapper {
  animation: footer_slide_in_right 0.8s ease-out 0.8s both;
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: var(--transition);
}

.footer-contact-item:hover {
  transform: translateX(5px);
}

.footer-contact-icon {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-top: 2px;
  transition: var(--transition);
}

.footer-contact-item:hover .footer-contact-icon {
  transform: scale(1.1);
}

.footer-contact-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

/* =============================================
   FOOTER MIDDLE SECTION
   ============================================= */
.footer-middle-content {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  animation: footer_fade_in_up 0.8s ease-out 1s both;
}

.footer-newsletter-wrapper {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.footer-newsletter-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
}

.footer-newsletter-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.footer-newsletter-form {
  display: flex;
  justify-content: center;
}

.footer-newsletter-input-group {
  display: flex;
  max-width: 400px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-newsletter-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
}

.footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter-button {
  padding: 15px 25px;
  background: var(--gradient-secondary);
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.footer-newsletter-button:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
}

/* =============================================
   FOOTER BOTTOM SECTION
   ============================================= */
.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  animation: footer_fade_in_up 0.8s ease-out 1.2s both;
}

.footer-copyright-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: 0;
}

.footer-legal-wrapper {
  display: flex;
  gap: 2rem;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-legal-link:hover {
  color: var(--secondary-color);
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.back-to-top-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-secondary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(255, 126, 0, 0.3);
}

.back-to-top-button.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-button:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 126, 0, 0.4);
}

.back-to-top-icon {
  font-size: 1.2rem;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media screen and (max-width: 1200px) {
  .footer-top-content {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
  }
  
  .footer-company-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 992px) {
  .footer-top-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-company-wrapper {
    grid-column: 1 / -1;
    text-align: center;
  }
  
  .footer-social-container {
    justify-content: center;
  }
  
  .footer-section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal-wrapper {
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .footer-main {
    padding: 3rem 0 0;
  }
  
  .footer-top-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-company-title {
    font-size: 1.8rem;
  }
  
  .footer-section-title {
    font-size: 1.2rem;
  }
  
  .footer-newsletter-input-group {
    flex-direction: column;
    border-radius: var(--border-radius);
  }
  
  .footer-newsletter-input {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
  }
  
  .footer-newsletter-button {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
  }
  
  .footer-legal-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .back-to-top-button {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media screen and (max-width: 576px) {
  .footer-main {
    padding: 2.5rem 0 0;
  }
  
  .footer-company-title {
    font-size: 1.6rem;
  }
  
  .footer-section-title {
    font-size: 1.1rem;
  }
  
  .footer-newsletter-title {
    font-size: 1.3rem;
  }
  
  .footer-copyright-text {
    font-size: 0.9rem;
  }
  
  .footer-legal-link {
    font-size: 0.85rem;
  }
  
  .footer-social-link {
    width: 40px;
    height: 40px;
  }
  
  .footer-social-link i {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .footer-company-title {
    font-size: 1.4rem;
  }
  
  .footer-newsletter-title {
    font-size: 1.2rem;
  }
  
  .footer-newsletter-description {
    font-size: 0.95rem;
  }
  
  .back-to-top-button {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
  
  .back-to-top-icon {
    font-size: 1rem;
  }
}