:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #9b59b6;
  --text-color: #333;
  --light-text: #f8f9fa;
  --bg-color: #ffffff;
  --card-bg: #f8f9fa;
  --border-color: #e9ecef;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  transition: var(--transition);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  color: var(--primary-color);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.btn-primary:hover {
  background-color: #2980b9;
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: white;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.95);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.logo span {
  color: var(--secondary-color);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  /* Frosted Glass Effect */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 12px 24px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;

  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  width: 95%; /* largura responsiva maior */
  max-width: 1200px; /* limite maior */
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-link {
  padding: 10px 0; /* só padding vertical para não empurrar a linha */
  margin: 0 15px; /* espaço lateral entre links */
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease; /* transição só para a cor do texto */
  display: inline-block; /* importante para o ::after respeitar o tamanho do texto */
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px; /* distância da linha em relação ao texto */
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  border-radius: 2px;
  transition: width 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.nav-link:hover {
  color: var(--secondary-color); /* muda a cor do texto no hover */
}

.nav-link:hover::after {
  width: 100%;
  opacity: 1;
}

.nav-link.active {
  color: var(--secondary-color);
}

.cyber-toggle-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 15px;
}

.cyber-toggle-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cyber-toggle {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 32px;
  cursor: pointer;
}

.cyber-toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 0 4px rgba(0, 0, 0, 0.8);
  transition: all 0.4s cubic-bezier(0.3, 1.5, 0.7, 1);
}

.cyber-toggle-track::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  background: #222;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
  z-index: 0;
  transition: all 0.4s ease;
}

.cyber-toggle-track-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #03e9f4, #4a00e0);
  opacity: 0;
  border-radius: 16px;
  z-index: 1;
  transition: all 0.4s ease;
}

.cyber-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background: #151515;
  border-radius: 50%;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.3, 1.5, 0.7, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.cyber-toggle-thumb-shadow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle 30% 30%,
    rgba(255, 255, 255, 0.1),
    transparent 70%
  );
  z-index: 1;
}

.cyber-toggle-thumb-highlight {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 70% 70%,
    rgba(0, 0, 0, 0.2),
    transparent 70%
  );
  z-index: 1;
}

.cyber-toggle-thumb-icon {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  opacity: 0.7;
  transition: 0.4s ease, 0.4s ease;
}

.cyber-toggle-thumb-icon svg {
  width: 14px;
  height: 14px;
  fill: #555;
  transition: fill 0.4s ease, 0.4s ease;
}

.cyber-toggle-track-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 10px;
  z-index: 1;
}

.cyber-toggle-track-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #444;
  margin-left: 3px;
  opacity: 0.5;
  transition: all 0.4s ease;
}

.cyber-toggle-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cyber-toggle-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #03e9f4;
  border-radius: 50%;
  opacity: 0;
  filter: blur(1px);
  transition: all 0.3s ease;
  box-shadow: 0 0 4px rgba(3, 233, 244, 0.8);
}

.cyber-toggle-particle:nth-child(1) {
  top: 15%;
  right: 20%;
}

.cyber-toggle-particle:nth-child(2) {
  top: 45%;
  right: 30%;
}

.cyber-toggle-particle:nth-child(3) {
  top: 25%;
  right: 40%;
}

.cyber-toggle-particle:nth-child(4) {
  top: 60%;
  right: 15%;
}

.cyber-toggle-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
}

.cyber-toggle-label-off {
  color: #555;
  transition: all 0.4s ease;
}

.cyber-toggle-label-on {
  color: #555;
  transition: all 0.4s ease;
}

.cyber-toggle-checkbox:checked + .cyber-toggle .cyber-toggle-track-glow {
  opacity: 0.5;
}

.cyber-toggle-checkbox:checked + .cyber-toggle .cyber-toggle-thumb {
  left: calc(100% - 28px);
  background: #222;
}

.cyber-toggle-checkbox:checked + .cyber-toggle .cyber-toggle-thumb-icon {
  transform: rotate(360deg);
}

.cyber-toggle-checkbox:checked + .cyber-toggle .cyber-toggle-thumb-icon svg {
  fill: #03e9f4;
}

