body {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.hero-immersive {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 0 15px;
}

.hero-immersive h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #003566;
  animation: typing 3s steps(30, end) forwards, blink-caret 0.75s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #003566;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  0%, 100% { border-color: transparent; }
  50% { border-color: #003566; }
}

.hero-immersive img {
  width: 90px;
  margin-bottom: 20px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.hero-immersive img:hover {
  transform: scale(1.12) rotate(3deg);
  filter: brightness(1.15);
}


section[id] {
  scroll-margin-top: 100px; /* ajuste conforme a altura do seu header */
}



.btn-pixel {
  background: #0070f3;
  color: #fff;
  padding: 12px 28px;
  border: none;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 0 0 4px #003566, 0 0 0 8px #0070f3;
  transition: transform 0.2s ease;
}

.btn-pixel:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 4px #0052b4, 0 0 0 8px #0070f3;
}

.floating-blocks {
  padding: 80px 0;
}

.floating-blocks .card {
  border: none;
  transition: transform 0.3s;
  cursor: pointer;
  background-color: #fff;
  border-radius: 12px;
}

.floating-blocks .card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.floating-blocks .card img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

.floating-nav {
  position: fixed;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-nav a {
  background: #003566;
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  text-align: center;
  transition: background 0.3s;
}

.floating-nav a:hover {
  background: #0055aa;
}

/* Seção de tipos de projetos */
.floating-blocks h2 {
  font-weight: 700;
  color: #003566;
}

.floating-blocks .card {
  border: none;
  border-radius: 12px;
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 30px 20px;
  height: 100%;
  text-align: left;
}

.floating-blocks .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.floating-blocks .card h5 {
  font-weight: 700;
  color: #003566;
  margin-bottom: 10px;
}

.floating-blocks .card h6 {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c757d;
  margin-bottom: 8px;
}

.floating-blocks .card p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.floating-blocks .btn-pixel-fx {
  margin-top: 40px;
}

/* Responsivo */
@media (max-width: 768px) {
  .floating-blocks .card {
    text-align: center;
  }

  .floating-blocks .card h5,
  .floating-blocks .card h6 {
    text-align: center;
  }
}

@media (max-width: 768px) {
 .hero-immersive h1 {
    font-size: 2rem;
    white-space: normal;
    overflow: visible;
    border-right: none;
    animation: none;
  }

  .floating-nav {
    display: none;
  }

  .floating-blocks {
    padding: 40px 20px;
  }

  .floating-blocks .card {
    text-align: center;
  }
}

.btn-pixel-fx {
  position: relative;
  display: inline-block;
  background-color: #003566;
  color: white;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.2s;
  overflow: hidden;
  margin-top: 40px;
}

.btn-pixel-fx:hover {
  background-color: #0057a3;
  transform: translateY(-2px);
}

/* Quadradinhos pixels */
.pixel-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #1e90ff;
  opacity: 0;
  border-radius: 1px;
  pointer-events: none;
}

.btn-pixel-fx:hover .p1 { top: 50%; left: 10%; animation: flyUp 0.5s ease-out forwards; }
.btn-pixel-fx:hover .p2 { top: 50%; left: 30%; animation: flyLeft 0.5s ease-out forwards; }
.btn-pixel-fx:hover .p3 { top: 50%; left: 50%; animation: flyRight 0.5s ease-out forwards; }
.btn-pixel-fx:hover .p4 { top: 50%; right: 10%; animation: flyDown 0.5s ease-out forwards; }

.btn-pixel-fx:hover .p5 { bottom: 20%; left: 15%; animation: flyUpLeft 0.5s ease-out forwards; }
.btn-pixel-fx:hover .p6 { bottom: 30%; right: 20%; animation: flyUpRight 0.5s ease-out forwards; }
.btn-pixel-fx:hover .p7 { top: 40%; right: 25%; animation: flyDownLeft 0.5s ease-out forwards; }
.btn-pixel-fx:hover .p8 { top: 30%; left: 25%; animation: flyDownRight 0.5s ease-out forwards; }

/* Animações */
@keyframes flyUp { 0% {transform: translateY(0);opacity:1;} 100% {transform: translateY(-20px);opacity:0;} }
@keyframes flyDown { 0% {transform: translateY(0);opacity:1;} 100% {transform: translateY(20px);opacity:0;} }
@keyframes flyLeft { 0% {transform: translateX(0);opacity:1;} 100% {transform: translateX(-20px);opacity:0;} }
@keyframes flyRight { 0% {transform: translateX(0);opacity:1;} 100% {transform: translateX(20px);opacity:0;} }

@keyframes flyUpLeft { 0% {opacity:1;} 100% {transform: translate(-15px, -15px);opacity:0;} }
@keyframes flyUpRight { 0% {opacity:1;} 100% {transform: translate(15px, -15px);opacity:0;} }
@keyframes flyDownLeft { 0% {opacity:1;} 100% {transform: translate(-15px, 15px);opacity:0;} }
@keyframes flyDownRight { 0% {opacity:1;} 100% {transform: translate(15px, 15px);opacity:0;} }


#pixel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.pixel-random {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #003566;
  opacity: 0.3;
  border-radius: 1px;
  animation: floatPixel 10s infinite ease-in-out;
}

@keyframes floatPixel {
  0% { transform: translateY(0px); opacity: 0.2; }
  50% { transform: translateY(-10px); opacity: 0.4; }
  100% { transform: translateY(0px); opacity: 0.2; }
}
