/* Orbit Animation Enhancement - COMPLETE REWRITE */
#animated-orbit .orbit {
  animation: spin 20s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fix for tech items - using absolute positioning approach instead of counter-rotation */
.tech-item {
  transform-origin: 0 120px; /* Match the translateY value */
}

/* Keep content upright with this approach */
.tech-item .content {
  transform: rotate(calc(var(--i) * -30deg)); /* Counter the parent rotation */
}

/* Pulse effect for center of orbit */
.circle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  z-index: 10;
  text-align: center;
  font-size: 14px;
}

.circle-center .pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* Fix tech stack positioning and spacing */
.skills-widget {
  margin-top: 0;
  position: relative;
  z-index: 5;
}

.skills-widget h3 {
  position: relative;
  z-index: 20;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #3b82f6;
}

.tech-stack-circle {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 25px auto 0;
}

/* Hero layout fixes */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: calc(100vh - 200px); /* Reduce height to fix blank space */
  padding: 0;
  margin-bottom: 0;
}

/* Hero content sizing */
.hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  padding: 20px 0;
}

/* Mouse trail adjustment - ensure it doesn't affect layout */
.mouse-trail {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  top: 0;
  left: 0;
}

/* Particles container fix */
.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
}

/* Section spacing fix */
section {
  position: relative;
  overflow: hidden;
  min-height: auto; /* Remove fixed height */
  padding: 60px 0;
}

#home {
  min-height: 100vh;
  padding-top: 80px;
}

/* Fix cursor positioning */
.cursor {
  display: inline-block;
  width: 2px;
  background-color: #3b82f6;
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Project card hover animation */
.animate-on-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animate-on-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Scroll progress bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1000;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(to right, #3b82f6, #60a5fa);
  width: 0%;
  transition: width 0.05s ease;
}

/* Theme toggle enhanced animation */
.theme-toggle i {
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.theme-toggle:hover i {
  transform: rotate(360deg);
}

/* Footer banner wave animation */
.wave {
  animation: wave-animation 12s linear infinite alternate;
}

@keyframes wave-animation {
  0% { transform: translateX(-25px); }
  100% { transform: translateX(25px); }
}

/* Ambient gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, rgba(59, 130, 246, 0.02) 0%, rgba(96, 165, 250, 0.02) 25%, rgba(59, 130, 246, 0.02) 50%, rgba(96, 165, 250, 0.02) 75%, rgba(59, 130, 246, 0.02) 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    z-index: -2;
    pointer-events: none;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Add JavaScript to control parallax effect */ 

/* GitHub contribution bar animation */
.contribution-bar-fill {
    animation: rise 1.5s ease forwards;
    transform: scaleY(0);
    transform-origin: bottom;
}

@keyframes rise {
    to { transform: scaleY(1); }
}

.contribution-bar {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.contribution-bar:hover {
    transform: scaleY(1.1);
}

.contribution-tooltip {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}

.contribution-bar:hover .contribution-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Section transition animations */
section {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.exit {
    opacity: 0;
    transform: translateY(-50px);
}

section.enter {
    opacity: 0;
    transform: translateY(50px);
}

section.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tech Stack Orbit Animation - COMPLETE REWRITE */
#animated-orbit .orbit {
  animation: spin 30s linear infinite;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed rgba(59, 130, 246, 0.4);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fix for tech items with improved spacing - positioned exactly on the orbit line */
.tech-item {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Position in circle and set correct transform origin */
  transform-origin: 0 0;
  transform: rotate(calc(var(--i) * 30deg)) translate(150px, 0); /* Adjusted to exactly match orbit circle radius */
  z-index: 5;
}

/* Keep content upright during orbit rotation */
.tech-item .content {
  transform: rotate(calc(var(--i) * -30deg));
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px; 
  height: 60px;
  transition: all 0.3s ease;
  position: relative;
  left: -30px; /* Half the width to center */
  top: -30px; /* Half the height to center */
  margin: 3px;
}

/* Hover effect for tech item */
.tech-item .content:hover {
  transform: rotate(calc(var(--i) * -30deg)) scale(1.1);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.2); /* Reduced shadow size */
  z-index: 10;
}

/* Pulse effect for center of orbit */
.circle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; /* Reduced from 90px to 80px */
  height: 80px; /* Reduced from 90px to 80px */
  background-color: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  z-index: 10;
  text-align: center;
  font-size: 14px; /* Reduced from 15px to 14px */
}

/* Add blinking animation to the center text */
.circle-center {
  animation: centerBlink 3s infinite ease-in-out;
}

@keyframes centerBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.circle-center .pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.5); opacity: 0; } /* Increased scale from 1.3 to 1.5 */
  100% { transform: scale(1); opacity: 0; }
}