.cyber-toggle-checkbox:checked + .cyber-toggle .cyber-toggle-track-dot {
  background: #03e9f4;
  box-shadow: 0 0 4px #03e9f4;
  opacity: 1;
}

.cyber-toggle-checkbox:checked ~ .cyber-toggle-labels .cyber-toggle-label-on {
  color: #03e9f4;
  text-shadow: 0 0 5px rgba(3, 233, 244, 0.5);
}

.cyber-toggle-checkbox:not(:checked)
  ~ .cyber-toggle-labels
  .cyber-toggle-label-off {
  color: #aaa;
}

.cyber-toggle-checkbox:checked + .cyber-toggle .cyber-toggle-particle {
  opacity: 1;
  animation: 3s infinite alternate;
}

.cyber-toggle-checkbox:checked
  + .cyber-toggle
  .cyber-toggle-particle:nth-child(1) {
  animation-delay: 0s;
}

.cyber-toggle-checkbox:checked
  + .cyber-toggle
  .cyber-toggle-particle:nth-child(2) {
  animation-delay: 0.5s;
}

.cyber-toggle-checkbox:checked
  + .cyber-toggle
  .cyber-toggle-particle:nth-child(3) {
  animation-delay: 1s;
}

.cyber-toggle-checkbox:checked
  + .cyber-toggle
  .cyber-toggle-particle:nth-child(4) {
  animation-delay: 1.5s;
}

.cyber-toggle:hover .cyber-toggle-track::before {
  background: #272727;
}

.cyber-toggle:hover .cyber-toggle-thumb {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.cyber-toggle-checkbox:checked + .cyber-toggle:hover .cyber-toggle-track-glow {
  opacity: 0.7;
}

.cyber-toggle-checkbox:focus + .cyber-toggle {
  outline: none;
}

.cyber-toggle-checkbox:focus + .cyber-toggle::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  border: 2px solid rgba(3, 233, 244, 0.5);
  opacity: 0.5;
}

@keyframes cyber-toggle-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.right-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}


/* Efeito de digitação */
.typewriter {
  border-right: 3px solid #03e9f4;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  font-family: 'Poppins', 'Montserrat', 'Roboto', sans-serif;
  font-weight: 300; /* Fina e elegante */
  font-size: 1.6rem; /* Aumenta o tamanho do texto */
  letter-spacing: 1px; /* Melhora a legibilidade */
  animation: colorChange 6s infinite linear;
  font-weight: bold;
}

@keyframes colorChange {
  0% { color: rgb(255, 0, 0); }
  16% { color: rgb(0, 255, 0); }
  32% { color: rgb(0, 0, 255); }
  48% { color: rgb(255, 255, 0); }
  64% { color: rgb(255, 0, 255); }
  80% { color: rgb(0, 255, 255); }
  100% { color: rgb(255, 0, 0); }
}


/* Adicione se quiser um toque mais suave no cursor */
@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #03e9f4; }
}

.typewriter {
  animation: blink 1s infinite;
}



