/* Global scroll behavior for smooth anchor scrolling */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Material Symbols Icon Font Configuration */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

/* Prevent any element from overflowing viewport */
* {
  box-sizing: border-box;
}

body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Ensure main content area never overflows */
main {
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive text sizing for small screens */
@media (max-width: 640px) {
  .font-headline-lg {
    font-size: 24px !important;
    line-height: 32px !important;
  }
  .font-headline-md {
    font-size: 18px !important;
    line-height: 24px !important;
  }
}

/* Ambient Float animation for background glows */
@keyframes float-glow {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  50% {
    transform: translate(20px, -30px) scale(1.08);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.animate-float-glow {
  animation: float-glow 12s ease-in-out infinite;
}

/* Float-glow-reverse for secondary background glow */
@keyframes float-glow-reverse {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  50% {
    transform: translate(-20px, 30px) scale(0.92);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.animate-float-glow-reverse {
  animation: float-glow-reverse 15s ease-in-out infinite;
}

/* Card reveal animation on page load */
@keyframes reveal-card {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-load {
  animation: reveal-card 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Pulsing emerald glow for CTA buttons */
@keyframes pulse-emerald {
  0% {
    box-shadow: 0 0 0 0 rgba(78, 222, 163, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(78, 222, 163, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(78, 222, 163, 0);
  }
}

.hover-pulse-emerald:hover {
  animation: pulse-emerald 2s infinite;
}

/* Autofill override to preserve dark mode and custom styles */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #051424 inset !important; /* Matches bg-surface-dim (#051424) */
  -webkit-text-fill-color: #d5e4fa !important; /* Matches text-on-surface (#d5e4fa) */
  transition: background-color 5000s ease-in-out 0s;
}

/* Force light text color on all inputs, textareas, and select elements */
input, textarea, select {
  color: #d5e4fa !important; /* Matches text-on-surface (#d5e4fa) */
  caret-color: #4edea3 !important; /* Blinking typing cursor matches glowing-emerald */
}

/* Ensure mouse pointer cursor for all interactive elements */
button, 
a, 
input[type="submit"],
input[type="button"],
.cursor-pointer {
  cursor: pointer !important;
}

/* Cursor styles are loaded from cursor.css */

