/* Reset e estilos gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --primary-light: #e6f2ff;
  --secondary-color: #6c757d;
  --secondary-dark: #495057;
  --text-color: #333;
  --text-light: #6c757d;
  --light-bg: #f8f9fa;
  --dark-bg: #343a40;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --white: #ffffff;
  --black: #000000;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  --font-family: "Poppins", sans-serif;
  --section-spacing: 100px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
  background-color: var(--white);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

/* Corrigindo alinhamentos */

/* Centralização de títulos */
h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

h2::after {
  left: 50%;
  transform: translateX(-50%);
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: var(--text-color);
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--primary-color);
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

/* Header e navegação */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  height: 80px;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  height: 60px;
}

#navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.logo img {
  height: 70px;
  width: auto;
}

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

.nav-link {
  padding: 10px 15px;
  font-weight: 500;
  position: relative;
}

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

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

.nav-link:hover::after {
  width: 80%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease;
  background-color: var(--text-color);
}

/* Botões */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
  color: var(--white);
}

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

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.btn-large {
  padding: 15px 40px;
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
}

/* Hero section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("img/hero-bg.jpg") no-repeat center center /
    cover;
  height: 100vh;
  color: var(--white);
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background-position 0.5s ease;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.7), rgba(0, 86, 179, 0.7));
  opacity: 0.8;
  z-index: 0;
  transition: opacity 2s ease;
}

.hero .container {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  display: inline-block;
}

.hero h1::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.5s ease-out 1s;
  animation: expandLine 1s ease-out 1s forwards;
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero h2::after {
  display: none;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1s forwards;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  transition: opacity 0.5s ease;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--white);
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

.arrow {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--white);
  border-right: 2px solid var(--white);
  transform: rotate(45deg);
  margin: -5px;
  animation: scrollArrow 1.5s infinite;
}

.arrow span:nth-child(2) {
  animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
  animation-delay: 0.4s;
}

/* About section */
#about {
  padding: var(--section-spacing) 0;
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
}

#about h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#about h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-top: 50px;
}

/* Melhorando alinhamento da seção sobre */
.about-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-top: 50px;
}

@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    align-items: center;
  }

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

  .about-text h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .highlight-item {
    text-align: left;
  }

  .about-text .btn {
    margin: 0 auto;
    display: block;
    max-width: 200px;
  }
}

.about-image {
  flex: 1;
  text-align: center;
}

.profile-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--box-shadow);
  transition: all 0.5s ease;
  border: 5px solid var(--white);
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.social-links-about {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links-about a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--white);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-links-about a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
}

.about-text {
  flex: 1.5;
}

.about-text h3 {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.about-text h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-color);
  line-height: 1.8;
}

.about-highlights {
  margin: 30px 0;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.highlight-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 5px;
}

.highlight-item h4 {
  margin-bottom: 5px;
}

.highlight-item p {
  margin-bottom: 0;
  color: var(--text-light);
}

/* Skills section */
#skills {
  padding: var(--section-spacing) 0;
  position: relative;
}

#skills h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#skills h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

/* Corrigindo alinhamento das skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

@media (max-width: 992px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-item i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.skill-item:hover i {
  transform: scale(1.2);
}

.skill-item span {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Services section */
#services {
  padding: var(--section-spacing) 0;
  background-color: var(--light-bg);
  position: relative;
}

#services h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#services h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Corrigindo alinhamento dos cards de serviço */
.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card p {
  margin-bottom: 20px;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--gradient-primary);
  transition: all 0.5s ease;
  z-index: -1;
  opacity: 0;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  color: var(--white);
}

.service-card:hover::before {
  height: 100%;
  opacity: 1;
}

.service-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: all 0.5s ease;
}

.service-card:hover i {
  color: var(--white);
  transform: scale(1.2);
}

.service-card h3 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.service-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.5s ease;
}

.service-card:hover h3::after {
  width: 80px;
  background-color: var(--white);
}

.service-price {
  margin-top: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.service-card:hover .service-price {
  color: var(--white);
}

.cta-container {
  text-align: center;
  margin-top: 50px;
}

/* Projects section */
#projects {
  padding: var(--section-spacing) 0;
  position: relative;
}

