@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --body-bg: #f0f8ff;
  --subtitle-color: #374151;
  --ff-heading: "Poppins", sans-serif;
  --ff-body: "Inter", serif;
  --fs-heading: min(calc(3.5vw + 1rem), 3.25rem);
  --fs-body: min(calc(2.1vw + 0.5rem), 1.125rem);
  --border-col: #d5d7da;
  --primary: #df7015;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  width: 100%;
  min-height: 100vh;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  background-color: var(--body-bg);
  font-family: var(--ff-body);
  display: flex;
  flex-direction: column;
  font-size: var(--fs-body);
  overflow: hidden; /* Prevent scrolling during loading */
}

/* Loading Screen Styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading-content {
  text-align: center;
  animation: fadeInScale 1s ease-out;
}

.rabbit-container {
  position: relative;
  margin-bottom: 2rem;
  animation: bounce 2s ease-in-out infinite;
}

.rabbit {
  font-size: 4rem;
  animation: hop 1.5s ease-in-out infinite;
}

.carrot {
  position: absolute;
  font-size: 2rem;
  top: 50%;
  right: -80px;
  transform: translateY(-50%) rotate(25deg);
  animation: carrotFloat 2s ease-in-out infinite;
}

.loading-text h2 {
  font-family: var(--ff-heading);
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  animation: textPulse 2s ease-in-out infinite;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes hop {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(-5deg);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes earWiggle {
  0% {
    transform: rotate(-15deg);
  }
  100% {
    transform: rotate(-25deg);
  }
}

.rabbit-ear.right {
  animation-name: earWiggleRight;
}

@keyframes earWiggleRight {
  0% {
    transform: rotate(15deg);
  }
  100% {
    transform: rotate(25deg);
  }
}

@keyframes blink {
  0%, 90%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

@keyframes carrotFloat {
  0%, 100% {
    transform: translateY(-50%) rotate(25deg) translateX(0);
  }
  50% {
    transform: translateY(-50%) rotate(25deg) translateX(-10px);
  }
}

@keyframes textPulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

#root,
#__next {
  isolation: isolate;
}

/* CSS Reset End */

header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

header > img {
  height: 2rem;
  cursor: pointer;
}

main {
  margin: auto;
  width: min(90vw, 70rem);
  border-radius: 1rem;
  padding: 0.75rem 0;
  flex-grow: 1;
  display: flex;
}

.hero {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  flex-wrap: wrap-reverse;
}

.hero > .hero-img {
  width: min(calc(86.4vw + 1rem), 67rem);
  flex: 1;
}

.hero > .hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.hero > .hero-text > h1 {
  font-family: var(--ff-heading);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  font-size: var(--fs-heading);
}

.hero > .hero-text > p {
  font-weight: 400;
  color: var(--subtitle-color);
}

.email-address {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: white;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border-col);
  border-radius: 0.25rem;
}

.email-address:focus-within {
  border-color: var(--primary);
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05), 0 0 0 4px #f4ebff;
}

.email-address > input {
  border: none;
}

.email-address > input:is(:active, :focus) {
  outline: none;
}

#contactForm > .btn {
  border: none;
  font-size: var(--fs-body);
  background-color: var(--primary);
  color: white;
  padding: 1em 1.75em;
  border-radius: 0.25rem;
  cursor: pointer;
  display: block;
  margin-top: 1rem;
}

#contactForm > .btn:hover {
  background-color: #c66312;
}

/* Footer Styles */
footer {
  background-color: white;
  border-top: 1px solid var(--border-col);
  margin-top: 2rem;
}

.footer-content {
  max-width: 70rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  font-family: var(--ff-heading);
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.footer-section a {
  color: var(--subtitle-color);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-section a:hover {
  color: black;
}

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

.footer-section ul li {
  color: var(--subtitle-color);
  margin-bottom: 0.5rem;
  padding-left: 0;
}

.footer-logo {
  height: 1.75rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  background-color: #f8f9fa;
  padding: 1rem;
  text-align: center;
  border-top: 1px solid var(--border-col);
}

.footer-bottom p {
  color: var(--subtitle-color);
  font-size: 0.875rem;
  margin: 0;
}

.thank-you-container {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  margin: auto;
}

.thank-you-content {
  max-width: 600px;
  animation: fadeInUp 0.8s ease-out;
}

.checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
  animation: scaleIn 0.6s ease-out 0.2s both;
}

.checkmark svg {
  width: 40px;
  height: 40px;
  stroke: white;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkmark-path {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: drawCheck 0.8s ease-out 0.8s both;
}

.thank-you-title {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--primary);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.thank-you-message {
  font-size: var(--fs-body);
  color: var(--subtitle-color);
  margin-bottom: 2rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.home-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.home-button:hover {
  background-color: #c66312;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(223, 112, 21, 0.3);
}

.home-button svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.home-button:hover svg {
  transform: translateX(-2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-shape:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@media screen and (min-width: 680px) {
  main {
    align-items: center;
  }

  .hero {
    flex-direction: row-reverse;
  }

  .footer-content {
    padding: 3rem 1rem;
  }
}
