:root {
  /* Base */
  --bg-body: #181818;
  --bg-card: #1e1e1e;
  --bg-card-hover: #242424;
  --bg-footer: #1a1a1a;
  --bg-modal: #111;
  --bg-overlay: rgba(0, 0, 0, 0.7);

  /* Textos */
  --text-main: #f1f1f1;
  --text-secondary: #cfcfcf;
  --text-muted: #999;
  --text-light: #e0e0e0;
  --text-soft: #bdbdbd;

  /* Destaque */
  --primary: #38bdf8;
  --accent: #00bcd4;

  /* Elementos */
  --border-avatar: #d5eef8;
  --tag-bg: #303030;
  --icon-bg: #b8b8b8;

  /* Sombras */
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.6);
}

body.light {
  /* Base */
  --bg-body: #f5f6f8;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f0;
  --bg-footer: #e9eaec;
  --bg-modal: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.4);

  /* Textos */
  --text-main: #1a1a1a;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-light: #374151;
  --text-soft: #6b7280;

  /* Destaque */
  --primary: #0284c7;
  --accent: #0891b2;

  /* Elementos */
  --border-avatar: #585858;
  --tag-bg: #e5e7eb;
  --icon-bg: #e5e7eb;

  /* Sombras */
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: "Roboto";
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
}

.hero {
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
}

.foto-hero img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-avatar);
}

.hero h1 {
    font-size: 29px;
    font-weight: 600;
}

.hero h2 {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);;
}

.hero-links {
    display: flex;
    gap: 16px;
    margin: 12px 0 20px;
}

.hero-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:  0.3s ease, background 0.3s ease;
}

.hero-links img {
  width: 20px;
  height: 20px;
}

.hero-links a:hover {
  background: var(--primary);
  transform: translateY(-4px);
}

.sections-nav {
    display: flex;
    gap: 20px;
}

.sections-nav button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    position: relative;
    padding-bottom: 4px;
}

.sections-nav button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.sections-nav button:hover::after,
.sections-nav button.active::after {
  width: 100%;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 80px; 
}

.section {
  width: 100%;
  max-width: 1000px;
  padding: 40px 20px;
  display: none;
}

.section.active {
  display: block;
}

.section h3 {
  font-size: 26px;
  margin-bottom: 24px;
  text-align: center;
}

.projects-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.project-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.project-card h4 {
  font-size: 1.1rem;
  text-align: center;
}

.project-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

.project-links {
    padding-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.project-card a {
  text-decoration: none;
  font-size: 15px;
  color: var(--primary);
  margin-right: 10px;
}

.project-card a:hover {
  text-decoration: underline;
}

.skills-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.skill {
  background-color: var(--bg-card);
  width: 120px;
  height: 120px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.skill:hover {
  transform: translateY(-6px);
  background-color: var(--bg-card-hover);
}

.skill img {
  width: 60px;
  height: 60px;
}

.skill span {
  font-size: 17px;
  color: var(--text-secondary);
}

#about p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  background-color: var(--bg-footer);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/*MODAL*/

.modal {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 999;
  display: none;
  
}

.active {
  display: flex;
}

.modal-content {
  background: var(--bg-modal);
  max-width: 700px;
  width: 90%;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.modal span {
  font-size: 35px;
  position: relative;
  top: -12px;
  cursor: pointer;
  max-width: 30px;
  padding: 0;
}

.modal-content img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 14px;
}

#modal-title {
  font-size: 2.5rem;
  text-align: center;
}

#modal-description {
  text-align: center;
  font-size: .9rem;
  color: var(--text-secondary);
}

.modal-links {
    padding-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.modal-links a {
    text-decoration: none;
    font-size: 20px;
    color: var(--primary);
    margin-right: 10px;
}

.modal-links a:hover {
  text-decoration: underline;
}

.modal-description {
  display: none;
}

.modal-description.active {
  display: block;
}

#description-todo,
#description-notes,
#description-box-shadow {
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  color: var(--text-soft);
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

#description-todo p,
#description-notes p,
#description-box-shadow p {
  font-size: 15px;
  color: var(--text-light);
}

#description-todo ul,
#description-notes ul,
#description-box-shadow ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}

#description-todo li,
#description-notes li,
#description-box-shadow li {
  font-size: 14px;
  color: var(--text-soft);
  padding-left: 16px;
  position: relative;
}

#description-todo li::before,
#description-notes li::before,
#description-box-shadow li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.tags {
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: center;
}

.tags-control {
  display: flex;
  gap: 8px;
  background-color: var(--tag-bg);
  padding: 4px 8px;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
}

.tags-control img {
  height: 18px;
  width: 18px;
  
}

.tags-control p {
  font-size: 12px;
  line-height: 1;
  color: var(--text-light);
}

.trail {
  background-color: var(--icon-bg);
  width: 60px;
  height: 30px;
  border-radius: 150px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.trail .indicator {
  width: 30px;
  height: 30px;
  background-color: var(--text-main); 
  border-radius: 50%;
  transform: translateX(0) scale(0.8);
  transition: transform 0.35s ease;
}

.trail.light {
  background-color: var(--tag-bg);
  
}

.trail.light .indicator {
  transform: translateX(30px) scale(0.8);
  background-color: var(--text-soft);
}

