@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&family=Rajdhani:wght@400;500;700&display=swap');

:root {
  --bg-deep: #070b17;
  --bg-panel: rgba(10, 18, 36, 0.72);
  --line: rgba(113, 236, 255, 0.32);
  --cyan: #71ecff;
  --pink: #ff4adf;
  --text: #d5e7ff;
  --text-soft: #9ab6d6;
  --shadow: 0 0 22px rgba(113, 236, 255, 0.35), 0 0 44px rgba(255, 74, 223, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Rajdhani', sans-serif;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 74, 223, 0.2) 0, transparent 30%),
    radial-gradient(circle at 85% 65%, rgba(113, 236, 255, 0.2) 0, transparent 34%),
    linear-gradient(130deg, #050711 0%, #090f1f 52%, #04060d 100%);
  color: var(--text);
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(113, 236, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 236, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(700px) rotateX(58deg) translateY(50%);
  transform-origin: bottom;
  opacity: 0.35;
  z-index: -3;
}

.bg-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  z-index: -2;
  animation: drift 8s ease-in-out infinite alternate;
}

.bg-glow-a {
  top: -60px;
  left: -80px;
  background: var(--pink);
}

.bg-glow-b {
  right: -90px;
  bottom: -110px;
  background: var(--cyan);
  animation-delay: 1.5s;
}

header {
  background: rgba(7, 12, 24, 0.75);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 35px rgba(1, 4, 12, 0.5);
  position: sticky;
  top: 0;
  z-index: 4;
}

.clear {
  clear: both;
}

.center {
  max-width: 900px;
  padding: 0 2%;
  margin: 0 auto;
}

header > .center {
  display: flex;
  align-items: center;
  min-height: 72px;
}

.logo-header {
  width: 30%;
}

.logo-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--cyan);
  text-shadow: 0 0 15px rgba(113, 236, 255, 0.75);
}

.search {
  text-align: center;
  width: 50%;
  padding-top: 4px;
}

.search-box {
  display: inline-block;
  position: relative;
}

.search-box input{
  background: rgba(8, 18, 38, 0.9);
  color: var(--text);
  padding: 8px 14px;
  width: 260px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  box-shadow: inset 0 0 14px rgba(113, 236, 255, 0.12);
}

.search-box input::placeholder {
  color: rgba(154, 182, 214, 0.8);
}

.search-box i{
  position: absolute;
  left: 14px;
  top: 11px;
  opacity: 0.7;
  color: var(--cyan);
}

.notifications-icons {
  width: 20%;
  text-align: right;
  padding-top: 5px;
}

.notifications-icons a{
  text-decoration: none;
  color: var(--text);
  font-size: 22px;
  margin-right: 10px;
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
}

.notifications-icons a:hover {
  color: var(--cyan);
  transform: translateY(-2px) scale(1.07);
}

.notifications-icons .img-miniature{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-image: url('https://avatars.githubusercontent.com/u/127339610?v=4');
  background-size: cover;
  border: 2px solid var(--pink);
  box-shadow: 0 0 12px rgba(255, 74, 223, 0.7);
  background-repeat: no-repeat;
  display: inline-block;
  position: relative;
  top: 8px;
}

.img-perfil-wraper{
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  grid-row: 1 / span 3;
}

.img-perfil{
  background-image: url('https://avatars.githubusercontent.com/u/127339610?v=4');
  background-size: cover;
  width: 210px;
  padding-top: 210px;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  transform: perspective(800px) rotateY(-12deg) rotateX(8deg);
}

.texto-perfil{
  width: 100%;
}

.perfil-descricao .center {
  display: grid;
  grid-template-columns: minmax(220px, 270px) 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 36px;
  row-gap: 12px;
  align-items: start;
  background: var(--bg-panel);
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 4%;
  box-shadow: 0 12px 42px rgba(1, 4, 14, 0.6);
  transform-style: preserve-3d;
  animation: riseIn 0.8s ease-out;
  transition: transform 0.2s ease;
}

.nome-perfil,
.info-perfil,
.descricao-perfil {
  grid-column: 2;
}

.nome-perfil {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.texto-perfil {
  padding-top: 2px;
}

.nome-perfil span{
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cyan);
  font-family: 'Orbitron', sans-serif;
}

.nome-perfil a.btn-primario{
  text-decoration: none;
  margin: 0 2px 0 10px;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(113, 236, 255, 0.08);
  transition: 0.25s;
}

.nome-perfil a.btn-primario:hover {
  color: #050711;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(113, 236, 255, 0.7);
}

.nome-perfil a.icon{
  text-decoration: none;
  color: var(--pink);
  font-size: 22px;
}

