:root {
  --cor-fundo-primaria: #f5f6fa;
  --cor-fundo-secundaria: #4f8cff;
  --azul-claro: #7da6ff;
  --borda-hover: #5c85e6;
  --borda: #3f6fd9;
  --cor-fundo-terciaria: #9ca3af;
  --texto-primario: #1a1a1a;
  --texto-secondario: #6b7280;
  --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--cor-fundo-primaria);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 20px;
  color: var(--texto-primario);
}

.conteudo {
  display: none;
}

.conteudo.ativo {
  display: block;
}

@media only screen and (max-width: 349px) {
  #logo img {
    width: 70px;
    margin-left: 30px;
  }

  header {
    background: linear-gradient(
      to bottom,
      rgba(79, 140, 255, 0.45) 0%,
      rgba(79, 140, 255, 0.25) 45%,
      rgba(79, 140, 255, 0.1) 75%,
      #f5f6fa 100%
    );
    padding-top: 50px;
  }

  #menu {
    position: absolute;
    top: 40px;
    right: 20px;
    z-index: 2;
  }

  #menu-bar {
    width: 45px;
    height: 40px;
    margin: 30px 10px 20px 0;
    cursor: pointer;
  }

  .bar {
    height: 5px;
    width: 100%;
    background-color: var(--cor-fundo-secundaria);
    border-radius: 5px;
    transition: 0.3s ease;
  }

  #bar1 {
    transform: translateY(-4px);
  }

  #bar3 {
    transform: translateY(4px);
  }

  .nav {
    display: none;
    text-align: right;
    transition: 0.3s ease;
    z-index: 100;
  }

  .nav ul {
    padding: 0 2px;
  }

  .nav li {
    list-style: none;
    padding: 10px 0;
  }

  .nav li a {
    color: white;
    font-size: 20px;
    text-decoration: none;
  }

  .nav li a:hover {
    font-weight: bold;
  }

  .change {
    display: block;
  }

  .change .bar {
    background-color: white;
  }

  .change #bar1 {
    transform: translateY(4px) rotateZ(-45deg);
  }

  .change #bar2 {
    opacity: 0;
  }

  .change #bar3 {
    transform: translateY(-6px) rotateZ(45deg);
  }

  body {
    overflow-x: hidden;
    position: relative;
  }

  .menu-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    background: var(--cor-fundo-secundaria);
    border-radius: 50% 0 0 50%;
    z-index: 1;
    transition: width 0.4s ease, height 0.4s ease;
    pointer-events: none;
  }

  .change-bg {
    width: 250px; 
    height: 450px;
    transform: none; 
    margin-top: -100px;
    margin-right: 0px;
  }

  .nome {
    color: var(--cor-fundo-terciaria);
    font-size: 11px;
    margin: 50px 0 0 30px;
  }

  .slogan {
    margin-left: 30px;
    font-size: 30px;
    font-weight: bold;
    margin-top: 10px;
  }

  #cor_slogan {
    color: var(--cor-fundo-secundaria);
  }

  .breve_explicacao {
    display: none;
  }

  #texto-dinamico::after {
    content: "|";
    margin-left: 5px;
    animation: piscar 1s infinite;
  }

  @keyframes piscar {
    0%,
    50%,
    100% {
      opacity: 1;
    }
    25%,
    75% {
      opacity: 0;
    }
  }

  #skills {
    margin-left: 30px;
    margin-top: 15px;
    color: var(--texto-secondario);
    font-size: 18px;
  }

  #link_projetos_e_contato {
    display: flex;
    margin-top: -20px;
  }

  .card {
    margin-top: 70px;
  }

  .card a {
    padding: 10px 33px 10px 10px;
    background-color: var(--cor-fundo-secundaria);
    border-radius: 10px;
    margin-left: 30px;
    text-decoration: none;
    color: var(--cor-fundo-primaria);
    box-shadow: 0 0 5px rgba(79, 140, 255, 0.6),
      0 0 10px rgba(79, 140, 255, 0.5),
      0 0 20px rgba(79, 140, 255, 0.4),
      0 0 50px rgba(79, 140, 255, 0.3);
    transition: 0.3s ease;
  }

  .card a:hover {
    box-shadow: 0 0 10px rgba(79, 140, 255, 0.8),
      0 0 15px rgba(79, 140, 255, 0.7),
      0 0 40px rgba(79, 140, 255, 0.6),
      0 0 70px rgba(79, 140, 255, 0.5);
  }

  .titulo {
    margin: 10px 30px;
    font-size: 25px;
    font-weight: bold;
  }

  #descer_sobre_mim {
    margin-top: 150px;
  }

  .sobre-imagem {
    flex: 1;
    position: relative;
    align-self: flex-start;
  }

  .sobre-imagem img {
    width: 100%;
    max-width: 400px;
    transition: transform 0.5s ease;
    margin-top: 0;
  }

  #img_samuel {
    text-align: center;
    margin: 40px 30px;
  }

  #img_samuel img {
    width: 100%;
    box-shadow: var(--shadow-soft);
  }

  #texto {
    color: var(--texto-secondario);
    margin: 50px 30px;
    line-height: 1.6;
    font-size: 18px;
  }

  #download_curriculo {
    margin: 50px 30px 0;
    text-align: center;
    background-color: var(--cor-fundo-secundaria);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 5px rgba(79, 140, 255, 0.6),
      0 0 10px rgba(79, 140, 255, 0.5),
      0 0 20px rgba(79, 140, 255, 0.4),
      0 0 50px rgba(79, 140, 255, 0.3);
    transition: 0.3s ease;
  }

  #download_curriculo a {
    text-decoration: none;
    color: var(--cor-fundo-primaria);
  }

  #download_curriculo a:hover {
    box-shadow: 0 0 10px rgba(79, 140, 255, 0.8),
      0 0 15px rgba(79, 140, 255, 0.7),
      0 0 40px rgba(79, 140, 255, 0.6),
      0 0 70px rgba(79, 140, 255, 0.5);
  }

  #selecionar_tipo {
    display: flex;
    background: var(--cor-fundo-secundaria);
    margin: 30px;
    border-radius: 12px;
    padding: 5px;
    font-size: 13px;
  }

  .tipos {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
    color: #bdbdbd;
    transition: 0.3s;
  }

  .tipos.ativo {
    background: linear-gradient(135deg, #6aa8ff, #8cb8ff);
    color: #fff;
  }

  .conteudos {
    margin: 30px;
  }

  #lista-projetos,
  #lista-certificados {
    text-align: center;
    border-radius: 5px;
  }

  ul {
    display: none !important;
  }

  footer {
    border-top: solid 1px black;
    text-align: center;
    padding: 20px;
    font-size: 16px;
  }

  #links {
    display: none;
  }

  .text-badge {
    display: none;
  }

  .hero-image {
    display: none;
  }
}