/* Tech stack title styling */
.skills-widget h3 {
  font-size: 24px; /* Increased from 22px to 24px */
  font-weight: 900; /* Increased from 700 to 900 for extra boldness */
  text-align: center;
  margin-bottom: 40px; /* Increased from 30px to 40px to move it higher above the orbit */
  color: #3b82f6;
  position: relative;
  z-index: 20;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1); /* Added subtle text shadow for emphasis */
}

/* Tech stack widget positioning */
.skills-widget {
  margin: 0;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-stack-circle {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

/* Fix specific skill icons with improved styling */
.skill-icon {
  background-color: #e0f2fe;
  color: #3b82f6;
  width: 28px; /* Reduced from 32px to 28px */
  height: 28px; /* Reduced from 32px to 28px */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px; /* Reduced from 13px to 12px */
  margin-bottom: 4px; /* Reduced from 6px to 4px */
  transition: all 0.3s ease;
}

.tech-item .content:hover .skill-icon {
  background-color: #3b82f6;
  color: white;
  transform: scale(1.1);
}

.skill-name {
  font-size: 10px; /* Reduced from 11px to 10px */
  text-align: center;
  font-weight: 500;
  color: #333;
  line-height: 1.1; /* Added to improve text spacing */
}

/* Hero layout fixes */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: calc(100vh - 200px);
  padding: 40px 0;
  margin-bottom: 0;
}

/* Hero content sizing */
.hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

/* Spacer for proper spacing */
.spacer {
  height: 40px;
  width: 100%;
  clear: both;
}

/* Adjust the orbit line to be more visible */
#animated-orbit .orbit {
  border: 2px dashed rgba(59, 130, 246, 0.4); /* Made more visible */
}

/* Make orbit line precisely sized */
#animated-orbit .orbit:before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.1);
  pointer-events: none;
}

/* GitHub Projects Styling */
.github-projects {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.github-project {
  background-color: rgba(11, 60, 207, 0.037);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.github-project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(138, 92, 246, 0);
}

.github-project h4 {
  font-size: 20px; /* Increased from 18px to 20px */
  font-weight: 700;
  color: #000000; /* Darkened from #0f0f0f to #000000 for better contrast */
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(139, 92, 246, 0.3); /* Increased opacity from 0.1 to 0.3 */
  padding-bottom: 8px;
}

.github-achievements {
  list-style-type: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.github-achievements li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 16px; /* Increased from 14px to 16px */
  line-height: 1.6; /* Increased from 1.5 to 1.6 */
  color: #333; /* Added specific text color for better contrast */
}

.github-achievements li:before {
  content: '⭐';
  position: absolute;
  left: 0;
  color: #8b5cf6; /* Changed from #f65cf6 to #8b5cf6 for better visibility */
  font-size: 18px; /* Added explicit font size */
}

.github-achievements li strong {
  color: #000000; /* Changed from #000000f6 to #000000 for better contrast */
  font-weight: 700; /* Increased from 600 to 700 */
}

/* Hacker Animation Styling */
.hacker-animation-container {
  margin: 25px 0 30px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.terminal {
  background-color: #1a1a27; /* Darkened from #1e1e2e to #1a1a27 for better contrast */
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-family: "Courier New", monospace;
}

.terminal-header {
  background-color: #2d2d3a;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #444;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
  margin-right: 15px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ff5f57;
}

.terminal-button:nth-child(2) {
  background-color: #ffbd2e;
}

.terminal-button:nth-child(3) {
  background-color: #28ca41;
}

.terminal-title {
  color: #d0d0d0; /* Lightened from #a0a0a0 to #d0d0d0 for better visibility */
  font-size: 14px;
  font-weight: 600; /* Added font weight for better visibility */
}

.terminal-body {
  padding: 20px;
  color: #ffffff; /* Changed from #f0f0f0 to #ffffff for maximum contrast */
  min-height: 120px;
  display: flex;
  align-items: flex-start;
}

.typewriter-text {
  display: inline;
  white-space: pre-wrap;
  overflow: hidden;
  font-size: 16px; /* Increased from 14px to 16px */
  color: #c4a9ff; /* Lightened from #a277ff to #c4a9ff for better visibility */
  font-family: "Courier New", monospace;
  line-height: 1.5;
  text-shadow: 0 0 2px rgba(194, 169, 255, 0.5); /* Added subtle text shadow for better readability */
}

.cursor-blink {
  display: inline-block;
  font-weight: 700;
  font-size: 16px; /* Increased from 14px to 16px */
  color: #c4a9ff; /* Lightened to match typewriter-text */
  animation: cursor-blink 1s infinite;
  margin-left: 2px;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Add typing animation for the terminal */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* Glitch effect for the text */
@keyframes glitch {
  0% { text-shadow: 2px 0 0 rgba(255, 0, 255, 0.5), -2px 0 0 rgba(0, 255, 255, 0.5); }
  25% { text-shadow: -2px 0 0 rgba(255, 0, 255, 0.5), 2px 0 0 rgba(0, 255, 255, 0.5); }
  50% { text-shadow: 2px 0 0 rgba(255, 0, 255, 0.5), -2px 0 0 rgba(0, 255, 255, 0.5); }
  75% { text-shadow: -2px 0 0 rgba(255, 0, 255, 0.5), 2px 0 0 rgba(0, 255, 255, 0.5); }
  100% { text-shadow: 2px 0 0 rgba(255, 0, 255, 0.5), -2px 0 0 rgba(0, 255, 255, 0.5); }
}

/* About page enhancements for terminal */
#about .hacker-animation-container {
  max-width: 100%;
  margin-bottom: 30px;
}

#about .terminal-body {
  min-height: 120px;
}

#about .about-content {
  position: relative;
}

