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

:root {
  --primary-color: #2563eb;
  --secondary-color: #3b82f6;
  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --purple: #9333ea;
  --purple-light: #a855f7;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.logo-image {
  width: 120px; 
  height: auto;
  transition: opacity 0.3s ease;
}

.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

body.dark-mode .logo-light {
  display: none;
}

body.dark-mode .logo-dark {
  display: block;
}

.nav-logo a:hover {
  color: var(--secondary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.language-toggle:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.dark-mode .language-toggle {
  color: #f3f4f6;
}

.dark-mode .language-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--gray-100);
  transform: rotate(20deg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

.highlight {
  color: var(--primary-color);
  display: block;
  margin-top: 0.5rem;
}

.animacao {
  display: inline-block;
  height: 6rem;
  width: 45rem;
  overflow: hidden;
  vertical-align: middle;
  white-space: normal;
}

.animacao span {
  display: block;
  line-height: 6rem;
  font-size: 4.5rem;
  animation: troca 8s infinite;
  white-space: nowrap;
}

@keyframes troca {
  0%,
  15% {
    transform: translateY(0); 
  }

  17.5% {
    transform: translateY(-6.5rem); 
  }
  20%,
  35% {
    transform: translateY(-6rem);
  }

  37.5% {
    transform: translateY(-12.5rem); 
  }
  40%,
  55% {
    transform: translateY(-12rem);
  }

  57.5% {
    transform: translateY(-18.5rem);
  }
  60%,
  75% {
    transform: translateY(-18rem);
  }

  77.5% {
    transform: translateY(-24.5rem);
  }
  80%,
  95% {
    transform: translateY(0); 
  }

  100% {
    transform: translateY(0);
  }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

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

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

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

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

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

.image-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  animation: scaleIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.image-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  z-index: 1;
  animation: spin-circle 10s linear infinite;
}

@keyframes spin-circle {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

body.dark-mode .image-decoration {
  border-color: var(--purple);
  animation: spin-circle 10s linear infinite;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-left: 3px solid var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  transform: rotate(-45deg);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.about {
  padding: 6rem 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-nav-link {
  color: var(--primary-color) !important;
  position: relative;
  display: inline-block;
}

.section-nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  animation: underline-expand 0.8s ease-out;
}

@keyframes underline-expand {
  from {
    width: 0;
    left: 50%;
  }
  to {
    width: 100%;
    left: 0;
  }
}

body.dark-mode .section-nav-link {
  color: var(--purple) !important;
}

body.dark-mode .section-nav-link::after {
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-cv-center {
  margin-left: 2rem;
  animation: pulse-cv 2s ease-in-out infinite;
}

@keyframes pulse-cv {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
}

body.dark-mode .btn-cv-center {
  border-color: var(--purple);
  color: var(--purple);
}

body.dark-mode .btn-cv-center:hover {
  background: var(--purple);
  color: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-description {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: 12px;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

.resume-download {
  display: none;
}

.skills-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

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

.skill-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  position: relative;
  overflow: hidden;
}

.skill-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.skill-details {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  margin-top: 0;
}

.skill-item:hover {
  transform: scale(1.15);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
  z-index: 10;
}

.skill-item:hover .skill-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.skill-item:hover .skill-details {
  opacity: 1;
  max-height: 100px;
  margin-top: 0.5rem;
}

.skill-name {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 0.95rem;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item:hover .skill-progress[data-width="100%"] { width: 100%; }
.skill-item:hover .skill-progress[data-width="90%"] { width: 90%; }
.skill-item:hover .skill-progress[data-width="85%"] { width: 85%; }
.skill-item:hover .skill-progress[data-width="80%"] { width: 80%; }
.skill-item:hover .skill-progress[data-width="45%"] { width: 45%; }
.skill-item:hover .skill-progress[data-width="40%"] { width: 40%; }

.projects {
  padding: 6rem 0;
  background: var(--gray-50);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
  transition: all 0.3s ease;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(37, 99, 235, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  width: 50px;
  height: 50px;
  background: var(--white);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-link:hover {
  transform: scale(1.1);
  background: var(--primary-color);
  color: var(--white);
}

.project-content {
  padding: 20px;
  transition: all 0.3s ease;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.project-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  color: var(--text-dark);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.contact {
  padding: 6rem 0;
  background: var(--gray-50);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.contact-value {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.social-link::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.social-link::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.social-link:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.social-link:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.social-link:hover {
  background: var(--secondary-color);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.social-link[title="WhatsApp"]:hover {
  background: #25d366;
}

.social-link[title="GitHub"]:hover {
  background: #333;
}

.testimonials-section {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonials-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.testimonials-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 220px;
}

.testimonials-container {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 200px;
}

.testimonial-card {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card.active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
  animation: slide-in-testimonial 0.5s ease-out;
}

@keyframes slide-in-testimonial {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.testimonial-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 500px;
}

.carousel-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.carousel-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-color);
  width: 30px;
  border-radius: 5px;
}

.dot:hover {
  background: var(--secondary-color);
  transform: scale(1.2);
}

body.dark-mode .testimonials-section {
  background: var(--dark-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .testimonials-title {
  color: var(--purple);
}

body.dark-mode .testimonial-avatar {
  border-color: var(--purple);
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

body.dark-mode .testimonial-name {
  color: var(--gray-100);
}

body.dark-mode .testimonial-text {
  color: var(--gray-300);
}

body.dark-mode .carousel-btn {
  background: var(--purple);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

body.dark-mode .carousel-btn:hover {
  background: var(--purple-light);
  box-shadow: 0 6px 16px rgba(147, 51, 234, 0.4);
}

body.dark-mode .dot.active {
  background: var(--purple);
}

.contact-form-enhanced {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.form-floating-container {
  position: relative;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.form-3d-background {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.05));
  animation: rotate-background 20s linear infinite;
  z-index: 0;
}

@keyframes rotate-background {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.form-title {
  position: relative;
  z-index: 1;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2rem;
  text-align: center;
}

.form-group-animated {
  position: relative;
  z-index: 1;
  margin-bottom: 1.75rem;
  animation: fadeInUp 0.6s ease-out;
}

.form-group-animated:nth-child(1) { animation-delay: 0.1s; }
.form-group-animated:nth-child(2) { animation-delay: 0.2s; }
.form-group-animated:nth-child(3) { animation-delay: 0.3s; }
.form-group-animated:nth-child(4) { animation-delay: 0.4s; }
.form-group-animated:nth-child(5) { animation-delay: 0.5s; }

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-light);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  z-index: 2;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 14px;
}

.input-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.4s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.form-input:focus + .input-border,
.form-textarea:focus + .input-border {
  width: 100%;
}

.form-input:focus ~ .input-icon,
.form-textarea:focus ~ .input-icon {
  color: var(--primary-color);
  transform: scale(1.1);
}

.error-message {
  display: none;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.btn-submit-animated {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  overflow: hidden;
}

.btn-submit-animated::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-submit-animated:hover::before {
  width: 300px;
  height: 300px;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn-submit-animated:hover .btn-icon {
  transform: translateX(5px);
}

.shake-error {
  animation: shake-form 0.5s ease;
}

@keyframes shake-form {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

body.dark-mode .form-floating-container {
  background: var(--dark-bg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .form-3d-background {
  background: linear-gradient(45deg, rgba(147, 51, 234, 0.05), rgba(168, 85, 247, 0.05));
}

body.dark-mode .form-title {
  color: var(--gray-100);
}

body.dark-mode .form-input,
body.dark-mode .form-textarea {
  background: var(--dark-card);
  color: var(--gray-100);
  border-color: #334155;
}

body.dark-mode .form-input:focus,
body.dark-mode .form-textarea:focus {
  border-color: var(--purple);
  background: var(--dark-card);
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.1);
}

body.dark-mode .input-border {
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
}

body.dark-mode .input-icon {
  color: var(--gray-400);
}

body.dark-mode .form-input:focus ~ .input-icon,
body.dark-mode .form-textarea:focus ~ .input-icon {
  color: var(--purple);
}

body.dark-mode .form-label {
  color: var(--gray-300);
}

.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-color);
}

body.dark-mode .footer {
  background: var(--dark-bg);
}

body.dark-mode .footer-link:hover {
  color: var(--purple);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

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

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

body.dark-mode .back-to-top {
  background: var(--purple);
}

body.dark-mode .back-to-top:hover {
  background: var(--purple-light);
}

body.dark-mode {
  background: var(--dark-bg);
  color: var(--gray-100);
}

body.dark-mode .header {
  background: rgba(15, 23, 42, 0.95);
}

body.dark-mode .nav-logo a,
body.dark-mode .nav-link {
  color: var(--gray-100);
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
  color: var(--purple);
}

body.dark-mode .nav-link::after {
  background: var(--purple);
}

body.dark-mode .theme-toggle {
  color: var(--gray-100);
}

body.dark-mode .theme-toggle:hover {
  background: var(--dark-card);
}

body.dark-mode .bar {
  background: var(--gray-100);
}

body.dark-mode .hero {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-card) 100%);
}

body.dark-mode .hero-title {
  color: var(--gray-100);
}

body.dark-mode .highlight {
  color: var(--purple);
}

body.dark-mode .hero-description {
  color: var(--gray-300);
}

body.dark-mode .btn-primary {
  background: var(--purple);
}

body.dark-mode .btn-primary:hover {
  background: var(--purple-light);
  box-shadow: 0 10px 25px rgba(147, 51, 234, 0.3);
}

body.dark-mode .btn-secondary {
  color: var(--purple);
  border-color: var(--purple);
}

body.dark-mode .btn-secondary:hover {
  background: var(--purple);
  color: var(--white);
}

body.dark-mode .btn-outline {
  color: var(--purple);
  border-color: var(--purple);
}

body.dark-mode .btn-outline:hover {
  background: var(--purple);
}

body.dark-mode .image-decoration {
  border-color: var(--purple);
}

body.dark-mode .scroll-arrow {
  border-color: var(--purple);
}

body.dark-mode .about {
  background: var(--dark-card);
}

body.dark-mode .section-title {
  color: var(--gray-100);
}

body.dark-mode .section-subtitle {
  color: var(--gray-300);
}

body.dark-mode .about-description {
  color: var(--gray-300);
}

body.dark-mode .stat-item {
  background: var(--dark-bg);
}

body.dark-mode .stat-number {
  color: var(--purple);
}

body.dark-mode .stat-label {
  color: var(--gray-300);
}

body.dark-mode .skills-title {
  color: var(--gray-100);
}

body.dark-mode .skill-item {
  background: var(--dark-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .skill-icon {
  color: var(--purple);
}

body.dark-mode .skill-name {
  color: var(--gray-100);
}

body.dark-mode .skill-bar {
  background: var(--dark-card);
}

body.dark-mode .skill-progress {
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
}

body.dark-mode .projects {
  background: var(--dark-bg);
}

body.dark-mode .project-card {
  background: var(--dark-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .project-title {
  color: var(--gray-100);
}

body.dark-mode .project-description {
  color: var(--gray-300);
}

body.dark-mode .tech-tag {
  background: var(--dark-bg);
  color: var(--gray-100);
}

body.dark-mode .project-overlay {
  background: rgba(147, 51, 234, 0.9);
}

body.dark-mode .project-link {
  background: var(--white);
  color: var(--purple);
}

body.dark-mode .project-link:hover {
  background: var(--purple);
  color: var(--white);
}

body.dark-mode .contact {
  background: var(--dark-card);
}

body.dark-mode .contact-title {
  color: var(--gray-100);
}

body.dark-mode .contact-icon {
  background: var(--purple);
}

body.dark-mode .contact-label {
  color: var(--gray-300);
}

body.dark-mode .contact-value {
  color: var(--gray-100);
}

body.dark-mode .social-link {
  background: var(--purple);
}

body.dark-mode .social-link:hover {
  background: var(--purple-light);
}

@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero-content,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .image-container {
    width: 350px;
    height: 350px;
  }

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

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

  .animacao {
    width: 100%;
    max-width: 40rem;
    height: 5rem;
  }

  .animacao span {
    line-height: 5rem;
    font-size: 3.5rem;
  }

  .testimonials-carousel {
    flex-direction: column;
    gap: 1.5rem;
  }

  .carousel-btn {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 1rem;
  }

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

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.dark-mode .nav-menu {
    background: var(--dark-card);
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 2rem;
  }

  .hero-content {
    text-align: center;
    gap: 2rem;
  }

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

  .hero-buttons {
    justify-content: center;
  }

  .image-container {
    width: 280px;
    height: 280px;
  }

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

  .section-subtitle {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-cv-center {
    margin-left: 0;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-content {
    gap: 2rem;
  }

  .testimonials-section {
    padding: 1.5rem;
  }

  .testimonial-card {
    padding: 1rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  .form-floating-container {
    padding: 2rem 1.5rem;
  }

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

  .footer-links {
    justify-content: center;
  }

  .animacao {
    width: 100%;
    max-width: 25rem;
    height: 3.5rem;
  }

  .animacao span {
    line-height: 3.5rem;
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 1rem;
  }

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

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

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
  }

  .image-container {
    width: 250px;
    height: 250px;
  }

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

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

  .form-floating-container {
    padding: 1.5rem 1rem;
  }

  .form-input,
  .form-textarea {
    font-size: 16px;
  }

  .social-links {
    justify-content: center;
  }

  .testimonials-carousel {
    min-height: 280px;
  }

  .testimonial-text {
    font-size: 0.85rem;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

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

  .animacao {
    width: 100%;
    max-width: 20rem;
    height: 3rem;
  }

  .animacao span {
    line-height: 3rem;
    font-size: 2rem;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }

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

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .form-input,
  .form-textarea {
    padding: 12px 12px 12px 40px;
  }

  .input-icon {
    left: 12px;
  }

  .animacao {
    width: 100%;
    max-width: 18rem;
    height: 2.5rem;
  }

  .animacao span {
    line-height: 2.5rem;
    font-size: 1.75rem;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
 

.botaocv {
    margin-top: 2px;
    text-align: center; 
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
}

body.dark-mode .testimonial-role {
  color: var(--purple-light);
}

.testimonials {
  padding: 6rem 0;
  background: var(--gray-50);
}

.testimonials-section {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonials-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 280px;
}

.testimonials-container {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 240px;
}

.testimonial-card {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  opacity: 0;
  transform: translateX(100px);
  transition: all 10s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card.active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
  animation: slide-in-testimonial 0.5s ease-out;
}

@keyframes slide-in-testimonial {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.testimonial-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 600px;
  margin-top: 1rem;
}

.carousel-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.carousel-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-color);
  width: 35px;
  border-radius: 6px;
}

.dot:hover {
  background: var(--secondary-color);
  transform: scale(1.2);
}

body.dark-mode .testimonials {
  background: var(--dark-bg);
}

body.dark-mode .testimonials-section {
  background: var(--dark-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .testimonial-avatar {
  border-color: var(--purple);
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

body.dark-mode .testimonial-name {
  color: var(--gray-100);
}

body.dark-mode .testimonial-text {
  color: var(--gray-300);
}

body.dark-mode .carousel-btn {
  background: var(--purple);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

body.dark-mode .carousel-btn:hover {
  background: var(--purple-light);
  box-shadow: 0 6px 16px rgba(147, 51, 234, 0.4);
}

body.dark-mode .dot.active {
  background: var(--purple);
}

.animacao {
  display: inline-block;
  height: 6rem;
  width: 45rem;
  overflow: hidden;
  vertical-align: middle;
  white-space: normal;
}

.animacao span {
  display: block;
  line-height: 6rem;
  font-size: 4.5rem;
  animation: troca 11s infinite;
  white-space: nowrap;
}

@keyframes troca {
  0%,
  14% {
    transform: translateY(0);
  }
  16.66% {
    transform: translateY(-6rem);
  }

  16.66%,
  30.66% {
    transform: translateY(-6rem);
  }
  33.32% {
    transform: translateY(-12rem);
  }

  33.32%,
  47.32% {
    transform: translateY(-12rem);
  }
  49.98% {
    transform: translateY(-18rem);
  }

  49.98%,
  63.98% {
    transform: translateY(-18rem);
  }
  66.64% {
    transform: translateY(-24rem);
  }

  66.64%,
  80.64% {
    transform: translateY(-24rem);
  }
  83.3% {
    transform: translateY(-30rem);
  }

  83.3%,
  97.3% {
    transform: translateY(-30rem);
  }

  100% {
    transform: translateY(0);
  }
}

