/* ======================
   FOOTER STYLES - ВИПРАВЛЕНІ ПРОПОРЦІЇ
   Збільшені padding та gap для 768px+ екранів
====================== */

footer {
  background: var(--bg-dark);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: left;
}

.footer-column {
  animation: slideInUp 0.6s ease-out;
}

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

.footer-column h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 0.5rem;
  text-align: left;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.footer-column p,
.footer-column a {
  color: #bdbdbd;
  margin-bottom: 1rem;
  display: block;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1.6;
  text-align: left;
  position: relative;
  padding-left: 0;
}

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

.footer-column a::before {
  content: '→';
  position: absolute;
  left: -1rem;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-column a:hover::before {
  opacity: 1;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-bottom: 0;
  padding-left: 0;
  position: relative;
}

.social-links a::before {
  display: none;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.social-links a i {
  font-size: 1.2rem;
}

/* Specific social media hover effects */
.social-links a[href*="facebook"]:hover {
  background: #1877f2;
}

.social-links a[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-links a[href*="linkedin"]:hover {
  background: #0077b5;
}

.social-links a[href*="youtube"]:hover {
  background: #ff0000;
}

.social-links a[href*="twitter"]:hover {
  background: #1da1f2;
}

/* Copyright */
.copyright {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9e9e9e;
  font-size: 0.9rem;
  position: relative;
  text-align: center;
}

.copyright::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* ======================
   RESPONSIVE DESIGN З ВИПРАВЛЕНИМИ ПРОПОРЦІЯМИ
====================== */

/* Desktop (768px - 1199px) - ЗБІЛЬШЕНІ PADDING ТА GAP */
@media (min-width: 768px) and (max-width: 1199px) {
  footer {
    text-align: left;
    padding: 5rem 3rem; /* Збільшено з 4rem 2rem */
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem; /* Збільшено з 3rem */
    text-align: left;
  }
  
  /* Перша колонка з додатковим padding справа */
  .footer-column:first-child {
    padding-right: 2rem;
  }
  
  /* Всі колонки вирівняні вліво */
  .footer-column h3 {
    text-align: left;
    margin-bottom: 2rem; /* Збільшено відступ */
  }
  
  .footer-column h3::after {
    left: 0;
    transform: none;
  }
  
  .footer-column p,
  .footer-column a {
    text-align: left;
    margin-bottom: 1.2rem; /* Збільшено відступи між елементами */
  }
  
  .footer-columns-row {
    display: contents;
  }
  
  .social-links {
    justify-content: flex-start;
    gap: 1.5rem; /* Збільшено gap між social links */
  }
  
  .social-links a {
    width: 45px; /* Збільшено розмір кнопок */
    height: 45px;
  }
  
  .social-links a i {
    font-size: 1.3rem;
  }
  
  /* Збільшуємо відступи в copyright */
  .copyright {
    margin-top: 4rem;
    padding-top: 2.5rem;
  }
}

/* Large Desktop (1200px+) - ЩЕ БІЛЬШІ PADDING ТА GAP */
@media (min-width: 1200px) {
  footer {
    text-align: left;
    padding: 6rem 4rem; /* Ще більше збільшено */
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5rem; /* Максимальний gap для великих екранів */
    text-align: left;
  }
  
  /* Перша колонка з максимальним padding справа */
  .footer-column:first-child {
    padding-right: 3rem;
  }
  
  /* Всі колонки вирівняні вліво */
  .footer-column h3 {
    text-align: left;
    font-size: 1.4rem; /* Збільшено розмір заголовків */
    margin-bottom: 2.5rem; /* Ще більший відступ */
  }
  
  .footer-column h3::after {
    left: 0;
    transform: none;
    width: 50px; /* Збільшено ширину підкреслення */
    height: 3px; /* Збільшено товщину */
  }
  
  .footer-column p,
  .footer-column a {
    text-align: left;
    margin-bottom: 1.4rem; /* Збільшено відступи */
    font-size: 1rem; /* Збільшено розмір тексту */
  }
  
  .footer-columns-row {
    display: contents;
  }
  
  .social-links {
    justify-content: flex-start;
    gap: 2rem; /* Максимальний gap */
    margin-top: 2rem; /* Збільшено відступ зверху */
  }
  
  .social-links a {
    width: 50px; /* Максимальний розмір кнопок */
    height: 50px;
  }
  
  .social-links a i {
    font-size: 1.4rem; /* Збільшено іконки */
  }
  
  /* Максимальні відступи в copyright */
  .copyright {
    margin-top: 5rem;
    padding-top: 3rem;
    font-size: 1rem; /* Збільшено текст */
  }
  
  .copyright::before {
    width: 120px; /* Збільшено лінію */
  }
}

/* Tablet (480px - 767px) - ДВА СТОВПЧИКИ */
@media (min-width: 480px) and (max-width: 767px) {
  footer {
    padding: 3rem 1.5rem;
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  /* Перша колонка (Eleman-Bau) по центру */
  .footer-column:first-child {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .footer-column:first-child h3 {
    text-align: center;
  }
  
  .footer-column:first-child h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-column:first-child p {
    text-align: center;
  }
  
  /* Контейнер для других двох колонок */
  .footer-columns-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-column:nth-child(2),
  .footer-column:nth-child(3) {
    margin: 0;
    text-align: center;
  }
  
  .footer-columns-row .footer-column h3 {
    text-align: center;
  }
  
  .footer-columns-row .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-columns-row .footer-column a {
    text-align: center;
  }
  
  .footer-column p,
  .footer-column a {
    text-align: center;
    padding-left: 0;
  }
  
  .footer-column a::before {
    display: none;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
  }
  
  .social-links a i {
    font-size: 1.3rem;
  }
}

/* Mobile (до 479px) - ОДИН СТОВПЧИК */
@media (max-width: 479px) {
  footer {
    padding: 2rem 1rem;
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .footer-column h3 {
    font-size: 1.2rem;
    text-align: center;
  }
  
  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-column p,
  .footer-column a {
    text-align: center;
    padding-left: 0;
  }
  
  .footer-column a::before {
    display: none;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
  }
  
  .social-links a i {
    font-size: 1.2rem;
  }
  
  .footer-columns-row {
    display: contents;
  }
}

/* ======================
   ANIMATIONS - БЕЗ ЗМІН
====================== */
@media (prefers-reduced-motion: no-preference) {
  .footer-column {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease-out forwards;
  }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  .footer-column p,
  .footer-column a {
    color: #e0e0e0;
  }
  
  .copyright {
    color: #b0b0b0;
  }
}