:root {
  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #0f172a;
  --primary: #3b82f6;
  --primary-dark: #1e40af;
  --secondary: #1e293b;
  --accent: #60a5fa;
  --text-light: #e2e8f0;
  --text-dark: #1e293b;
  --border: #cbd5e1;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #1e293b;
    background-color: #f8fafc;
  }
}

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

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

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

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  padding: 2.5rem 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: padding 0.3s ease;
}

header.scrolled {
  padding: 0.75rem 2rem;
}

header h1 {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
  opacity: 1;
  max-height: 180px;
  overflow: hidden;
  transition:
    opacity 0.25s ease,
    max-height 0.3s ease,
    margin 0.3s ease,
    transform 0.3s ease;
  animation: slideInDown 0.6s ease-out;
}

header.scrolled .header-brand {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.logo {
  width: 140px;
  height: 140px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(96, 165, 250, 0.3));
  padding: 5px;
  background: white;
  border-radius: 50%;
  object-fit: contain;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 0;
}

nav li {
  position: relative;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease;
}

nav a:hover {
  opacity: 1;
}

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

main {
  flex: 1;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

section {
  margin: 3rem 0;
  padding: 2.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

section:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(30, 64, 175, 0.05) 100%
  );
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 280px;
  animation: fadeInLeft 0.8s ease-out;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-image {
  flex: 1;
  min-width: 280px;
  animation: fadeInRight 0.8s ease-out;
}

.image-placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(96, 165, 250, 0.1)
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  border: 2px solid rgba(59, 130, 246, 0.3);
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  padding: 14px 35px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.cta-button:active {
  transform: translateY(0);
}

section h2 {
  margin-top: 0;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

section h3 {
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 600;
}

.section-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.section-image {
  flex: 1;
  min-width: 250px;
  animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.section-text {
  flex: 1;
  min-width: 280px;
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

.section-text h2 {
  margin-top: 0;
}

.section-text p {
  line-height: 1.8;
}

.pilar {
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(59, 130, 246, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pilar:hover {
  background: rgba(59, 130, 246, 0.12);
  transform: translateX(5px);
}

.pilar h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.pilar p {
  margin: 0;
  line-height: 1.8;
}

.pilar ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style: none;
}

.pilar li {
  margin: 0.75rem 0;
  line-height: 1.7;
  padding-left: 1rem;
  position: relative;
}

.pilar li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.servicos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.servico-item {
  padding: 2rem;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out both;
}

.servico-item:nth-child(1) {
  animation-delay: 0.1s;
}

.servico-item:nth-child(2) {
  animation-delay: 0.2s;
}

.servico-item:nth-child(3) {
  animation-delay: 0.3s;
}

.servico-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.servico-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.servico-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.12);
}

.servico-item h3 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.servico-item p {
  margin: 0;
  opacity: 0.9;
}

.servicos-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.servicos-list li {
  padding: 1rem 1.5rem;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 8px;
  position: relative;
  line-height: 1.6;
  transition: all 0.3s ease;
  border-left: 3px solid var(--primary);
  animation: slideInDown 0.5s ease-out both;
}

.servicos-list li:nth-child(1) {
  animation-delay: 0.1s;
}
.servicos-list li:nth-child(2) {
  animation-delay: 0.2s;
}
.servicos-list li:nth-child(3) {
  animation-delay: 0.3s;
}
.servicos-list li:nth-child(4) {
  animation-delay: 0.4s;
}
.servicos-list li:nth-child(5) {
  animation-delay: 0.5s;
}
.servicos-list li:nth-child(6) {
  animation-delay: 0.6s;
}
.servicos-list li:nth-child(7) {
  animation-delay: 0.7s;
}
.servicos-list li:nth-child(8) {
  animation-delay: 0.8s;
}

.servicos-list li:hover {
  background: rgba(59, 130, 246, 0.12);
  transform: translateX(5px);
}

.servicos-list li::before {
  content: "✓";
  position: absolute;
  left: 8px;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
}

.contato-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.contato-item {
  padding: 2rem;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out both;
}

.contato-item:nth-child(1) {
  animation-delay: 0.1s;
}

.contato-item:nth-child(2) {
  animation-delay: 0.2s;
}

.contato-item:nth-child(3) {
  animation-delay: 0.3s;
}

.contato-item:nth-child(4) {
  animation-delay: 0.4s;
}

.contato-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.contato-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.12);
}

.contato-item h3 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.contato-item p {
  margin: 0.75rem 0;
  line-height: 1.8;
}

.contato-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.contato-item a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.contato-item a:hover {
  opacity: 0.8;
}

.contato-item a:hover::after {
  width: 100%;
}

footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

footer p {
  margin: 0;
}

.scroll-animate {
  opacity: 0;
  animation: none;
}

.scroll-animate.in-view {
  animation: fadeInUp 0.6s ease-out forwards;
}

nav a.active {
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
  padding-bottom: 0.3rem;
}

@media (max-width: 768px) {
  header {
    padding: 1.5rem 1rem;
  }

  .header-brand {
    gap: 0;
    margin-bottom: 1rem;
  }

  .logo {
    width: 100px;
    height: 100px;
    padding: 4px;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  main {
    padding: 1.5rem 1rem;
  }

  section {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .hero {
    padding: 3rem 1rem;
  }

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

  .hero-content,
  .section-content {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-text,
  .hero-image,
  .section-image,
  .section-text {
    min-width: 100%;
  }

  .image-placeholder {
    max-width: 300px;
    font-size: 4rem;
  }

  .servicos-container,
  .contato-container,
  .servicos-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
