/* ============================================
   FOOTER STYLES
   ============================================ */
/* Modern Footer Styles */
/* Footer Section */
#footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 4rem 0 0;
  position: relative;
  width: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
  border-radius: 0 0 4px 4px;
}

/* Container and Layout */
#footer .container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Footer content grid */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  padding: 2rem 1.5rem 3rem;
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  box-sizing: border-box;
}

.footer-section {
  min-width: 0; /* Prevents flex items from overflowing */
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
}

.footer-section h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
}

.footer-section p {
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: 0.25rem 0;
}

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

/* Company Name */
.footer-company-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
  text-align: center;
  padding: 0.25rem 10px;
  white-space: nowrap;
  width: auto;
}

.footer-company-name .text-gradient {
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-company-name::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
  border-radius: 3px;
  transition: all 0.3s ease;
  width: calc(100% - 20px);
}

@media (min-width: 768px) {
  .footer-company-name {
    font-size: 1.5rem;
    text-align: left;
  }
  
  .footer-content {
    gap: 3rem;
    padding: 3rem 0 4rem;
    grid-template-columns: repeat(2, 1fr);
  }
  
  #footer .footer-about {
    padding-right: 1rem;
  }
  
  .footer-section {
    padding: 0 1rem;
  }
}

@media (min-width: 1024px) {
  .footer-company-name {
    font-size: 1.75rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .footer-section:first-child {
    grid-column: span 1;
  }
  
  .footer-section {
    padding: 0;
  }
}

#footer .footer-col {
  margin-bottom: 2rem;
  padding: 0 15px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Center align on mobile */
@media (max-width: 767.98px) {
  #footer .container {
    padding: 0 1.25rem;
    max-width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 1.5rem 0 2rem;
    width: 100%;
  }
  
  .footer-section {
    align-items: center;
    text-align: center;
    padding: 0.5rem 0;
    width: 100%;
    margin: 0 auto;
  }
  
  .footer-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    height: 2px;
  }
  
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .footer-links li {
    max-width: 100%;
    margin: 0;
  }
  
  .footer-links a {
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
    border-radius: 6px;
    margin: 0.15rem 0;
    justify-content: center;
    text-align: center;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  
  .footer-links a i {
    display: none;
  }
  
  .footer-about {
    max-width: 100% !important;
    padding: 0 0.5rem !important;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  .social-links {
    margin: 1rem auto 0;
    gap: 0.75rem;
  }
  
  .social-link {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* Adjust column alignment for medium and large screens */
@media (min-width: 768px) {
  #footer .footer-col {
    align-items: flex-start;
  }
  
  #footer .text-md-start {
    text-align: left !important;
  }
  
  #footer .text-lg-center {
    text-align: center !important;
  }
}

/* About Section */
#footer .footer-about {
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 100%;
  width: 100%;
  text-align: center;
  font-weight: 400;
  opacity: 0.9;
  flex-grow: 1;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  #footer .footer-about {
    max-width: 350px;
    font-size: 0.9rem;
    padding: 0;
  }
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  color: #ffffff;
  position: relative;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
  text-align: center;
  width: fit-content;
  padding: 0 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -10px;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
  border-radius: 3px;
  transition: all 0.3s ease;
  width: calc(100% - 20px);
  display: var(--after-display, block);
}

.footer-section:hover .footer-title::after {
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

/* Links List */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-links li {
  width: 100%;
  max-width: 200px;
  text-align: center;
  transition: all 0.2s ease;
  margin: 0.15rem 0;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  width: 100%;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  min-height: 44px; /* Better touch target size */
  box-sizing: border-box;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%);
  transition: all 0.3s ease;
  z-index: -1;
  border-radius: 3px;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-links a:hover::before {
  height: 100%;
}

.footer-links a i {
  font-size: 0.65rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
}

.footer-links a:hover i {
  opacity: 1;
  transform: translateX(3px);
  color: #38bdf8;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(129, 140, 248, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.1);
}

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

/* Copyright Section */
.copyright {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1rem auto 0;
  line-height: 1.6;
  width: 100%;
  max-width: 1400px;
  box-sizing: border-box;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.footer-legal-links a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-legal-links a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.copyright p {
  margin: 0;
  color: #94a3b8;
  font-weight: 400;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.footer-legal-links {
  display: flex;
  gap: 1rem;
  margin-left: 1rem;
}

.footer-legal-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  font-weight: 500;
  font-size: 0.85rem;
}

.footer-legal-links a:hover {
  color: #38bdf8;
}

.footer-legal-links a:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: -0.75rem;
  color: #4b5563;
  pointer-events: none;
}

/* Hover effects */
.footer-section {
  transition: transform 0.2s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.footer-section:hover {
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .footer-content {
    gap: 1.5rem;
  }
  
  .footer-about {
    font-size: 0.85rem;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
  
  .contact-info span {
    font-size: 0.85rem;
  }
}

@media (max-width: 991.98px) {
  .footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 2rem 1.5rem 3rem;
  }
  
  .footer-section {
    padding: 0 0.5rem;
  }
}

@media (max-width: 767.98px) {
  #footer {
    padding: 3rem 0 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 1.5rem 3rem;
  }
  
  .footer-section {
    text-align: center;
    padding: 0 1rem;
  }
  
  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links a:hover {
    transform: none;
  }
}

/* Footer bottom bar */
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 1rem;
}

/* Footer bottom text */
.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Footer links */
.footer-bottom a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

/* Footer navigation links */
.footer-links a {
  display: flex;
  align-items: center;
  color: #94a3b8;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 8px;
}
  
/* Responsive styles for contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-info li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
}

.contact-info i {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: #60a5fa;
}

.copyright {
  margin-top: 1.5rem;
  text-align: center;
}

.copyright p {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-legal-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: #60a5fa;
}

/* Animation for footer columns */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-col {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.footer-col:nth-child(1) { animation-delay: 0.1s; }
.footer-col:nth-child(2) { animation-delay: 0.2s; }
.footer-col:nth-child(3) { animation-delay: 0.3s; }
.footer-col:nth-child(4) { animation-delay: 0.4s; }

/* Back to Top Button styles moved to custom-styles.css */

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4facfe;
}
