/* Import Google Font (Nunito only, premium geometric rounded font) */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* Reset and variables */
:root {
  --background: #0a0a0c;
  --primary: #e54daa;
  --primary-rgb: 229, 77, 170;
  --card-bg: rgba(20, 20, 23, 0.65);
  --card-border: rgba(255, 255, 255, 0.06);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --font-sans: 'Nunito', sans-serif;
  --radius: 16px;
  
  /* Brand colors for cards hover */
  --tg-color: #229ED9;
  --ds-color: #5865F2;
  --yt-color: #FF0000;
  --tt-color: #00f2fe; /* Custom glowing cyan for TikTok */
  --site-color: #a238ff;
  --launcher-color: #e54daa;
  --contact-color: #ff83d6;
}

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

body {
  background-color: var(--background);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
  position: relative;
  overflow-x: hidden;
}

/* --- Animated Background Blobs & Grid --- */
.background-blobs-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.38;
  mix-blend-mode: screen;
  animation: move-blob 22s infinite alternate ease-in-out;
}

.blob-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation-duration: 25s;
}

.blob-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.8) 0%, transparent 70%);
  bottom: -15%;
  right: -5%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(162, 56, 255, 0.5) 0%, transparent 70%);
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 20s;
  animation-delay: -10s;
}

/* Cybernetic Grid Overlay */
.mesh-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  pointer-events: none;
}

@keyframes move-blob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, -60px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.95);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 1;
}

/* --- Header Section --- */
.profile-header {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.profile-title {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(229, 77, 170, 0.35);
  background: linear-gradient(135deg, #ffffff 20%, #ff83d6 60%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-align: center;
}

.profile-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- Links Section General --- */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-align: center;
}

.links-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Link Cards */
.link-card {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.link-icon-bg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.link-icon {
  width: 22px;
  height: 22px;
  color: #fff;
  transition: all 0.3s ease;
}

.link-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.link-name {
  font-size: 1.05rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.link-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.35;
}

.link-arrow {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card Hover States */
.link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.015);
}

.link-card:hover::before {
  opacity: 1;
}

.link-card:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #fff;
}

/* --- Social Card Hover Accents --- */
.tg-card:hover {
  border-color: var(--tg-color);
  box-shadow: 0 8px 30px rgba(34, 158, 217, 0.18);
}
.tg-card:hover .link-icon-bg {
  background: rgba(34, 158, 217, 0.15);
  border-color: rgba(34, 158, 217, 0.3);
}
.tg-card:hover .link-name {
  color: var(--tg-color);
}

.ds-card:hover {
  border-color: var(--ds-color);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.18);
}
.ds-card:hover .link-icon-bg {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.3);
}
.ds-card:hover .link-name {
  color: var(--ds-color);
}

.yt-card:hover {
  border-color: var(--yt-color);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.18);
}
.yt-card:hover .link-icon-bg {
  background: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 0.3);
}
.yt-card:hover .link-name {
  color: var(--yt-color);
}

.tt-card:hover {
  border-color: var(--tt-color);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.18);
}
.tt-card:hover .link-icon-bg {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.3);
}
.tt-card:hover .link-name {
  color: var(--tt-color);
}

/* --- Secondary Card Hover Accents --- */
.site-card:hover {
  border-color: var(--site-color);
  box-shadow: 0 8px 30px rgba(162, 56, 255, 0.15);
}
.site-card:hover .link-icon-bg {
  background: rgba(162, 56, 255, 0.12);
  border-color: rgba(162, 56, 255, 0.3);
}
.site-card:hover .link-name {
  color: var(--site-color);
}

.launcher-card:hover {
  border-color: var(--launcher-color);
  box-shadow: 0 8px 30px rgba(229, 77, 170, 0.15);
}
.launcher-card:hover .link-icon-bg {
  background: rgba(229, 77, 170, 0.12);
  border-color: rgba(229, 77, 170, 0.3);
}
.launcher-card:hover .link-name {
  color: var(--launcher-color);
}

.contact-card:hover {
  border-color: var(--contact-color);
  box-shadow: 0 8px 30px rgba(255, 131, 214, 0.15);
}
.contact-card:hover .link-icon-bg {
  background: rgba(255, 131, 214, 0.12);
  border-color: rgba(255, 131, 214, 0.3);
}
.contact-card:hover .link-name {
  color: var(--contact-color);
}

/* --- Footer --- */
.footer-note {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mojang-disclaimer {
  color: rgba(248, 113, 113, 0.7);
  font-weight: 600;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.4;
}

/* --- Media Queries --- */
@media (max-width: 480px) {
  body {
    padding: 45px 12px;
  }
  
  .container {
    gap: 24px;
  }
  
  .profile-subtitle {
    font-size: 0.9rem;
  }
  
  .link-card {
    padding: 16px 18px;
  }
  
  .link-icon-bg {
    width: 40px;
    height: 40px;
    margin-right: 14px;
  }
  
  .link-name {
    font-size: 0.98rem;
  }
  
  .link-desc {
    font-size: 0.8rem;
  }
}
