:root {
  --primary: #00d4ff;
  --primary-dark: #00a8cc;
  --secondary: #7c3aed;
  --accent: #ec4899;
  --bg-dark: #0a0a0f;
  --bg-darker: #050508;
  --bg-card: rgba(20, 20, 30, 0.6);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --gradient-1: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-2: linear-gradient(135deg, var(--secondary), var(--accent));
  --gradient-3: linear-gradient(135deg, #00d4ff, #7c3aed, #ec4899);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Particle Background */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: transparent;
}

.nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.1) rotate(-5deg);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 575px;
  height: 575px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: heroGlow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroGlow {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.8;
  }
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  perspective: 1000px;
}

.title-line {
  display: block;
  opacity: 0;
  animation: glitchReveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  position: relative;
}

.title-line:first-child {
  animation-delay: 0.2s;
}

@keyframes glitchReveal {
  0% {
    opacity: 0;
    transform: translateX(-100px) rotateX(90deg);
    filter: blur(10px);
  }

  20% {
    opacity: 0.8;
    transform: translateX(10px) rotateX(-5deg);
    filter: blur(0px);
  }

  40% {
    transform: translateX(-5px) rotateX(5deg);
  }

  60% {
    transform: translateX(3px) rotateX(-2deg);
  }

  80% {
    transform: translateX(-2px) rotateX(1deg);
  }

  100% {
    opacity: 1;
    transform: translateX(0) rotateX(0deg);
    filter: blur(0px);
  }
}

.gradient-text {
  background: var(--gradient-3);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glitchReveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards, gradientFlow 5s ease infinite;
  animation-delay: 0.5s, 1.5s;
  position: relative;
  display: inline-block;
}

.gradient-text::before,
.gradient-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
}

.gradient-text::before {
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.gradient-text::after {
  animation: glitch2 3s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch1 {

  0%,
  90%,
  100% {
    opacity: 0;
    transform: translateX(0);
  }

  91%,
  94% {
    opacity: 0.8;
    transform: translateX(-2px);
  }

  92%,
  95% {
    opacity: 0.8;
    transform: translateX(2px);
  }
}

@keyframes glitch2 {

  0%,
  90%,
  100% {
    opacity: 0;
    transform: translateX(0);
  }

  91%,
  94% {
    opacity: 0.8;
    transform: translateX(2px);
  }

  92%,
  95% {
    opacity: 0.8;
    transform: translateX(-2px);
  }
}

@keyframes gradientFlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 500;
  opacity: 0;
  animation: floatIn 1s cubic-bezier(0.23, 1, 0.32, 1) 0.8s forwards, breathe 4s ease-in-out 2s infinite;
  min-height: 2em;
}

.typing-cursor {
  display: inline-block;
  color: var(--primary);
  margin-left: 2px;
}

.typing-cursor.insert-mode {
  animation: blink 0.8s step-end infinite;
}

.typing-cursor.normal-mode {
  background: var(--primary);
  color: var(--bg-dark);
  margin-left: 0;
  padding: 0 2px;
  animation: blockBlink 1s step-end infinite;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

@keyframes blockBlink {

  0%,
  70% {
    opacity: 1;
  }

  71%,
  100% {
    opacity: 0.3;
  }
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: floatIn 1s cubic-bezier(0.23, 1, 0.32, 1) 1s forwards;
}

.hero-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  opacity: 0;
  animation: floatIn 1s cubic-bezier(0.23, 1, 0.32, 1) 1.2s forwards;
}

.social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.social-link:nth-child(1) {
  animation-delay: 1.3s;
}

.social-link:nth-child(2) {
  animation-delay: 1.45s;
}

.social-link:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }

  70% {
    transform: scale(1.2) rotate(10deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--gradient-1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: -1;
}

.social-link:hover::before {
  width: 200%;
  height: 200%;
}

.social-link:hover {
  transform: translateY(-10px) scale(1.15) rotate(360deg);
  color: white;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
}

.social-link svg {
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.social-link:hover svg {
  transform: scale(1.2);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: floatIn 1s cubic-bezier(0.23, 1, 0.32, 1) 1.4s forwards;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-cta .btn:nth-child(1) {
  animation-delay: 1.6s;
}

.hero-cta .btn:nth-child(2) {
  animation-delay: 1.8s;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  border-radius: 50%;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.9), rgba(0, 168, 204, 0.9));
  color: white;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(135deg, rgba(0, 180, 216, 1), rgba(0, 168, 204, 1));
  box-shadow: 0 15px 40px rgba(0, 180, 216, 0.5), 0 0 30px rgba(0, 180, 216, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--glass-border);
  backdrop-filter: blur(10px);
  position: relative;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn-secondary:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--primary);
  color: white;
}

