/* Global Reset & Variables */
:root {
  --bg: #0d1117;
  --accent: #abb2bf;
  --button-bg: #1c1c21;
  --button-hover: #282828;
  --border: #2f333d;
  --white: #ffffff;
  --gray: #abb2bf;

  /* Tags Colors */
  --programming: #7EE787;
  --frontend: #6CB6FF;
  --ai: #C674F5;
  --devops: #F67A7C;
  --innovation: #FFA657;
  --design: #F892C7;
  --mobile: #F5F569;
  --datascience: #9CD33B;
  --tools: #73E8F5;
  --other: #abb2bf;
  --backend: #F67A7C;

  --font-main: "Lexend", sans-serif;
  --font-text: "Roboto mono", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--white);
  line-height: 1.6;
  font-size: 14px;
}

a {
  font-family: var(--font-main);
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utility Classes */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.hash {
  color: var(--programming);
}

.highlight_green {
  color: var(--programming);
}

.highlight_blue {
  color: var(--frontend);
}

.highlight_purple {
  color: var(--ai);
}

.highlight_red {
  color: var(--devops);
}

.highlight_yellow {
  color: var(--mobile);
}

.highlight_orange {
  color: var(--innovation);
}

.highlight_pink {
  color: var(--design);
}

.highlight_cyan {
  color: var(--tools);
}

.btn {
  border-radius: 8px;
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--programming);
  color: var(--white);
  background-color: var(--button-bg);
  font-weight: 500;
  cursor: pointer;
}

.btn i {
  margin-right: 8px;
}

.btn:hover {
  background-color: var(--button-hover);
}

.btn-primary {
  border-color: var(--accent);
}

.btn-small {
  padding: 4px 8px;
  font-size: 0.9rem;
}

.btn-large {
  display: block;
  width: fit-content;
  margin: 2rem auto 0;
  padding: 8px clamp(24px, 8vw, 80px);
  font-size: 1rem;
}

.section-header {
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  margin-top: 4rem;
}

.section-title {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 500;
}