/* GitHub Man Animation */
.github-man-animation {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 40px;
  perspective: 800px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.github-man-animation:hover {
  transform: scale(1.05);
}

.github-man-animation:hover .github-sign {
  background-color: #3b82f6;
  color: white;
  border-color: #2563eb;
}

.github-man-animation:hover .github-sign i,
.github-man-animation:hover .github-sign span {
  color: white;
}

.github-man-animation:hover .github-man-body,
.github-man-animation:hover .github-man-arm-left,
.github-man-animation:hover .github-man-arm-right {
  background-color: #4f46e5;
}

.github-man-animation:hover .github-man-leg-left,
.github-man-animation:hover .github-man-leg-right {
  background-color: #4338ca;
}

/* Speech bubble that appears on hover */
.github-man-animation:before {
  content: 'Thanks for visiting my profile, if interested send me a Dm, I also do free lance work.';
  position: absolute;
  background-color: white;
  border: 2px solid #8b5cf6;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 16px; /* Increased from 15px to 16px */
  top: -45px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 10;
  color: #4338ca; /* Darkened from #4f46e5 to #4338ca for better contrast */
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  pointer-events: none;
  white-space: nowrap;
}

/* Triangle for speech bubble */
.github-man-animation:after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: white;
  border-right: 2px solid #8b5cf6;
  border-bottom: 2px solid #8b5cf6;
  top: -17px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg) scale(0);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9;
  pointer-events: none;
}

/* Show speech bubble on hover */
.github-man-animation:hover:before,
.github-man-animation:hover:after {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.github-man-animation:hover:after {
  transform: translateX(-50%) rotate(45deg) scale(1);
}

/* Shadow beneath the figure */
.github-man {
  position: relative;
  height: 180px; /* Increased from 140px to 180px */
  width: 90px; /* Increased from 70px to 90px */
  animation: github-man-bounce 4s ease-in-out infinite;
  transform-style: preserve-3d;
}

.github-man:after {
  content: '';
  position: absolute;
  width: 80%;
  height: 10px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 70%);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  z-index: -1;
}

