/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Main Footer Content */
.footerContent {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Brand Section */
.brandSection {
  max-width: 350px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.logoText {
  color: #ffffff;
}

.logoDot {
  color: #3b82f6;
  margin-left: 2px;
}

.brandDescription {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.socialLinks {
  display: flex;
  gap: 1rem;
}

.socialLink {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  color: #3b82f6;
  text-decoration: none;
  transition: all 0.3s ease;
}

.socialLink:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

/* Links Section */
.linksSection {
  min-width: 150px;
}

.sectionTitle {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.sectionTitle::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 1px;
}

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

.linksList li {
  margin-bottom: 0.75rem;
}

.footerLink {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footerLink:hover {
  color: #ffffff;
  padding-left: 8px;
}

.footerLink::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transition: width 0.3s ease;
}

.footerLink:hover::before {
  width: 4px;
}

/* Contact Section */
.contactSection {
  min-width: 200px;
}

.contactList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contactItem {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.contactItem:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.contactItem svg {
  color: #3b82f6;
  flex-shrink: 0;
}

/* Newsletter Section */
.newsletterSection {
  min-width: 250px;
}

.newsletterDescription {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.newsletterForm {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.emailInput {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.emailInput:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.emailInput::placeholder {
  color: #64748b;
}

.subscribeButton {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.subscribeButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Footer Bottom */
.footerBottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.copyright p,
.madeWith p {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
}

.madeWith {
  display: flex;
  align-items: center;
}

.madeWith p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.heartIcon {
  color: #ef4444;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  50%,
  100% {
    transform: scale(1);
  }
  25%,
  75% {
    transform: scale(1.1);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footerContent {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .brandSection {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .footerContent {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
  }

  /* Center all sections on mobile */
  .brandSection,
  .linksSection,
  .contactSection,
  .newsletterSection {
    text-align: center;
    max-width: none;
  }

  /* Center section titles and their underlines */
  .sectionTitle {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sectionTitle::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Center social links */
  .socialLinks {
    justify-content: center;
  }

  /* Center contact items */
  .contactList {
    align-items: center;
  }

  .contactItem {
    justify-content: center;
  }

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

  /* Center footer links */
  .linksList {
    text-align: center;
  }

  .footerLink:hover {
    padding-left: 0;
    transform: translateY(-2px);
  }

  .footerLink::before {
    display: none;
  }

  .footerBottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .newsletterForm {
    flex-direction: row;
    max-width: 400px;
    margin: 0 auto;
  }

  .emailInput {
    flex: 1;
  }

  .subscribeButton {
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 2rem 0 1rem;
  }

  .logo {
    font-size: 1.5rem;
    justify-content: center;
  }

  .brandDescription {
    text-align: center;
  }

  .newsletterForm {
    flex-direction: column;
    max-width: 300px;
  }

  .socialLinks {
    gap: 0.75rem;
    justify-content: center;
  }

  .socialLink {
    width: 40px;
    height: 40px;
  }

  .footerContent > * {
    text-align: center;
  }

  .contactItem {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .contactItem svg {
    margin: 0 auto;
  }
}
