@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

:root {
  --primary-color: #4caf50;
  --secondary-color: #8bc34a;
  --text-color: #333;
  --background-color: #f4f4f4;
  --white-color: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--white-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.logo span {
  color: var(--text-color);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: url("img/bg.png")
    no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white-color);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--secondary-color);
}

/* Sobre Section */
.sobre {
  padding: 6rem 0;
}

.sobre-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.sobre-img {
  width: 40%;
  border-radius: 10px;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
}

.sobre-text {
  width: 60%;
}

.sobre-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Serviços Section */
.servicos {
  padding: 6rem 0;
  background-color: var(--white-color);
}

.servicos h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.servico-card {
  background-color: var(--background-color);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servico-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.servico-card h3 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

/* Blog Section - ESTILOS ATUALIZADOS */
.blog {
  padding: 6rem 0;
}

.blog h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-post {
  background-color: transparent;
  height: 400px;
  perspective: 1000px; /* Efeito 3D */
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.blog-post.is-flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-front {
  background-color: var(--white-color);
}

.card-front img {
  width: 100%;
  height: 70%;
  object-fit: cover;
}

.card-front h3 {
  padding: 1rem;
  text-align: center;
  color: var(--text-color);
}

.card-back {
  background-color: var(--secondary-color);
  color: white;
  padding: 2rem;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-back h3 {
  margin-bottom: 1rem;
}

.card-back a {
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--white-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
}

/* Depoimentos Section */
.depoimentos {
  padding: 6rem 0;
  background-color: var(--white-color);
}

.depoimentos h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.depoimento-card {
  background-color: var(--background-color);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border-left: 5px solid var(--primary-color);
}

.depoimento-card h4 {
  text-align: right;
  font-style: italic;
  color: var(--secondary-color);
}

/* Contato Section */
.contato {
  padding: 6rem 0;
}

.contato h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.contato form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contato input,
.contato textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contato textarea {
  resize: vertical;
}

.contato .btn {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

/* Footer */
.footer {
  background-color: var(--text-color);
  color: var(--white-color);
  text-align: center;
  padding: 1rem 0;
}