@media only screen and (min-width: 350px) and (max-width: 768px) {
  #logo img {
    width: 120px;
    margin-left: 30px;
  }

  header {
    background: linear-gradient(
      to bottom,
      rgba(79, 140, 255, 0.45) 0%,
      rgba(79, 140, 255, 0.25) 45%,
      rgba(79, 140, 255, 0.1) 75%,
      #f5f6fa 100%
    );
    padding-top: 50px;
  }

  #menu {
    position: absolute;
    top: 40px;
    right: 20px;
    z-index: 2;
  }

  #menu-bar {
    width: 45px;
    height: 40px;
    margin: 30px 10px 20px 0;
    cursor: pointer;
  }

  .bar {
    height: 5px;
    width: 100%;
    background-color: var(--cor-fundo-secundaria);
    border-radius: 5px;
    transition: 0.3s ease;
  }

  #bar1 {
    transform: translateY(-4px);
  }

  #bar3 {
    transform: translateY(4px);
  }

  .nav {
    display: none;
    text-align: right;
    transition: 0.3s ease;
  }

  .nav ul {
    padding: 0 2px;
  }

  .nav li {
    list-style: none;
    padding: 10px 0;
  }

  .nav li a {
    color: white;
    font-size: 20px;
    text-decoration: none;
  }

  .nav li a:hover {
    font-weight: bold;
  }

  .change {
    display: block;
  }

  .change .bar {
    background-color: white;
  }

  .change #bar1 {
    transform: translateY(4px) rotateZ(-45deg);
  }

  .change #bar2 {
    opacity: 0;
  }

  .change #bar3 {
    transform: translateY(-6px) rotateZ(45deg);
  }

  body {
    overflow-x: hidden;
    position: relative;
  }

  .menu-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    background: var(--cor-fundo-secundaria);
    border-radius: 50% 0 0 50%;
    z-index: 1;
    transition: width 0.4s ease, height 0.4s ease;
    pointer-events: none;
  }

  .change-bg {
    width: 250px; 
    height: 450px;
    transform: none; 
    margin-top: -100px;
    margin-right: 0px;
  }

  .nome {
    color: var(--cor-fundo-terciaria);
    font-size: 14px;
    margin: 100px 0 0 30px;
  }

  .slogan {
    margin-left: 30px;
    font-size: 40px;
    font-weight: bold;
    margin-top: 10px;
  }

  #cor_slogan {
    color: var(--cor-fundo-secundaria);
  }

  .breve_explicacao {
    display: none;
  }

  #texto-dinamico::after {
    content: "|";
    margin-left: 5px;
    animation: piscar 1s infinite;
  }

  @keyframes piscar {
    0%,
    50%,
    100% {
      opacity: 1;
    }
    25%,
    75% {
      opacity: 0;
    }
  }

  #skills {
    margin-left: 30px;
    margin-top: 15px;
    color: var(--texto-secondario);
    font-size: 20px;
  }

  #link_projetos_e_contato {
    display: flex;
    margin-top: -20px;
  }

  .card {
    width: 100%;
    margin: 70px 30px 0;
    background-color: var(--cor-fundo-secundaria);
    border-radius: 10px;
    padding: 20px 33px 20px 20px;
    box-shadow: 0 0 5px rgba(79, 140, 255, 0.6),
      0 0 10px rgba(79, 140, 255, 0.5),
      0 0 20px rgba(79, 140, 255, 0.4),
      0 0 50px rgba(79, 140, 255, 0.3);
    transition: 0.3s ease;
  }

  .card a {
    text-decoration: none;
    color: var(--cor-fundo-primaria);
  }

  .card a:hover {
    box-shadow: 0 0 10px rgba(79, 140, 255, 0.8),
      0 0 15px rgba(79, 140, 255, 0.7),
      0 0 40px rgba(79, 140, 255, 0.6),
      0 0 70px rgba(79, 140, 255, 0.5);
  }

  .titulo {
    margin: 10px 30px;
    font-size: 30px;
    font-weight: bold;
  }

  #descer_sobre_mim {
    margin-top: 150px;
  }

  #img_samuel {
    text-align: center;
    margin: 40px 30px;
  }

  #img_samuel img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    border: white 15px solid;
  }

  #texto {
    color: var(--texto-secondario);
    margin: 50px 30px;
    line-height: 1.6;
    font-size: 18px;
  }

  #download_curriculo {
    margin: 50px 30px 0;
    text-align: center;
    background-color: var(--cor-fundo-secundaria);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 5px rgba(79, 140, 255, 0.6),
      0 0 10px rgba(79, 140, 255, 0.5),
      0 0 20px rgba(79, 140, 255, 0.4),
      0 0 50px rgba(79, 140, 255, 0.3);
    transition: 0.3s ease;
  }

  #download_curriculo a {
    text-decoration: none;
    color: var(--cor-fundo-primaria);
  }

  #download_curriculo a:hover {
    box-shadow: 0 0 10px rgba(79, 140, 255, 0.8),
      0 0 15px rgba(79, 140, 255, 0.7),
      0 0 40px rgba(79, 140, 255, 0.6),
      0 0 70px rgba(79, 140, 255, 0.5);
  }

  #selecionar_tipo {
    display: flex;
    background: var(--cor-fundo-secundaria);
    margin: 30px;
    border-radius: 12px;
    padding: 5px;
    font-size: 13px;
  }

  .tipos {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
    color: #bdbdbd;
    transition: 0.3s;
  }

  .tipos.ativo {
    background: linear-gradient(135deg, #6aa8ff, #8cb8ff);
    color: #fff;
  }

  .conteudos {
    margin: 30px;
  }

  #lista-projetos,
  #lista-certificados {
    text-align: center;
    border-radius: 5px;
    gap: 24px;
  }

  #lista-projetos img,
  #lista-certificados img {
    width: 85%;
    border-radius: 10px;
    margin-top: 20px;
  }

  #lista-projetos p,
  #lista-certificados p {
    text-align: left;
    padding-left: 20px;
    font-size: 15px;
    font-weight: bold;
    color: var(--cor-fundo-primaria);
    padding-top: 10px;
  }

  .descricao {
    color: var(--cor-fundo-primaria);
    font-size: 12px;
    padding: 10px 20px;
    text-align: left;
  }

  .link_projeto {
    font-size: 12px;
    text-align: left;
    padding: 20px;
  }

  .link_projeto a {
    color: var(--azul-claro);
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
  }

  .descer_conteudo {
    margin-top: 30px;
  }

  .card-projeto,
  .card-certificado {
    background: var(--texto-secondario);
    border-radius: 10px;
    margin-top: 30px;
  }

  .card-certificado {
    text-align: center;
  }

  footer {
    border-top: solid 1px black;
    text-align: center;
    padding: 20px;
    font-size: 16px;
  }

  #links {
    display: none;
  }

  .text-badge {
    display: none;
  }

  .hero-image {
    display: none;
  }
}

