@import url("https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Ubuntu", serif;
  text-decoration: none;
  scroll-behavior: smooth;
  list-style: none;
}

/* Estilos específicos para a seção de Skills (Tecnologias) */

/* Variáveis necessárias (copie apenas se não tiver no seu :root/.dark) */
:root {
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(0, 0, 0, 0.15);
  --card-hover-bg: rgba(0, 0, 0, 0.95);
  --card-hover-text: #ffffff;
  --accent-gradient: linear-gradient(to right, #0098ff, #ff00ff);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.dark {
  --card-bg: rgba(22, 27, 34, 0.9);
  --card-border: #30363d;
  --card-hover-bg: #21262d;
  --card-hover-text: #ffffff;
  --accent-gradient: linear-gradient(to right, #58a6ff, #ff7b72);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Seção principal */
.skills {
  padding: 10rem 10% 6rem;
  width: 100%;
  min-height: 100vh;
}

/* Título da seção (já existe no seu CSS, mas reforçado aqui) */
.section-title {
  text-align: center;
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 4rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Grid das tecnologias */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Card individual de skill */
.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.skill-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: var(--card-hover-bg);
  color: var(--card-hover-text);
}

.skill-card i {
  font-size: 4rem; /* Ícones grandes e chamativos */
  margin-bottom: 1.2rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.3s ease;
}

.skill-card:hover i {
  transform: rotate(10deg) scale(1.1); /* Animação divertida no hover */
}

.skill-card p {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }

  .skill-card {
    padding: 2rem 1rem;
  }

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

  .skill-card p {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    padding: 1.8rem;
  }
}

/* Header - Estilo Moderno 2025 */
header {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1400px;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3.5rem;
  padding: 0.9rem 2.2rem;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
}

.dark header {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.logo {
  color: var(--header-text);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  color: var(--accent-start);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.8rem;
}

.nav-links a {
  color: var(--header-text);
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2.5px;
  bottom: -8px;
  left: 0;
  background: var(--accent-gradient);
  transition: width 0.4s ease;
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent-start);
}

#menu-icon {
  font-size: 1.9rem;
  color: var(--header-text);
  cursor: pointer;
  display: none;
  transition: transform 0.3s ease;
}

#menu-icon:hover {
  transform: rotate(90deg);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.theme-btn:hover {
  background: var(--accent-gradient);
  transform: scale(1.12);
}

.theme-btn i {
  font-size: 1.5rem;
  color: var(--header-text);
  transition: transform 0.4s ease;
}

.language-switcher {
  display: flex;
  gap: 0.6rem;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 0.4rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn img {
  width: 32px;
  height: 22px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.lang-btn:hover {
  transform: scale(1.1);
}

.lang-btn.active {
  background: var(--accent-gradient);
  padding: 0.3rem;
  border-radius: 10px;
}

.visit-btn {
  padding: 0.8rem 1.9rem;
  border: none;
  border-radius: 3rem;
  background: var(--accent-gradient);
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 152, 255, 0.3);
}

.visit-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 0, 255, 0.4);
  background: linear-gradient(to right, var(--accent-end), var(--accent-start));
  color: black;
}

/* Mobile Menu */
@media (max-width: 1024px) {
  header {
    padding: 0.8rem 1.8rem;
    gap: 1.5rem;
    width: 95%;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 0;
    border-radius: 0 0 2.5rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 1.2rem 0;
  }

  .nav-links a {
    font-size: 1.3rem;
    display: block;
  }

  #menu-icon {
    display: block;
  }

  .header-right {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .logo {
    font-size: 1.4rem;
  }

  .visit-btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
  }

  .lang-btn img {
    width: 28px;
    height: 20px;
  }
}

#menu-icon {
  font-size: 2rem;
  display: none;
}

section {
  min-height: 100vh;
  padding: 8rem 12%;
  width: 100%;
  position: relative;
}

.about {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about .about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10rem;
}

.about img {
  border-radius: 50%;
  width: 30vw;
  height: 65vh;
  border: 2px solid black;
}

.info-box {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.info-box h3 {
  font-size: 1.8rem;
  font-weight: 500;
  opacity: 0.8;
}

.info-box p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 1rem;
  margin-top: 0.7rem;
}

.info-box h1 {
  font-size: 4rem;
  font-weight: 600;
}