.btn-secondary:hover::after {
  opacity: 0.3;
}

/* Section Styles */
section {
  position: relative;
  padding: 8rem 0;
  z-index: 2;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-number {
  font-size: 1.5rem;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

.section-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  max-width: 600px;
}

/* Timeline */
.timeline-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.timeline-filter {
  padding: 0.75rem 2rem;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.timeline-filter::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--gradient-1);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: -1;
}

.timeline-filter:hover::before {
  width: 300px;
  height: 300px;
}

.timeline-filter:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.timeline-filter.active {
  background: var(--gradient-1);
  border-color: transparent;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* SVG DNA Helix is added dynamically via JavaScript */
.dna-helix {
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
  animation: helixGlow 3s ease-in-out infinite;
}

@keyframes helixGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
  }

  50% {
    filter: drop-shadow(0 0 15px rgba(124, 58, 237, 0.7)) drop-shadow(0 0 20px rgba(236, 72, 153, 0.5));
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  width: 50%;
  padding: 0 3rem;
  transform: translateY(50px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alternate left and right */
.timeline-item:nth-child(odd) {
  align-self: flex-end;
  text-align: right;
  padding-right: 5rem;
  padding-left: 0;
}

.timeline-item:nth-child(even) {
  align-self: flex-start;
  margin-left: 50%;
  text-align: left;
  padding-left: 5rem;
  padding-right: 0;
}

.timeline-item.hidden {
  display: none;
}

/* Icon nodes positioned beside the helix */
.timeline-item::before {
  content: attr(data-icon);
  position: absolute;
  top: 0;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(20, 25, 35, 1), rgba(30, 35, 45, 1));
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6),
    0 0 60px rgba(124, 58, 237, 0.4),
    0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: helixNodePulse 3s ease-in-out infinite;
}

.timeline-item:nth-child(odd)::before {
  right: -8rem;
}

.timeline-item:nth-child(even)::before {
  left: -8rem;
}

.timeline-item:hover::before {
  transform: scale(1.2) rotate(360deg);
  box-shadow: 0 0 40px rgba(0, 212, 255, 1),
    0 0 80px rgba(236, 72, 153, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  animation: none;
}

.timeline-card {
  background: linear-gradient(135deg, rgba(20, 25, 35, 0.9), rgba(30, 35, 45, 0.85));
  backdrop-filter: blur(20px);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Animated gradient border effect */
.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.timeline-card:hover::before {
  opacity: 1;
}

.timeline-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.25),
    0 0 0 1px rgba(0, 212, 255, 0.1);
}

/* Keep content above the pseudo-elements */
.timeline-card>* {
  position: relative;
  z-index: 1;
}

.timeline-header {
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  transition: border-color 0.3s ease;
}

/* Right-aligned items (odd) - border on right */
.timeline-item:nth-child(odd) .timeline-header {
  border-left: none;
  border-right: 3px solid var(--primary);
  padding-left: 0;
  padding-right: 1rem;
}

/* Left-aligned items (even) - border on left */
.timeline-item:nth-child(even) .timeline-header {
  border-left: 3px solid var(--primary);
  border-right: none;
  padding-left: 1rem;
  padding-right: 0;
}

.timeline-card:hover .timeline-header {
  border-color: var(--accent);
}