#projects h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#projects h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.project-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.5s ease;
  position: relative;
}

/* Corrigindo alinhamento dos cards de projeto */
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card .btn-small {
  margin-top: auto;
  align-self: flex-start;
}

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

.project-card.featured-project {
  grid-column: span 2;
}

.img-container {
  position: relative;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.5s ease;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 123, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s ease;
}

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

.project-links {
  display: flex;
  gap: 20px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--white);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.project-card:hover .project-link {
  transform: translateY(0);
  opacity: 1;
}

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

.project-content {
  padding: 25px;
  position: relative;
}

.featured-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.project-tags span {
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-results {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--gray-100);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.result-item i {
  color: var(--success-color);
}

.project-card .btn-small {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.project-card .btn-small:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 123, 255, 0.2);
}

/* Testimonials section */
#testimonials {
  padding: var(--section-spacing) 0;
  background-color: var(--light-bg);
  position: relative;
}

#testimonials h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#testimonials h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

/* Corrigindo alinhamento dos depoimentos */
.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  min-height: 300px;
}

.testimonial-card {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  top: 0;
  left: 0;
  height: auto;
}

.testimonial-card.active {
  opacity: 1;
  position: relative;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  margin: 20px 10px;
}

.testimonial-content {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
}

.testimonial-content i {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.testimonial-content p {
  font-style: italic;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.testimonial-author h4 {
  margin-bottom: 5px;
  font-weight: 600;
}

.testimonial-author p {
  margin-bottom: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 20px;
}

.testimonial-btn {
  background-color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.testimonial-dots {
  display: flex;
  gap: 8px;
}

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

.dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Contact section */
#contact {
  padding: var(--section-spacing) 0;
  position: relative;
}

#contact h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#contact h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.contact-container {
  display: flex;
  gap: 50px;
  margin-top: 50px;
}

/* Corrigindo alinhamento do formulário de contato */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info,
  #contact-form {
    width: 100%;
  }
}

.contact-info {
  flex: 1;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-item i {
  font-size: 1.5rem;
  margin-right: 15px;
  margin-top: 5px;
}

.contact-item h4 {
  margin-bottom: 5px;
  color: var(--white);
}

.contact-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

.contact-item a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--white);
  text-decoration: underline;
}

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

/* Footer social icons alignment fix */
.footer-contact .social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  align-items: center;
}

.footer-contact .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-links-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links-contact a:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-5px);
}

#contact-form {
  flex: 1.5;
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-header {
  margin-bottom: 30px;
}

.form-header h3 {
  margin-bottom: 10px;
}

.form-header p {
  color: var(--text-light);
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  font-family: var(--font-family);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  outline: none;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 80px 0 20px;
  position: relative;
}

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

/* Corrigindo alinhamento do footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Fix for footer content alignment on mobile */
@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links h4::after,
  .footer-services h4::after,
  .footer-contact h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact p {
    justify-content: center;
    display: flex;
    align-items: center;
  }

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

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

.footer-logo img {
  height: 90px;
  width: auto;
  margin-bottom: 15px;
}

.footer-logo h3 {
  color: var(--white);
  margin-bottom: 10px;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-contact h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

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

.footer-services li {
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  padding-left: 15px;
}

.footer-services li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-contact .social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-contact .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-contact .social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom .fa-heart {
  color: var(--danger-color);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

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

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

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Keyframe animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandLine {
  from {
    transform: scaleX(0);
    transform-origin: bottom right;
  }
  to {
    transform: scaleX(1);
    transform-origin: bottom left;
  }
}

@keyframes scrollWheel {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes scrollArrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-5px, -5px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(5px, 5px);
  }
}

/* Responsividade */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

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

  .project-card.featured-project {
    grid-column: auto;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.2rem;
  }

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

  .about-text h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

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

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

  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hamburger {
    display: block;
  }

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

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    gap: 0;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
  }

  /* Corrigindo alinhamento do menu mobile */
  .nav-menu {
    padding: 20px 0;
  }

  .nav-menu li {
    margin: 15px 0;
  }

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

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

  /* Corrigindo alinhamento dos botões na hero section */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 250px;
  }

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

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

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

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