.info-box span {
  background: linear-gradient(to right, rgb(255, 0, 255), rgb(0, 152, 255));
  background-clip: text;
  color: transparent;
  font-size: 2rem;
}

.btn a {
  color: black;
}

.btn a:hover {
  color: white;
}

.btn:hover {
  background-color: black;
  color: white;
}

.socials {
  display: flex;
  gap: 2rem;
}

.socials i {
  font-size: 2.5rem;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.socials i:hover {
  transform: scale(1.1);
}

.section-title {
  text-align: center;
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 3rem;
}

.experience-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}

.experience img {
  width: 30vw;
  height: 60vh;
  border-radius: 3rem;
}

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

.grid-card {
  border: 2px solid black;
  border-radius: 3rem;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: left;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.grid-card:hover {
  transform: scale(1.02);
  background-color: black;
  color: white;
}

.grid-card i {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.grid-card span {
  font-size: 1.5rem;
  font-weight: 500;
  background: linear-gradient(to right, #009dff, #ff00ff);
  background-clip: text;
  color: transparent;
}

::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background-color: rgb(219, 219, 219);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #009dff, #ff00ff);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(45%, 2fr));
  gap: 2rem;
}

.project-card {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  border: 2px solid black;
  border-radius: 1rem;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  border-radius: 3rem;
  padding: 0.5rem 1.5rem;
  border: 2px solid black;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  transition: 0.2s ease-in-out;
  width: auto;
  max-width: 100%;
}

.project-card:hover {
  background-color: black;
  color: white;
  transform: translateY(-10px) scale(1.02);
}

.project-card img {
  width: 20vw;
  border-radius: 1rem;
}

.project-card:hover .btn {
  border: 2px solid white;
  color: white;
}

.project-card:hover .btn:hover {
  border: 2px solid white;
  background-color: white;
  color: black;
}

.project-card h3 {
  font-size: 2rem;
  font-weight: 500;
}

.input-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
  margin-top: 5rem;
}

.input-box .card-contact {
  border-radius: 3rem;
  border: 2px solid black;
  width: 20vw;
  padding: 1rem 1rem;
  font-size: 1.5rem;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.input-box .card-contact:hover {
  background-color: black;
  color: white;
}

.card {
  position: relative;
}

footer {
  bottom: 0;
  left: 0;
  height: 10rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

footer ul {
  display: flex;
  align-items: center;
  gap: 3rem;
}

footer ul li a {
  color: black;
  font-weight: 600;
}

.copyright {
  font-size: 300;
  margin-top: 2rem;
}

.language-switcher {
  display: flex;
  gap: 8px;
  margin-left: 20px;
  align-items: center;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.lang-btn img {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.lang-btn:hover {
  background: linear-gradient(90deg, rgb(0, 152, 255), rgb(255, 0, 255));
  padding: 3px;
}

.lang-btn.active {
  background: linear-gradient(90deg, rgb(0, 152, 255), rgb(255, 0, 255));
  padding: 3px;
}

@media (max-width: 1280px) {
  header {
    padding: 1rem 2rem;
    gap: 2rem;
  }

  .about .about-container {
    gap: 3rem;
  }

  .experience-info {
    flex-direction: column;
  }

  .input-box .card-contact {
    width: 80%;
    padding: 2rem 2rem;
    font-size: 1.5rem;
  }

  .input-box i {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  header {
    gap: 1rem;
    padding: 1rem 1rem;
  }
  header .logo {
    font-size: 1rem;
  }

  header .visit-btn {
    display: none;
  }

  .input-box .card-contact {
    width: 80%;
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .input-box i {
    display: none;
  }

  .grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .experience-info img {
    width: 70vw;
  }
}

@media (max-width: 600px) {
  header #menu-icon {
    display: block;
    cursor: pointer;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    margin-top: 1rem;
    width: 100%;
    padding: 1rem;
    color: white;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: rgb(0, 0, 0, 0.9);
    border-radius: 3rem;
    display: none;
  }

  .nav-links li {
    margin-top: 1.5rem;
    padding: 1rem;
  }

  .nav-links.active {
    display: block;
  }

  header {
    padding: 1rem 5rem;
    gap: 8rem;
  }

  header .logo {
    font-size: 1.5rem;
  }

  .about-container img {
    display: none;
  }

  .input-box .card-contact {
    padding: 0.5rem 3rem;
    width: 80%;
    font-size: 1rem;
  }

  footer ul {
    gap: 1rem;
  }
}