@media (min-width: 1200px) {
  :root {
    --header-height: 100px;
    --container-padding: clamp(80px, 6vw, 120px);
    --section-spacing: clamp(80px, 8vw, 160px);
    --border-radius-sm: 12px;
    --border-radius-md: 20px;
    --border-radius-lg: 30px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  body {
    font-size: 18px;
    line-height: 1.6;
  }

  .conteudo.ativo {
    display: block;
    animation: fadeIn 0.6s ease-out;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px var(--container-padding) 0;
    background: none !important;
    position: relative;
    z-index: 1000;
    height: var(--header-height);
  }

  #logo img {
    width: 100px;
    height: 100px;
    margin-top: 50px;
    transition: transform 0.3s ease;
  }

  #logo:hover img {
    transform: scale(1.1);
  }

  #menu, #menu-bar, .menu-bg, .nav {
    display: none !important;
  }

  #links {
    display: flex;
    gap: 40px;
    margin: 0;
  }

  #links a {
    color: var(--texto-primario);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
  }

  #links a:hover {
    color: var(--cor-fundo-secundaria);
  }

  .hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px var(--container-padding);
    max-width: 1400px;
    margin: 0 auto;
    gap: 80px;
    min-height: calc(100vh - var(--header-height));
  }

  .hero-content {
    flex: 1;
    max-width: 600px;
  }

  .hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  #img_samuel {
    margin: 0;
    width: 420px;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
    border: 15px solid white;
  }

  #img_samuel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 20px;
  }

  .hero-image::before,
  .hero-image::after,
  #img_samuel::before,
  #img_samuel::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cor-fundo-secundaria), #6aa8ff);
    opacity: 0.1;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
  }

  .hero-image::before {
    width: 500px;
    height: 500px;
    top: -60px;
    right: -60px;
    background: linear-gradient(135deg, var(--cor-fundo-secundaria), transparent);
    animation-delay: 0s;
  }

  .hero-image::after {
    width: 300px;
    height: 300px;
    bottom: -30px;
    right: 100px;
    background: linear-gradient(135deg, transparent, var(--cor-fundo-secundaria));
    animation-delay: 2s;
  }

  #img_samuel::before {
    width: 150px;
    height: 150px;
    top: -40px;
    left: -40px;
    background: linear-gradient(135deg, var(--cor-fundo-secundaria), #a9c7ff);
    animation-delay: 1s;
  }

  #img_samuel::after {
    width: 120px;
    height: 120px;
    bottom: -30px;
    left: -30px;
    background: linear-gradient(135deg, #a9c7ff, var(--cor-fundo-secundaria));
    animation-delay: 3s;
  }

  .text-badge {
    position: absolute;
    background: white;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
    font-size: 14px;
    font-weight: 600;
    color: var(--texto-primario);
    z-index: 3;
    transition: all 0.3s ease;
    white-space: nowrap;
  }

  .text-badge:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
    color: var(--cor-fundo-secundaria);
  }

  .text-badge.html {
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, #fff, #f5f6fa);
    border: 2px solid rgba(79, 140, 255, 0.2);
  }

  .text-badge.css {
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #fff, #f5f6fa);
    border: 2px solid rgba(79, 140, 255, 0.2);
  }

  .text-badge.js {
    bottom: 50px;
    right: 30px;
    background: linear-gradient(135deg, #fff, #f5f6fa);
    border: 2px solid rgba(79, 140, 255, 0.2);
  }

  .text-badge.python {
    top: 50px;
    left: -20px;
    background: linear-gradient(135deg, #fff, #f5f6fa);
    border: 2px solid rgba(79, 140, 255, 0.2);
    animation-delay: 0.5s;
  }

  .text-badge.bootstrap {
    top: 50%;
    left: -70px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #fff, #f5f6fa);
    border: 2px solid rgba(79, 140, 255, 0.2);
    animation-delay: 1s;
  }

  .text-badge.php {
    bottom: 80px;
    left: 0px;
    background: linear-gradient(135deg, #fff, #f5f6fa);
    border: 2px solid rgba(79, 140, 255, 0.2);
    animation-delay: 1.5s;
  }

  .text-badge {
    animation: floatBadge 6s ease-in-out infinite;
  }

  @keyframes floatBadge {
    0%, 100% {
      transform: translateY(0) translateX(0);
    }
    50% {
      transform: translateY(-10px) translateX(5px);
    }
  }

  .text-badge.css,
  .text-badge.bootstrap {
    animation: floatBadgeVertical 6s ease-in-out infinite;
  }

  @keyframes floatBadgeVertical {
    0%, 100% {
      transform: translateY(-50%) translateX(0);
    }
    50% {
      transform: translateY(-60%) translateX(5px);
    }
  }

  .nome {
    color: var(--cor-fundo-terciaria);
    font-size: 14px;
    margin: 0 0 16px 0;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .slogan {
    font-size: 56px;
    line-height: 1.1;
    margin: 0 0 24px 0;
    font-weight: 700;
    color: var(--texto-primario);
  }

  #cor_slogan {
    color: var(--cor-fundo-secundaria);
    display: inline;
  }

  #skills {
    margin: 0 0 30px 0;
    color: var(--texto-secondario);
    font-size: 18px;
    font-weight: 500;
  }

  #texto-dinamico {
    color: var(--texto-primario);
    font-weight: 600;
  }

  #texto-dinamico::after {
    content: '|';
    margin-left: 5px;
    animation: blink 1s infinite;
    color: var(--cor-fundo-secundaria);
  }

  @keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
  }

  .breve_explicacao {
    display: block !important;
    color: var(--texto-secondario);
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 40px 0;
    max-width: 500px;
  }

  #link_projetos_e_contato {
    display: flex;
    gap: 20px;
    margin: 0;
  }

  .card {
    margin: 0;
    background-color: var(--cor-fundo-secundaria);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
  }

  .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
  }

  .card:hover::before {
    left: 100%;
  }

  .card a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 32px;
    position: relative;
    z-index: 1;
  }

  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background-color: #3f6fd9;
  }

  #descer_sobre_mim {
    margin-top: 120px;
    text-align: center;
    font-size: 14px;
    color: var(--cor-fundo-terciaria);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
  }

  .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0 80px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
  }

  .titulo {
    font-size: 45px;
    font-weight: 700;
    margin: 16px 0 20px;
    color: var(--texto-primario);
    line-height: 1.1;
    text-align: center;
  }

  .section-subtitle {
    color: var(--texto-secondario);
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
  }

  .sobre-container {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    padding: 0 var(--container-padding) 120px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .sobre-texto {
    flex: 1;
    padding-top: 0.5em;
    line-height: 1.8;
  }

  #texto {
    margin: 0;
    color: var(--texto-secondario);
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    transform: translateY(-2px);
  }

  .sobre-texto {
    flex: 1;
    padding-top: 0;
  }

  #texto {
    margin: 0;
    color: var(--texto-secondario);
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
  }

  #texto strong {
    color: var(--texto-primario);
    font-weight: 600;
    background: linear-gradient(135deg, transparent, rgba(79, 140, 255, 0.1));
    padding: 2px 6px;
    border-radius: 4px;
  }

  #download_curriculo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 50px 0 0;
    background: linear-gradient(135deg, var(--cor-fundo-secundaria), #6aa8ff);
    border-radius: var(--border-radius-md);
    padding: 2px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
  }

  #download_curriculo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.2), 
      rgba(255, 255, 255, 0.1), 
      rgba(255, 255, 255, 0.05)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  #download_curriculo:hover::before {
    opacity: 1;
  }

  #download_curriculo a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 20px 40px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--cor-fundo-secundaria), #6aa8ff);
    border-radius: calc(var(--border-radius-md) - 2px);
    transition: var(--transition-smooth);
  }

  #download_curriculo:hover {
    transform: translateY(-5px);
    box-shadow: 
      0 25px 50px rgba(79, 140, 255, 0.3),
      0 10px 20px rgba(79, 140, 255, 0.2);
  }

  #download_curriculo:hover a {
    background: linear-gradient(135deg, #3f6fd9, #4f8cff);
  }

  .portfolio-section {
    padding: var(--section-spacing) var(--container-padding);
    background: linear-gradient(
      135deg,
      rgba(245, 246, 250, 0.5) 0%,
      rgba(255, 255, 255, 1) 100%
    );
    position: relative;
  }

  .portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(79, 140, 255, 0.2), transparent);
  }

  .portfolio-section .titulo:first-of-type {
    text-align: center;
    font-size: clamp(42px, 4vw, 56px);
    font-weight: 800;
    margin: 0 auto 30px;
    color: var(--texto-primario);
    line-height: 1.1;
    max-width: 900px;
  }

  .portfolio-desc {
    text-align: center;
    color: var(--texto-secondario);
    font-size: 20px;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 80px;
  }

  #selecionar_tipo {
    max-width: 600px;
    margin: 0 auto 80px;
    background: rgba(79, 140, 255, 0.08);
    border-radius: var(--border-radius-md);
    padding: 8px;
    border: 1px solid rgba(79, 140, 255, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 4px;
    backdrop-filter: blur(10px);
  }

  .tipos {
    flex: 1;
    text-align: center;
    padding: 20px 32px;
    cursor: pointer;
    border-radius: calc(var(--border-radius-md) - 4px);
    color: var(--texto-secondario);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition-smooth);
    background: transparent;
    position: relative;
    overflow: hidden;
  }

  .tipos::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cor-fundo-secundaria), #6aa8ff);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
  }

  .tipos.ativo {
    color: white;
    position: relative;
  }

  .tipos.ativo::before {
    opacity: 1;
  }

  .tipos.ativo span {
    position: relative;
    z-index: 1;
  }

  .tipos:hover:not(.ativo) {
    background: rgba(79, 140, 255, 0.05);
    color: var(--cor-fundo-secundaria);
    transform: translateY(-2px);
  }

  .conteudos {
    padding: 0 var(--container-padding) !important;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .projetos-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)) !important;
    gap: 40px !important;
    margin: 0 auto !important;
    width: 100%;
    max-width: 1400px;
  }

  .card-projeto {
    background: white;
    border-radius: var(--border-radius-md) !important;
    overflow: hidden;
    box-shadow: 
      0 10px 40px rgba(79, 140, 255, 0.08),
      0 2px 8px rgba(79, 140, 255, 0.04) !important;
    transition: var(--transition-smooth) !important;
    border: 1px solid rgba(79, 140, 255, 0.1) !important;
    height: auto;
    max-height: 600px;
    width: 450px;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 !important;
  }

  .card-projeto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--cor-fundo-secundaria), #6aa8ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
  }

  .card-projeto:hover::before {
    transform: scaleX(1);
  }

  .card-projeto:hover {
    transform: translateY(-10px) !important;
    box-shadow: 
      0 30px 60px rgba(79, 140, 255, 0.15),
      0 10px 20px rgba(79, 140, 255, 0.08) !important;
    border-color: rgba(79, 140, 255, 0.3) !important;
  }

  .project-number {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--cor-fundo-secundaria), #6aa8ff);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
  }

  .projeto-imagem-container {
    height: 280px !important;
    position: relative;
    overflow: hidden;
  }

  .projeto-imagem-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .card-projeto:hover .projeto-imagem-container::after {
    opacity: 1;
  }

  .projeto-imagem {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .card-projeto:hover .projeto-imagem {
    transform: scale(1.1);
  }

  .projeto-conteudo {
    padding: 32px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
  }

  .projeto-titulo {
    font-size: 24px !important;
    font-weight: 800;
    color: var(--texto-primario);
    margin-bottom: 16px;
    line-height: 1.2;
    position: relative;
    padding-bottom: 16px;
  }

  .projeto-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--cor-fundo-secundaria), transparent);
    border-radius: 2px;
  }

  .projeto-descricao {
    color: var(--texto-secondario);
    font-size: 16px !important;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .projeto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
  }

  .projeto-tag {
    background: rgba(79, 140, 255, 0.1);
    color: var(--cor-fundo-secundaria);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition-smooth);
  }

  .projeto-tag:hover {
    background: var(--cor-fundo-secundaria);
    color: white;
    transform: translateY(-2px);
  }

  .projeto-acoes {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(79, 140, 255, 0.1);
  }

  .btn-projeto {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px !important;
    border-radius: var(--border-radius-sm) !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-smooth) !important;
    position: relative;
    overflow: hidden;
  }

  .btn-projeto::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.2), 
      rgba(255, 255, 255, 0.1), 
      rgba(255, 255, 255, 0.05)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .btn-projeto:hover::before {
    opacity: 1;
  }

  .btn-site {
    background: linear-gradient(135deg, var(--cor-fundo-secundaria), #6aa8ff) !important;
    color: white !important;
  }

  .btn-site:hover {
    background: linear-gradient(135deg, #3f6fd9, #4f8cff) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(79, 140, 255, 0.3) !important;
  }

  .btn-github {
    background: white !important;
    color: var(--texto-primario) !important;
    border: 2px solid rgba(79, 140, 255, 0.2) !important;
  }

  .btn-github:hover {
    background: rgba(79, 140, 255, 0.05) !important;
    border-color: var(--cor-fundo-secundaria) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(79, 140, 255, 0.15) !important;
  }

  .certificados-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
    gap: 40px !important;
    margin: 0 auto !important;
    width: 100%;
    max-width: 1400px;
  }

  .card-certificado {
    background: white !important;
    border-radius: var(--border-radius-md) !important;
    padding: 40px !important;
    box-shadow: 
      0 15px 40px rgba(79, 140, 255, 0.1),
      0 5px 15px rgba(79, 140, 255, 0.06) !important;
    transition: var(--transition-smooth) !important;
    border: 1px solid rgba(79, 140, 255, 0.15) !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
  }

  .card-certificado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--cor-fundo-secundaria), #6aa8ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
  }

  .card-certificado:hover::before {
    transform: scaleX(1);
  }

  .card-certificado:hover {
    transform: translateY(-10px) !important;
    box-shadow: 
      0 25px 50px rgba(79, 140, 255, 0.18),
      0 10px 20px rgba(79, 140, 255, 0.1) !important;
    border-color: rgba(79, 140, 255, 0.3) !important;
  }

  .certificado-imagem {
    position: relative !important;
    width: 100px !important;
    height: 100px !important;
    margin: 0 0 24px 0 !important;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }

  .certificado-imagem:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  }

  .certificado-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-sm) !important;
    border: 4px solid white !important;
    transition: var(--transition-smooth);
  }

  .certificado-imagem:hover .certificado-thumb {
    transform: scale(1.1);
  }

  .certificado-titulo {
    font-size: 22px !important;
    font-weight: 800;
    color: var(--texto-primario);
    margin-bottom: 16px;
    text-align: left;
    line-height: 1.3;
    position: relative;
    padding-bottom: 16px;
  }

  .certificado-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--cor-fundo-secundaria), transparent);
    border-radius: 2px;
  }

  .certificado-descricao {
    color: var(--texto-secondario);
    font-size: 16px !important;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
    text-align: left;
  }

  .certificado-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--cor-fundo-secundaria), #6aa8ff);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
  }

  .certificado-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 140, 255, 0.3);
  }

  .tecnologias-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 30px !important;
    margin: 0 auto !important;
    width: 100%;
    max-width: 1400px;
  }

  .card-tecnologia {
    width: 100% !important;
    aspect-ratio: 1/1 !important;
    border-radius: var(--border-radius-md) !important;
    background: white !important;
    box-shadow: 
      0 10px 30px rgba(79, 140, 255, 0.08),
      0 2px 8px rgba(79, 140, 255, 0.04) !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth) !important;
    border: 1px solid rgba(79, 140, 255, 0.1) !important;
    padding: 32px !important;
    position: relative;
    overflow: hidden;
  }

  .card-tecnologia::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
      rgba(79, 140, 255, 0.1), 
      rgba(106, 168, 255, 0.05),
      rgba(169, 199, 255, 0.02)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .card-tecnologia:hover::before {
    opacity: 1;
  }

  .card-tecnologia:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 
      0 20px 50px rgba(79, 140, 255, 0.15),
      0 10px 20px rgba(79, 140, 255, 0.08) !important;
    border-color: rgba(79, 140, 255, 0.3) !important;
  }

  .img_tecnologias {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .img_tecnologias img {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain;
    transition: var(--transition-smooth);
  }

  .card-tecnologia:hover .img_tecnologias img {
    transform: scale(1.1);
  }

  .img_tecnologias p {
    color: var(--texto-primario);
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-align: center;
    transition: var(--transition-smooth);
  }

  .card-tecnologia:hover .img_tecnologias p {
    color: var(--cor-fundo-secundaria);
  }

  footer {
    border-top: 1px solid var(--texto-primario);
    padding: 20px var(--container-padding);
    text-align: center;
    color: var(--texto-primario);
  }

  @keyframes float {
    0%, 100% {
      transform: translateY(0) translateX(0) rotate(0deg);
    }
    33% {
      transform: translateY(-20px) translateX(10px) rotate(5deg);
    }
    66% {
      transform: translateY(10px) translateX(-10px) rotate(-5deg);
    }
  }

  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
      opacity: 0.1;
    }
    50% {
      transform: scale(1.05);
      opacity: 0.15;
    }
  }

  ::-webkit-scrollbar {
    width: 12px;
  }

  ::-webkit-scrollbar-track {
    background: var(--cor-fundo-primaria);
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--cor-fundo-secundaria), #6aa8ff);
    border-radius: 10px;
    border: 3px solid var(--cor-fundo-primaria);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3f6fd9, #4f8cff);
  }

  .loading {
    position: fixed;
    inset: 0;
    background: var(--cor-fundo-primaria);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease-out;
  }

  .loading.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(79, 140, 255, 0.1);
    border-top-color: var(--cor-fundo-secundaria);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }
}

