/* Variáveis CSS */
:root {
  --dark-bg: #0a0a0a;
  --dark-bg-secondary: #111111;
  --dark-bg-tertiary: #181818;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --accent-color: #00ff6a; /* Verde mais chamativo */
  --accent-color-hover: #33ff3d; /* Verde mais neon para hover */
  --accent-color-transparent: rgba(0, 255, 157, 0.1);
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Montserrat", sans-serif;
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

/* Reset e Estilos Globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--dark-bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: none;
  font-family: var(--font-primary);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--dark-bg);
  box-shadow: 0 4px 15px rgba(0, 255, 157, 0.4);
}

.btn-primary:hover {
  background-color: var(--accent-color-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 255, 157, 0.6);
  color: var(--dark-bg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
  background-color: var(--accent-color-transparent);
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* Header e Navegação */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-speed) ease;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent-color);
  font-weight: 800;
}

.logo img {
  width: 130px;
}

.menu {
  display: flex;
  gap: 30px;
}

.menu li a {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed) ease;
}

.menu li a:hover::after {
  width: 100%;
}

.menu-mobile {
  display: none;
  position: relative;
  z-index: 1001;
}

.menu-icon {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  display: block;
}

.menu-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.menu-icon span:nth-child(1) {
  top: 0px;
}

.menu-icon span:nth-child(2) {
  top: 8px;
}

.menu-icon span:nth-child(3) {
  top: 16px;
}

.menu-open .menu-icon span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.menu-open .menu-icon span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.menu-open .menu-icon span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Hero Section */
.hero {
  padding-top: 150px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    to bottom,
    var(--dark-bg),
    var(--dark-bg-secondary)
  );
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(0, 255, 157, 0.08) 0%,
    transparent 50%
  );
  z-index: 0;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(
    to right,
    var(--text-primary),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 300px;
  height: 600px;
}

.phone-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #333;
  border-radius: 40px;
  box-shadow: var(--shadow);
  border: 8px solid #2a2a2a;
  overflow: hidden;
}

.phone-screen {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: linear-gradient(135deg, #333, #222);
  border-radius: 32px;
  overflow: hidden;
}

/* Projetos Section */
.projetos {
  background-color: var(--dark-bg);
  position: relative;
  padding: 45px 0;
}

.carousel-container {
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
  overflow: hidden;
  z-index: 1;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.carousel {
  display: flex;
  transition: transform 0.8s ease;
}

.projeto-card {
  min-width: 100%;
  display: flex;
  align-items: center;
  padding: 5px 40px;
  justify-content: space-between;
  border-radius: 20px;
  background-color: var(--dark-bg-tertiary);
  box-shadow: var(--shadow);
  margin: 0;
  border: 5px solid var(--dark-bg);
  transition: transform var(--transition-speed) ease,
    opacity var(--transition-speed) ease;
}

.projeto-content {
  flex: 1;
  max-width: 50%;
  padding-right: 40px;
}

.projeto-content h3 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-weight: 700;
}

.projeto-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--dark-bg);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 255, 157, 0.3);
}

.projeto-image {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-items: center;
  position: relative;
  padding-right: 60px;
  rotate: 10deg;
  scale: 105%;
}

.projeto-image img {
  width: 200px;
}

.carousel-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.carousel-prev,
.carousel-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #444;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--accent-color);
}

.cta-container {
  text-align: center;
  margin-top: 25px;
}

/* Galeria Section */
.galeria {
  background-color: var(--dark-bg-secondary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.gallery-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-image img {
  width: 100%;
  height: 100%;
}

.gallery-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

/* Modal da Galeria */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
}

.modal-image-container {
  width: 100%;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-controls {
  position: absolute;
  bottom: -55px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.modal-prev,
.modal-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
}

.modal-prev:hover,
.modal-next:hover {
  background-color: var(--accent-color);
  color: var(--dark-bg);
}

/* Vantagens Section */
.vantagens {
  background-color: var(--dark-bg-secondary);
  position: relative;
  padding-bottom: 80px;
}

.vantagens::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(0, 255, 157, 0.08) 0%,
    transparent 50%
  );
  z-index: 0;
}

