/*element main stuff*/

body {

  background-image: url("fojo.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;

  background-color: honeydew;

  font-family: Georgia, serif;

  line-height: 1.6;

  margin: 0;
  padding: 20px;

}

h1 {

  color: darkgreen;

  text-align: center;

  letter-spacing: 1px;

}

h2 {

  color: forestgreen;

  font-size: 20px;

  margin-bottom: 8px;

}

p {

  color: darkolivegreen;

  font-size: 16px;

  margin: 8px 0;

}

a {

  color: rgb(73, 98, 84);
  font-weight: bold;

  text-decoration: none;

  display: inline-block;

  padding: 2px 6px;

}

a:hover {
  text-decoration: underline;
  color: rgb(141, 255, 192);

}

/*classes*/

.highlight {

  font-weight: bold;

  text-decoration: underline;

}


.main {

  max-width: 750px;

  margin: 30px auto;

  padding: 24px 32px;


  background-color: rgba(255, 255, 255, 0.75);

  border: 1px solid #7aab8a;
  border-radius: 6px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);

  position: relative;
  z-index: 1;

}

.section {

  padding: 16px 20px;

  margin: 16px 0;


  border: 1px solid #a8cba8;
  border-radius: 4px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

  position: relative;


}

/*Table*/

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 15px;
}

th,
td {
  padding: 10px 14px;
  border: 1px solid #7aab8a;
  text-align: left;
  color: darkolivegreen;
}

thead th {
  background-color: darkgreen;
  color: white;
  font-size: 16px;
  letter-spacing: 0.5px;
}

tbody tr:nth-child(even) {
  background-color: rgba(144, 238, 144, 0.25);
}

tbody tr:hover {
  background-color: rgba(34, 139, 34, 0.20);
  cursor: default;
}

/* Forms stuff */
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: darkgreen;
  font-weight: bold;
  font-size: 15px;
}

/* General input styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: Georgia, serif;
  font-size: 15px;
  color: darkolivegreen;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid #7aab8a;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

textarea {
  resize: vertical;
}

/* Focus Effect — visual change when user clicks inside a field */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: darkgreen;
  box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.18);
  background-color: rgba(240, 255, 240, 0.95);
}


.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: darkolivegreen;
  font-size: 15px;
  font-weight: normal;
  cursor: pointer;
}


.checkbox-group {
  flex-direction: row;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: darkolivegreen;
  font-size: 15px;
  font-weight: normal;
  cursor: pointer;
}


.submit-btn {
  background-color: darkgreen;
  color: white;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
  background-color: forestgreen;
  box-shadow: 0 3px 8px rgba(0, 100, 0, 0.25);
}

.submit-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.30);
}

/*background
thos part is not mine i found it on the web
while looking for good background presets
and made ai make it better,most of it
isnt actually visible due to the background image i used
but it was cool and fun to learn how to do it
*/
:root {
  --sky-top: #b6dcef;
  --sky-mid: #d3edf2;
  --sky-low: #e8f7ee;
  --sun-warm: #fff4c8;
  --sun-glow: #ffe39f;
  --ink-mid: #3a5444;
  --ease-organic: cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.landscape {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Sky gradient + ambient glow */
.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 18%, rgba(255, 240, 200, 0.55), transparent 60%),
    linear-gradient(180deg,
      var(--sky-top) 0%,
      var(--sky-mid) 38%,
      var(--sky-low) 65%,
      #d6eecd 80%,
      transparent 100%);
}

.sky-glow {
  position: absolute;
  top: 5%;
  left: 50%;
  width: 90vw;
  height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 252, 235, 0.4), transparent 70%);
  filter: blur(40px);
  animation: skyBreath 14s ease-in-out infinite alternate;
}

@keyframes skyBreath {
  0% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
}

/* Sun */
.sun {
  position: absolute;
  top: 12%;
  right: 14%;
  width: 180px;
  height: 180px;
  pointer-events: none;
  will-change: transform;
}

.sun-core {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, var(--sun-warm), var(--sun-glow) 70%);
  box-shadow: 0 0 60px 8px rgba(255, 240, 180, 0.5);
  animation: sunPulse 8s var(--ease-organic) infinite alternate;
}

.sun-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 180, 0.55) 0%, transparent 60%);
  filter: blur(20px);
  animation: sunPulse 8s var(--ease-organic) infinite alternate-reverse;
}

@keyframes sunPulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }

  100% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* Drifting clouds */
