/**
 * Footer Enhanced Styles
 * Separated from inline styles for better maintainability
 */

/* Footer Section */
.footer {
  background: var(--neural-black, #0A0A0B);
  color: white;
  position: relative;
  width: 100vw;
  height: calc(100vh - var(--header-height, 75px));
  display: grid;
  grid-template-columns: 12vw 38vw 50vw;
  align-items: center;
  overflow: hidden;  /* Keep original overflow hidden */
  z-index: 1001;
  border-top: 1px solid var(--neural-white, #ffffff);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Video Background */
.footer-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.footer-video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.footer-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 11, 0.3) 0%,
    rgba(10, 10, 11, 0.8) 50%,
    rgba(10, 10, 11, 0.95) 100%
  );
  pointer-events: none;
}

/* Footer Container */
.footer-container {
  grid-column: 2;
  width: 100%;
  margin: 0;
  padding: 2rem 2rem 2rem 0;  /* Reduced vertical padding */
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  overflow-y: auto;  /* Allow scrolling within grid if needed */
}

/* Logo Section */
.footer-logo-section {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 0 0 auto;
  margin-bottom: 1.5rem;  /* Add bottom spacing after logo */
  padding-bottom: 1rem;  /* Additional padding */
}

/* Navigation Columns Container */
.footer-nav-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  width: 100%;
  flex: 0 0 auto;
  margin: 1.5rem 0;  /* Reduced from 3rem */
}

.footer-logo {
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-logo img {
  width: 180px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* Navigation Sections */
.footer-nav-section {
  text-align: left;
}

.footer-nav-section h3,
.footer-nav-title {
  color: white;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 200;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-nav-link::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--neural-purple, #3C1361);
  transition: width 0.3s ease;
}

.footer-nav-link:hover {
  color: white;
  padding-left: 10px;
}

.footer-nav-link:hover::before {
  width: 15px;
}

/* Social Links Row */
.footer-social-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social-inline {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  display: inline-block;
}

/* Instagram brand color */
.footer-social-inline:nth-child(1) {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* LinkedIn brand color */
.footer-social-inline:nth-child(2) {
  background: #0077b5;
}

/* YouTube brand color */
.footer-social-inline:nth-child(3) {
  background: #FF0000;
}

.footer-social-inline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
  filter: brightness(1.2);
}

/* Team Email Section */
.footer-team-email {
  width: 100%;
  margin: 1.5rem 0 1rem 0;  /* Reduced margins */
  text-align: left;
  padding: 1rem 0;  /* Reduced padding */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
}

.footer-team-link {
  color: white;
  text-decoration: none;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 100;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  line-height: 1.4;
}

.footer-team-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neural-purple, #3C1361);
  transition: width 0.3s ease;
}

.footer-team-link:hover {
  color: var(--neural-purple, #3C1361);
}

.footer-team-link:hover::after {
  width: 100%;
}

/* Stay Legal Section */
.footer-legal-section {
  width: 100%;
  margin: 1rem 0;  /* Reduced from 2rem */
  padding: 0;
  border-top: none;
  max-width: 100%;
  flex: 0 0 auto;
}

.footer-legal-section h3 {
  color: white;
  font-size: 0.95rem;  /* Slightly smaller */
  font-weight: 500;
  margin: 0 0 1.6rem 0;  /* More space between title and links */
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-legal-links {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.footer-legal-links .footer-nav-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 300;
  transition: color 0.3s ease;
  padding: 0 0.4rem;
}

.footer-legal-links .footer-nav-link:hover {
  color: white;
}

.footer-separator {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  font-weight: 200;
  margin: 0;
}

/* AI Credits Section */
.footer-ai-credits {
  width: 100%;
  margin-top: 1.5rem;  /* Increased top margin for more space above border */
  padding-top: 1.2rem;  /* Increased padding after border */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 100%;
  flex: 0 0 auto;
}

.footer-ai-credits-text {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;  /* Smaller text */
  font-weight: 300;
  line-height: 1.4;
  margin: 0 0 0.4rem 0;  /* Less bottom margin */
}

.footer-ai-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-ai-link:hover {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* Copyright Section */
.footer-copyright-section {
  width: 100%;
  margin: 0.8rem 0 0 0;  /* Increased top margin for more space */
  padding: 0;
  border-top: none;
  max-width: 100%;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;  /* Smaller text */
  font-weight: 200;
  line-height: 1.4;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .footer {
    height: auto;
    min-height: 100vh;
    padding: 4rem 0;
    grid-template-columns: 15vw 60vw 25vw;
  }
  
  .footer-container {
    grid-column: 2;
    width: 100%;
    padding: 0 1.5rem;
  }
  
  .footer-grid {
    gap: 2rem;
    max-width: 100%;
  }
  
  .footer-nav-columns {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-logo-section {
    align-items: flex-start;
  }
  
  .footer-nav-section {
    align-items: flex-start;
    text-align: left;
  }
  
  .footer-nav-section h3 {
    font-size: 1.15rem;
  }
  
  .footer-nav-list {
    align-items: flex-start;
  }
  
  .footer-nav-link {
    font-size: 1rem;
  }
  
  .footer-nav-link::before {
    display: none;
  }
  
  .footer-nav-link:hover {
    padding-left: 0;
  }
  
  .footer-social-links {
    justify-content: flex-start;
  }
  
  .footer-legal-section {
    margin-top: 2rem;
  }
  
  .footer-copyright-section {
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer {
    grid-template-columns: 10vw 75vw 15vw;
  }
  
  .footer-container {
    grid-column: 2;
    width: 100%;
    padding: 0 1rem;
  }
  
  .footer-nav-section h3 {
    font-size: 1.1rem;
  }
  
  .footer-nav-link {
    font-size: 0.95rem;
  }
  
  .footer-logo img {
    width: 150px;
  }
  
  .footer-copyright,
  .footer-legal-link {
    font-size: 0.85rem;
  }
}