:root {
  --bg: #0F0F1A;
  --card: #1A1A2E;
  --accent: #00D4FF;
  --red: #FF3366;
  --text: #E0E0FF;
  --gray: #8892B0;
  --border: rgba(0, 212, 255, 0.2);
  --glow: 0 0 40px rgba(0, 212, 255, 0.5);
  --transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --gradient-text: linear-gradient(120deg, #ffffff, #00D4FF, #0099CC);
  --gradient-title: linear-gradient(90deg, #ffffff, #00D4FF);
}

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

html {
  width: 100%;
  overflow-x: hidden;
}

img, picture, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

iframe {
  max-width: 100%;
  width: 100%;
  border: 0;
  display: block;
}

.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  width: 100%;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  box-sizing: border-box;
}

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

.logo img {
  height: 80px;
  filter: drop-shadow(0 0 20px var(--accent));
  transition: var(--transition);
}

.logo img:hover {
  transform: rotate(5deg) scale(1.1);
}

/* Menu Mobile (hambúrguer) */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 15, 26, 0.99);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.5rem;
}

.mobile-menu li {
  list-style: none;
}

.mobile-menu li::after {
  display: none;
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  padding: 0.5rem 0;
}

nav ul {
  display: flex;
  gap: 0;
  align-items: center;
}

nav li {
  list-style: none;
}

nav li:not(:last-child)::after {
  content: ' • ';
  margin: 0 1rem;
  color: var(--accent);
  font-size: 0.9rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: var(--transition);
  transform: translateX(-50%);
  box-shadow: var(--glow);
}

nav a:hover::after {
  width: 100%;
}

.btn-cta {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 1rem 2.8rem;
  border: 2px solid transparent;
  border-image: var(--gradient-text) 1;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: var(--glow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.desktop-only { display: inline-flex; align-items: center; }
.mobile-only { display: none; }

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-text);
  opacity: 0.1;
  transition: var(--transition);
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.6);
}

.hero {
  height: 100vh;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.15), transparent 70%);
  z-index: -1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-family: 'Orbitron', sans-serif;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.hero-text h1 .title-top,
.hero-text h1 .title-bottom {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.hero-text h1 .title-top {
  font-size: 3.3rem;
  font-weight: 900;
}

.hero-text h1 .title-bottom {
  font-size: 3.3rem;
  font-weight: 900;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0.9rem 0 1.2rem;
  text-align: center;
}

.hero-text .btn-cta {
  align-self: center;
}

.hero-image {
  border-radius: 38px;
  overflow: hidden;
  box-shadow: var(--glow);
  border: 3px solid var(--accent);
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-image:hover img {
  transform: scale(1.05);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.section {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
}

.section-title {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.4rem;
  margin-bottom: 3.5rem;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.service-card {
  background: var(--card);
  padding: 2.5rem 2rem;
  border-radius: 28px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-20px);
  box-shadow: var(--glow);
  border-color: var(--accent);
}

.service-card h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--accent);
  font-size: 1.4rem;
  margin: 1rem 0;
}

.carousel {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--glow);
  border: 2px solid var(--border);
  height: 450px;
  max-height: 55vh;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s ease;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 55vh;
  object-fit: cover;
  filter: brightness(0.9);
}

/* BOTÕES NOVOS COM SVG */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 212, 255, 0.4);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px);
  box-shadow: var(--glow);
  transition: var(--transition);
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.2);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.carousel-btn:hover svg {
  fill: #000;
}

.prev { left: 30px; }
.next { right: 30px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.form-container {
  background: var(--card);
  padding: 2.5rem;
  border-radius: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
  position: relative;
}

.success-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 212, 255, 0.15);
  padding: 2rem 3rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 2px solid var(--accent);
  color: white;
  font-size: 1.3rem;
  text-align: center;
  display: none;
  z-index: 100;
}

.success-message.show {
  display: block;
  animation: bounce 0.6s;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

input, select, textarea {
  width: 100%;
  padding: 1.3rem;
  background: rgba(255,255,255,0.05);
  border: 2px solid var(--border);
  border-radius: 18px;
  color: #FFFFFF !important;
  font-size: 1.1rem;
  transition: var(--transition);
  margin-bottom: 1.5rem;
  font-family: 'Poppins', sans-serif;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300D4FF'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
}

select option { background: #1A1A2E; color: #FFFFFF; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.3);
}

.btn-submit {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 1.4rem 3rem;
  border: 2px solid transparent;
  border-image: var(--gradient-text) 1;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.2rem;
  cursor: pointer;
  width: 100%;
  box-shadow: var(--glow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-text);
  opacity: 0.1;
  z-index: -1;
  border-radius: 50px;
}

.btn-submit:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 212, 255, 0.6);
}