.cloud {
  position: absolute;
  background:
    radial-gradient(ellipse 60% 100% at 30% 60%, rgba(255, 255, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 60% 100% at 70% 60%, rgba(255, 255, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 60% 100% at 50% 35%, rgba(255, 255, 255, 0.9), transparent 70%);
  filter: blur(1px);
  opacity: 0.7;
  border-radius: 100px;
  pointer-events: none;
}

.cloud-1 {
  top: 14%;
  width: 280px;
  height: 70px;
  animation: cloudDrift 80s linear infinite;
}

.cloud-2 {
  top: 22%;
  width: 220px;
  height: 55px;
  animation: cloudDrift 110s linear infinite;
  animation-delay: -30s;
  opacity: 0.55;
}

.cloud-3 {
  top: 8%;
  width: 340px;
  height: 80px;
  animation: cloudDrift 130s linear infinite;
  animation-delay: -60s;
  opacity: 0.4;
}

@keyframes cloudDrift {
  0% {
    left: -350px;
  }

  100% {
    left: calc(100% + 50px);
  }
}

/* Birds */
.birds {
  position: absolute;
  top: 18%;
  left: 0;
  width: 100%;
  height: 200px;
  opacity: 0.55;
  pointer-events: none;
}

.bird {
  fill: none;
  stroke: var(--ink-mid);
  stroke-width: 1.5;
  stroke-linecap: round;
  animation: birdFlap 0.45s ease-in-out infinite alternate;
}

.bird-1 {
  transform: translate(0, 20px) scale(0.8);
  animation-delay: 0s;
}

.bird-2 {
  transform: translate(0, 40px) scale(0.6);
  animation-delay: -0.2s;
}

.bird-3 {
  transform: translate(0, 60px) scale(0.7);
  animation-delay: -0.1s;
}

@keyframes birdFlap {
  0% {
    transform: scaleY(1);
  }

  100% {
    transform: scaleY(0.5);
  }
}

/* ── HILLS — three parallax layers ──────────────────────── */
.hills {
  position: absolute;
  bottom: 0;
  left: -5vw;
  width: 110vw;
  pointer-events: none;
  will-change: transform;
}

.hills-far {
  height: 68vh;
  bottom: 0;
  filter: drop-shadow(0 -2px 8px rgba(255, 255, 255, 0.4));
  animation: hillDriftFar 38s ease-in-out infinite alternate;
}

.hills-mid {
  height: 56vh;
  bottom: 0;
  filter: drop-shadow(0 -2px 6px rgba(255, 255, 255, 0.3));
  animation: hillDriftMid 24s ease-in-out infinite alternate;
}

.hills-near {
  height: 44vh;
  bottom: 0;
  animation: hillDriftNear 16s ease-in-out infinite alternate;
}

@keyframes hillDriftFar {
  0% {
    transform: translate3d(-12px, 0, 0);
  }

  50% {
    transform: translate3d(8px, -3px, 0);
  }

  100% {
    transform: translate3d(14px, 0, 0);
  }
}

@keyframes hillDriftMid {
  0% {
    transform: translate3d(-18px, 0, 0);
  }

  50% {
    transform: translate3d(10px, -4px, 0);
  }

  100% {
    transform: translate3d(20px, 0, 0);
  }
}

@keyframes hillDriftNear {
  0% {
    transform: translate3d(-26px, 0, 0);
  }

  50% {
    transform: translate3d(14px, -6px, 0);
  }

  100% {
    transform: translate3d(28px, 0, 0);
  }
}

/* ── GRASS FIELD — foreground blades ─────────────────────── */
.grass-field {
  position: absolute;
  bottom: 0;
  left: -5vw;
  width: 110vw;
  height: 28vh;
  pointer-events: none;
  will-change: transform;
}

.grass-blades {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 0 rgba(20, 80, 45, 0.15));
}

.blade {
  --phase: 0;
  --dur: 5s;
  animation: bladeSway var(--dur) var(--ease-organic) infinite;
  will-change: transform;
}

@keyframes bladeSway {
  0% {
    transform: rotate(-3deg);
  }

  18% {
    transform: rotate(2deg);
  }

  36% {
    transform: rotate(8deg);
  }

  52% {
    transform: rotate(3deg);
  }

  68% {
    transform: rotate(10deg);
  }

  84% {
    transform: rotate(1deg);
  }

  100% {
    transform: rotate(-3deg);
  }
}

@supports (transform: rotate(sin(1) * 1deg)) {
  @keyframes bladeSway {
    0% {
      transform: rotate(calc(-3deg + sin(var(--phase)) * 1.5deg));
    }

    18% {
      transform: rotate(calc(2deg + sin(var(--phase) + 0.5) * 1.5deg));
    }

    36% {
      transform: rotate(calc(8deg + sin(var(--phase) + 1.0) * 1.5deg));
    }

    52% {
      transform: rotate(calc(3deg + sin(var(--phase) + 1.5) * 1.5deg));
    }

    68% {
      transform: rotate(calc(10deg + sin(var(--phase) + 2.0) * 1.5deg));
    }

    84% {
      transform: rotate(calc(1deg + sin(var(--phase) + 2.5) * 1.5deg));
    }

    100% {
      transform: rotate(calc(-3deg + sin(var(--phase)) * 1.5deg));
    }
  }
}

/* ── PARTICLES — pollen / dust motes ─────────────────────── */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 250, 220, 0.85);
  box-shadow: 0 0 8px rgba(255, 240, 180, 0.7);
  filter: blur(0.4px);
  opacity: 0;
  animation: particleFloat 14s ease-in-out infinite;
}

.p1 {
  top: 30%;
  left: 8%;
  animation-delay: 0s;
  animation-duration: 16s;
}

.p2 {
  top: 45%;
  left: 18%;
  animation-delay: -3s;
  animation-duration: 12s;
}

.p3 {
  top: 26%;
  left: 32%;
  animation-delay: -6s;
  animation-duration: 18s;
}

.p4 {
  top: 60%;
  left: 48%;
  animation-delay: -2s;
  animation-duration: 14s;
}

.p5 {
  top: 38%;
  left: 62%;
  animation-delay: -9s;
  animation-duration: 20s;
}

.p6 {
  top: 52%;
  left: 74%;
  animation-delay: -4s;
  animation-duration: 13s;
}

.p7 {
  top: 32%;
  left: 86%;
  animation-delay: -7s;
  animation-duration: 17s;
}

.p8 {
  top: 68%;
  left: 92%;
  animation-delay: -1s;
  animation-duration: 15s;
}

@keyframes particleFloat {

  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }

  10% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
    transform: translate(28px, -36px) scale(1);
  }

  90% {
    opacity: 0.5;
  }
}

/* Film grain overlay */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}