:root {
  --footer-bg: #f8faf4;
  --footer-text: #444;
  --footer-heading: #333;
  --primary-purple: #7a6cf0;
  --primary-orange: #ffb400;
  --primary-red: #f15c3f;
}

.main-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 0;
  position: relative;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-wave {
  width: 100%;
  line-height: 0;
  background: #fff; /* Match the section above */
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

.footer-wave svg path {
  fill: var(--footer-bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding: 0 20px 40px;
  position: relative;
  z-index: 2;
}

.brand-col .footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: flex-start;
}

.pencil-icon {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.pencil-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  line-height: 1.1;
}

.brand-desc {
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--primary-purple);
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.social-icons a:nth-child(2) { color: #000; }
.social-icons a:nth-child(3) { color: #f00; }
.social-icons a:nth-child(4) { color: #0077b5; }

.social-icons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.footer-col h3 {
  font-size: 1.4rem;
  margin-bottom: 30px;
  color: var(--footer-heading);
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--primary-purple);
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  gap: 15px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-orange);
  margin-top: 5px;
}

.contact-text h4 {
  font-size: 1.2rem;
  margin: 0 0 5px;
  color: var(--footer-heading);
}

.contact-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--footer-text);
  line-height: 1.4;
}

.footer-duck {
  width: 90px;
  max-width: 100%;
  height: auto;
  align-self: flex-end;
  display: block;
  animation: duck-float 4.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes duck-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.footer-bottom {
  padding: 25px 0 70px;
  border-top: 1px solid rgba(0,0,0,0.05);
  position: relative;
  z-index: 2;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-inner p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
  font-weight: 500;
}

.footer-bottom-inner a {
  color: var(--primary-orange);
  font-weight: 600;
  text-decoration: none;
}

.grass-gap {
  height: 40px;
  width: 100%;
}

/* Grass Animation Styles */
.grass-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  pointer-events: none;
  z-index: 1;
  background: url('../img/home/grass.png') repeat-x bottom center;
  background-size: contain;
  animation: wind-sway 6s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes wind-sway {
  0%, 100% { transform: skewX(0deg); }
  50% { transform: skewX(3deg); }
}

.grass-svgs {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  width: 100%;
  height: 100%;
  padding: 0 20px;
  opacity: 0.6; /* Blend SVGs with background */
}

.grass-blade {
  transform-origin: bottom center;
  animation: wind 3s ease-in-out infinite;
}

.grass-blade:nth-child(2n) { animation-delay: -0.5s; animation-duration: 4s; }
.grass-blade:nth-child(3n) { animation-delay: -1.2s; animation-duration: 3.5s; }
.grass-blade:nth-child(5n) { animation-delay: -0.2s; animation-duration: 5s; }
.grass-blade:nth-child(7n) { animation-delay: -1.5s; animation-duration: 4.5s; }

.flower {
  animation: flower-wind 4s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes wind {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(10deg); }
}

@keyframes flower-wind {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(12deg) translateY(-2px); }
}

@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding-bottom: 60px;
  }
}

@media (max-width: 820px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .logo-text {
    font-size: 1.6rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-col,
  .brand-col,
  .contact-info-col {
    text-align: center;
  }

  .footer-col ul {
    display: inline-block;
    text-align: left;
  }

  .footer-logo-wrapper {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .contact-item {
    justify-content: center;
  }

  .footer-duck {
    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-duck {
    animation: none;
  }
}

@media (max-width: 768px) {

  .footer-inner {
    gap: 30px;
    padding: 0 0 50px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .contact-info-col {
    text-align: left;
    align-items: flex-start;
    padding-left: 25px;
  }

  .contact-item {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .contact-text {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-wave svg {
    height: 40px;
  }

  .social-icons {
    flex-wrap: wrap;
  }

  .footer-bottom {
    padding: 20px 0 60px;
  }
  .brand-col .footer-logo-wrapper {
    justify-content: center;
  }
}
