/* ===== Fade-in animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hero gradient text ===== */
.hero-gradient {
  background: linear-gradient(135deg, #7ec8a0 0%, #c8aa6e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Nav bar subtle glow ===== */
.nav-glow {
  box-shadow: 0 0 12px rgba(126, 200, 160, 0.12),
              0 0 4px rgba(126, 200, 160, 0.08);
}

/* ===== Scroll indicator animation ===== */
.scroll-dot {
  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 1; }
}

.scroll-hint {
  animation: fadeOutScroll 4s ease forwards;
  animation-delay: 3s;
}

@keyframes fadeOutScroll {
  to { opacity: 0; }
}


/* ===== SVG pad transitions ===== */
.pad {
  transition: fill 0.15s ease, fill-opacity 0.15s ease, stroke 0.15s ease;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ===== Selection ===== */
::selection {
  background: rgba(126, 200, 160, 0.2);
  color: white;
}

/* ===== Nav open state — square bottom corners ===== */
nav:has(#mobile-menu.flex) {
  border-radius: 1.25rem;
}

/* ===== Mobile touch targets ===== */
@media (max-width: 767px) {
  .mobile-link {
    display: block;
    padding: 0.5rem 0;
    width: 100%;
    text-align: center;
  }
}

/* ===== Smooth page scroll & overflow fix ===== */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: clip;
  position: relative;
  width: 100%;
}
