/* Contact style */
#contact {
  position: relative;
  min-height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(to bottom,#030a12 0%,#0b1712 30%,#122317 65%,#1b301c 100%);
}

.contact-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
}
#contact h1 {
  color: #dce7c5;
  font-size: 3rem;
  text-shadow: 0 0 10px rgba(220,231,197,0.3);
}
.contact-form {
  width: 500px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  background: rgba(5,20,12,0.65);
  border: 1px solid rgba(220,231,197,0.2);
  border-radius: 15px;
  backdrop-filter: blur(5px);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  color: #dce7c5;
  font-size: 1rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid rgba(220,231,197,0.25);
  border-radius: 8px;
  background: rgba(3,10,12,0.7);
  color: #f0f5df;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #dce7c5;
  box-shadow: 0 0 10px rgba(220,231,197,0.15);
}
.form-group textarea {
  height: 150px;
  resize: vertical;
}
.contact-form button {
  padding: 12px 20px;
  border: 1px solid #dce7c5;
  border-radius: 8px;
  background: #dce7c5;
  color: #102015;
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}
.contact-form button:hover {
  background: #f0f5df;
  box-shadow: 0 0 15px rgba(220,231,197,0.4);
  transform: translateY(-2px);
}
#contact .socials {
  position: relative;
  z-index: 2;
  margin-top: 30px;
}

#contact-status {
  margin-top: -1vh;
  padding: 1px;
  text-align: center;
  font-size: 1rem;
  color: #dce7c5;
  background: rgba(5,20,12,0.8);
  border-radius: 8px;
}

#contact-status.success {
  color: #b8d89b;
}

#contact-status.error {
  color: #d98b8b;
}
/* Social Buttons*/
.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.socials a {
  width: 60px;
  height: 60px;
  background-color: #fff;
  text-align: center;
  line-height: 60px;
  font-size: 28px;
  display: block;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 3px solid #fff;
  z-index: 1;
  text-decoration: none;
}
.socials a .icon {
  position: relative;
  color: #262626;
  transition: 0.5s;
  z-index: 3;
}
.socials a:hover .icon {
  color: #fff;
  transform: rotateY(360deg);
}
.socials a::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  transition: 0.5s;
  z-index: 2;
}
.socials a:hover::before {
  top: 0;
}
.socials a:nth-child(1)::before {
  background: #333;
}
.socials a:nth-child(2)::before {
  background: #0077b5;
}
.socials a:nth-child(3)::before {
  background: #e1306c;
}

/* Fireflies */
#contact .fireflies {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#contact .firefly {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff7a8;
  opacity: 0;
  box-shadow: 0 0 0 rgba(220,255,120,0);
  animation: fireflyMove 20s ease-in-out infinite alternate,fireflyFlash 6s ease-in-out infinite;
}

@keyframes fireflyMove {
  0% {
    transform: translate(0,0);
  }
  25% {
    transform: translate(120px,-80px);
  }
  50% {
    transform: translate(-100px,100px);
  }
  75% {
    transform: translate(150px,60px);
  }
  100% {
    transform: translate(-80px,-120px);
  }
}

@keyframes fireflyFlash {
  0%,30%,100% {
    opacity: 0;
    box-shadow: 0 0 0 rgba(220,255,120,0);
  }
  5% {
    opacity: 1;
    box-shadow: 0 0 10px 3px rgba(220,255,120,0.8);
  }
}

#contact > h1,
#contact .socials {
  position: relative;
  z-index: 2;
}

/* Grass */
#contact .grass {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  z-index: 1;
  pointer-events: none;
}

#contact .grass-blade {
  position: absolute;
  bottom: 0;
  width: 5px;
  height: 100px;
  background: linear-gradient(to top,#07150e,#18351d,#25411d);
  border-radius: 100% 100% 0 0;
  transform-origin: bottom center;
  animation: grassSway 3s ease-in-out infinite alternate;
}
@keyframes grassSway {
  0% {
    transform: rotate(-4deg);
  }
  100% {
    transform: rotate(6deg);
  }
}