@keyframes github-man-bounce {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

.github-man-head {
  position: absolute;
  width: 50px; /* Increased from 40px to 50px */
  height: 50px; /* Increased from 40px to 50px */
  background-color: #f9d9bb;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  z-index: 2;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.github-man-face {
  position: absolute;
  width: 24px; /* Increased from 20px to 24px */
  height: 7px; /* Increased from 6px to 7px */
  background-color: #333;
  border-radius: 10px 10px 0 0;
  bottom: 15px; /* Adjusted from 12px to 15px */
  left: 50%;
  transform: translateX(-50%);
}

.github-man-face:before, .github-man-face:after {
  content: '';
  position: absolute;
  width: 7px; /* Increased from 6px to 7px */
  height: 7px; /* Increased from 6px to 7px */
  background-color: #333;
  border-radius: 50%;
  top: -9px; /* Adjusted from -8px to -9px */
}

.github-man-face:before {
  left: 1px;
}

.github-man-face:after {
  right: 1px;
}

.github-man-body {
  position: absolute;
  width: 45px; /* Increased from 36px to 45px */
  height: 55px; /* Increased from 45px to 55px */
  background-color: #6d28d9;
  border-radius: 12px 12px 0 0; /* Increased radius */
  top: 44px; /* Adjusted from 35px to 44px */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.github-man-body:before {
  content: '';
  position: absolute;
  width: 25px; /* Increased from 20px to 25px */
  height: 12px; /* Increased from 10px to 12px */
  background-color: #f9d9bb;
  border-radius: 0 0 6px 6px; /* Increased radius */
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.github-man-arm-left {
  position: absolute;
  width: 14px; /* Increased from 12px to 14px */
  height: 55px; /* Increased from 45px to 55px */
  background-color: #6d28d9;
  border-radius: 7px; /* Increased radius */
  top: 50px; /* Adjusted from 42px to 50px */
  left: 6px; /* Adjusted from 5px to 6px */
  transform-origin: top center;
  transform: rotate(25deg);
  z-index: 1;
  transition: all 0.3s ease;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.github-man-animation:hover .github-man-arm-left {
  transform: rotate(35deg);
}

/* Completely redesigned right arm */
.github-man-arm-right {
  position: absolute;
  width: 55px; /* Increased from 40px to 55px */
  height: 14px; /* Increased from 12px to 14px */
  background-color: #6d28d9;
  border-radius: 7px; /* Increased radius */
  top: 60px; /* Adjusted from 48px to 60px */
  right: -42px; /* Adjusted from -33px to -42px for better connection */
  transform-origin: left center;
  transform: rotate(0deg);
  z-index: 3;
  transition: all 0.3s ease;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* Better connection to body */
.github-man-arm-right:before {
  content: '';
  position: absolute;
  width: 20px; /* Increased from 16px to 20px */
  height: 20px; /* Increased from 16px to 20px */
  background-color: #6d28d9;
  border-radius: 50%;
  top: -3px;
  left: -7px;
  z-index: 0;
}

/* Hand at the end of arm */
.github-man-arm-right:after {
  content: '';
  position: absolute;
  width: 20px; /* Increased from 16px to 20px */
  height: 20px; /* Increased from 16px to 20px */
  background-color: #6d28d9;
  border-radius: 50%;
  top: -3px;
  right: -8px;
  z-index: 4;
}

/* Arm animation for pointing */
@keyframes point-sign {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(5deg) translateY(-2px); }
}

.github-man-arm-right {
  animation: point-sign 3s ease-in-out infinite;
}

.github-man-animation:hover .github-man-arm-right {
  animation: excited-point 0.8s ease-in-out infinite;
}

@keyframes excited-point {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg) translateY(-3px); }
}

.github-man-leg-left, .github-man-leg-right {
  position: absolute;
  width: 14px; /* Increased from 12px to 14px */
  height: 55px; /* Increased from 45px to 55px */
  background-color: #4c1d95;
  border-radius: 7px; /* Increased radius */
  top: 98px; /* Adjusted from 80px to 98px */
  transition: all 0.3s ease;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.github-man-leg-left {
  left: 19px; /* Adjusted from 15px to 19px */
}

.github-man-leg-right {
  right: 19px; /* Adjusted from 15px to 19px */
}

/* Repositioned sign to the side */
.github-sign {
  position: absolute;
  width: 100px; /* Increased from 90px to 100px */
  height: 55px; /* Increased from 50px to 55px */
  background-color: white;
  border: 2px solid #333;
  border-radius: 10px; /* Increased radius */
  top: 50px; /* Adjusted from 40px to 50px */
  right: -145px; /* Moved further from -120px to -145px */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(0deg);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 2;
}

.github-sign:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 12px; /* Increased from 10px to 12px */
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  top: 0;
  left: 0;
  transform: translateY(-12px); /* Adjusted from -10px to -12px */
  transition: transform 0.3s ease;
}

.github-man-animation:hover .github-sign:after {
  transform: translateY(0);
}

/* New sign animation */
@keyframes sign-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.github-sign {
  animation: sign-float 3s ease-in-out infinite;
}

.github-man-animation:hover .github-sign {
  animation: excited-sign-float 0.8s ease-in-out infinite;
}

@keyframes excited-sign-float {
  0%, 100% { transform: translateY(-2px) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

.github-sign i {
  font-size: 26px; /* Increased from 24px to 26px */
  color: #000000; /* Changed from #333 to #000000 for better contrast */
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.github-sign span {
  font-size: 16px; /* Increased from 14px to 16px */
  font-weight: bold;
  color: #000000; /* Changed from #333 to #000000 for better contrast */
  transition: all 0.3s ease;
  letter-spacing: 0.5px; /* Added letter spacing for better readability */
}

/* Skills & Technologies section enhancements */
.skill-bar-name {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Fire animation before each skill name (moved from after to before) */
.skill-bar-name::before {
  content: "🔥";
  font-size: 18px;
  margin-right: 8px; /* Changed from margin-left to margin-right */
  animation: fire-animation 1.5s ease-in-out infinite alternate;
  transform-origin: center bottom;
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(255, 100, 10, 0.8);
}

/* Different animation timing for variety */
.skill-bar:nth-child(2n) .skill-bar-name::before {
  animation-duration: 2s;
  animation-delay: 0.3s;
}

.skill-bar:nth-child(3n) .skill-bar-name::before {
  animation-duration: 1.7s;
  animation-delay: 0.5s;
}

/* Fire animation keyframes */
@keyframes fire-animation {
  0% {
    transform: scale(1) rotate(5deg); /* Reversed rotation for better look when on left side */
    text-shadow: 0 0 8px rgba(255, 100, 10, 0.5);
  }
  25% {
    transform: scale(1.1) rotate(0deg);
  }
  50% {
    transform: scale(0.9) rotate(-5deg); /* Reversed rotation for better look when on left side */
    text-shadow: 0 0 12px rgba(255, 100, 10, 0.8);
  }
  75% {
    transform: scale(1.05) rotate(0deg);
  }
  100% {
    transform: scale(1) rotate(5deg); /* Reversed rotation for better look when on left side */
    text-shadow: 0 0 8px rgba(255, 100, 10, 0.5);
  }
}

/* Enhance visibility of skill bar text */
.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.skill-bar-name {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  padding-left: 2px; /* Added slight padding to improve alignment with fire icon */
}

.skill-bar-percentage {
  font-size: 15px;
  font-weight: 700;
  color: #3b82f6;
}

/* Make skill bars more prominent */
.skill-bar-track {
  height: 10px;
  background-color: rgba(203, 213, 225, 0.3);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-bar .skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #8b5cf6);
  border-radius: 5px;
  position: relative;
  transition: width 1.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
  width: 0; /* Start at 0 width */
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    rgba(255, 255, 255, 0) 100%);
  animation: skill-shine 2.5s infinite linear;
}

@keyframes skill-shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Add hover effect for skill categories */
.skill-category {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.skill-category h3 {
  font-size: 22px;
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(79, 70, 229, 0.2);
  padding-bottom: 8px;
}

/* Awesome Cloud Animation for About Section */
.title-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.about-awesome-cloud {
  position: relative;
  display: inline-block;
  background-color: white;
  padding: 15px 25px;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  font-size: 18px;
  font-weight: 700;
  color: #8a5cf6;
  opacity: 0;
  animation: cloud-appear 1s forwards 0.5s, cloud-float 3s ease-in-out infinite 1.5s;
  z-index: 100;
  text-align: center;
  border: 2px solid #e9d5ff;
  margin-left: 20px;
  max-width: 220px;
}

/* Update the cloud pointer to point left */
.about-awesome-cloud::after {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-right: 12px solid white;
  border-bottom: 12px solid transparent;
  z-index: 99;
}

/* Add a sparkle to the cloud */
.about-awesome-cloud::before {
  content: '✨';
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 16px;
  animation: sparkle 2s infinite;
}

@keyframes cloud-appear {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cloud-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .title-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-awesome-cloud {
    margin-left: 0;
    margin-top: 15px;
    max-width: 200px;
  }
  
  .about-awesome-cloud::after {
    left: 20px;
    top: -12px;
    transform: translateX(0);
    border-top: 0;
    border-right: 12px solid transparent;
    border-bottom: 12px solid white;
    border-left: 12px solid transparent;
  }
}

/* Ensure animation-skill gets proper width */
.animate-skill {
  animation: animate-width 1.5s forwards ease-out;
}

@keyframes animate-width {
  0% { width: 0; }
  100% { width: var(--target-width, 90%); }
}

/* Make sure the cloud appears in the biography section */
#about {
  position: relative;
}

#about .section-title {
  position: relative;
  margin-bottom: 50px; /* Add space for the cloud */
}

/* Keeping title container styling since it's used elsewhere */
.title-container {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

#experience .title-container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  #experience .title-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Neural Network Animation - Refined Version */
.neural-network {
  position: relative;
  width: 130px;
  height: 110px;
  margin-left: 15px;
  overflow: visible;
}

.node {
  position: absolute;
  background: radial-gradient(circle at 30% 30%, #60a5fa, #3b82f6);
  border-radius: 50%;
  z-index: 2;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.6));
  transition: all 0.3s ease;
  animation: fadeIn 0.5s forwards, floatSmooth 4s infinite ease-in-out;
}

.node::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  top: 0;
  left: 0;
  transform: scale(0);
  animation: nodePulse 2s infinite;
}

.node-1 {
  top: 20%;
  left: 15%;
  width: 12px;
  height: 12px;
  animation-delay: 0.1s, 0.6s;
}

.node-2 {
  top: 13%;
  left: 65%;
  width: 10px;
  height: 10px;
  animation-delay: 0.2s, 0.8s;
}

.node-3 {
  top: 45%;
  left: 28%;
  width: 11px;
  height: 11px;
  animation-delay: 0.3s, 1s;
}

.node-4 {
  top: 65%;
  left: 18%;
  width: 9px;
  height: 9px;
  animation-delay: 0.4s, 1.2s;
}

.node-5 {
  top: 40%;
  left: 70%;
  width: 11px;
  height: 11px;
  animation-delay: 0.5s, 1.4s;
}

.node-6 {
  top: 70%;
  left: 55%;
  width: 10px;
  height: 10px;
  animation-delay: 0.6s, 1.6s;
}

.node-7 {
  top: 75%;
  left: 80%;
  width: 14px;
  height: 14px;
  animation-delay: 0.7s, 1.8s;
  background: radial-gradient(circle at 30% 30%, #ff8585, #ff6b6b);
  filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.7));
}

.connection {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(59, 130, 246, 0.1) 0%, 
    rgba(59, 130, 246, 0.4) 50%,
    rgba(59, 130, 246, 0.1) 100%);
  transform-origin: left center;
  z-index: 1;
  opacity: 0;
  animation: connectFade 0.8s forwards;
}

.connection::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.8) 50%, 
    transparent 100%);
  animation: flowPulse 2s infinite;
}