#contato {
  background: var(--cor-fundo-primaria);
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.contact-card {
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.contact-header h2 {
  font-size: 40px;
  margin-bottom: 8px;
  color: #333;
}

.contact-header p {
  font-size: 30px;
  color: #666;
  margin-bottom: 25px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  align-items: center;
  background: #f0f1f6;
  border-radius: 14px;
  padding: 12px 14px;
  height: 80px;
  font-size: 30px;
}

.input-group.textarea {
  align-items: flex-start;
}

.input-group .icon {
  margin-right: 10px;
  font-size: 20px;
  opacity: 0.6;
}

.input-group input,
.input-group textarea {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
  resize: none;
}

.input-group textarea {
  min-height: 100px;
}

.btn-enviar {
  margin-top: 10px;
  padding: 14px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #6c63ff, #8f7cff);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-enviar:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.3);
}

.contact-social {
  margin-top: 35px;
}

.contact-social h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333;
}

.social-card {
  display: flex;
  align-items: center;
  background: #f0f1f6;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.4s ease;
  z-index: 1;
}

.social-card:hover::before {
  left: 0;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-right: 14px;
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}

.social-text {
  flex: 1;
  z-index: 2;
  position: relative;
}

.social-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
  transition: color 0.3s ease;
}

.social-desc {
  font-size: 13px;
  color: #666;
  transition: color 0.3s ease;
}