/* Header */
.header {
  padding: 2rem 0;
  position: sticky;
  top: 0;
  background-color: var(--bg);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo span {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-list a {
  color: var(--gray);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--white);
}

.nav-list .hash {
  margin-right: 2px;
}

.lang-switch {
  font-family: var(--font-text);
  margin-left: 1rem;
  color: var(--gray);
  font-weight: bold;
  cursor: pointer;
}

.lang-switch .active {
  color: var(--white);
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
}

/* Hero Section */
.hero {
  margin-top: 4rem;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  max-width: 500px;
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(2rem, 5vw, 52px);
  font-weight: normal;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero-title span[class^="highlight_"] {
  font-weight: bold;
}

.hero-desc {
  color: var(--gray);
  font-family: var(--font-text);
  font-size: 16px;
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
  max-width: 400px;
}

.hero-image img {
  border-radius: 24px;
}

/* Quote Section */
.quote-section {
  margin-top: 6rem;
  margin-bottom: 12rem;
}

.quote-box {
  margin: 0 auto;
  padding: 1rem 2rem;
  position: relative;
  width: fit-content;
  border-left: 4px solid var(--programming);
}

.quote-text {
  font-family: var(--font-text);
  font-size: 1.5rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quote-author {
  font-family: var(--font-text);
  font-weight: bold;
  font-size: 1rem;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.project-card {
  border: 1px solid var(--accent);
  border-radius: 8px;
}

.card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--gray);
  background-color: var(--bg);
  /* Placeholder color */
  border-radius: 8px 8px 0 0;
}

.card-tag-tech {
  font-size: 1rem;
  font-family: var(--font-text);
  font-weight: 500;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
}

.card-tag-tech span {
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  color: var(--bg);
}

.card-tag-tech span.frontend {
  background-color: var(--frontend);
}

.card-tag-tech span.backend {
  background-color: var(--backend);
}

.card-tag-tech span.datascience {
  background-color: var(--datascience);
}

.card-tag-tech span.tools {
  background-color: var(--tools);
}

.card-tag-tech span.ai {
  background-color: var(--ai);
}

.card-tag-tech span.design {
  background-color: var(--design);
}

.card-tag-tech span.mobile {
  background-color: var(--mobile);
}

.card-tag-tech span.programming {
  background-color: var(--programming);
}

.card-tag-tech span.innovation {
  background-color: var(--innovation);
}

.card-tag-tech span.other {
  background-color: var(--other);
}

.card-body {
  padding: 1rem;
  font-family: var(--font-text);
}

.card-title {
  font-family: var(--font-main);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-desc {
  font-family: var(--font-text);
  color: var(--gray);
  margin-bottom: 1rem;
}

.card-footer {
  font-family: var(--font-text);
  display: flex;
  gap: 1rem;
}

/* Skills Section */
.skills-content {
  width: 100%;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}


.skill-category {
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: #111620;
}

.skill-title,
[class^="skill-title-"] {
  font-family: var(--font-main);
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0d1117;
  border-radius: 8px 8px 0 0;
}

.skill-title-programming {
  background-color: var(--programming);
}

.skill-title-datascience {
  background-color: var(--datascience);
}

.skill-title-devops {
  background-color: var(--devops);
}

.skill-title-tools {
  background-color: var(--tools);
}

.skill-title-ai {
  background-color: var(--ai);
}

.skill-title-other {
  background-color: var(--other);
}

.skill-title-backend {
  background-color: var(--backend);
}

.skill-title-frontend {
  background-color: var(--frontend);
}

.skill-title-mobile {
  background-color: var(--mobile);
}

.skill-title-design {
  background-color: var(--design);
}

.skill-title-innovation {
  background-color: var(--innovation);
}

.skill-category ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skill-list {
  font-family: var(--font-text);
  font-size: 0.85rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
}


.skill-list::before {
  content: '▸';
  font-size: 0.7rem;
  opacity: 0.5;
  flex-shrink: 0;
}

/* About Me */
.about-content {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.about-text {
  flex: 1.2;
  color: var(--accent);
}

.about-text h3 {
  font-family: var(--font-main);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.about-text p {
  font-family: var(--font-text);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

.about-image {
  flex: 0.8;
  position: relative;
}

.about-image img {
  border-radius: 24px;
}

.about-image::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--programming);
  border-radius: 24px;
  z-index: -1;
}

/* Contacts Section */
.contacts {
  padding: 6rem 0;
}

.contacts-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

.contacts-left {
  flex: 1;
}

.lets-work-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.lets-text {
  font-family: var(--font-main);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.arrow-badge {
  background-color: #79f18e;
  width: 75px;
  height: 50px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c0d10;
  font-size: 1.5rem;
}

.arrow-badge i {
  transform: rotate(45deg);
}

.work-together-text {
  font-family: var(--font-main);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2.5rem;
  line-height: 1.3;
  letter-spacing: -1px;
}

.contacts-desc {
  font-family: var(--font-text);
  color: var(--gray);
  max-width: 450px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.contacts-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.contacts-card {
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 46px;
  width: 100%;
  max-width: 900px;
}

.contacts-card .card-title {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 3rem;
  color: var(--white);
}

.contact-info-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.info-label {
  font-family: var(--font-text);
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.info-value {
  font-family: var(--font-text);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.card-actions {
  display: flex;
  gap: 1rem;
}

/* Footer Section */
.footer {
  padding-bottom: 3rem;
}

.footer-separator {
  height: 1px;
  background-color: var(--border);
  margin-bottom: 2rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.social-icons-hero {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-icons-hero a {
  font-size: 1.5rem;
  color: var(--gray);
  transition:
    color 0.3s,
    transform 0.3s;
}

.social-icons-hero a:hover {
  color: var(--programming);
  transform: translateY(-5px);
}

.footer-socials {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
  color: var(--gray);
}

.footer-socials a:hover {
  color: var(--white);
}

.footer-copyright {
  font-family: var(--font-text);
  color: var(--gray);
  font-size: 0.9rem;
  text-align: center;
}

/* Responsive */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .hero-container {
    gap: 1.5rem;
  }

  .hero-image {
    max-width: 320px;
  }

  .about-content {
    gap: 2rem;
  }

  .contacts-container {
    gap: 2.5rem;
  }

  .contacts-card {
    border-radius: 24px;
    padding: 32px;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .quote-section {
    margin-bottom: 8rem;
  }

  .quote-text {
    font-size: 1.2rem;
  }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: var(--bg);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .nav-list.active {
    display: flex;
  }

  .hamburger-menu {
    display: flex;
  }

  /* Hamburger → X animation */
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hamburger-menu span {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 72px;
    margin-top: 2rem;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-icons-hero {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

  .quote-section {
    margin-top: 4rem;
    margin-bottom: 6rem;
  }

  .quote-text {
    font-size: 1rem;
  }

  .section-header {
    margin-top: 3rem;
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    display: none;
  }

  .about-text h3 {
    font-size: 1.5rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .contacts {
    padding: 3rem 0;
  }

  .contacts-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .lets-work-header {
    justify-content: center;
  }

  .contacts-desc {
    margin: 0 auto;
  }

  .contacts-right {
    justify-content: center;
    width: 100%;
  }

  .contacts-card {
    border-radius: 16px;
    padding: 1.5rem;
  }

  .contacts-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .contact-info-grid {
    gap: 1.5rem;
  }

  .card-bottom {
    flex-direction: column;
    gap: 1rem;
  }

  .card-actions {
    flex-direction: column;
    width: 100%;
  }

  .card-actions .btn {
    width: 100%;
    text-align: center;
  }
}



/* Working On section */

.working-on {
  border: 1px solid var(--border);
  position: absolute;
  bottom: 2rem;
  left: 0;
  background-color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0 8px 8px 0;
}

.working-on-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.working-icon.active {
  animation: blink 1s infinite;
  /* pisca a cada 1 segundo */
  color: var(--programming);
  font-size: 0.8rem;
}

.working-icon.disable {
  animation: none;
  color: var(--gray);
}

.working-on-title {
  color: var(--gray);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 500;
}

/* Fun Facts section */
.funfacts {
  margin-top: 4rem;
  margin-bottom: 6rem;
}

.funfacts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.funfact-item {
  border: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-text);
  color: var(--gray);
  border-radius: 8px;
}

.funfact-item i {
  color: var(--programming);
}