/* === FOOTER STYLES - MODERN & UNIQUE === */

.modern-footer {
  position: relative;
  background-color: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface);
  padding: 80px 0 40px;
  /* overflow: hidden; Removed to allow back-to-top button to be visible */
  margin-top: 80px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

/* Decorative Background Elements */
.footer-bg-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, var(--md-sys-color-primary-container) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.footer-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* 1. Brand / Logo Area */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  font-family: 'Google Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, var(--md-sys-color-tertiary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.footer-tagline {
  font-size: 16px;
  color: var(--md-sys-color-on-surface-variant);
  text-align: center;
  max-width: 400px;
  line-height: 1.6;
}

/* 2. Navigation Links (Optional) */
.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--md-sys-color-primary);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: var(--md-sys-color-primary);
}

.footer-link:hover::after {
  width: 100%;
}

/* 3. Divider */
.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--md-sys-color-outline-variant), transparent);
  opacity: 0.5;
}

/* 4. Bottom Area */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.copyright-text {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  opacity: 0.8;
}

.made-with {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  background: var(--md-sys-color-surface-container);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--md-sys-color-outline-variant);
  transition: all 0.3s ease;
}

.made-with:hover {
  background: var(--md-sys-color-surface-container-high);
  transform: translateY(-2px);
  box-shadow: var(--md-sys-elevation-1);
}

.heart-icon {
  color: #ff4081;
  font-size: 16px;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

/* Back to Top Button */
.back-to-top-btn {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%) scale(0.8); /* Start smaller */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--md-sys-color-surface); /* Create "cutout" effect */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--md-sys-elevation-2);
  z-index: 1000; /* Increased z-index */
  opacity: 0; /* Hidden by default */
  pointer-events: none;
}

.back-to-top-btn:hover {
  transform: translateX(-50%) translateY(-4px) scale(1.1);
  box-shadow: var(--md-sys-elevation-4);
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

/* Responsive */
@media (max-width: 768px) {
  .modern-footer {
    padding: 60px 0 32px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
  }
  
  .footer-nav {
    gap: 20px;
  }
  
  .footer-logo {
    font-size: 28px;
  }
}
