@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --neon-cyan: #00f3ff;
  --neon-purple: #bd00ff;
  --neon-blue: #0066ff;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #050505;
  color: #e0e0e0;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.glass-nav {
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

/* Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 5px var(--neon-cyan);
  }

  50% {
    box-shadow: 0 0 20px var(--neon-cyan), 0 0 10px var(--neon-blue);
  }

  100% {
    box-shadow: 0 0 5px var(--neon-cyan);
  }
}

.glow-effect {
  animation: pulse-glow 3s infinite;
}

/* Cursor Blink for Typing Effect */
.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Scroll Transition Class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Electric RGB & Lightning Animation */
@keyframes rgb-flow-move {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.electric-text {
  font-weight: 800;
  /* Rapid movement of the gradient background */
  background: linear-gradient(90deg,
      #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff, #ff0000);
  background-size: 200% auto;

  /* Text Clip */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  /* Animations: fast gradient flow only */
  animation: rgb-flow-move 2s linear infinite;

  display: inline-block;
  position: relative;
}

/* Moving Fog/Cloud Animation */
@keyframes fog-move {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.fog-container {
  position: absolute;
  width: 200%;
  /* Double width for looping */
  height: 100%;
  top: 0;
  left: 0;
  z-index: -15;
  /* Behind content, in front of stars */
  pointer-events: none;
  overflow: hidden;
}

.fog-img {
  width: 50%;
  height: 100%;
  float: left;
  background: url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog1.png') repeat-x;
  background-size: cover;
  opacity: 0.3;
  animation: fog-move 60s linear infinite;
}

.fog-img-2 {
  width: 50%;
  height: 100%;
  float: left;
  background: url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog2.png') repeat-x;
  background-size: cover;
  opacity: 0.2;
  animation: fog-move 40s linear infinite reverse;
  /* Move opposite direction */
}

/* Animated Border for Profile */
@keyframes chaos-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.02);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

.animated-border-box {
  position: relative;
  z-index: 0;
  border-radius: 50%;
  overflow: hidden;
  /* Clips the 200% background to the circle */
}

.animated-border-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  /* Chaotic Rainbow Gradient */
  background: conic-gradient(#ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff,
      #ff0080, #00ffff, #ff0000);
  /* Fast Spinning */
  animation: chaos-spin 2s linear infinite;
  z-index: -2;
}

.animated-border-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  /* Reverse Chaotic Gradient */
  background: conic-gradient(transparent,
      #ffffff,
      transparent 30%,
      #00ffff 50%,
      transparent 70%,
      #ff00ff 90%);
  filter: blur(10px);
  /* Reverse Spin + Glitchy overlay */
  animation: chaos-spin 1.5s linear infinite reverse;
  z-index: -2;
  mix-blend-mode: hard-light;
}

/* Internal dark circle */
.animated-border-box-bg {
  position: absolute;
  inset: 4px;
  background: #050505;
  border-radius: 50%;
  z-index: -1;
}

@keyframes progress-load {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

.animate-progress {
  animation: progress-load 3s ease-in-out forwards;
}

/* Custom Scrollbar for Terminal */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--neon-cyan);
  border-radius: 2px;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
}