.vantagens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.vantagem-card {
  background-color: var(--dark-bg-tertiary);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform var(--transition-speed) ease;
  opacity: 0;
  transform: translateY(30px);
}

.vantagem-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.vantagem-card:hover {
  transform: translateY(-10px);
}

.vantagem-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.vantagem-card p {
  color: var(--text-secondary);
}

.quero {
  display: flex;
  align-items: center;
  justify-items: center;
  justify-content: center;
  margin: 0px;
  margin-top: -120px;
  background-color: transparent;
}

/* Footer */
footer {
  background-color: var(--dark-bg-tertiary);
  padding: 70px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.footer-logo span {
  color: var(--accent-color);
}

.footer-logo p {
  color: var(--text-secondary);
}

.footer-logo img {
  width: 130px;
}

.footer-social h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-social h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 1.5px;
}

.social-icons {
  display: flex;
  gap: 15px;
  cursor: pointer;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--dark-bg);
  border-radius: 50%;
  transition: all var(--transition-speed) ease;
  padding: 10px;
}

.social-icons a:hover {
  background-color: var(--accent-color);
  color: var(--dark-bg);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animações */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.animate-slide-in {
  opacity: 0;
  transform: translateX(50px);
  animation: slideIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Media Queries para Responsividade */
@media (max-width: 1200px) {
  .hero-content h2 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin-bottom: 40px;
  }

  .vantagens-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .menu {
    display: none;
  }

  .menu-mobile {
    display: block;
  }

  .menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg-secondary);
    padding: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .menu.active li {
    margin-bottom: 5px;
  }

  .menu.active a {
    font-size: 1.2rem;
    display: block;
    padding: 5px 0;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section-title {
    font-size: 2rem;
  }

  .hero .container {
    padding-top: 30px;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  section {
    padding: 40px 0;
    position: relative;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vantagens-grid {
    grid-template-columns: 1fr;
  }

  .contato-form {
    padding: 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .quero {
    margin-top: -100px;
  }
}

/* Estilo para o ícone do menu mobile quando ativo */
.menu-icon.active span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
  opacity: 0;
}

.menu-icon.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Animações para os ícones da seção Vantagens */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes semirotate {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(15deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.vantagem-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 15px;
  display: inline-block;
  transition: all 0.3s ease;
}

.vantagem-card:hover .vantagem-icon {
  text-shadow: 0 0 15px var(--accent-color);
}

/* Animações específicas para cada ícone */
.vantagem-card:nth-child(1) .vantagem-icon {
  animation: pulse 2s infinite;
}

.vantagem-card:nth-child(2) .vantagem-icon {
  animation: semirotate 3s infinite;
}

.vantagem-card:nth-child(3) .vantagem-icon {
  animation: bounce 2s infinite;
}

.vantagem-card:nth-child(4) .vantagem-icon {
  animation: shake 3s infinite;
}

.vantagem-card:nth-child(5) .vantagem-icon {
  animation: bounce 3s infinite;
}

.vantagem-card:nth-child(6) .vantagem-icon {
  animation: pulse 3s infinite;
}

/* Responsividade para o carrossel de projetos */
@media (max-width: 992px) {
  .projeto-content h3 {
    font-size: 1.8rem;
  }

  .projeto-content p {
    font-size: 1rem;
  }

  .projeto-image img {
    width: 175px;
  }
}

@media (max-width: 768px) {
  .projeto-card {
    flex-direction: column;
    padding: 20px;
  }

  .projeto-content {
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 20px;
    text-align: center;
  }

  .projeto-image {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-items: center;
    position: relative;
    padding-right: 0px;
    rotate: 0deg;
    scale: 100%;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .modal-controls {
    bottom: -55px;
  }
}

@media (max-width: 576px) {
  .projeto-card {
    padding: 15px;
  }

  .projeto-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .projeto-content p {
    font-size: 0.8rem;
    margin-bottom: 20px;
  }

  .projeto-image {
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-items: center;
    position: relative;
  }

  .projeto-image img {
    width: 125px;
  }

  .btn-outline {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .carousel-navigation {
    margin-top: 10px;
  }

  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}
