:root {
  --primary: #00f5ff;
  --secondary: #ff6b6b;
  --accent: #4ecdc4;
  --purple: #9d4edd;
  --pink: #f72585;
  --dark: #0a0a0f;
  --darker: #050507;
  --light-gray: #8892b0;
  --success: #64ffda;
}

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

body {
  background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
  font-family: "Inter", sans-serif;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
}

.grid-overlay {
  background-image: linear-gradient(rgba(0, 245, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: gridMove 20s linear infinite;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-particles::before,
.floating-particles::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 0 20px var(--primary);
}

.floating-particles::before {
  top: 20%;
  left: 20%;
  animation-delay: -2s;
}

.floating-particles::after {
  top: 60%;
  right: 30%;
  animation-delay: -4s;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.container {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Profile Section */
.profile {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  border: 1px solid rgba(0, 245, 255, 0.2);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.profile::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 245, 255, 0.1),
    transparent
  );
  animation: shimmer 3s infinite;
}

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

.avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
  border-color: var(--secondary);
}

.avatar-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary),
    var(--purple),
    var(--pink),
    var(--primary)
  );
  z-index: 1;
  animation: rotate 4s linear infinite;
  opacity: 0.7;
}

.status-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: var(--success);
  border-radius: 50%;
  border: 3px solid var(--dark);
  z-index: 3;
  animation: pulse 2s infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Glitch Effect */
.glitch {
  font-size: 2rem;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  color: var(--primary);
  position: relative;
  margin-bottom: 1rem;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 0.5s infinite;
  color: var(--secondary);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 0.5s infinite;
  color: var(--purple);
  z-index: -2;
}

@keyframes glitch-1 {
  0%,
  14%,
  15%,
  49%,
  50%,
  99%,
  100% {
    transform: translate(0, 0);
  }
  15%,
  30% {
    transform: translate(-2px, 0);
  }
  49%,
  50% {
    transform: translate(2px, 0);
  }
}

@keyframes glitch-2 {
  0%,
  20%,
  21%,
  62%,
  63%,
  99%,
  100% {
    transform: translate(0, 0);
  }
  21%,
  40% {
    transform: translate(2px, 0);
  }
  62%,
  63% {
    transform: translate(-2px, 0);
  }
}

/* Typewriter Effect */
.typewriter {
  font-size: 1rem;
  color: var(--light-gray);
  margin-bottom: 2rem;
  font-family: "JetBrains Mono", monospace;
}

.typing-text {
  border-right: 2px solid var(--primary);
  animation: typing 3s steps(40) 1s infinite alternate;
}

.cursor {
  animation: blink 1s infinite;
  color: var(--primary);
}

@keyframes typing {
  0% {
    width: 0;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Stats */
.stats {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Links Section */
.links {
  margin-bottom: 2rem;
}

.section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", monospace;
}

.section-icon {
  font-size: 1.2rem;
}

.link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.link:hover::before {
  left: 100%;
}

.link:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(0, 245, 255, 0.3);
}

.link.dev:hover {
  border-color: var(--success);
  box-shadow: 0 10px 40px rgba(100, 255, 218, 0.3);
}

.link.gaming:hover {
  border-color: var(--purple);
  box-shadow: 0 10px 40px rgba(157, 78, 221, 0.3);
}

.link.contact:hover {
  border-color: var(--secondary);
  box-shadow: 0 10px 40px rgba(255, 107, 107, 0.3);
}

.link-icon {
  flex-shrink: 0;
}

.link-icon img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.link:hover .link-icon img {
  transform: scale(1.1) rotate(5deg);
}

.link-content {
  flex: 1;
  text-align: left;
}

.link-title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.link-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--light-gray);
  font-family: "JetBrains Mono", monospace;
}

.link-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--primary);
}

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

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.footer-content p {
  font-size: 0.9rem;
  color: var(--light-gray);
  margin-bottom: 1rem;
}

.heart {
  color: var(--secondary);
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%,
  50%,
  100% {
    transform: scale(1);
  }
  25%,
  75% {
    transform: scale(1.1);
  }
}

.tech-stack {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech {
  background: rgba(0, 245, 255, 0.1);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-family: "JetBrains Mono", monospace;
  border: 1px solid var(--primary);
  transition: all 0.3s ease;
}

.tech:hover {
  background: var(--primary);
  color: var(--dark);
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  .glitch {
    font-size: 1.5rem;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  .stats {
    flex-direction: column;
    gap: 0.5rem;
  }

  .link {
    padding: 1rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection colors */
::selection {
  background: var(--primary);
  color: var(--dark);
}
