/* Custom styles — supplements Tailwind CDN */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background: rgba(0, 212, 255, 0.2);
  color: #fff;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a2a2a;
}

/* Gradient text helper */
.gradient-text {
  background: linear-gradient(135deg, #22d3ee, #00d4ff, #00b8d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow effect for hero */
.glow {
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.08);
}

/* Subtle card hover lift */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Timeline dot pulse for current role */
@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 212, 255, 0);
  }
}

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

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Nav backdrop fallback */
@supports not (backdrop-filter: blur(12px)) {
  nav {
    background: rgba(10, 10, 10, 0.95) !important;
  }
}
