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;
}

.links-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 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; }
.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; }

.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; }
}

#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  cursor: pointer;
}

#intro-bg {
  position: absolute;
  inset: 0;
  background: url('background.gif') no-repeat center center/cover;
  filter: blur(8px) brightness(0.5);
  transform: scale(1.05);
}

#intro-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-family: Arial, sans-serif;
  letter-spacing: 0.3em;
  animation: pulse 2s ease-in-out infinite;
  user-select: none;
  text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
