﻿:root {
  --bg: #0d1017;
  --bg-soft: #151a24;
  --card: #1c2230;
  --text: #f4f6fb;
  --muted: #a7afc1;
  --shadow: 0 18px 45px rgba(5, 8, 15, 0.55);
  --radius: 18px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 500px at 50% -10%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(140deg, #0b0f16 0%, #0f1320 45%, #141b2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: drift 12s ease-in-out infinite;
}

.orb-red {
  background: radial-gradient(circle, rgba(255, 92, 92, 0.45) 0%, rgba(255, 92, 92, 0.02) 65%);
  top: 8%;
  left: 10%;
}

.orb-blue {
  background: radial-gradient(circle, rgba(78, 116, 255, 0.5) 0%, rgba(78, 116, 255, 0.03) 70%);
  bottom: 12%;
  right: 8%;
  animation-delay: -4s;
}

.orb-green {
  background: radial-gradient(circle, rgba(87, 221, 129, 0.4) 0%, rgba(87, 221, 129, 0.02) 70%);
  top: 55%;
  left: 65%;
  animation-delay: -7s;
}

.page {
  width: min(640px, 92vw);
  padding: 44px 28px 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(28, 34, 48, 0.96), rgba(19, 23, 35, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.page-inner {
  transition: transform 320ms ease;
}

.profile {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-bottom: 26px;
  animation: rise 700ms ease forwards;
}

.avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2f3645, #1f2534);
  border: 2px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(10, 12, 18, 0.55);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile h1 {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.profile p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 20px rgba(8, 10, 16, 0.35);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 24px rgba(8, 10, 16, 0.45);
}

.social-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
}

.links {
  display: grid;
  gap: 14px;
}

.link-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 10px 24px rgba(10, 12, 20, 0.35);
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 500ms ease forwards;
}

.link-card:nth-child(1) {
  animation-delay: 120ms;
}

.link-card:nth-child(2) {
  animation-delay: 220ms;
}

.link-card:nth-child(3) {
  animation-delay: 320ms;
}

.link-card:nth-child(4) {
  animation-delay: 420ms;
}

.link-card:nth-child(5) {
  animation-delay: 520ms;
}

.link-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 30px rgba(8, 10, 16, 0.5);
}

.link-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
}

.icon svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.text {
  display: grid;
  text-align: left;
  gap: 4px;
}

.title {
  font-weight: 600;
  font-size: 17px;
}

.subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.youtube {
  background: linear-gradient(120deg, #c62b2b 0%, #f05252 100%);
}

.twitch {
  background: linear-gradient(120deg, #4a2a82 0%, #7c4bd1 100%);
}

.discord {
  background: linear-gradient(120deg, #2d4da6 0%, #4b73f2 100%);
}

.projects {
  background: linear-gradient(120deg, #1f5a37 0%, #4d9a47 100%);
}

.calendar {
  background: linear-gradient(120deg, #1b4d7a 0%, #3b7bbf 100%);
}

.whatsapp {
  background: linear-gradient(120deg, #128c7e 0%, #25d366 100%);
}

.contact {
  background: linear-gradient(120deg, #2f333e 0%, #4b5362 100%);
}

.panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  z-index: 1;
}

.youtube-panel {
  position: absolute;
  inset: 0;
  padding: 40px 28px 32px;
  display: grid;
  align-content: start;
  gap: 18px;
  background: linear-gradient(180deg, rgba(20, 24, 36, 0.98), rgba(12, 15, 24, 0.96));
  border-radius: 24px;
  transform: translateX(110%);
  transition: transform 320ms ease;
  z-index: 2;
  overflow-y: auto;
}

.panel-header h2 {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.panel-list {
  display: grid;
  gap: 12px;
}

.panel-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
}

.panel-item.youtube {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-item.youtube::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, #e64646, #b52727);
}

.panel-item.youtube .panel-icon {
  background: rgba(255, 255, 255, 0.16);
}

.panel-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 28px rgba(8, 10, 16, 0.5);
}

.panel-item.youtube:hover {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
}

.panel-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.panel-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.panel-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel-text {
  display: grid;
  gap: 3px;
}

.panel-title {
  font-weight: 600;
  font-size: 15px;
}

.panel-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.panel-arrow {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.7);
}

.panel-cancel {
  margin-top: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  cursor: pointer;
}

body.show-youtube .page-inner {
  transform: translateX(-110%);
}

body.show-youtube .youtube-panel {
  transform: translateX(0);
}

body.show-youtube .panel-backdrop {
  opacity: 1;
  pointer-events: auto;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes drift {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}

@media (max-width: 560px) {
  .page {
    padding: 34px 20px 26px;
    border-radius: 22px;
  }

  .avatar {
    width: 74px;
    height: 74px;
  }

  .profile h1 {
    font-size: 26px;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }

  .link-card {
    grid-template-columns: 48px 1fr;
    padding: 14px 16px;
  }

  .youtube-panel {
    padding: 32px 20px 24px;
  }
}

@media (max-width: 420px) {
  .page {
    width: 94vw;
  }

  .link-card {
    grid-template-columns: 44px 1fr;
  }

  .icon {
    width: 42px;
    height: 42px;
  }
}
