/* ============================================================
   CharMinder — Retro Neon Pastel Portfolio
   80s-inspired, sentry.io vibes, dark/light mode
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
}

/* ============================================================
   Hero Title — Neon Gradient Glow
   ============================================================ */
.hero-title {
  background: linear-gradient(135deg, #ff6eb4, #b388ff, #00f5d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Dark mode neon glow */
.dark .hero-title {
  filter: drop-shadow(0 0 20px rgba(255, 110, 180, 0.4))
          drop-shadow(0 0 60px rgba(179, 136, 255, 0.2))
          drop-shadow(0 0 100px rgba(0, 245, 212, 0.15));
  animation: neon-pulse 4s ease-in-out infinite alternate;
}

/* Light mode — softer glow */
.hero-title {
  filter: drop-shadow(0 0 10px rgba(255, 110, 180, 0.15));
}

@keyframes neon-pulse {
  0% {
    filter: drop-shadow(0 0 20px rgba(255, 110, 180, 0.4))
            drop-shadow(0 0 60px rgba(179, 136, 255, 0.2))
            drop-shadow(0 0 100px rgba(0, 245, 212, 0.15));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(255, 110, 180, 0.6))
            drop-shadow(0 0 80px rgba(179, 136, 255, 0.35))
            drop-shadow(0 0 120px rgba(0, 245, 212, 0.25));
  }
  100% {
    filter: drop-shadow(0 0 20px rgba(255, 110, 180, 0.4))
            drop-shadow(0 0 60px rgba(179, 136, 255, 0.2))
            drop-shadow(0 0 100px rgba(0, 245, 212, 0.15));
  }
}

/* ============================================================
   Section Heading Neon Glow
   ============================================================ */
.dark .neon-text-glow {
  text-shadow:
    0 0 7px rgba(0, 245, 212, 0.5),
    0 0 20px rgba(0, 245, 212, 0.3),
    0 0 40px rgba(0, 245, 212, 0.15);
}

.neon-text-glow {
  text-shadow:
    0 0 5px rgba(255, 110, 180, 0.2),
    0 0 15px rgba(255, 110, 180, 0.1);
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline {
  position: relative;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
}

.dark .timeline::before {
  background: transparent;
}

.timeline::before {
  background: transparent;
}

/* Progress line (scroll-driven) */
.timeline-progress {
  position: absolute;
  left: 8px;
  top: 0;
  width: 2px;
  height: 0%;
  border-radius: 2px;
  z-index: 1;
  will-change: height;
}

.dark .timeline-progress {
  background: linear-gradient(to bottom, #b388ff, #00f5d4, #ff6eb4);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.4), 0 0 30px rgba(179, 136, 255, 0.15);
}

.timeline-progress {
  background: linear-gradient(to bottom, #ff6eb4, #b388ff, #00f5d4);
  box-shadow: 0 0 8px rgba(255, 110, 180, 0.3);
}

/* Timeline items */
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 24px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Timeline dot */
.timeline-dot {
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: box-shadow 0.3s, transform 0.3s;
}

.dark .timeline-dot {
  background: #2a2a45;
  border: 3px solid #0d0d1a;
  box-shadow: none;
  transition: background 0.5s ease, box-shadow 0.5s ease, transform 0.3s ease;
}

.timeline-dot {
  background: #d5d0cb;
  border: 3px solid #faf8f5;
  box-shadow: none;
  transition: background 0.5s ease, box-shadow 0.5s ease, transform 0.3s ease;
}

/* Active dot — line has reached it */
.dark .timeline-item.timeline-active .timeline-dot {
  background: #00f5d4;
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.5);
}

.timeline-item.timeline-active .timeline-dot {
  background: #ff6eb4;
  box-shadow: 0 0 10px rgba(255, 110, 180, 0.3);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.4);
}

.dark .timeline-item:hover .timeline-dot {
  box-shadow: 0 0 24px rgba(0, 245, 212, 0.8);
}

.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 20px rgba(255, 110, 180, 0.6);
}

/* Last dot special color (only when active) */
.dark .timeline-item:last-child.timeline-active .timeline-dot {
  background: #ffe66d;
  box-shadow: 0 0 16px rgba(255, 230, 109, 0.6);
}

.timeline-item:last-child.timeline-active .timeline-dot {
  background: #b388ff;
  box-shadow: 0 0 14px rgba(179, 136, 255, 0.4);
}

/* Timeline content card */
.timeline-content {
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.dark .timeline-content {
  background: rgba(22, 22, 37, 0.4);
  border-color: rgba(42, 42, 69, 0.5);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(229, 224, 219, 0.5);
}

.timeline-item:hover .timeline-content {
  transform: translateX(4px);
}

.dark .timeline-item:hover .timeline-content {
  background: rgba(22, 22, 37, 0.7);
  border-color: rgba(0, 245, 212, 0.2);
  box-shadow: 0 4px 30px rgba(0, 245, 212, 0.08);
}

.timeline-item:hover .timeline-content {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 110, 180, 0.2);
  box-shadow: 0 4px 30px rgba(255, 110, 180, 0.06);
}

/* ============================================================
   Contact Cards
   ============================================================ */
.contact-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dark .contact-card {
  background: rgba(22, 22, 37, 0.6);
  border: 1px solid #2a2a45;
  color: #e5e5e5;
}

.contact-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e5e0db;
  color: #333;
}

