/* styles.css */
@charset "UTF-8";
/* Font imports and basic reset */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100..900&display=swap');
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
}

main p {
  text-indent: 30px;
}

:root {
  --bg: #fdfdfd;
  --bg-header: #fdfdfd;
  --text: #111;
  --muted: #666;
  --accent: #0b83d8;
  --card: #f3f8fab6; 
  --border-color: rgba(5, 46, 230, 0.76);
  --bg-nav: #0b83d8;
  --bg-gradient: linear-gradient(90deg, #9fd6f7, #0b83d8, #064b7d);
  --text-title:#0b83d8;
  --shadow-color:rgba(0, 0, 0, .2);
  --background-projects: #0b83d8;
  --background-Github: #082bc5;
  --bottom:#0b83d8;
  --bottom-hover: #082bc5;
  --barra-de-porcetagem: linear-gradient(90deg, #bebebe, rgba(0, 0, 0, .1));
  --hover-chip: rgba(0, 0, 0, 0.14);
  --border-chip: rgba(0, 0, 0, 0.08);
  --background-chip: rgba(0, 0, 0, 0.04); 
  --text-title-chip: #1d1d1d;
  

  --dark-bg: #0b061f;;
  --dark-bg-header:#0b061f;
  --dark-text: #e9eef6;
  --dark-card: #28188393;
  --dark-bg-nav: #5a46b8;
  --dark-border-color: rgba(104, 160, 177, 0.76);
  --dark-gradient: linear-gradient(90deg, #b3a9ff , #5a46b8, #281883);
  --dark-accent: #5a46b8;
  --dark-text-title: #b3a9ff;
  --dark-shadow-color: rgba(0, 0, 0, .7);
  --dark-background-projects: #7a71c0;
  --dark-background-Github:#5a46b8;
  --dark-bottom: #28188393;
  --dark-bottom-hover: #7a71c0;
  --dark-barra-de-porcetagem: linear-gradient(90deg, #e6eefb, #ffffff);
  --dark-hover-chip: rgba(255, 255, 255, 0.12);
  --dark-border-chip: rgba(255, 255, 255, 0.08);
  --dark-background-chip: rgba(255, 255, 255, 0.06);
  --dark-text-title-chip: #faf5f5f8;
}

html[data-theme="light"] {
  background: var(--bg);
  color: var(--text);
}

html[data-theme="dark"] {
  background: var(--dark-bg);
  color: var(--dark-text);
  --bg-header: var(--dark-bg-header);
  --card: var(--dark-card);
  --border-color: var(--dark-border-color);
  --bg-nav: var(--dark-bg-nav);
  --bg-gradient: var(--dark-gradient);
  --accent: var(--dark-accent);
  --text-title: var(--dark-text-title);
  --shadow-color: var(--dark-shadow-color);
  --background-projects: var(--dark-background-projects);
  --background-Github: var(--dark-background-Github);
  --bottom: var(--dark-bottom);
  --bottom-hover: var(--dark-bottom-hover);
  --barra-de-porcetagem: var(--dark-barra-de-porcetagem);
  --hover-chip: var(--dark-hover-chip);
  --border-chip: var(--dark-border-chip);
  --background-chip: var(--dark-background-chip);
  --text-title-chip: var(--dark-text-title-chip);
  
}

.container {
  margin: auto;
  padding: 0 24px;
}

/* Header styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  background: var(--bg-header);
  box-shadow: 0 .1rem 1rem var(--shadow-color);
  padding: 9px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content:space-between; /* mantém logo à esquerda e ações à direita */
  z-index: 100; /* garante que o header fique acima de outros elementos */
  padding: 0.5rem 1rem;
}


.brand {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: italic;
  color: var(--text-title);
  font-size: 18px;
}

/* Navigation styles */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto ; /* move nav to the right */
}
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: auto 15px auto auto;
  padding: 0;
}

.main-nav a {
  display: inline-flex;
  text-decoration: none;
  color: var(--text-color); 
}

.main-nav a:hover {
  background: var(--bg-nav);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.theme-btn,
.menu-btn {
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
}
.theme-btn img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.theme-btn:hover img {
  transform: rotate(15deg);
}


/* Social Media styles */
  .social-media {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0px;
    margin-top: 18px;
}


  .social-media a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 5 0.2rem 0.5rem var(--shadow-color);
    font-size: 29px;
    color: var(--accent);
    transition: -11.6s ease;
    margin: 1px;
    text-decoration: none;
}


.social-media a:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}