/* Red Spider Lilies */
#contact .spider-lilies {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px;
  z-index: 1;
  pointer-events: none;
}
#contact .spider-lily {
  position: absolute;
  bottom: 0;
  width: 180px;
  height: 260px;
  transform: scale(var(--flower-scale)) rotate(var(--flower-rotation));
  transform-origin: bottom center;
  animation: spiderLilySway 3s ease-in-out infinite alternate;
}
#contact .spider-lily__stem {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: 170px;
  transform: translateX(-50%);
  background: linear-gradient(to top,#102a16,#263f23);
  border-radius: 100%;
}
#contact .spider-lily__petals {
  position: absolute;
  left: 50%;
  bottom: 145px;
  width: 190px;
  height: 120px;
  transform: translateX(-50%);
}
#contact .spider-lily__petals span {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 105px;
  transform-origin: 50% 100%;
  border-radius: 100% 100% 35% 35%;
  background: linear-gradient(to top,#54141f,#641725 70%,#852536);
  box-shadow: 0 0 5px rgba(120,25,45,0.2);
}
#contact .spider-lily__petals span::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 18px;
  height: 30px;
  transform: translateX(-50%) rotate(-15deg);
  border-radius: 50%;
  background: #852536;
}
#contact .spider-lily__petals span:nth-child(1) {
  transform: translateX(-50%) rotate(-80deg);
}
#contact .spider-lily__petals span:nth-child(2) {
  transform: translateX(-50%) rotate(-48deg);
}
#contact .spider-lily__petals span:nth-child(3) {
  transform: translateX(-50%) rotate(-16deg);
}
#contact .spider-lily__petals span:nth-child(4) {
  transform: translateX(-50%) rotate(16deg);
}
#contact .spider-lily__petals span:nth-child(5) {
  transform: translateX(-50%) rotate(48deg);
}
#contact .spider-lily__petals span:nth-child(6) {
  transform: translateX(-50%) rotate(80deg);
}

#contact .spider-lily__petals span::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 16px;
  height: 75px;
  transform: translateX(-50%) rotate(10deg);
  border-right: 3px solid rgba(163, 25, 51, 0.8);
  border-radius: 50%;
}
#contact .spider-lily__stamens {
  position: absolute;
  left: 50%;
  bottom: 170px;
  width: 180px;
  height: 100px;
  transform: translateX(-50%);
}
#contact .spider-lily__stamens span {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 105px;
  transform-origin: 50% 100%;
  border-radius: 100%;
  background: linear-gradient(to top,#70202b,#9a4938);
}
#contact .spider-lily__stamens span::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #b87945;
  box-shadow: 0 0 4px rgba(184,121,69,0.25);
}
#contact .spider-lily__stamens span:nth-child(1) {
  transform: translateX(-50%) rotate(-80deg);
}
#contact .spider-lily__stamens span:nth-child(2) {
  transform: translateX(-50%) rotate(-65deg);
}
#contact .spider-lily__stamens span:nth-child(3) {
  transform: translateX(-50%) rotate(-50deg);
}
#contact .spider-lily__stamens span:nth-child(4) {
  transform: translateX(-50%) rotate(-35deg);
}
#contact .spider-lily__stamens span:nth-child(5) {
  transform: translateX(-50%) rotate(-18deg);
}
#contact .spider-lily__stamens span:nth-child(6) {
  transform: translateX(-50%) rotate(0deg);
}
#contact .spider-lily__stamens span:nth-child(7) {
  transform: translateX(-50%) rotate(18deg);
}
#contact .spider-lily__stamens span:nth-child(8) {
  transform: translateX(-50%) rotate(35deg);
}
#contact .spider-lily__stamens span:nth-child(9) {
  transform: translateX(-50%) rotate(50deg);
}
#contact .spider-lily__stamens span:nth-child(10) {
  transform: translateX(-50%) rotate(65deg);
}
#contact .lily-one {
  left: 7%;
  --flower-scale: 0.75;
  --flower-rotation: -5deg;
}
#contact .lily-two {
  left: 45%;
  bottom: 20px;
  --flower-scale: 1;
  --flower-rotation: 2deg;
}
#contact .lily-three {
  right: 7%;
  --flower-scale: 0.8;
  --flower-rotation: 5deg;
}
@keyframes spiderLilySway {
  0% {
    transform: scale(var(--flower-scale)) rotate(calc(var(--flower-rotation) - 2deg));
  }
  100% {
    transform: scale(var(--flower-scale)) rotate(calc(var(--flower-rotation) + 2deg));
  }
}

#contact .forest {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
#contact .forest-tree {
  position: absolute;
  bottom: 0;
  transform-origin: bottom center;
  filter: blur(3px);
}
#contact .tree-trunk {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 10px;
  height: 65%;
  transform: translateX(-50%);
  background: #050d08;
  border-radius: 50%;
  filter: blur(2px);
}
#contact .tree-trunk::before,
#contact .tree-trunk::after {
  content: "";
  position: absolute;
  bottom: 42%;
  width: 8px;
  height: 110px;
  background: #050d08;
  border-radius: 100%;
}
#contact .tree-trunk::before {
  right: 0;
  transform: rotate(35deg);
  transform-origin: bottom center;
}
#contact .tree-trunk::after {
  left: 0;
  transform: rotate(-35deg);
  transform-origin: bottom center;
}
#contact .tree-foliage {
  position: absolute;
  transform: translate(-50%,-50%);
  border-radius: 45% 55% 35% 65%;
  background: #07150e;
  filter: blur(8px);
}