/* SunuMetal Custom CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Bebas+Neue&display=swap');

:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --gray-900: #111827;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* Selection */
::selection { background: var(--orange); color: white; }

/* Desktop navbar links */
.desktop-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.desktop-nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.45rem;
  height: 2px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.desktop-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.desktop-nav-link.active {
  color: #ffffff;
}

.desktop-nav-link.active::after,
.desktop-nav-link:hover::after {
  transform: scaleX(1);
}

/* Buttons */
.btn-primary {
  @apply inline-flex items-center bg-orange-500 hover:bg-orange-600 text-white font-bold px-7 py-3.5 rounded-full transition-all duration-200 shadow-lg shadow-orange-500/25 hover:shadow-orange-500/40 hover:-translate-y-0.5;
}
.btn-secondary {
  @apply inline-flex items-center bg-white/10 hover:bg-white/20 text-white font-bold px-7 py-3.5 rounded-full border border-white/20 backdrop-blur-sm transition-all duration-200;
}

/* On white backgrounds */
section .btn-secondary {
  @apply bg-gray-100 hover:bg-gray-200 text-gray-700 border-gray-200 !important;
}

/* Project cards */
.project-card {
  @apply bg-white rounded-2xl shadow-sm hover:shadow-xl border border-gray-100 hover:border-orange-200 overflow-hidden transition-all duration-300;
}

/* Sparks animation for hero */
.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #f97316;
  border-radius: 50%;
  animation: spark-float 6s infinite;
  opacity: 0;
  filter: blur(1px);
}
.spark-1 { left: 20%; animation-delay: 0s; animation-duration: 8s; }
.spark-2 { left: 60%; animation-delay: 2s; animation-duration: 6s; }
.spark-3 { left: 80%; animation-delay: 4s; animation-duration: 7s; }

@keyframes spark-float {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* Slide-in animation for alerts */
@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.animate-slide-in {
  animation: slide-in 0.3s ease-out;
}

/* Line clamp */
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

/* Better focus states */
*:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Prose (detail page) */
.prose p { margin-bottom: 1rem; }
.prose strong { color: #111827; font-weight: 700; }

/* Loading state */
#projectsContainer { transition: opacity 0.3s ease; }
