:root {
  --primary-color: #00ff88;
  --secondary-color: #00ccff;
  --background-color: #000;
  --text-color: #fff;
  --card-background: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 255, 136, 0.2);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0%, #000 100%);
}

.stars::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 50px 160px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: twinkle 4s infinite;
  opacity: 0.3;
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { opacity: 0.3; }
}

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

.header {
  text-align: center;
  margin-bottom: 3rem;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.glitch {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 2px 2px var(--secondary-color);
  position: relative;
  animation: glitch 1s infinite;
}

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

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--secondary-color);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: 2px 0 var(--primary-color);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip-path: inset(20% 0 30% 0); }
  20% { clip-path: inset(60% 0 10% 0); }
  40% { clip-path: inset(40% 0 50% 0); }
  60% { clip-path: inset(80% 0 5% 0); }
  80% { clip-path: inset(10% 0 70% 0); }
  100% { clip-path: inset(30% 0 20% 0); }
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-color);
  opacity: 0.8;
  text-shadow: 0 0 10px var(--primary-color);
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.link-card {
  background-color: var(--card-background);
  padding: 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  min-height: 80px;
}

.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.link-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px var(--shadow-color);
  border-color: var(--primary-color);
}

.link-card i {
  font-size: 1.5rem;
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
  min-width: 2rem;
  text-align: center;
}

.link-card a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  flex-grow: 1;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card:hover a {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
}

footer {
  margin-top: 3rem;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-icon {
  color: var(--text-color);
  font-size: 1.8rem;
  transition: all 0.3s ease;
  position: relative;
}

.social-icon:hover {
  color: var(--primary-color);
  transform: translateY(-5px);
  text-shadow: 0 0 15px var(--primary-color);
}

.social-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.social-icon:hover::after {
  opacity: 0.2;
  transform: scale(1.5);
}

@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }
  
  .glitch {
    font-size: 2rem;
  }
  
  .links {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .link-card {
    padding: 1rem;
    min-height: 60px;
  }
  
  .social-links {
    gap: 1.5rem;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 901px) {
  .links {
    grid-template-columns: repeat(3, 1fr);
  }
}