.connection-1-2 {
  top: 22%;
  left: 26%;
  width: 45px;
  transform: rotate(5deg);
  animation-delay: 0.8s;
}

.connection-1-3 {
  top: 27%;
  left: 26%;
  width: 22px;
  transform: rotate(45deg);
  animation-delay: 0.9s;
}

.connection-1-4 {
  top: 28%;
  left: 24%;
  width: 40px;
  transform: rotate(65deg);
  animation-delay: 1.0s;
}

.connection-2-5 {
  top: 24%;
  left: 73%;
  width: 26px;
  transform: rotate(60deg);
  animation-delay: 1.1s;
}

.connection-3-5 {
  top: 45%;
  left: 37%;
  width: 40px;
  transform: rotate(5deg);
  animation-delay: 1.2s;
}

.connection-3-6 {
  top: 50%;
  left: 37%;
  width: 35px;
  transform: rotate(40deg);
  animation-delay: 1.3s;
}

.connection-4-6 {
  top: 66%;
  left: 25%;
  width: 35px;
  transform: rotate(15deg);
  animation-delay: 1.4s;
}

.connection-5-7 {
  top: 49%;
  left: 78%;
  width: 22px;
  transform: rotate(60deg);
  animation-delay: 1.5s;
}

.connection-6-7 {
  top: 72%;
  left: 64%;
  width: 20px;
  transform: rotate(15deg);
  animation-delay: 1.6s;
}

