/* ═══════════════════════════ Base & Reset ═══════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: #FF3B3B44;
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #FF3B3B;
}

/* ═══════════════════════════ Glassmorphism ═══════════════════════════ */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-hover:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 59, 59, 0.2);
}

/* ═══════════════════════════ Text Effects ═══════════════════════════ */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #FF3B3B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cursor-blink::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: #FF3B3B;
  font-weight: 300;
}

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

/* ═══════════════════════════ Neon Border ═══════════════════════════ */
.neon-border {
  position: relative;
}

.neon-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #FF3B3B44, transparent 50%, #FF3B3B22);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ═══════════════════════════ Skill Bar ═══════════════════════════ */
.skill-bar {
  position: relative;
  overflow: hidden;
}

.skill-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ═══════════════════════════ Scroll Reveal ═══════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-delay-1 { transition-delay: 0.1s !important; }
.reveal-delay-2 { transition-delay: 0.2s !important; }
.reveal-delay-3 { transition-delay: 0.3s !important; }

/* ═══════════════════════════ Backgrounds ═══════════════════════════ */
.noise-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.015;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.grid-pattern {
  background-image:
    linear-gradient(rgba(255, 59, 59, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 59, 59, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ═══════════════════════════ Timeline ═══════════════════════════ */
.timeline-line {
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #FF3B3B44, transparent);
}
