* {
  scrollbar-width: thin;
  scrollbar-color: #475569 #1e293b;
}

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

*::-webkit-scrollbar-track {
  background: #1e293b;
}

*::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

html {
  scroll-behavior: smooth;
}

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

.glow-border {
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.3), 0 0 40px rgba(52, 211, 153, 0.1);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(52, 211, 153, 0.15);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #10b981;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active::after {
  width: 100%;
}

.terminal-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: #10b981;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(52, 211, 153, 0.2);
}

.theme-toggle-btn {
  transition: transform 0.5s ease;
}

.theme-toggle-btn:hover {
  transform: rotate(30deg);
}

.contact-card {
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #10b981, transparent);
}

.timeline-dot {
  position: relative;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0f172a;
}

.timeline-line {
  position: relative;
}

.timeline-line::after {
  content: '';
  position: absolute;
  left: -24px;
  top: 24px;
  bottom: -24px;
  width: 2px;
  background: #334155;
}

.timeline-item:last-child .timeline-line::after {
  display: none;
}

.skill-tag {
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  transform: scale(1.05);
}