/* Mobile Navigation */
@media (max-width: 768px) {
  .navbar {
    width: 90%;
    padding: 10px 20px;
  }

  .nav-list {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 40px;
    transition: all 0.5s ease;
    z-index: 1000;
  }

  .nav-list.active {
    left: 0;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 15px 0;
    font-size: 1.2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0;
  }

  .nav-link::after {
    display: none;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 120px 5% 80px;
  background: linear-gradient(
    135deg,
    rgba(52, 152, 219, 0.1) 0%,
    rgba(155, 89, 182, 0.1) 100%
  );
}

.hero-content {
  flex: 1;
  min-width: 300px;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero-title:hover {
  transform: translateY(-10px);
  transition: var(--transition);
}

.hero-title-icon {
  height: 180px;
  width: auto;
}

.hero-title-icon:hover {
  transform: translateY(-4px);
  transition: var(--transition);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--text-color);
}

@keyframes subtleRGB {
  0% {
    color: rgb(70, 130, 180);
  }
  25% {
    color: rgb(123, 104, 238);
  }
  50% {
    color: rgb(72, 209, 204);
  }
  75% {
    color: rgb(106, 90, 205);
  }
  100% {
    color: rgb(70, 130, 180);
  }
}

.rgb-text {
  animation: subtleRGB 6s ease-in-out infinite;
  transition: color 0.3s ease;
  font-weight: 700;
  font-size: 4.5rem;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset,
    rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset,
    rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px,
    rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px,
    rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.hero-image:hover {
  transform: translateY(-4px);
  transition: var(--transition);
}

.image-wrapper {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  background-image: url("../images/hero-bg.svg");
  background-size: cover;
  background-position: center;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.about-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.about-image {
  flex: 1;
}

.profile-img {
  width: 100%;
  max-width: 450px;
  border-radius: 80px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset,
    rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
  transition: var(--transition);
}

.profile-img:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.highlight-card {
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset,
    rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.highlight-card i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.highlight-card h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.skills-container {
  display: flex;
  gap: 50px;
}

.technical-skills,
.soft-skills {
  flex: 1;
}

.skills-subtitle {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-align: center;
}

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

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px,
    rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px,
    rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.skill-card i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.soft-skills-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.soft-skill-item {
  display: flex;
  align-items: center;
  padding: 15px;
  margin-bottom: 8px;
  background-color: var(--card-bg);
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px,
    rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px,
    rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
}

.soft-skill-item:hover {
  transform: translateX(5px);
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.soft-skill-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-right: 15px;
  width: 30px;
  text-align: center;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--secondary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-content {
  width: calc(50% - 30px);
  padding: 20px;
  transition: var(--transition);
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px,
    rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px;
}

.timeline-content:hover {
  transform: translateX(5px);
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.timeline-content h4 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 500;
}

.timeline-content ul {
  padding-left: 20px;
}

.timeline-content li {
  margin-bottom: 5px;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.certification-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px,
    rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px,
    rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
  transition: var(--transition);
}

.certification-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.certification-logo {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: white;
}

.certification-logo img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.certification-info {
  padding: 20px;
  text-align: center;
}

.certification-info h3 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.certification-info p {
  margin-bottom: 15px;
  color: var(--text-color);
  font-size: 0.9rem;
}

.btn-validate {
  display: inline-block;
  margin-right: 1px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  color: #fff;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.btn-validate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(13, 110, 253, 0.4);
  background: linear-gradient(135deg, #6610f2, #0d6efd);
}


/* Estilos para os níveis dos projetos */
.project-card.featured {
  border: 2px solid #3b82f6;
  position: relative;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.05), rgba(255, 255, 255, 0.02));
}

.project-card.simple {
  opacity: 0.9;
  transform: scale(0.98);
  transition: all 0.3s ease;
}

.project-card.simple:hover {
  opacity: 1;
  transform: scale(0.99);
}

.project-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  z-index: 2;
}

.project-badge.backend {
  background: linear-gradient(135deg, #10b981, #047857);
}

/* Melhor organização dos links */
.project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-links .btn-validate {
  flex: 1;
  min-width: 120px;
  text-align: center;
  margin-right: 0;
}

/* Destaque visual para projetos avançados */
.project-card.featured .project-info h3 {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Ajuste no grid para destacar os primeiros */
@media (min-width: 1024px) {
  .projects-grid {
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  
  .project-card.featured {
      grid-column: span 1;
  }
}


.text-center {
  text-align: center;
}

.extra-certifications {
  display: none;
  grid-column: 1 / -1;
}

.extra-certifications.show {
  display: contents;
}

.hidden {
  display: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.project-info p {
  margin-bottom: 15px;
  color: var(--text-color);
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.project-techs span {
  padding: 3px 10px;
  background-color: rgba(52, 152, 219, 0.1);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--secondary-color);
}

.badge {
  background-color: #ffb100;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: bold;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.education-card {
  display: flex;
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 25px;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
  transition: var(--transition);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.education-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-right: 20px;
}

.education-info h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.institution {
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: 500;
}

.languages-list {
  max-width: 600px;
  margin: 0 auto;
}

.language-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: var(--card-bg);
  transition: var(--transition);
  border-radius: 8px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.language-item:hover {
  transform: translateY(-10px);
  box-shadow: rgba(0, 0, 0, 0.4) 0px 5px, rgba(0, 0, 0, 0.3) 0px 10px,
    rgba(0, 0, 0, 0.2) 0px 15px, rgba(0, 0, 0, 0.1) 0px 20px,
    rgba(0, 0, 0, 0.05) 0px 25px;
}

.language-flag {
  font-size: 2rem;
}

.language-info h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.language-progress {
  height: 6px;
  background-color: #e9ecef;
  border-radius: 3px;
  margin-top: 10px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.progress-bar {
  height: 100%;
  background-color: var(--secondary-color);
  border-radius: 3px;
  box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px,
    rgba(6, 24, 44, 0.65) 0px 4px 6px -1px,
    rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
}

.contact-info {
  flex: 1;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-right: 15px;
  width: 30px;
  text-align: center;
}

.contact-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--secondary-color);
}

.contact-container {
  display: flex;
  gap: 50px;
  align-items: stretch;
}

.contact-map {
  width: 100%;
  height: 300px; /* altura fixa para desktop */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  position: relative;
}

.contact-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-map {
    height: 250px; /* altura reduzida em mobile */
    margin-top: 30px;
  }
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: white;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-3px);
  background-color: var(--primary-color);
}

.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo .logo {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 15px;
  display: inline-block;
}

.footer-logo .logo span {
  color: var(--secondary-color);
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: white;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

/* Tablet Styles */
@media (max-width: 992px) {
  .container {
    width: 95%;
    padding: 0 20px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    margin-bottom: 30px;
  }

  .skills-container {
    flex-direction: column;
    gap: 40px;
  }

  .contact-container {
    flex-direction: column;
    gap: 30px;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    padding-left: 70px;
  }

  .timeline-content {
    width: 100%;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .certifications-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

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

/* Mobile Styles */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 15px;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    padding: 100px 0 60px;
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    order: 2;
    margin-top: 30px;
  }

  .hero-image {
    order: 1;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .rgb-text {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 20px;
  }

  .hero-image img {
    max-width: 85%;
    height: auto;
  }

  .about-highlights {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

  .soft-skill-item {
    padding: 12px;
    font-size: 0.9rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-content {
    width: 100%;
    padding: 15px;
  }

  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-image {
    height: 180px;
  }

  .language-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .contact-info {
    padding: 20px;
  }

  .contact-map {
    height: 250px;
    margin-top: 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}


.socials-animation {
  animation: colorChange 6s infinite linear;
  font-weight: bold;
}

@keyframes colorChange {
  0% { color: rgb(255, 0, 0); }
  16% { color: rgb(0, 255, 0); }
  32% { color: rgb(0, 0, 255); }
  48% { color: rgb(255, 255, 0); }
  64% { color: rgb(255, 0, 255); }
  80% { color: rgb(0, 255, 255); }
  100% { color: rgb(255, 0, 0); }
}


/* Small Mobile Styles */
@media (max-width: 576px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }

  .navbar {
    width: 95%;
    padding: 8px 15px;
  }

  .logo {
    font-size: 1.5rem;
  }

  .hero {
    padding: 80px 0 40px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .rgb-text {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

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

  .project-techs span {
    font-size: 0.7rem;
    padding: 2px 8px;
  }

  .certification-logo {
    height: 100px;
  }

  .education-card {
    flex-direction: column;
    text-align: center;
  }

  .education-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .footer {
    padding: 40px 0 20px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
  }
}

/* Extra Small Mobile Styles */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .rgb-text {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .skill-card {
    padding: 15px;
  }

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

  .soft-skill-item {
    padding: 10px;
    font-size: 0.8rem;
  }

  .timeline-item {
    padding-left: 40px;
  }

  .timeline::before {
    left: 15px;
  }

  .project-info {
    padding: 15px;
  }

  .contact-info {
    padding: 15px;
  }

  .contact-map {
    height: 200px;
  }
}

/* Landscape Mobile Styles */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 80px 0 40px;
    min-height: auto;
  }

  .hero-content {
    margin-top: 20px;
  }

  .section {
    padding: 40px 0;
  }

  .navbar {
    padding: 8px 20px;
  }
}

/* Large Desktop Styles */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }

  .hero {
    padding: 120px 8% 80px;
  }

  .section-title {
    font-size: 3rem;
  }

  .hero-title {
    font-size: 4rem;
  }

  .rgb-text {
    font-size: 5rem;
  }
}