.pulse-ring {
  position: absolute;
  top: 75%;
  left: 80%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 rgba(255, 107, 107, 0.7);
  opacity: 0;
  animation: pulseRing 2s infinite 2s;
  z-index: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatSmooth {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-3px) scale(1.05);
  }
  50% {
    transform: translateY(-6px) scale(1);
  }
  75% {
    transform: translateY(-3px) scale(0.98);
  }
}

@keyframes nodePulse {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  50% {
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes connectFade {
  0% {
    opacity: 0;
    transform-origin: left center;
    transform: scaleX(0) rotate(var(--rotation, 0deg));
  }
  100% {
    opacity: 1;
    transform-origin: left center;
    transform: scaleX(1) rotate(var(--rotation, 0deg));
  }
}

@keyframes flowPulse {
  0% {
    left: -100%;
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    opacity: 0.7;
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 107, 107, 0);
    opacity: 0.2;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .title-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .neural-network {
    margin-left: 0;
    margin-top: 15px;
    transform-origin: left center;
  }
}

/* Rubik's Cube Animation */
.rubiks-cube-container {
  position: relative;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  margin-right: 8px;
  perspective: 140px;
  display: inline-block;
  vertical-align: middle;
  transform: translateY(-1px);
  z-index: 10; /* Ensure the cube is on top of other elements */
  opacity: 1; /* Make sure the cube is fully visible */
}

/* Special styling for the profile section cube */
.profile-location .rubiks-cube-container {
  margin-left: 10px;
  transform: translateY(0px); /* Adjust vertical position for better alignment */
}

.rubiks-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: cube-solve 15s infinite;
  transform: rotateX(15deg) rotateY(15deg);
}

.scrambled {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
  animation: solve-scramble 15s infinite;
  visibility: visible; /* Ensure visibility */
}

.cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #2c2c2c;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0.5px;
  border: 0.5px solid rgba(0, 0, 0, 0.2);
  backface-visibility: visible; /* Make sure all faces are visible when rotated */
}

.front {
  transform: translateZ(14px);
}

.back {
  transform: rotateY(180deg) translateZ(14px);
}

.right {
  transform: rotateY(90deg) translateZ(14px);
}

.left {
  transform: rotateY(-90deg) translateZ(14px);
}

.top {
  transform: rotateX(90deg) translateZ(14px);
}

.bottom {
  transform: rotateX(-90deg) translateZ(14px);
}

.sticker {
  border-radius: 1px;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
}

.front .sticker {
  background-color: #8a5757; /* very muted red */
}

.back .sticker {
  background-color: #9c7a53; /* very muted orange */
}

.right .sticker {
  background-color: #556b5c; /* very muted green */
}

.left .sticker {
  background-color: #465a72; /* very muted blue */
}