.map-container {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--glow);
  border: 3px solid var(--accent);
  height: 450px;
}


footer {
  background: #0a0a14;
  padding: 5rem 0 2rem;
  border-top: 3px solid var(--accent);
  position: relative;
  z-index: 2;
  font-family: 'Poppins', sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.footer-logo img {
  height: 30px;
  filter: drop-shadow(0 0 30px var(--accent));
  margin-bottom: 1.5rem;
}

.footer-about {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.9;
  margin: 1.5rem 0;
}

.social-links { display: flex; gap: 1.2rem; margin-top: 1.5rem; }

.social-links a {
  width: 52px;
  height: 52px;
  background: var(--card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.social-links a:hover { background: var(--accent); color: #000; transform: translateY(-8px); }

.footer-links h4 {
  font-family: 'Orbitron', sans-serif;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.4rem;
  margin-bottom: 1.8rem;
  font-weight: 700;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  display: block;
  margin: 1rem 0;
  padding-left: 2.5rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--accent); padding-left: 3rem; }

.footer-links a::before { position: absolute; left: 0; top: 0; font-size: 1.4rem; transition: var(--transition); }

.copyright {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: #888;
  font-size: 0.95rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.copyright span {
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* MEDIA QUERIES PARA RESPONSIVIDADE */

/* Tablets e dispositivos médios (768px e abaixo) */
@media (max-width: 768px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
  }

  .nav-container {
    padding: 0 1.5rem;
    width: 100%;
    overflow-x: hidden;
  }

  .logo img {
    height: 60px;
  }

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

  /* esconder o botão desktop e mostrar botão dentro do menu móvel */
  .desktop-only { display: none; }
  .mobile-only { display: block; width: 100%; text-align: center; padding: 1rem 0.8rem; border-radius: 14px; box-shadow: none; }
  .mobile-only::before { display: none; }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .hero-text h1 .title-top,
  .hero-text h1 .title-bottom {
    font-size: 2rem;
  }

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

  .hero {
    min-height: 600px;
  }

  .section {
    padding: 4rem 0;
  }

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

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-card {
    padding: 2rem;
  }

  .carousel {
    height: 300px;
  }

  .carousel-btn {
    width: 45px;
    height: 45px;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }

  .prev {
    left: 15px;
  }

  .next {
    right: 15px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .form-container {
    padding: 2rem;
  }

  .map-container {
    height: 350px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .footer-logo img {
    height: 25px;
  }

  .container {
    padding: 0 1.5rem;
  }

  input, select, textarea {
    padding: 1rem;
    font-size: 1rem;
  }

  .btn-submit {
    padding: 1.2rem 2rem;
    font-size: 1rem;
  }

  header {
    padding: 1rem 0;
  }
}

/* Smartphones (480px e abaixo) */
@media (max-width: 480px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
    max-width: 100%;
  }

  .nav-container {
    padding: 0 1rem;
    width: 100%;
    overflow-x: hidden;
  }

  .logo img {
    height: 50px;
  }

  .btn-cta {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  /* garantir que em telas menores o botão móvel dentro do menu fique legível */
  .mobile-only { border-radius: 12px; font-weight: 700; }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-text h1 {
    gap: 0.1rem;
  }

  .hero-text h1 .title-top,
  .hero-text h1 .title-bottom {
    font-size: 1.8rem;
    line-height: 1;
  }

  .hero-text p {
    font-size: 0.95rem;
    margin: 0.8rem 0 1rem;
  }

  .hero {
    min-height: 500px;
    height: 100vh;
  }

  .section {
    padding: 3rem 0;
  }

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

  .service-card {
    padding: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .service-card p {
    font-size: 0.95rem;
  }

  .carousel {
    height: 250px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }

  .contact-grid {
    gap: 2rem;
  }

  .form-container {
    padding: 1.5rem;
  }

  .map-container {
    height: 300px;
  }

  .footer-grid {
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .footer-about {
    font-size: 0.95rem;
  }

  .footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .footer-links a {
    font-size: 0.9rem;
    margin: 0.8rem 0;
    padding-left: 2rem;
  }

  .footer-links a:hover {
    padding-left: 2.5rem;
  }

  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
  }

  .copyright {
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
  }

  input, select, textarea {
    padding: 0.9rem;
    font-size: 16px;
  }

  .btn-submit {
    padding: 1rem 2rem;
    font-size: 0.95rem;
  }

  .success-message {
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
  }

  header {
    padding: 0.8rem 0;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 360px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
    max-width: 100%;
  }

  .hero-text h1 .title-top,
  .hero-text h1 .title-bottom {
    font-size: 1.5rem;
  }

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

  .carousel {
    height: 200px;
  }

  .logo img {
    height: 45px;
  }

  .btn-cta {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}
