html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #34d399;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

a {
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

::selection {
  background-color: #34d399;
  color: #111111;
}

#main-navbar {
  will-change:
    background-color,
    padding,
    margin,
    border-radius,
    backdrop-filter;
}

.nav-scrolled {
  background-color: #ffffff !important;
}

#nav-logo-container {
  white-space: nowrap;
}

#nav-logo-img {
  flex-shrink: 0;
}

#nav-logo-text {
  line-height: 1;
  transition:
    color 0.3s ease,
    margin-left 0.3s ease;
}

@media (max-width: 767px) {
  #main-navbar {
    border-radius: 0;
  }
}

/* Global Responsive & Overflow Safeguards */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* Better touch target and text wrapping for small screens */
@media (max-width: 640px) {
  h1, h2, h3, h4 {
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

