@import url("https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Caveat:wght@400;700&family=Outfit:wght@300;400;500;600;700;800&family=Patrick+Hand&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap");

/* Main font configurations */
body {
  font-family: "Outfit", sans-serif;
  background-color: #faf9f6;
  color: #2d3748;
}

/* Custom handwriting utility classes */
.font-handwritten {
  font-family: "Caveat", cursive;
}

.font-sketchy {
  font-family: "Architects Daughter", cursive;
}

.font-caption {
  font-family: "Patrick Hand", cursive;
}

.font-serif-title {
  font-family: "Playfair Display", serif;
}

/* Crayon Sketchy Border Trick */
.sketch-card {
  border: 3px solid currentColor;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
}

.sketch-card-thin {
  border: 1.5px solid currentColor;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
}

.sketch-pill {
  border: 2px solid currentColor;
  border-radius: 120px 8px 110px 12px/10px 105px 8px 115px;
}

/* Keyframe Animations */
@keyframes float-lego {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

@keyframes sway-hand {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(-2deg);
  }
}

@keyframes float-boat {
  0%,
  100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  50% {
    transform: translate(8px, -8px) rotate(1deg);
  }
}

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

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

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Animation utilities */
.animate-float-lego {
  animation: float-lego 6s ease-in-out infinite;
}

.animate-sway-hand {
  animation: sway-hand 5s ease-in-out infinite;
}

.animate-float-boat {
  animation: float-boat 7s ease-in-out infinite;
}

.animate-float-diver {
  animation: float-diver 8s ease-in-out infinite;
}

.animate-float-flower {
  animation: float-flower 6s ease-in-out infinite;
}

.animate-marquee-container {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.animate-marquee-container:hover {
  animation-play-state: paused;
}

/* Ensure marquee children keep their intrinsic width so the loop is seamless */
.animate-marquee-container > * {
  flex-shrink: 0;
}

.animate-marquee-container {
  will-change: transform;
}

/* Milestones styles */
.milestones {
  position: relative;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.milestone-number {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  background: linear-gradient(90deg, #18e7e4, #1aa7ff 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.05);
}
.milestone-caption {
  font-size: 0.875rem;
  color: #f4eed8;
}
.dotted-path {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3;
  stroke-dasharray: 6 8;
  fill: none;
}

.seabed {
  position: relative;
  overflow: visible;
}
.diver {
  position: absolute;
  right: 6%;
  top: -60px;
  width: 260px;
  transform: rotate(-6deg);
}
.contact-box {
  background: rgba(255, 255, 255, 0.06);
  padding: 1.25rem;
  border-radius: 16px;
}

@media (min-width: 1024px) {
  .milestone-number {
    font-size: 4.5rem;
  }
  .diver {
    width: 360px;
    top: -80px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #faf9f6;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Canvas/Paper Subtle texture background overlay */
.paper-overlay {
  position: relative;
}

.paper-overlay::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 9999;
}

/* Custom Underline Hover */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: currentColor;
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Why Second Wind Bidirectional Connecting Magnify Hover Animation */
.why-interactive {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.why-interactive.magnified-item {
  transform: scale(1.04) translateX(10px);
  transform-origin: left center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.why-interactive.magnified-dot {
  transform: scale(1.5) !important;
  box-shadow: 0 0 12px currentColor;
  z-index: 100 !important;
}
.wave-top {
  height: 100px; /* Adjust height to match your desired wave depth */
  width: 100%;
  background: top cover no-repeat;
  /* z-index: 40; */
  /* Match your brandPink color */
}