.dark .contact-card:hover {
  border-color: #00f5d4;
  color: #00f5d4;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.15), 0 8px 30px rgba(0, 0, 0, 0.2);
}

.contact-card:hover {
  border-color: #ff6eb4;
  color: #ff6eb4;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(255, 110, 180, 0.1), 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   Side Navigation
   ============================================================ */
.nav-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.2s;
}

.dark .nav-dot {
  border: 2px solid #444;
}

.nav-dot {
  border: 2px solid #ccc;
}

.nav-dot:hover {
  transform: scale(1.4);
}

.dot-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  border-radius: 50%;
  transition: height 0.4s ease;
}

.dark .dot-fill {
  background: linear-gradient(to top, #ff6eb4, #b388ff, #00f5d4);
}

.dot-fill {
  background: linear-gradient(to top, #ff6eb4, #b388ff, #00f5d4);
}

.dark .nav-dot.active {
  border-color: #00f5d4;
}

.nav-dot.active {
  border-color: #ff6eb4;
}

.nav-dot.filled .dot-fill {
  height: 100%;
}

.nav-label {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.dark .nav-label {
  color: #00f5d4;
}

.nav-label {
  color: #ff6eb4;
}

.nav-dot:hover .nav-label {
  opacity: 1;
}

/* ============================================================
   Reveal Animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(4px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Timeline items: slide from left + up for a more dynamic entrance */
.timeline-item.reveal {
  transform: translateX(-24px) translateY(20px);
}

.timeline-item.reveal.visible {
  transform: translateX(0) translateY(0);
}

/* Stagger delays for items visible simultaneously */
.timeline-item.reveal:nth-child(2) { transition-delay: 0.06s; }
.timeline-item.reveal:nth-child(3) { transition-delay: 0.12s; }
.timeline-item.reveal:nth-child(4) { transition-delay: 0.18s; }
.timeline-item.reveal:nth-child(5) { transition-delay: 0.24s; }
.timeline-item.reveal:nth-child(6) { transition-delay: 0.30s; }
.timeline-item.reveal:nth-child(7) { transition-delay: 0.36s; }

/* Principle items stagger */
.principle-item.reveal:nth-child(1) { transition-delay: 0.00s; }
.principle-item.reveal:nth-child(2) { transition-delay: 0.06s; }
.principle-item.reveal:nth-child(3) { transition-delay: 0.12s; }
.principle-item.reveal:nth-child(4) { transition-delay: 0.18s; }
.principle-item.reveal:nth-child(5) { transition-delay: 0.24s; }
.principle-item.reveal:nth-child(6) { transition-delay: 0.30s; }
.principle-item.reveal:nth-child(7) { transition-delay: 0.36s; }
.principle-item.reveal:nth-child(8) { transition-delay: 0.42s; }

/* Principle marker glow */
.dark .principle-marker {
  box-shadow: 0 0 6px rgba(0, 245, 212, 0.5);
}

.principle-marker {
  box-shadow: 0 0 6px rgba(255, 110, 180, 0.3);
}

/* ============================================================
   Theme Toggle Animation
   ============================================================ */
#theme-toggle {
  overflow: hidden;
}

#theme-toggle:hover {
  box-shadow: 0 0 20px rgba(179, 136, 255, 0.3);
}

.dark #theme-toggle:hover {
  box-shadow: 0 0 20px rgba(255, 230, 109, 0.3);
}

/* ============================================================
   Scanline Overlay Effect (Dark Mode Only)
   ============================================================ */
.dark body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

.dark ::-webkit-scrollbar-thumb {
  background: #2a2a45;
  border-radius: 3px;
}

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

.dark ::-webkit-scrollbar-thumb:hover {
  background: #b388ff;
}

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

/* ============================================================
   Selection Color
   ============================================================ */
.dark ::selection {
  background: rgba(0, 245, 212, 0.25);
  color: white;
}

::selection {
  background: rgba(255, 110, 180, 0.2);
  color: #333;
}


/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .timeline {
    padding-left: 32px;
  }

  .timeline-item {
    padding-left: 16px;
  }

  .timeline-content {
    padding: 12px 16px;
  }
}
