:root {
  --primary-color: #2A2A2A;
  --accent-color: #4c00ff;
  --background-overlay: rgba(126, 106, 106, 0);
  --card-border: rgba(255, 255, 255, 0.8);
  --text-color: #ffffff;
  --bio-text-color: #f0f0f0;
  --avatar-border: rgba(255, 255, 255, 0.8);
  --hover-transform: translateY(-5px);
  --transition-speed: 0.5s;
  --box-shadow: 0 8px 32px rgba(149, 44, 138, 0.351);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-color);
}

.javascript-icon {
  float: left;
  width: 20%;
  height: auto;
  transition: transform var(--transition-speed) ease;
}

.link-card:hover .javascript-icon {
  transform: rotate(10deg);
}

.container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.bio-text {
  color: var(--bio-text-color);
  line-height: 1.6;
  margin-bottom: 2rem;
  padding: 0 1rem;
  font-size: 1.8rem;
  font-family: 'Segoe UI', system-ui, sans-serif;
  white-space: nowrap;
  overflow: hidden;
}

.cursor {
  font-weight: bold;
  font-size: 1.8rem;
  color: #ffffff;
  animation: blink 1s infinite;
}

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

.avatar-container {
  position: relative;
  display: inline-block;
  margin: 1rem 0 2rem;
}

.background-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
  background: 
    linear-gradient(var(--background-overlay), var(--background-overlay)), 
    url('utils/giphy.gif') center/cover fixed;
  animation: backgroundAnimation 30s infinite alternate;
}

@keyframes backgroundAnimation {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--avatar-border);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

.status-icon {
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  bottom: 20px;
  right: 15px;
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.title {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.wrapper {
  top: 100px;
  max-width:  800px;
  max-height: 440px;
  margin: 80px auto;
  padding: 30px;
  background-color: rgba(79, 0, 143, 0.381);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: var(--box-shadow);
  transition: transform 0.1s ease-out, box-shadow var(--transition-speed) ease, opacity 1s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.wrapper.reset-tilt {
  transition: transform 0.8s ease-out, box-shadow var(--transition-speed) ease, opacity 1s ease;
}

.wrapper:hover {
  box-shadow: 0 15px 45px rgba(98, 1, 255, 0.35);
}

.developer-icon {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 2px #00ffee);
  transition: transform var(--transition-speed) ease;
}

.icon-container {
  position: absolute;
  top: 13px;
  right: 15px;
  cursor: pointer;
  z-index: 10;
}

.icon-container:hover .developer-icon {
  transform: rotate(20deg);
}

.tooltip {
  position: absolute;
  left: 60%;
  transform: translateX(-50%);
  bottom: -30px;
  padding: 5px 12px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.icon-container:hover .tooltip {
  opacity: 1;
  visibility: visible;
  bottom: -40px;
}

.link-grid {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.link-card {
  font-family: 'Courier New', Courier, monospace;
  color: #ffffff;
  background-color: rgba(100, 100, 100, 0.521);
  padding: 1.5rem;
  border-radius: 14px;
  border: 2px solid var(--card-border);
  backdrop-filter: blur(8px);
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  cursor: pointer;
}

.link-card:hover {
  transform: var(--hover-transform);
  box-shadow: 0 8px 20px rgba(255, 25, 251, 0.482);
  border-color: var(--accent-color);
  background-color: rgba(40, 40, 40, 0.6);
}

.link-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.link-card p {
  color: #ddd;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  text-decoration: none;
  transition: all var(--transition-speed);
  background-color: rgba(20, 20, 20, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
  transform: var(--hover-transform);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.social-icon {
  font-size: 1.6rem;
  transition: all var(--transition-speed) ease;
}

.fa-discord {
  color: #839bf5;
  filter: drop-shadow(0 0 4px rgb(114, 137, 218));
}

.fa-instagram {
  color: #ff5a8a;
  filter: drop-shadow(0 0 4px rgb(255, 85, 138));
}

.social-links a:hover .social-icon {
  transform: scale(1.2);
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
  position: relative; bottom: 20px;
}

.skill-tag {
  background-color: rgba(40, 40, 40, 0.7);
  color: #fff;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-speed) ease;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-tag:hover {
  transform: translateY(-3px);
  background-color: rgba(60, 60, 60, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: #839bf5;
  filter: drop-shadow(0 0 3px rgba(131, 155, 245, 0.7));
}

.footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(163, 4, 255, 0.924);
  text-align: center;
position: relative; top: 300px;
}

@media (max-width: 768px) {
  .background-container {
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
    background-image: 
      linear-gradient(var(--background-overlay), var(--background-overlay)), 
      url('utils/70.gif');
  }
  
  .wrapper {
    max-width: 85%;
    margin: 60px auto;
    padding: 25px 20px;
  }
  
  .title {
    font-size: 2.4rem;
  }
  
  .bio-text {
    font-size: 1.5rem;
  }
  
  .avatar {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 480px) {
  .wrapper {
    padding: 20px 15px;
    margin: 40px auto;
  }
  
  .title {
    font-size: 2.2rem;
  }
  
  .avatar {
    width: 120px;
    height: 120px;
  }
  
  .link-card {
    padding: 1.2rem;
  }
  
  .social-links {
    gap: 1.2rem;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
  }
}