/* MOBILE */
/* Esconde o menu por padrão em telas pequenas */
@media (max-width: 1024px) {
  
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 10px;
    background: var(--card);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-btn {
    display: inline-block;
  }
}

/* Em telas grandes, mostra o menu e esconde o botão */
@media (min-width: 1025px) {
  .main-nav {
    display: flex;
  }

  .menu-btn {
    display: none;
  }
}


.theme-btn {
  background: none;
  padding: 9px 4px 2px 4px;
  cursor: pointer;
  color: inherit;
}


/* HERO */
.hero {
  padding: 80px 0;
  display: flex;
}


.hero-inner {
  display: flex;
  flex-wrap: wrap; /* permite quebra de linha */
  gap: 30px;
  align-items: flex-start;
}

.hero-left {
  flex: 1;
  max-width: 640px;
}

.hero-left h3 {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 8px;
  margin-top: 20px;
}

.hero-left h1 {
  font-size: 48px;
  margin-bottom: 12px;
}

.lead {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
}

.cta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.btn {
  background: var(--bottom);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
.btn:hover {
  background: var(--bottom-hover);
  color: white;
}

.btn.outline {
  background:var(--bottom);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.btn.outline:hover {
  background: var(--bottom-hover);
  color: white;
}

/* Skill card on hero right */
.hero-right {
  width: 320px;
  border-radius: 10px;
}

.skill-card {
  background: var(--card);
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0px 6px 18px var(--border-color);
  margin: 10px;
}

.skill-card h4 {
  color: var(--text-title);
  margin-bottom: 6px;
}

.language-card {
  margin-top: 12px;
  background: transparent;
  padding-top: 8px;
}

.language-card h5 {
  font-size: 14px;
  margin-bottom: 8px;
}

/* Sections */
.section {
  padding: 180px 90px;
}

.section h2 {
  text-align: center;
  margin-bottom: 18px;
  font-size: 28px;
}

.about p {
  max-width: 900px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.about p strong {
  color: var(--text-title);
  font-weight: bold;
}

.about ul li {
  max-width: 900px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 6px;
  font-weight: bold;
}

.about ul li strong {
  color: var(--text-title);
}

/* Skills grid */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 20px auto;
    width: 80em;
}

.skill-group {
  background: var(--card);
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0px 0px 50px var(--border-color);
}

.skill-group h3 {
  color: var(--text-title);
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.skill-item:first-of-type {
  border-top: 0;
}

.skill-item span {
  font-weight: 700;
}

/* Lista de chips */
.skill-list {
  display: flex;
  flex-direction: column; 
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Skill chip */
.skill-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--background-chip);
  border: 1px solid var(--border-chip);
  color: var(--text-title-chip);
  backdrop-filter: blur(2px);
  transition: transform 0.2s ease, background 0.2s ease;
  width: 100%;
}

.skill-chip:hover {
  transform: translateY(-2px);
  background: var(--hover-chip);
}

.skill-chip i,
.skill-chip .emoji {
  font-size: 22px;
  line-height: 1;
}

.skill-chip span {
  font-size: 14px;
  font-weight: 500;
}

.goals p {
    max-width: 900px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.7;
}

.goals p strong {
  color: var(--text-title);
}
/* Barra de progresso de habilidades e linguagens */
.bar {
  position: relative;
  background: var(--barra-de-porcetagem);
  height: 12px;
  border-radius: 8px;
  overflow: visible; /* importante para mostrar o balão */
}

.fill {
  height: 100%;
  background: var(--bg-gradient);
  position: relative;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Balão de porcentagem */
.fill::after {
  content: attr(data-percent);
  position: absolute;
  top: -31px;
  right: 0;
  background: var(--accent);
  color: white;
  padding: 4px 8px;
  border-radius: 20px;
  font-family: "poppins", "sans-serif";
  font-weight: 600;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

/* Hover: mostra balão e destaca barra */
.fill:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.fill:hover {
  transform: scaleY(1.6);
  box-shadow: 0 4px 12px var(--shadow-color);
  z-index: 5;
}


/* Projects */

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}
.project-card {
  background: var(--card);
  border-radius: 1.5rem;
  border: 2px solid transparent;
  overflow: hidden;
  width: 100%;
  max-width: 348px;
  box-shadow: 0px 0px 30px var(--border-color);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.7s;
  transition: transform 0.3s ease;
  animation: fadeInUp 0.7s;
  overflow: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

.project-card a {
  text-decoration: none;
}

.project-card:hover {
  background: var(--background-projects);
  color: #fff;
  transform: scale(1.02);
}

.project-card .project-lang {
color: var(--title-color-projects);
}
.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
}

.project-overlay {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  
}

.repo-link {
  background: var(--background-Github);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: 8px;
}


.repo-link:hover {
  background: #fff;
  color: var(--background-Github);
  border: 1px solid var(--accent);
}

.repo-link i.devicon-github-original {
    font-size: 19px;
    vertical-align: bottom;
    margin-right: 4px;
}
.project-card h3 a,
.project-card h3 a:visited {
  color: var(--text-title);
  text-decoration: none;
}

.project-card:hover h3 a,
.project-card:hover .project-lang,
.project-card:hover .project-meta span {
  color: #fff;
}

.site-link {
  background: var(--background-Github);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  transition: background 0.3s ease;
  margin-top: 8px;
}

.site-link:hover {
  background: #fff;
  color: var(--background-Github);
  border: 1px solid var(--accent);
}
/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.date {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-title);
  margin-bottom: 4px;
}

/* Responsive adjustments */
@media(max-width: 1477px) {
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    max-width: 400px; /* controla a largura máxima dos cards */
    margin: 0 auto;    /* centraliza horizontalmente */
}
}
@media(max-width: 1024px) {
  .hero {
    padding: 60px 0;
  }

  .hero-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    margin: 30px;
}

  .hero-left h1 {
    font-size: 36px;
  }

  .skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    max-width: 400px; /* controla a largura máxima dos cards */
    margin: 0 auto;    /* centraliza horizontalmente */
}

  .skill-card {
    width: 100%;
    margin: auto;
  }
}
  .skill-group {
  width: -webkit-fill-available;
  }