.info-perfil p{
  display: inline-block;
  margin-right: 0;
  color: var(--text-soft);
  font-size: 22px;
  white-space: nowrap;
}

.info-perfil {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}

.info-perfil p b {
  color: var(--text);
  font-family: 'Orbitron', sans-serif;
}

.descricao-perfil h3{
  font-size: 24px;
  letter-spacing: 1px;
  color: #ffffff;
}

.descricao-perfil p{
  font-size: 20px;
  font-weight: 400;
  color: var(--text-soft);
  margin-top: 10px;
  max-width: 680px;
  line-height: 1.3;
}

section.feed{
  padding: 40px 0;
}

.line-feed{
  border-top: 1px solid var(--line);
  text-align: center;
  margin-top: 8px;
}

.line-marcacao{
  display: none;
  position: absolute;
  width: 106px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  box-shadow: 0 0 14px rgba(113, 236, 255, 0.8);
  top: -10px;
}

.line-igtv {
  width: 38px;
}

.line-salvos {
  width: 57px;
}

.line-marcados {
  width: 90px;
}

.single-line-name.active .line-marcacao {
  display: block;
}

.single-line-name.active p {
  font-weight: 700;
  color: var(--text);
}

.publicacao-single{
  float: left;
  width: 33.3%;
  padding-top: 33.3%;
  border: 2px solid rgba(113, 236, 255, 0.15);
  background-size: cover;
  border-radius: 10px;
  box-shadow: 0 14px 26px rgba(2, 5, 16, 0.5);
  transition: transform 0.4s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
}

.repo-instagram { background-image: url('https://opengraph.githubassets.com/1/YanzinhoCaue/PROJETO-INSTAGRAM'); }
.repo-fetch { background-image: url('https://opengraph.githubassets.com/1/YanzinhoCaue/PROJETO-FETCH-GITHUB-API'); }
.repo-pokemon { background-image: url('https://opengraph.githubassets.com/1/YanzinhoCaue/PROJETO-WIKI-POKEMON'); }
.repo-lastofus { background-image: url('https://opengraph.githubassets.com/1/YanzinhoCaue/PRIMEIRO-PROJETO-THE-LAST-OF-US'); }
.repo-landing { background-image: url('https://opengraph.githubassets.com/1/YanzinhoCaue/PROJETO-LANDING-PAG-AVANCADO'); }
.repo-huddles { background-image: url('https://opengraph.githubassets.com/1/YanzinhoCaue/PROJECT-HUDDLES'); }
.repo-eazylanding { background-image: url('https://opengraph.githubassets.com/1/YanzinhoCaue/eazy_mail_landpage'); }
.repo-eazymail { background-image: url('https://opengraph.githubassets.com/1/YanzinhoCaue/Eazy_mail'); }
.repo-profile { background-image: url('https://opengraph.githubassets.com/1/YanzinhoCaue/yanzinhocaue'); }

.publicacao-single:hover {
  transform: translateY(-8px) rotateX(6deg) rotateY(-6deg) scale(1.01);
  border-color: rgba(255, 74, 223, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 74, 223, 0.22), 0 22px 35px rgba(2, 5, 16, 0.75);
}

.single-line-name{
  text-transform: uppercase;
  margin: 10px 10px;
  position: relative;
  display: inline-block;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.single-line-name:hover {
  color: var(--cyan);
}

#igtv{
  display: none;
}

#salvos,
#marcacoes {
  display: none;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-20px, 25px) scale(1.08);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media screen and (max-width: 580px){
  .bg-grid {
    transform: perspective(400px) rotateX(67deg) translateY(60%);
  }

  .logo-header h1 {
    font-size: 18px;
  }

  .search-box{
    display: none;
  }

  .logo-header,
  .notifications-icons {
    width: 50%;
  }

  .notifications-icons{
    padding-top: 0;
  }

  .img-perfil-wraper,
  .texto-perfil {
    width: 100%;
  }

  .perfil-descricao .center {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 14px;
  }

  .img-perfil-wraper {
    grid-row: auto;
    margin-bottom: 4px;
  }

  .img-perfil {
    width: 170px;
    padding-top: 170px;
    margin: 0 auto;
    transform: none;
  }

  .nome-perfil,
  .info-perfil,
  .descricao-perfil {
    grid-column: 1;
    text-align: center;
    justify-content: center;
  }

  .info-perfil {
    gap: 8px 16px;
  }

  .nome-perfil a.btn-primario {
    display: inline-block;
    margin-top: 10px;
  }

  .descricao-perfil p {
    font-size: 18px;
  }

  .publicacao-single {
    width: 50%;
    padding-top: 50%;
  }
}