.social-arrow {
  font-size: 18px;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}

.social-card:hover .social-arrow {
  opacity: 1;
  transform: translateX(0);
}

.social-card.linkedin .social-icon {
  background: rgba(10, 102, 194, 0.1);
  color: #0a66c2;
}

.social-card.linkedin:hover::before {
  background: linear-gradient(135deg, #0a66c2, #004182);
}

.social-card.linkedin:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(10, 102, 194, 0.2);
}

.social-card.linkedin:hover .social-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.social-card.linkedin:hover .social-desc {
  color: rgba(255, 255, 255, 0.8);
}

.social-card.instagram .social-icon {
  background: rgba(225, 48, 108, 0.1);
  color: #e1306c;
}

.social-card.instagram:hover::before {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.social-card.instagram:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(225, 48, 108, 0.2);
}

.social-card.instagram:hover .social-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.social-card.instagram:hover .social-desc {
  color: rgba(255, 255, 255, 0.8);
}

.social-card.github .social-icon {
  background: rgba(24, 23, 23, 0.1);
  color: #181717;
}

.social-card.github:hover::before {
  background: linear-gradient(135deg, #181717, #333);
}

.social-card.github:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(24, 23, 23, 0.2);
}

.social-card.github:hover .social-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.social-card.github:hover .social-desc {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 480px) {
  .contact-card {
    padding: 24px;
  }

  .social-card {
    padding: 12px;
  }

  .social-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
  }
}