.timeline-period {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.75rem;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 6px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.timeline-card:hover .timeline-period {
  background: rgba(0, 212, 255, 0.2);
  transform: translateX(5px);
}

.timeline-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.timeline-card:hover .timeline-title {
  color: var(--primary);
}

.timeline-subtitle {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.timeline-organization {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.8;
}

.timeline-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1rem;
  opacity: 0.9;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-item:nth-child(odd) .timeline-tags {
  justify-content: flex-end;
}

.timeline-item:nth-child(even) .timeline-tags {
  justify-content: flex-start;
}

.timeline-tag {
  padding: 0.5rem 1rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 20px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  backdrop-filter: blur(10px);
}

.timeline-tag:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  perspective: 1000px;
}

.skill-category {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg,
      var(--primary),
      #ff00ff,
      #00d4ff,
      var(--secondary),
      var(--primary));
  background-size: 400% 400%;
  border-radius: 20px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
  animation: gradientShift 15s ease infinite;
}

.skill-category::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  border-radius: 20px;
  z-index: -1;
}

.skill-category:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: var(--primary);
  box-shadow:
    0 15px 35px rgba(0, 212, 255, 0.08),
    0 0 25px rgba(0, 212, 255, 0.04);
}

.skill-category:hover::before {
  opacity: 0.15;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.skill-category-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
}

.skill-item {
  position: relative;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  border-radius: 50%;
  z-index: 0;
}

.skill-item:hover::before {
  width: 200px;
  height: 200px;
}

.skill-item:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.1) rotate(2deg);
  box-shadow:
    0 5px 20px rgba(0, 212, 255, 0.3),
    0 0 30px rgba(0, 212, 255, 0.2);
}

.skill-item.featured {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 0, 255, 0.1));
  border-color: var(--primary);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 30px rgba(0, 212, 255, 0.3);
  }
}

/* Ripple effect for skill items */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.6) 0%, transparent 70%);
  pointer-events: none;
  animation: ripple 0.6s ease-out;
  z-index: 1;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Skill bounce animation */
@keyframes skillBounce {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  25% {
    transform: scale(1.15) rotate(-5deg);
  }

  50% {
    transform: scale(1.1) rotate(3deg);
  }

  75% {
    transform: scale(1.15) rotate(-3deg);
  }
}

/* Skill particles */
.skill-particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: particleBurst 0.8s ease-out forwards;
  box-shadow: 0 0 10px var(--primary);
}

@keyframes particleBurst {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* Sparkle effects */
.sparkle {
  position: fixed;
  width: 6px;
  height: 6px;
  pointer-events: none;
  z-index: 9999;
  animation: sparkleEffect 1s ease-out forwards;
}

.sparkle::before,
.sparkle::after {
  content: '';
  position: absolute;
  background: linear-gradient(45deg, #00d4ff, #ff00ff, #00d4ff);
  border-radius: 50%;
}

.sparkle::before {
  width: 6px;
  height: 6px;
  top: 0;
  left: 0;
  box-shadow: 0 0 10px var(--primary);
}

.sparkle::after {
  width: 2px;
  height: 10px;
  top: -2px;
  left: 2px;
  box-shadow: 0 0 8px var(--secondary);
}

@keyframes sparkleEffect {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }

  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 1;
  }

  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}

/* Interests Grid */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.interest-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn 0.6s ease forwards;
  position: relative;
  overflow: hidden;
}

.interest-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-3);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.interest-card:hover::before {
  transform: scaleX(1);
}

.interest-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.interest-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.interest-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.interest-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Philosophy Section */
.philosophy-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 4rem 3rem;
  animation: fadeIn 1s ease;
}

.philosophy-icon {
  font-size: 5rem;
  margin-bottom: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

.philosophy-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.philosophy-content {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 2rem;
}

.philosophy-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--primary);
  padding-left: 1.5rem;
  text-align: left;
}

/* Links Section */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.link-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.link-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(236, 72, 153, 0.3);
}

.link-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.link-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.link-arrow {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  transition: transform 0.3s ease;
}

.link-card:hover .link-arrow {
  transform: translateX(5px);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
  border-color: var(--primary);
  color: var(--text-primary);
}

.contact-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
}

#bio-neural-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: crosshair;
}

.contact-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  animation: rotate 20s linear infinite;
}

.contact-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  border-color: rgba(0, 212, 255, 0.3);
}

.contact-circle:nth-child(2) {
  width: 200px;
  height: 200px;
  border-color: rgba(124, 58, 237, 0.3);
  animation-direction: reverse;
  animation-duration: 15s;
}

