:root {
  --primary: #22c55e;
  --secondary: #16a34a;
  --accent: #4ade80;
  --light: #4ade80;
  --dark: #fff;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

.site-footer {
  position: relative;
  background: var(--dark);
  color: var(--light);
  overflow: hidden;
}

.footer-wave {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 1;
}

.footer-wave svg {
  width: 100%;
  height: 100%;
  fill: var(--dark);
  filter: drop-shadow(0 -5px 5px rgba(0,0,0,0.1));
}

.wave-animation {
  animation: wave 8s ease-in-out infinite alternate;
}

@keyframes wave {
  0% {
    d: path("M0,50 C150,100 350,0 500,50 C650,100 800,20 1000,60 C1200,100 1400,40 1440,30 L1440,0 L0,0 Z");
  }
  50% {
    d: path("M0,30 C150,70 350,20 500,80 C650,40 800,90 1000,30 C1200,70 1400,20 1440,50 L1440,0 L0,0 Z");
  }
  100% {
    d: path("M0,50 C150,20 350,80 500,40 C650,70 800,30 1000,80 C1200,30 1400,60 1440,40 L1440,0 L0,0 Z");
  }
}

.footer-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 3rem 5% 2rem;
  z-index: 2;
}

.footer-section {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: calc(var(--order) * 0.2s);
}

.footer-section:nth-child(1) { --order: 1; }
.footer-section:nth-child(2) { --order: 2; }
.footer-section:nth-child(3) { --order: 3; }
.footer-section:nth-child(4) { --order: 4; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-title {
  position: relative;
  color: var(--light);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.animate-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient);
  animation: lineGrow 1.5s forwards;
  animation-delay: calc(var(--order) * 0.4s + 0.5s);
}

@keyframes lineGrow {
  to { width: 100%; }
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 100%;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideIn 0.5s forwards;
  animation-delay: calc(var(--link-order) * 0.15s + 1s);
}

.footer-links li:nth-child(1) { --link-order: 1; }
.footer-links li:nth-child(2) { --link-order: 2; }
.footer-links li:nth-child(3) { --link-order: 3; }
.footer-links li:nth-child(4) { --link-order: 4; }

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.footer-links a {
  display: flex;
  align-items: center;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 10px;
}

.link-arrow {
  position: relative;
  margin-left: 0.5rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.link-arrow::after {
  content: '→';
  font-size: 1.1rem;
}

.footer-links a:hover .link-arrow {
  opacity: 1;
  transform: translateX(5px);
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  animation: floatIn 1s forwards 1.5s;
}

@keyframes floatIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.contact-card:hover {
  box-shadow: 0 8px 32px rgba(58, 134, 255, 0.2);
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.contact-card p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.email-link {
  position: relative;
  display: inline-block;
  color: var(--light) !important;
  text-decoration: none;
  padding-bottom: 2px;
  font-weight: 500;
}

.email-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.email-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.bubble-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.bubble {
  position: absolute;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  animation: bubbleFloat 8s infinite ease-in-out;
  opacity: 0;
}

.bubble:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 10%;
  animation-delay: 0s;
}

.bubble:nth-child(2) {
  width: 50px;
  height: 50px;
  left: 60%;
  animation-delay: 3s;
}

.bubble:nth-child(3) {
  width: 70px;
  height: 70px;
  left: 30%;
  animation-delay: 5s;
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(100%) scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100%) scale(1);
    opacity: 0;
  }
}

.copyright {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
  z-index: 2;
}

.copyright-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.copyright-divider::after {
  content: '';
  position: absolute;
  width: 30%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -30%; }
  100% { left: 130%; }
}

.copyright p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  animation: pulse 3s infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

/* Floating elements animation */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Mouse trail effect */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    padding: 3rem 1rem 2rem;
  }
  
  .footer-wave {
    top: -50px;
    height: 50px;
  }
}