/* --- Global Reset & Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #000;
  direction: rtl;
  padding: 20px;
}

/* --- Profile Section --- */
.profile {
  text-align: center;
  margin: 40px 0 30px; /* extra space at the top */
}

.profile img {
  width: 10rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.profile h1 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.profile p {
  font-size: 1rem;
}

/* --- Social Icons Section --- */
.socials {
  text-align: center;
  margin-bottom: 30px;
}

.socials a {
  margin: 0 10px;
  display: inline-block;
  transition: transform 0.1s ease;
}

.socials a:hover {
  transform: scale(1.05);
}

.social-icon {
  width: 2rem;
  height: 2rem;
}

/* --- Bio Section --- */
.bio {
  max-width: 500px;
  margin: 0 auto;
  padding-bottom: 2rem;
  text-align: center;
}

/* --- FreeText Section --- */
.free-text {
  max-width: 500px;
  margin: 20px auto;
  text-align: center;
}

/* --- Custom Links Section --- */
.custom-links {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ----- Basic Link Card (Glorified Button) ----- */
.link-card.basic-link {
  position: relative;
  display: grid;
  grid-template-columns: 30px auto 30px; /* left spacer, centered text, right image */
  align-items: center;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 50px; /* pill shape */
  padding: 15px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, background 0.3s ease;
}

.link-card.basic-link::before {
  content: "";
  grid-column: 1;
  width: 30px;
}

.basic-link .link-text {
  grid-column: 2;
  text-align: center;
  font-weight: 600;
}

/* Position the image on the right */
.basic-link .link-image {
  grid-column: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;  /* ensures the image is circular */
  object-fit: cover;
  justify-self: end;
  transition: transform 0.3s ease;
}

/* Hover effects for basic link */
.link-card.basic-link:hover {
  background: var(--hover-color, #f0f0f0);
  transform: scale(1.03);
}

.link-card.basic-link:hover .link-image {
  transform: scale(1.1);
}

/* ----- Image Link Card ----- */
.link-card.image-link {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.1s ease;
}

/* Background image fills the card */
.image-link .link-background {
  width: 100%;
  display: block;
  height: 240px; /* roughly 3× the height of the basic link */
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Inverted gradient overlay at the bottom */
.image-link .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay text styling */
.image-link .overlay .link-text {
  color: #fff;
  font-weight: 600;
  text-align: center;
}

/* Hover effect for image link */
.link-card.image-link:hover .link-background {
  transform: scale(1.05);
}

/* ----- Music Link Card ----- */
/* --- Music Section Container --- */
.music-section {
  width: 100%;
  max-width: 500px;
  margin: auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 15px;
  background: #fff;
}

/* --- Music Container Layout --- */
.music-container {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

/* --- Spinning Disc --- */
.music-disc {
  position: relative;
}

.music-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  animation: spin 10s linear infinite;
}

.music-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* White center (like a CD hole) – even smaller */
.music-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20%;
  height: 20%;
  border-radius: 50%;
  background: #fff;
  z-index: 1;
}

/* --- Musical Note Particles --- */
.music-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.music-particles span {
  position: absolute;
  font-size: 1rem;
  opacity: 0;
  animation: particle-fly 2s ease-out infinite;
}

/* Position & delay for each particle */
.music-particles span:nth-child(1) {
  left: 50%;
  top: 50%;
  animation-delay: 0s;
}
.music-particles span:nth-child(2) {
  left: 60%;
  top: 40%;
  animation-delay: 0.6s;
}
.music-particles span:nth-child(3) {
  left: 40%;
  top: 60%;
  animation-delay: 1s;
}
.music-particles span:nth-child(4) {
  left: 55%;
  top: 65%;
  animation-delay: 1.45s;
}
.music-particles span:nth-child(5) {
  left: 45%;
  top: 35%;
  animation-delay: 2.3s;
}

@keyframes particle-fly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(30px, -30px) scale(1.5);
    opacity: 0;
  }
}

/* --- Music Info (Song Title & Listen On) --- */
.music-info {
  flex: 1;
}

.song-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
}

.listen-text {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #666;
}

/* --- Platform Icons --- */
.platform-icons {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-top: 10px;
}

.platform-icons a svg {
  width: 2rem;
  height: 2rem;
  transition: transform 0.1s ease;
}

.platform-icons a:hover svg {
  transform: scale(1.1);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