#lista-tecnologias {
  width: 100%;
}

.tecnologias-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.card-tecnologias {
  display: flex;
}

.card-tecnologia {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    var(--cor-fundo-primaria) 0%,
    #ffffff 100%
  );
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-tecnologia:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(79, 140, 255, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(79, 140, 255, 0.3);
}

.img_tecnologias img {
  width: 80%;
  max-width: 80px;
  height: auto;
  display: block;
}

.certificados-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 30px 0;
}

.card-certificado {
  background: linear-gradient(
    135deg,
    var(--cor-fundo-primaria) 0%,
    #ffffff 100%
  );
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(79, 140, 255, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  padding-left: 120px;
  min-height: 220px;
  cursor: pointer;
}

.card-certificado:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(79, 140, 255, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(79, 140, 255, 0.3);
}

.certificado-imagem {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 80px;
  height: 80px;
  transition: all 0.3s ease;
  z-index: 1;
}

.certificado-imagem:hover {
  transform: scale(1.05);
}

.certificado-imagem:hover .certificado-thumb {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.certificado-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(79, 140, 255, 0.1);
  transition: all 0.3s ease;
}

.certificado-badge {
  position: center;
  top: 20px;
  right: -8px;
  color: white;
  padding: 4px 5px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.certificado-badge.ibm {
  background: linear-gradient(135deg, #4f8cff, #6aa8ff);
}

.certificado-badge.bradesco {
  background: linear-gradient(135deg, #cc092f, #e63950);
}

.certificado-badge.trybe {
  background: linear-gradient(135deg, #00b894, #00d3a9);
}

.certificado-badge.tic {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.certificado-badge.senai {
  background: linear-gradient(135deg, #ff6b4a, #ff8a6b);
}

.certificado-badge.voxy {
  background: linear-gradient(135deg, #6366f1, #818cf8);
}

.zoom-indicator {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: var(--cor-fundo-secundaria);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: 2;
}

.certificado-imagem:hover .zoom-indicator {
  opacity: 1;
  transform: scale(1);
}

.certificado-conteudo {
  padding: 24px 24px 24px 0;
  margin: 0 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.certificado-header {
  margin: 20px 0 16px;
}

.certificado-descricao {
  color: var(--texto-secondario);
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.certificado-acoes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: auto;
}

.btn-certificado {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cor-fundo-secundaria);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  background: rgba(79, 140, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-certificado:hover {
  background: var(--cor-fundo-secundaria);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
}

.btn-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4caf50;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 8px;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn-certificado:hover .btn-icon {
  transform: translateX(2px);
}

.certificado-tipo {
  color: var(--cor-fundo-terciaria);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  background: rgba(156, 163, 175, 0.1);
  border-radius: 8px;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: zoom-out;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  animation: zoomIn 0.3s ease;
}

.lightbox-caption {
  color: #fff;
  margin-top: 15px;
  font-size: 1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.btn-zoom,
.btn-reset {
  background: white;
  border: 1px solid #e5e7eb;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-zoom:hover,
.btn-reset:hover {
  background: var(--cor-fundo-secundaria);
  color: white;
  border-color: var(--cor-fundo-secundaria);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cor-fundo-secundaria);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-download:hover {
  background: #3F6FD9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
}

@media (max-width: 480px) {
  .card-certificado {
    padding-left: 0;
    padding-top: 100px;
    min-height: auto;
    text-align: center !important;
  }

  .certificado-imagem {
    width: 60px;
    height: 60px;
    top: 20px;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .certificado-conteudo {
    padding: 20px;
  }

  .certificado-acoes {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .certificados-container {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .card-certificado {
    padding-left: 100px !important;
    min-height: 200px !important;
    margin: 0 auto !important;
    max-width: 100% !important;
  }

  .certificado-imagem {
    width: 70px !important;
    height: 70px !important;
    top: 20px !important;
    left: 20px !important;
  }

  .certificado-conteudo {
    padding: 20px 20px 20px 0;
  }
}

.projetos-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 30px 0;
}

@media (min-width: 768px) {
  .projetos-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-projeto {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
              0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(79, 140, 255, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-projeto:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(79, 140, 255, 0.15),
              0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(79, 140, 255, 0.3);
}

.projeto-imagem-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.projeto-imagem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-projeto:hover .projeto-imagem {
  transform: scale(1.05);
}

.projeto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.6)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.card-projeto:hover .projeto-overlay {
  opacity: 1;
}

.projeto-tecnologias {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}

.card-projeto:hover .projeto-tecnologias {
  transform: translateY(0);
}

.tecnologia-tag {
  background: rgba(79, 140, 255, 0.9);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.projeto-conteudo {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.projeto-descricao {
  color: var(--texto-secondario);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.projeto-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.projeto-titulo-container {
  flex: 1;
  min-width: 0;
}

.projeto-titulo {
  color: var(--texto-primario);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.projeto-data {
  color: var(--cor-fundo-terciaria);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
  align-self: flex-start;
  order: 2;
}

.projeto-acoes {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-projeto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-site,
.btn-demo {
  background: linear-gradient(
    135deg,
    var(--cor-fundo-secundaria),
    #6aa8ff
  );
  color: white;
}

.btn-site:hover,
.btn-demo:hover {
  background: linear-gradient(135deg, #3f6fd9, #4f8cff);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
}

.btn-github {
  background: rgba(0, 0, 0, 0.05);
  color: var(--texto-primario);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-github:hover {
  background: #333;
  color: white;
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn-projeto:hover .btn-icon {
  transform: translateX(2px);
}

.projeto-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(79, 140, 255, 0.1);
}

.feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--texto-secondario);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  background: rgba(156, 163, 175, 0.08);
  border-radius: 10px;
}

@media (max-width: 768px) {
  .projetos-container {
    gap: 20px;
  }

  .projeto-imagem-container {
    height: 180px;
  }

  .projeto-conteudo {
    padding: 20px;
  }

  .projeto-header {
    flex-direction: column;
    gap: 8px;
  }

  .projeto-data {
    margin-left: 0;
  }

  .projeto-acoes {
    flex-direction: column;
  }

  .btn-projeto {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .projeto-imagem-container {
    height: 160px;
  }

  .projeto-titulo {
    font-size: 16px;
  }

  .projeto-descricao {
    font-size: 13px;
  }

  .projeto-features {
    gap: 8px;
  }

  .feature {
    font-size: 11px;
    padding: 5px 10px;
  }
}

#contato .input-group.textarea {
  height: auto;
  min-height: 120px;
  align-items: flex-start;
}

#contato textarea {
  width: 100%;
  min-height: 120px;
  max-height: 300px;
  resize: vertical;
  overflow-y: auto;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.5;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#contato .contact-card {
  overflow: hidden;
}

#contato textarea {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

#contato input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
}