.top .sticker {
  background-color: #d9d9d9; /* light gray */
}

.bottom .sticker {
  background-color: #b5aa77; /* very muted gold */
}

@media (max-width: 768px) {
  .rubiks-cube-container {
    width: 24px;
    height: 24px;
    perspective: 120px;
  }
  
  .front {
    transform: translateZ(12px);
  }
  
  .back {
    transform: rotateY(180deg) translateZ(12px);
  }
  
  .right {
    transform: rotateY(90deg) translateZ(12px);
  }
  
  .left {
    transform: rotateY(-90deg) translateZ(12px);
  }
  
  .top {
    transform: rotateX(90deg) translateZ(12px);
  }
  
  .bottom {
    transform: rotateX(-90deg) translateZ(12px);
  }
}

/* Animation keyframes for cube solving */
@keyframes cube-solve {
  0%, 10% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  12% {
    transform: rotateY(90deg);
  }
  14% {
    transform: rotateY(90deg) rotateX(90deg);
  }
  16% {
    transform: rotateY(180deg) rotateX(90deg);
  }
  18% {
    transform: rotateY(180deg) rotateX(180deg);
  }
  20% {
    transform: rotateY(270deg) rotateX(180deg);
  }
  22% {
    transform: rotateY(270deg) rotateX(270deg);
  }
  24% {
    transform: rotateY(360deg) rotateX(270deg);
  }
  26% {
    transform: rotateY(360deg) rotateX(360deg);
  }
  /* Small pause after first rotation sequence */
  30% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  /* Second rotation sequence */
  35% {
    transform: rotateX(180deg);
  }
  40% {
    transform: rotateX(180deg) rotateY(180deg);
  }
  45% {
    transform: rotateX(360deg) rotateY(180deg);
  }
  50% {
    transform: rotateX(360deg) rotateY(360deg);
  }
  /* Third rotation sequence */
  55% {
    transform: rotateZ(90deg);
  }
  60% {
    transform: rotateZ(180deg);
  }
  65% {
    transform: rotateZ(270deg);
  }
  70% {
    transform: rotateZ(360deg);
  }
  /* Final rotation showing all sides */
  75% {
    transform: rotateX(30deg) rotateY(45deg);
  }
  80% {
    transform: rotateX(30deg) rotateY(135deg);
  }
  85% {
    transform: rotateX(30deg) rotateY(225deg);
  }
  90% {
    transform: rotateX(30deg) rotateY(315deg);
  }
  95%, 100% {
    transform: rotateX(0deg) rotateY(0deg);
  }
}

/* Shine effect on the cube */
.rubiks-cube::after {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  background: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.2) 50%, transparent 51%);
  z-index: 10;
  pointer-events: none;
  transform-style: preserve-3d;
  animation: cube-shine 5s linear infinite;
}

@keyframes cube-shine {
  0% {
    transform: translateX(-100%) translateY(-100%);
  }
  100% {
    transform: translateX(100%) translateY(100%);
  }
}

@media (max-width: 768px) {
  .rubiks-cube-container {
    width: 24px;
    height: 24px;
    perspective: 120px;
  }
  
  .front {
    transform: translateZ(12px);
  }
  
  .back {
    transform: rotateY(180deg) translateZ(12px);
  }
  
  .right {
    transform: rotateY(90deg) translateZ(12px);
  }
  
  .left {
    transform: rotateY(-90deg) translateZ(12px);
  }
  
  .top {
    transform: rotateX(90deg) translateZ(12px);
  }
  
  .bottom {
    transform: rotateX(-90deg) translateZ(12px);
  }
}

/* Alternative scramble animation for dynamic solving effect */
@keyframes solve-scramble {
  0%, 10% {
    opacity: 1;
  }
  12%, 98% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Neural Pulse Animation */
.neural-pulse-animation {
  display: inline-block;
  position: relative;
  width: 28px;
  height: 28px;
  margin: 0 8px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.neural-node {
  position: absolute;
  background-color: #465a72;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(70, 90, 114, 0.5);
  transition: all 0.3s ease;
}

.center-node {
  width: 8px;
  height: 8px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background-color: #556b5c;
  animation: node-pulse 2s infinite;
}

.node-1 {
  width: 6px;
  height: 6px;
  top: 20%;
  left: 20%;
  animation: node-float 3s infinite;
}

.node-2 {
  width: 6px;
  height: 6px;
  top: 20%;
  right: 20%;
  animation: node-float 3s infinite 0.5s;
}

.node-3 {
  width: 6px;
  height: 6px;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  animation: node-float 3s infinite 1s;
}

.neural-connection {
  position: absolute;
  background-color: #8a5757;
  height: 1px;
  opacity: 0.7;
  z-index: 1;
}

.connection-c1 {
  width: 40%;
  top: 50%;
  left: 20%;
  transform: rotate(45deg);
  transform-origin: left center;
  animation: connection-pulse 2s infinite 0.3s;
}

.connection-c2 {
  width: 40%; 
  top: 50%;
  right: 20%;
  transform: rotate(-45deg);
  transform-origin: right center;
  animation: connection-pulse 2s infinite 0.6s;
}

.connection-c3 {
  width: 40%;
  bottom: 40%;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  animation: connection-pulse 2s infinite 0.9s;
}

.data-pulse {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #b5aa77;
  top: 50%;
  left: 30%;
  z-index: 3;
  opacity: 0;
  animation: data-travel 3s infinite;
}

@keyframes node-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 5px rgba(70, 90, 114, 0.5);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 8px rgba(70, 90, 114, 0.8);
  }
}

