* {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100%;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(143, 232, 128, 0.25); }
  50% { box-shadow: 0 0 40px rgba(143, 232, 128, 0.5); }
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink {
  50% { border-color: transparent; }
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-fade-up { animation: fadeUp 0.8s ease forwards; }
.animate-fade-in { animation: fadeIn 1s ease forwards; }
.animate-slide-left { animation: slideLeft 0.8s ease forwards; }
.animate-slide-right { animation: slideRight 0.8s ease forwards; }
.animate-scale-in { animation: scaleIn 0.6s ease forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-gradient { background-size: 200% 200%; animation: gradient-shift 4s ease infinite; }
.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

.typing-text {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #8FE97F;
  animation: typing 3s steps(30) forwards, blink 0.8s step-end infinite;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

.obs-hidden { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.obs-visible { opacity: 1; transform: translateY(0); }

.card-hover { transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.card-hover:hover { transform: translateY(-8px) scale(1.02); }

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #8FE97F;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.glass { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.timeline-line {
  position: absolute; left: 20px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, #172E23, #8FE97F, #C7E9C7);
}
.timeline-dot {
  position: absolute; left: 12px; top: 24px;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #172E23, #8FE97F);
  border: 3px solid white;
  z-index: 2;
}
.dark .timeline-dot { border-color: #0E1B15; }

.skill-tag {
  transition: all 0.3s ease;
}
.skill-tag:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(143, 232, 128, 0.4);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 20px;
  background: rgba(14, 27, 21, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(23, 46, 35, 0.1);
}

.dark .modal-content {
  background: #16291F;
  color: #ffffff;
  border: 1px solid rgba(199, 233, 197, 0.15);
}

.modal.active .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 10;
}

/* Hide scrollbars for carousel */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