.contact-circle:nth-child(3) {
  width: 100px;
  height: 100px;
  border-color: rgba(236, 72, 153, 0.3);
  animation-duration: 10s;
}

/* Footer */
.footer {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0;
  text-align: center;
  z-index: 2;
  position: relative;
}

.footer p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer code {
  background: var(--glass-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 20px var(--primary);
    opacity: 1;
  }

  50% {
    box-shadow: 0 0 40px var(--primary), 0 0 60px var(--secondary);
    opacity: 0.8;
  }
}

@keyframes iconPulse {

  0%,
  100% {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6),
      inset 0 0 20px rgba(0, 212, 255, 0.2);
  }

  50% {
    box-shadow: 0 0 50px rgba(0, 212, 255, 1),
      inset 0 0 30px rgba(0, 212, 255, 0.4);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}


@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes helixFlow {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 200px;
  }
}

@keyframes helixNodePulse {

  0%,
  100% {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6),
      0 0 60px rgba(124, 58, 237, 0.4),
      0 4px 10px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
  }

  50% {
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.8),
      0 0 80px rgba(0, 212, 255, 0.6),
      0 4px 10px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
  }
}

@keyframes pulseConnection {

  0%,
  100% {
    opacity: 0.4;
    box-shadow: 0 0 10px var(--primary);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 20px var(--accent);
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
    border-top: 1px solid var(--glass-border);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-visual {
    height: 300px;
  }

  .dna-helix {
    display: none;
  }

  /* Mobile simple line instead of helix */
  .timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
        var(--primary) 0%,
        var(--secondary) 50%,
        var(--accent) 100%);
    box-shadow: 0 0 10px var(--primary);
  }

  .timeline-item {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 0 0 5rem !important;
    text-align: left !important;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 5rem !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-item::before {
    left: 0.7rem !important;
    right: auto !important;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .timeline-item::after {
    left: 4rem !important;
    right: auto !important;
    width: 1rem;
  }

  .timeline-item:nth-child(odd) .timeline-card:hover,
  .timeline-item:nth-child(even) .timeline-card:hover {
    transform: translateY(-8px) !important;
  }

  .timeline-tags {
    justify-content: flex-start !important;
  }

  .timeline-header {
    border-left: 2px solid var(--primary) !important;
    border-right: none !important;
    padding-left: 0.75rem !important;
    padding-right: 0 !important;
  }

  .timeline-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .skills-grid,
  .interests-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-card {
    padding: 2rem 1.5rem;
  }
}

/* Stagger transitions for timeline items */
.timeline-item:nth-child(1) {
  transition-delay: 0s;
}

.timeline-item:nth-child(2) {
  transition-delay: 0.05s;
}

.timeline-item:nth-child(3) {
  transition-delay: 0.1s;
}

.timeline-item:nth-child(4) {
  transition-delay: 0.15s;
}

.timeline-item:nth-child(5) {
  transition-delay: 0.2s;
}

.timeline-item:nth-child(6) {
  transition-delay: 0.25s;
}

.timeline-item:nth-child(7) {
  transition-delay: 0.3s;
}

.timeline-item:nth-child(8) {
  transition-delay: 0.35s;
}

/* Stagger animations for skill categories */
.skill-category:nth-child(1) {
  animation-delay: 0.1s;
}

.skill-category:nth-child(2) {
  animation-delay: 0.2s;
}

.skill-category:nth-child(3) {
  animation-delay: 0.3s;
}

.skill-category:nth-child(4) {
  animation-delay: 0.4s;
}

/* Stagger animations for interest cards */
.interest-card:nth-child(1) {
  animation-delay: 0.1s;
}

.interest-card:nth-child(2) {
  animation-delay: 0.2s;
}

.interest-card:nth-child(3) {
  animation-delay: 0.3s;
}

.interest-card:nth-child(4) {
  animation-delay: 0.4s;
}

.interest-card:nth-child(5) {
  animation-delay: 0.5s;
}

/* Stagger animations for link cards */
.link-card:nth-child(1) {
  animation-delay: 0.1s;
}

.link-card:nth-child(2) {
  animation-delay: 0.2s;
}

.link-card:nth-child(3) {
  animation-delay: 0.3s;
}

.link-card:nth-child(4) {
  animation-delay: 0.4s;
}
