body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url('background.gif') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rectangle {
  width: 600px; 
  height: 420px;
  border-radius: 20px; 
  background: rgba(255, 255, 255, 0.1); 
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.avatar-section {
  display: flex;
  align-items: center;
  padding: 12px; 
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.avatar {
  width: 110px;
  height: 110px; 
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  margin-right: 12px; 
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info {
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.name {
  font-size: 32px; 
  font-weight: bold;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
  margin: 0;
}

.description {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.9);
  margin: 5px 0 0;
  display: flex;
  align-items: center;
}

.bio-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 10px 0 0;
  font-style: italic;
}

.links-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 400px;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.link-card:hover::before {
  left: 100%;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.link-card i {
  font-size: 24px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.link-card span {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.link-card:hover i {
  transform: scale(1.2);
}

.youtube:hover {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(255, 0, 0, 0.1));
  border-color: #ff0000;
}

.instagram:hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.3), rgba(225, 48, 108, 0.1));
  border-color: #e1306c;
}

.twitter:hover {
  background: linear-gradient(135deg, rgba(29, 161, 242, 0.3), rgba(29, 161, 242, 0.1));
  border-color: #1da1f2;
}

.github:hover {
  background: linear-gradient(135deg, rgba(36, 41, 46, 0.3), rgba(36, 41, 46, 0.1));
  border-color: #24292e;
}

.discord:hover {
  background: linear-gradient(135deg, rgba(114, 137, 218, 0.3), rgba(114, 137, 218, 0.1));
  border-color: #7289da;
}

.portfolio:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  border-color: #ffffff;
}

.footer-text {
  text-align: center;
  margin-top: 10px;
  padding: 8px 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.footer-text::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.8s;
}

.footer-text:hover::before {
  left: 100%;
}

.footer-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.footer-text:hover .footer-icon {
  transform: scale(1.1);
  opacity: 1;
}

.separator {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 4px;
  font-weight: 300;
}

.achievement:hover {
  background: linear-gradient(45deg, #e5e5e5, #ffffff);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.cursor {
  font-weight: bold;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .rectangle {
    width: 90%;
    height: auto;
    min-height: 420px;
  }
  
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .avatar {
    width: 80px;
    height: 80px;
  }
  
  .name {
    font-size: 24px;
  }
  
  .description {
    font-size: 18px;
  }
}