@keyframes node-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes connection-pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes data-travel {
  0% {
    left: 30%;
    top: 50%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  40% {
    left: 50%;
    top: 50%;
    opacity: 0;
  }
  41% {
    left: 50%;
    top: 50%;
    opacity: 0;
  }
  60% {
    left: 70%;
    top: 35%;
    opacity: 1;
  }
  80% {
    left: 50%;
    top: 75%;
    opacity: 1;
  }
  100% {
    left: 30%;
    top: 50%;
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .neural-pulse-animation {
    width: 24px;
    height: 24px;
  }
}

/* Floating Code Animation for Projects Section */
.title-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 2rem;
  position: relative;
  gap: 15px;
}

.floating-code-animation {
  position: relative;
  width: 80px;
  height: 80px;
  margin-left: 10px;
}

.code-block {
  position: absolute;
  width: 28px;
  height: 28px;
  background: rgba(70, 90, 114, 0.15);
  border: 1px solid rgba(70, 90, 114, 0.4);
  border-radius: 4px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: float-block 3s infinite ease-in-out;
}

.block-1 {
  top: 8px;
  left: 26px;
  animation-delay: 0s;
  background: rgba(85, 107, 92, 0.12);
  border-color: rgba(85, 107, 92, 0.5);
  transform-origin: center;
}

.block-2 {
  top: 42px;
  left: 6px;
  animation-delay: 0.5s;
  background: rgba(138, 87, 87, 0.12);
  border-color: rgba(138, 87, 87, 0.5);
}

.block-3 {
  top: 42px;
  left: 46px;
  animation-delay: 1s;
  background: rgba(181, 170, 119, 0.12);
  border-color: rgba(181, 170, 119, 0.5);
}

.code-line {
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1px;
  width: 100%;
  animation: pulse-line 2s infinite alternate;
}

.code-line:nth-child(1) {
  width: 80%;
  animation-delay: 0.2s;
}

.code-line:nth-child(2) {
  width: 60%;
  animation-delay: 0.4s;
}

.code-line:nth-child(3) {
  width: 90%;
  animation-delay: 0.6s;
}

.connecting-line {
  position: absolute;
  background: rgba(70, 90, 114, 0.3);
  height: 1px;
  transform-origin: left center;
  animation: pulse-connection 2s infinite alternate;
}

.line-1 {
  width: 25px;
  top: 22px;
  left: 26px;
  transform: rotate(45deg);
  animation-delay: 0.3s;
}

.line-2 {
  width: 25px;
  top: 56px;
  left: 26px;
  transform: rotate(-45deg);
  animation-delay: 0.6s;
}

.code-pulse {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgb(70, 90, 114);
  border-radius: 50%;
  top: 30px;
  left: 26px;
  animation: pulse-dot 3s infinite;
  opacity: 0.8;
}

@keyframes float-block {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(2deg);
  }
}

@keyframes pulse-line {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.8;
  }
}

@keyframes pulse-connection {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.6;
  }
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
    box-shadow: 0 0 0 0 rgba(70, 90, 114, 0.4);
  }
  50% {
    transform: scale(1.5);
    opacity: 0.9;
    box-shadow: 0 0 0 10px rgba(70, 90, 114, 0);
  }
}

/* Media Queries for Floating Code Animation */
@media (max-width: 768px) {
  .floating-code-animation {
    width: 60px;
    height: 60px;
    margin-left: 5px;
  }
  
  .code-block {
    width: 20px;
    height: 20px;
    padding: 3px;
  }
  
  .block-1 {
    top: 5px;
    left: 20px;
  }
  
  .block-2 {
    top: 30px;
    left: 5px;
  }
  
  .block-3 {
    top: 30px;
    left: 35px;
  }
  
  .line-1, .line-2 {
    width: 18px;
  }
  
  .line-1 {
    top: 15px;
    left: 20px;
  }
  
  .line-2 {
    top: 40px;
    left: 20px;
  }
  
  .code-pulse {
    width: 4px;
    height: 4px;
    top: 20px;
    left: 20px;
  }
} 