/* ==================== BOOTSTRAP ==================== */
@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css");

/* ==================== FONTE PORSCHE ====================*/

@font-face {
  font-family: "Porsche Next";
  src: url("https://cdn.ui.porsche.com/porsche-design-system/fonts/porsche-next-latin-regular.b8f1c20.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Porsche Next";
  src: url("https://cdn.ui.porsche.com/porsche-design-system/fonts/porsche-next-latin-semi-bold.b5f6fca.woff2")
    format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Porsche Next";
  src: url("https://cdn.ui.porsche.com/porsche-design-system/fonts/porsche-next-latin-bold.0fbdc6d.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ====================== VARIÁVEIS ====================== */

:root {
  color-scheme: light dark;

  --bg-body: #5c5d5b;
  --bg-header: #171816;
  --text-muted: #f5f5f7;
  --color-accent: #00e5ff;
  --color-accent-hover: #00e5ff;
  --color-accent-sb: #00e5ff;
  --color-skills: #82b2b8;
  --skill-card-bg: rgba(255, 255, 255, 0.06);
  --skill-card-border: rgba(255, 255, 255, 0.1);
}

* {
  font-family: "Porsche Next", sans-serif;
}

/* ====================== GLASS ====================== */

.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
}

/* ====================== BODY ====================== */

body {
  margin-top: 4%;
  background-color: var(--bg-body);
  background-image: url("../img/bg-image-dark.jpg");
  background-size: cover;
  background-position: center;
}

p {
  margin: 2%;
  color: var(--text-muted);
}

a {
  text-decoration: none;
}
a:visited {
  color: var(--color-accent);
}

.projeto-links a,
.projeto-links a:visited {
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
}

.projeto-links a:hover {
    color: var(--color-accent-hover);
    opacity: 0.8;
}

/* ====================== HEADER ====================== */

.header {
  position: fixed;
  top: 10px;
  left: 20%;
  right: 20%;
  z-index: 1000;
  margin: auto;
  padding: 10px 30px 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  background-color: var(--bg-header);
  border-radius: 50px;
}

.logo-link {
  font-size: 1.2rem;
  font-weight: bold;
}

/* ====================== LAYOUT PRINCIPAL ====================== */

.principal {
  margin: 2% 15% 0 15%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

/* ====================== TIPOGRAFIA ====================== */

.titulo {
  margin: 0 0 10px 0;
  color: var(--color-accent-sb);
  text-transform: uppercase;
}

.apresentacao-texto {
  display: block;
  width: 100%;
  padding: 5px 0 5px 15px;
  box-sizing: border-box;
  text-align: left;
}

.sb-skills {
  margin: 0 0 16px 0;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* ====================== SKILLS CARDS ====================== */

.skills-group {
  margin-bottom: 28px;
  margin-left: 15px;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--skill-card-bg);
  border: 1px solid var(--skill-card-border);
  border-radius: 14px;
  cursor: default;
  transition:
    border-color 0.3s ease,
    transform 0.2s ease,
    background 0.3s ease;
}

.skill-card:hover {
  border-color: var(--color-accent-hover);
  background: rgba(0, 229, 255, 0.06);
  transform: translateY(-4px);
}

.skill-card i {
  font-size: 2.2rem;
  line-height: 1;
}

.skill-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  opacity: 0.85;
}

/* ====================== PROJETOS ====================== */

.projetos-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 30px;
}

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.projeto {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    background 0.2s,
    transform 0.2s ease,
    border-color 0.3s ease;
}
.projeto-links {
  display: flex;
  gap: 16px; 
  flex-wrap: wrap; 
}

.projeto:hover {
  border-color: var(--color-accent);
  background: rgba(0, 229, 255, 0.06);
  transform: translateY(-4px);
}

.projeto .subtitulo {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.projeto .descricao {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* ====================== EXPERIÊNCIAS ====================== */

.experiencias {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 30px;
}

.experiencia {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    background 0.2s,
    transform 0.2s ease,
    border-color 0.3s ease;
}

.experiencia:hover {
  border-color: var(--color-accent);
  background: rgba(0, 229, 255, 0.06);
  transform: translateY(-4px);
}

.experiencia .subtitulo {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.4;
}

.experiencia .descricao {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* ====================== FOOTER / CONTATO ====================== */

.contato-container {
  margin: 20px 15% 0 15%;
  padding: 20px;
  border-radius: 50px;
}

.footer {
  margin: 20px 15% 2% 15%;
  padding: 10px;
  border-radius: 50px;
  text-align: center;
  justify-content: center;
}

.copy {
  padding: 10px;
  color: var(--text-muted);
  text-align: center;
}

/* ====================== HERO ====================== */

.hero {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.div-hero {
  width: 100%;
  max-width: 600px;
  text-align: left;
  padding: 0;
  margin: 0;
}

.hero-label {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  opacity: 0.75;
  margin: 0 0 12px 0;
}

.hero-titulo {
  margin: 0 0 16px 0;
}

.text-thiago {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.hero-subtitulo {
  display: none; /* substituído pelo hero-label */
}

.hero-descricao {
  margin: 0 0 32px 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  opacity: 0.75;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: transparent;
  color: var(--text-muted);
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--text-muted);
  color: #000;
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ====================== NAV ====================== */

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link,
.dias {
  padding: 0px 0px 0px 10px;
  text-decoration: none;
  color: var(--color-accent);
  transition: color 0.3s ease;
}

.nav-link:hover,
.dias:hover {
  color: var(--color-accent-hover);
}

/* ====================== SOCIAIS ====================== */

.sociais-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.sociais {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-accent);
  transition: color 0.3s ease;
  margin-top: 10px;
}

.sociais:hover {
  transform: translateY(-2px);
  background: #333;
}

.sociais i {
  font-size: 1.2rem;
}

.sociais:visited {
  color: var(--color-accent);
}

/* ====================== UTILITÁRIOS ====================== */

.strong {
  text-transform: uppercase;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.strong:hover {
  color: var(--color-accent-hover);
}

/* ====================== IDS ====================== */

#projetos {
  scroll-margin-top: 80px;
}

#skills {
  scroll-margin-top: 80px;
}

@media (max-width: 768px) {
  body {
    margin-top: 90px;
    background-position: center;
  }

  .header {
    left: 10px;
    right: 10px;
    top: 10px;
    padding: 12px 18px;
    border-radius: 20px;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link,
  .dias {
    padding: 0;
    font-size: 0.9rem;
  }
  .principal,
  .contato-container,
  .footer {
    margin-left: 5%;
    margin-right: 5%;
  }

  .principal {
    gap: 16px;
  }
  .hero {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
    align-items: center;
    text-align: center;
  }

  .div-hero {
    max-width: 100%;
  }

  .hero-label {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
  }

  .text-thiago {
    font-size: clamp(2.5rem, 12vw, 4rem);
    letter-spacing: -1px;
  }

  .hero-descricao {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-btns {
    justify-content: center;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .glass {
    padding: 20px;
  }

  .skills-group {
    margin-left: 0;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-card {
    padding: 18px 10px;
  }

  .skill-card i {
    font-size: 1.8rem;
  }

  .projetos-container {
    padding: 20px;
  }

  .projetos-grid {
    grid-template-columns: 1fr;
  }

  .projeto {
    padding: 20px;
  }

  .experiencias {
    padding: 20px;
  }

  .experiencia {
    padding: 20px;
  }

  .titulo {
    font-size: 1.4rem;
  }

  .descricao,
  .experiencia .descricao,
  .projeto .descricao {
    font-size: 0.9rem;
  }

  .sociais-footer {
    flex-direction: column;
    align-items: center;
  }

  .sociais {
    width: 100%;
    justify-content: center;
  }
}