@media(max-width: 950px) {
  .site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  background: var(--bg-header);
  padding: 0.5rem 1rem;
}

  .menu-btn {
    display: block;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    margin: 3em;
  }

  .hero-right {
    width: 100%;
    max-width: 100%;
    margin: 19px -18px;
    padding: 6px;
    }

  .skill-card {
    width: 70%;
    margin: auto;
  }

  .skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    max-width: 400px; /* controla a largura máxima dos cards */
    margin: 0 auto;    /* centraliza horizontalmente */
}


  .brand {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-right {
    width: 100%;
    max-width: 100%;
    margin: 20px 0px;
    padding: 5px;
  }
  .hero-left h1 {
    font-size: 26px;
  }

  .hero-left h3 {
    font-size: 15px;
  }

  .lead {
    font-size: 14px;
    line-height: 1.5;
  }

  .cta {
    flex-direction: column;
    gap: 10px;
  }

  .btn, .btn.outline {
    width: 100%;
    text-align: center;
  }
  .skills-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

  .skill-card,
  .skill-group {
    width: 100%;
    max-width: 280%;
    margin: 0 auto;
  }


  .section {
    padding: 80px 16px;
  }

  .skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 0 16px;
    justify-content: center;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .project-card h3 {
    font-size: 1.4rem;
  }

  .project-card p {
    font-size: 1rem;
  }

  .repo-link {
    font-size: 0.9rem;
    padding: 10px;
  }

   .social-media {
    justify-content: center;
  }
  .social-media a {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

