/* ================= BASE ================= */

html{
  scroll-behavior:smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.7;

  background: linear-gradient(
      120deg,
      #e9eff5,
      #d0d8e6,
      #e6edf8,
      #cdd9ef
  );

  background-size: 400% 400%;
  animation: aurora 18s ease infinite;
}

/* estrelas no fundo */

body::before{

  content:"";

  position:fixed;
  top:0;
  left:0;

  width:100%;
  height:100%;

  pointer-events:none;

  background-image:
    radial-gradient(2px 2px at 20% 30%,rgba(255,255,255,0.6),transparent),
    radial-gradient(2px 2px at 70% 60%,rgba(255,255,255,0.4),transparent),
    radial-gradient(2px 2px at 40% 80%,rgba(255,255,255,0.5),transparent),
    radial-gradient(2px 2px at 80% 20%,rgba(255,255,255,0.4),transparent);

  animation: starsMove 60s linear infinite;
}

@keyframes aurora {
  0% {background-position:0% 50%;}
  50% {background-position:100% 50%;}
  100% {background-position:0% 50%;}
}

@keyframes starsMove{
  from{transform:translateY(0);}
  to{transform:translateY(-1000px);}
}


/* ================= HEADER ================= */

header {

  background: linear-gradient(
      135deg,
      #0d47a1,
      #1565c0,
      #1e88e5
  );

  color: #fff;
  padding: 3rem 1rem 2.4rem;
  text-align: center;

  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

header h1 {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

header h2 {
  margin: 0.5rem 0;
  font-weight: 400;
  color: #e3f2fd;
}

.location {
  color: #bbdefb;
  font-size: 0.9rem;
}


/* ================= CONTATOS ================= */

.contact-bar {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}

.contact-bar a {

  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;

  padding: 0.45rem 1rem;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.4);

  backdrop-filter: blur(6px);

  transition: all 0.3s ease;
}

.contact-bar a:hover {

  background: rgba(255,255,255,0.2);

  transform: translateY(-3px);

  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}


/* ================= NAVEGAÇÃO ================= */

.section-nav {
  display: flex;
  justify-content: center;
  gap: 2.4rem;
}

.section-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.section-nav a::after {

  content: '';

  position: absolute;

  left: 50%;
  bottom: -6px;

  width: 0;
  height: 2px;

  background: #fff;

  transition: all .3s ease;
}

.section-nav a:hover::after {
  width: 100%;
  left: 0;
}


/* ================= CONTAINER ================= */

.container {
  width: 90%;
  max-width: 1400px;
  margin: 3rem auto;
  display: grid;
  gap: 2.6rem;
}


/* ================= SEÇÕES ================= */

.section {

  padding: 3rem;

  border-radius: 22px;

  background: rgba(255,255,255,0.75);

  backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.6);

  box-shadow:
    0 15px 35px rgba(0,0,0,0.08),
    0 8px 18px rgba(0,0,0,0.06);

  transition: all .35s ease;

  position: relative;

  overflow: hidden;
}

/* brilho passando */

.section::before {

  content: '';

  position: absolute;

  top: -50%;
  left: -50%;

  width: 200%;
  height: 200%;

  background: linear-gradient(
      120deg,
      transparent,
      rgba(255,255,255,0.25),
      transparent
  );

  transform: rotate(25deg);

  opacity: 0;

  transition: opacity .4s ease;
}

.section:hover::before {
  opacity: 1;
}

/* iluminação premium */

.section::after{

  content:"";

  position:absolute;

  inset:0;

  border-radius:22px;

  background: radial-gradient(
      circle at center,
      rgba(66,165,245,0.15),
      transparent 60%
  );

  opacity:0;

  transition:opacity .3s ease;
}

.section:hover::after{
  opacity:1;
}

.section:hover {

  transform: translateY(-10px);

  box-shadow:
    0 25px 60px rgba(0,0,0,0.16),
    0 10px 30px rgba(0,0,0,0.10);
}


.section h3 {

  color: #0d47a1;

  font-size: 1.5rem;

  margin-bottom: 1.4rem;

  border-bottom: 2px solid #0d47a1;

  padding-bottom: .4rem;
}


/* ================= PERFIL ================= */

.profile {
  text-align: center;
}

.profile img {

  width: 210px;
  height: 210px;

  border-radius: 50%;

  border: 4px solid #fff;

  box-shadow:
    0 12px 30px rgba(0,0,0,0.3),
    0 0 20px rgba(66,165,245,0.4);

  transition: transform .4s ease;
}

.profile img:hover {
  transform: scale(1.07);
}


/* ================= SKILLS ================= */

.skills-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));

  gap: 1.6rem;
}

.skills-grid > div {

  padding: 1.7rem;

  border-radius: 16px;

  background: white;

  box-shadow:
    0 8px 20px rgba(0,0,0,0.08);

  transition: all .3s ease;
}

.skills-grid > div:hover {

  transform: translateY(-6px);

  box-shadow:
    0 16px 35px rgba(0,0,0,0.15);
}

.skills-grid strong {

  display: block;

  font-size: 1.05rem;

  margin-bottom: .7rem;

  color: #0d47a1;
}


/* barras de skill */

.skill-bar{
  margin-bottom:12px;
}

.skill-bar span{
  font-size:.9rem;
  font-weight:500;
}

.bar{
  height:8px;
  background:#e5e7eb;
  border-radius:20px;
  overflow:hidden;
  margin-top:4px;
}

.level{
  height:100%;
  border-radius:20px;
  background: linear-gradient(
      90deg,
      #1565c0,
      #42a5f5
  );
  width:0;
  animation: loadBar 2s ease forwards;
}

.python{width:90%;}
.pytorch{width:85%;}
.tensorflow{width:80%;}
.qgis{width:75%;}
.remote{width:85%;}

@keyframes loadBar{
  from{width:0;}
}


/* ================= LISTAS ================= */

.section ul {

  list-style: none;

  padding-left: 0;

}

.section ul li {

  position: relative;

  padding-left: 24px;

  margin-bottom: .6rem;

  transition:transform .2s ease;
}

.section ul li:hover{
  transform:translateX(4px);
}

.section ul li::before {

  content: "▹";

  position: absolute;

  left: 0;

  color: #1565c0;
}


/* ================= TIMELINE ================= */

.timeline{

  position:relative;

  margin-top:20px;

  padding-left:30px;
}

.timeline::before{

  content:"";

  position:absolute;

  left:10px;
  top:0;

  width:3px;
  height:100%;

  background:#1565c0;
}

.timeline-item{

  position:relative;

  margin-bottom:20px;
}

.timeline-item::before{

  content:"";

  position:absolute;

  left:-24px;
  top:6px;

  width:12px;
  height:12px;

  border-radius:50%;

  background:#1565c0;

  box-shadow:0 0 10px rgba(21,101,192,0.6);
}

.timeline-item h4{
  margin:0;
  font-size:1rem;
  color:#0d47a1;
}


/* ================= BADGES ================= */

.badge {

  background: linear-gradient(
      135deg,
      #0d47a1,
      #1e88e5
  );

  color: white;

  padding: 3px 8px;

  border-radius: 8px;

  font-size: .75rem;

  margin-left: 4px;
}


/* ================= FOOTER ================= */

footer {

  text-align: center;

  padding: 2rem;

  margin-top: 3rem;

  background: linear-gradient(
      135deg,
      #d0d8e6,
      #c5d2e8
  );

  color: #374151;

  box-shadow: 0 -6px 15px rgba(0,0,0,0.08);
}