:root {
  --primary-color: #6E48AA;
  --secondary-color: #9D50BB;
  --accent-color: #FF7E5F;
  --text-color: #2A2A2A;
  --card-bg: rgba(255, 255, 255, 0.95);
  --kofi-color: #29ABE0;
}

body {
  background-image: url(https://i.imgur.com/ZROzZcg.png);
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  font-family: 'Poppins', sans-serif;
}

.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(70, 97, 230, 0.3);
  z-index: -1;
}

.profile-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

.chat-bubble {
  position: relative;
  margin-bottom: -20px;
  z-index: 2;
  background: var(--card-bg);
  padding: 1rem 2rem;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: rotate(-3deg);
}

.chat-bubble::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--card-bg);
  transform: translateX(-50%) rotate(45deg);
}

.profile-image img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--card-bg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 1;
  position: relative;
  transition: transform 0.3s ease;
}

.profile-image:hover img {
  transform: scale(1.05);
}

/* Sección de Proyectos */
.projects-section {
  margin: 3rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.project-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.project-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.project-icon i {
  color: white;
  font-size: 1.5rem;
}

.project-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.project-card p {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.project-link {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.project-card:hover .project-link {
  color: var(--secondary-color);
}

/* Sección de Enlaces */
.links-section {
  margin: 3rem 0;
}

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

.link-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  gap: 1rem;
}

.link-card i {
  font-size: 1.5rem;
  width: 35px;
  text-align: center;
}

.link-card.youtube { color: #FF0000; }
.link-card.discord { color: #5865F2; }
.link-card.email { color: var(--primary-color); }

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Bio Section */
.bio-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin: 2rem 0;
}

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

.bio-header h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.aka {
  color: var(--secondary-color);
  font-weight: 400;
}

.bio-content {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bio-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(110, 72, 170, 0.05);
  border-radius: 10px;
}

.bio-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
  width: 30px;
  text-align: center;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.social-icon:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .projects-grid {
      grid-template-columns: 1fr;
  }
  
  .profile-image img {
      width: 140px;
      height: 140px;
  }
  
  .chat-bubble {
      padding: 0.8rem 1.5rem;
      font-size: 1.1rem;
  }
}