@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Inter:wght@400;600&display=swap');

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a1a, #1a0533, #0717CA);
  background-size: 300% 300%;
  animation: bgShift 8s ease infinite;
  font-family: 'Inter', sans-serif;
  color: white;
  padding: 2rem;
}

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

/* Mobile - single centered card */
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
  animation: cardEntry 1s ease forwards;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: 0.4s ease;
}

.card:hover {
  box-shadow: 0 0 40px rgba(5, 36, 170, 0.5);
  transform: translateY(-4px);
}

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

/* Avatar */
.avatar-wrapper {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #0524AA, #a855f7);
  animation: pulse 3s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 36, 170, 0.5); }
  50%       { box-shadow: 0 0 0 12px rgba(5, 36, 170, 0); }
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0a0a1a;
  display: block;
}

/* Name */
.name {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 2rem;
  letter-spacing: 4px;
  background: linear-gradient(90deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease infinite;
  background-size: 200%;
}

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

.title {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #a78bfa;
  margin-top: 0.3rem;
}

.divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #0524AA, #a855f7);
  margin: 1.2rem auto;
  border-radius: 2px;
}

.bio {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.skills span {
  background: rgba(5, 36, 170, 0.3);
  border: 1px solid rgba(5, 36, 170, 0.6);
  color: #a78bfa;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  letter-spacing: 1px;
  transition: 0.3s;
}

.skills span:hover {
  background: #0524AA;
  color: white;
  transform: scale(1.05);
}

.socials a {
  display: inline-block;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, #0524AA, #7c3aed);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: 0.3s ease;
}

.socials a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

/* DESKTOP - switches to two-column layout */
@media (min-width: 768px) {
  body {
    align-items: center;
    justify-content: center;
  }

  .card {
    max-width: 820px;
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-rows: auto;
    text-align: left;
    padding: 3rem;
    gap: 0 2.5rem;
    align-items: start;
  }

  .avatar-wrapper {
    width: 180px;
    height: 180px;
    margin: 0;
    grid-row: 1 / 5;
  }

  .name {
    font-size: 2.5rem;
    margin-top: 0.5rem;
  }

  .divider {
    margin: 1rem 0;
  }

  .skills {
    justify-content: flex-start;
  }

  .socials {
    margin-top: 0.5rem;
  }
}