/* ===== DESIGN TOKENS ===== */
:root {
  --bg-start: #0a1628;
  --bg-end: #162544;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.12);
  --surface-active: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.22);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --accent-blue: #1f96d4;
  --accent-navy: #004a98;
  --accent-pink: #e9407a;
  --accent-green: #25d366;
  --accent-facebook: #1877f2;
  --accent-instagram: #e4405f;
  --shadow-glow: 0 0 60px rgba(31, 150, 212, 0.15);
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: linear-gradient(
    160deg,
    var(--bg-start) 0%,
    var(--bg-end) 50%,
    #0d1f3c 100%
  );
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ===== ANIMATED BG BLOBS ===== */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 500px;
  height: 500px;
  background: var(--accent-blue);
  top: -120px;
  right: -100px;
  animation: float-blob 12s ease-in-out infinite alternate;
}
body::after {
  width: 400px;
  height: 400px;
  background: var(--accent-pink);
  bottom: -80px;
  left: -80px;
  animation: float-blob 15s ease-in-out infinite alternate-reverse;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, -30px) scale(1.1);
  }
  100% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 460px;
  padding: 32px 20px 48px;
  position: relative;
  z-index: 1;
}

/* ===== PROFILE HEADER ===== */
.profile {
  text-align: center;
  margin-bottom: 36px;
  animation: fade-up 0.6s ease-out both;
}

.profile__avatar {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 3px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  backdrop-filter: blur(12px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    var(--shadow-glow);
  overflow: hidden;
  transition: var(--transition);
}
.profile__avatar:hover {
  transform: scale(1.05);
  border-color: var(--accent-blue);
}
.profile__avatar img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.profile__name {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: white;
}

.profile__tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

/* ===== SECTION LABEL ===== */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 28px 0 12px;
  padding-left: 4px;
  animation: fade-up 0.6s ease-out both;
}

/* ===== LINK CARDS ===== */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  animation: fade-up 0.5s ease-out both;
}

/* Staggered animation delays */
.link-card:nth-child(1) {
  animation-delay: 0.08s;
}
.link-card:nth-child(2) {
  animation-delay: 0.14s;
}
.link-card:nth-child(3) {
  animation-delay: 0.2s;
}
.link-card:nth-child(4) {
  animation-delay: 0.26s;
}
.link-card:nth-child(5) {
  animation-delay: 0.32s;
}
.link-card:nth-child(6) {
  animation-delay: 0.38s;
}
.link-card:nth-child(7) {
  animation-delay: 0.44s;
}
.link-card:nth-child(8) {
  animation-delay: 0.5s;
}

/* Shine sweep on hover */
.link-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
  pointer-events: none;
}
.link-card:hover::after {
  left: 100%;
}

.link-card:hover {
  background: var(--surface-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.link-card:active {
  transform: translateY(0) scale(0.99);
  background: var(--surface-active);
}

/* Icon circle */
.link-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.link-card__icon .material-symbols-rounded {
  font-size: 24px;
  color: #fff;
  font-variation-settings:
    "FILL" 1,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

/* ===== FOUT prevention: hide icon text until font loads ===== */
.material-symbols-rounded {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.fonts-loaded .material-symbols-rounded {
  opacity: 1;
}
/* SVG icons for social networks */
.link-card__icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.link-card:hover .link-card__icon {
  transform: scale(1.08);
}

/* Icon colors */
.icon--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}
.icon--web {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-navy));
}
.icon--email {
  background: linear-gradient(135deg, #ea4335, #d93025);
}
.icon--facebook {
  background: linear-gradient(135deg, #1877f2, #1565c0);
}
.icon--instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}
.icon--phone {
  background: linear-gradient(135deg, var(--accent-blue), #0d7ab5);
}

/* Text */
.link-card__text {
  flex: 1;
  min-width: 0;
}
.link-card__title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}
.link-card__subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Arrow */
.link-card__arrow {
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: var(--transition);
}
.link-card__arrow .material-symbols-rounded {
  font-size: 20px;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 20;
}
.link-card:hover .link-card__arrow {
  color: var(--text-primary);
  transform: translateX(3px);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  animation: fade-up 0.6s ease-out 0.6s both;
}
.footer__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.5;
  margin-bottom: 8px;
  transition: var(--transition);
}
.footer__logo:hover {
  opacity: 0.8;
}

.footer__text {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.5;
  opacity: 0.7;
}
.footer__text a {
  color: var(--accent-blue);
  text-decoration: none;
}
.footer__text a:hover {
  text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .container {
    padding: 24px 16px 40px;
  }
  .profile__avatar {
    width: 96px;
    height: 96px;
  }
  .profile__avatar img {
    width: 60px;
    height: 60px;
  }
  .profile__name {
    font-size: 1.35rem;
  }
  .link-card {
    padding: 12px 14px;
    gap: 12px;
  }
  .link-card__icon {
    width: 40px;
    height: 40px;
  }
  .link-card__icon .material-symbols-rounded {
    font-size: 22px;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 48px 20px 60px;
  }
}
