/* ============================================
   COMPONENT ANIMATIONS & EXTRAS
   ============================================ */

/* Project card hover effects */
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition);
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 50%);
  pointer-events: none;
}

.project-card:hover::after {
  opacity: 1;
}

/* Skill bar animation triggers */
.skill-bar-fill.animated {
  animation: fillBar 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Timeline item stagger */
.timeline-item:nth-child(1) { transition-delay: 0s; }
.timeline-item:nth-child(2) { transition-delay: 0.1s; }
.timeline-item:nth-child(3) { transition-delay: 0.2s; }
.timeline-item:nth-child(4) { transition-delay: 0.3s; }
.timeline-item:nth-child(5) { transition-delay: 0.4s; }

/* Project card entrance */
.project-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:nth-child(1) { transition-delay: 0s; }
.project-card:nth-child(2) { transition-delay: 0.1s; }
.project-card:nth-child(3) { transition-delay: 0.15s; }
.project-card:nth-child(4) { transition-delay: 0.2s; }
.project-card:nth-child(5) { transition-delay: 0.25s; }
.project-card:nth-child(6) { transition-delay: 0.3s; }
.project-card:nth-child(7) { transition-delay: 0.35s; }

/* Cert item hover glow */
.cert-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  transition: background var(--transition);
}

.cert-item {
  position: relative;
  overflow: hidden;
}

.cert-item:hover::before {
  background: var(--accent-primary);
}

/* Education card border colors */
.edu-card:nth-child(1)::before { background: #6366f1; }
.edu-card:nth-child(2)::before { background: #10b981; }
.edu-card:nth-child(3)::before { background: #f59e0b; }

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

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

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

/* Focus states */
.btn:focus-visible,
.filter-btn:focus-visible,
.theme-toggle:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Loading skeleton for dynamic content */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-card) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Glassmorphism accent line for sections */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  opacity: 0;
}

.section:not(.hero)::before {
  opacity: 1;
}

/* Tech icon bubbles for skill items */
.skill-item:hover .skill-name {
  color: var(--accent-primary);
}

.skill-item:hover .skill-bar-bg {
  background: var(--bg-card);
}

/* Contact card icon animation */
.contact-card:hover .contact-card-icon {
  transform: scale(1.1);
}

.contact-card-icon {
  transition: transform var(--transition);
}

/* Footer gradient line */
.footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  margin-bottom: -1px;
  position: relative;
  top: -49px;
}

/* Subtle page transition */
body {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
