/* Base Styling */
body {
  background-color: #F5F1E8;
  color: #333;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

/* Utility Classes */
.bg-forest-green {
  background-color: #014421;
}
.text-forest-green {
  color: #014421;
}
.bg-sage-green {
  background-color: #B2AC88;
}
.text-sage-green {
  color: #B2AC88;
}
.hover\:text-sage-green:hover {
  color: #D5D0B6;
}

/* Transitions */
nav a {
  transition: color 0.3s ease-in-out;
}
button, a {
  transition: all 0.3s ease;
}

/* Hero text shadow */
header h1,
header p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Global scroll behavior */
html {
  scroll-behavior: smooth;
}

/* AOS overrides */
[data-aos] {
  transition-property: opacity, transform;
  transition-timing-function: ease-in-out;
}

/* Typing animation */
@keyframes typing {
  from { width: 0 }
  to { width: 34ch }
}

@keyframes blink {
  0%, 49% { border-color: white; }
  50%, 100% { border-color: transparent; }
}

.typing-wrapper {
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  max-width: 100vw;
  overflow-x: hidden;
}

.typing-text {
  font-size: 2rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid white;
  width: 0;
  animation: typing 4s steps(34, end) forwards, blink 0.7s step-end infinite;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .typing-text {
    animation: none;
    width: auto;
    white-space: normal;
    border-right: none;
    text-align: center;
  }
}

.text-shadow {
  text-shadow:
    1px 1px 3px rgba(0,0,0,0.7),
    0 0 5px rgba(0,0,0,0.5);
}
img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }
}



