/* Consolidated styles.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
  /* Paleta de cores refinada para "Dark Premium" */
  --primary-color: #0d253f;
  --secondary-color: #01b4e4;
  --accent-color: #fca311;
  --text-color: #e0e6ed;
  /* Texto mais claro para melhor contraste */
  --heading-color: #ffffff;
  --background-color: #020c1b;
  /* Fundo quase preto, mais profundo */
  --card-background: rgba(14, 42, 74, 0.6);
  /* Base para glassmorphism */

  --font-main: 'Poppins', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Garante que os links de âncora parem abaixo do navbar */
}

body {
  font-family: var(--font-main);
  background-color: var(--background-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  /* padding-top removido para permitir que o Header ocupe o topo (imersivo) */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(1, 180, 228, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(252, 163, 17, 0.05) 0%, transparent 20%);
  background-attachment: fixed;
}

h1,
h2,
h3 {
  color: var(--heading-color);
  font-weight: 600;
}

.section-container {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 4px;
  background-color: var(--secondary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* App.css Content */
#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

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

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

/* Navbar.css */
.navbar {
  background: rgba(4, 21, 40, 0.8);
  backdrop-filter: blur(10px);
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  border-bottom: 1px solid rgba(1, 180, 228, 0.2);
}

.navbar-logo.logo-text {
  font-size: 1.8em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;

  /* Gradiente moderno usando as cores do tema */
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-logo.logo-text:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.navbar-logo img {
  display: none;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  text-align: center;
}

.nav-item {
  height: 80px;
  display: flex;
  align-items: center;
}

.nav-link {
  color: var(--heading-color);
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0 1rem;
  height: 100%;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.3s ease-out;
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-contact-button {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-left: 1.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.nav-contact-button:hover {
  background: var(--secondary-color);
  color: #fff;
  box-shadow: 0 0 20px rgba(1, 180, 228, 0.5);
  transform: translateY(-2px);
  border-color: var(--secondary-color);
}

/* Header.css */
.header-container {
  position: relative;
  /* Occupy full viewport height for immersive feel */
  min-height: 100vh;
  /* background image updated to new generated tech asset */
  background: url('tech-network-bg.png') no-repeat center center/cover;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  margin-top: 0;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Reduced opacity to let the background shine through while maintaining contrast */
  background: linear-gradient(135deg,
      rgba(2, 12, 27, 0.85) 0%,
      rgba(13, 37, 63, 0.75) 100%);
}

.header-content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
}

.header-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  background: linear-gradient(to right, #ffffff, #b0c4de);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInDown 1s ease-out;
}

@media (max-width: 768px) {
  .header-title {
    font-size: 2.5rem;
  }
}

.header-subtitle {
  font-size: 1.25rem;
  max-width: 750px;
  margin: 0 auto 3rem auto;
  font-weight: 300;
  color: var(--text-color);
  line-height: 1.6;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.3s;
  animation-fill-mode: backwards;
}

.cta-button {
  background: linear-gradient(90deg, var(--secondary-color), #00d4ff);
  color: #fff;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 30px rgba(1, 180, 228, 0.3);
  transition: all 0.3s ease;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(1, 180, 228, 0.5);
  filter: brightness(1.1);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Services.css */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 60px;
}

.service-card {
  flex: 1 1 300px;
  /* Cresce, encolhe, base de 300px */
  max-width: 450px;
  /* Limita a largura para não ficar gigante em telas largas */
  background: var(--card-background);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Borda sutil */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  /* Realce no topo */
  padding: 40px 30px;
  border-radius: 20px;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(14, 42, 74, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  margin-bottom: 25px;
  color: var(--secondary-color);
  background: rgba(1, 180, 228, 0.1);
  /* Fundo suave no ícone */
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--secondary-color);
  color: #fff;
  transform: rotate(5deg);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--heading-color);
  font-weight: 700;
}

.service-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-color);
  opacity: 0.9;
}

/* Portfolio.css */
.portfolio-section {
  /* Fundo sutilmente diferente para separar seções */
  background: linear-gradient(180deg, transparent, rgba(13, 37, 63, 0.3));
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
  text-align: left;
}

.portfolio-card {
  background-color: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  border-left: 5px solid var(--accent-color);
  /* Atualizado */
}

.portfolio-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
  /* Atualizado */
}

.portfolio-challenge,
.portfolio-solution {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.portfolio-challenge strong,
.portfolio-solution strong {
  color: var(--heading-color);
}

.process-card {
  background: var(--card-background);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 35px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
}

.process-card:hover {
  transform: translateY(-5px);
  background: rgba(14, 42, 74, 0.8);
  border-color: var(--secondary-color);
}

.process-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-weight: 700;
}

.process-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.85;
}

.product-callout {
  margin-top: 80px;
  padding: 50px;
  background: linear-gradient(135deg, rgba(1, 180, 228, 0.1), rgba(252, 163, 17, 0.05));
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.callout-title {
  font-size: 2rem;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.callout-text {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.7;
}

.cta-secondary-button {
  display: inline-block;
  padding: 15px 30px;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-secondary-button:hover {
  background: var(--secondary-color);
  color: #fff;
  box-shadow: 0 5px 15px rgba(1, 180, 228, 0.4);
}

/* About.css */
.about-section {
  padding-bottom: 60px;
  position: relative;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-top: 40px;
  color: var(--text-color);
  font-weight: 300;
  opacity: 0.95;
}

.about-text strong {
  color: var(--secondary-color);
  font-weight: 60;
}

/* Contact.css */
.contact-section {
  padding-top: 60px;
  padding-bottom: 100px;
  text-align: center;
}

.contact-subtitle {
  margin-bottom: 50px;
  font-size: 1.4rem;
  color: var(--text-color);
  line-height: 1.6;
  font-weight: 300;
}

.submit-button {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 18px 36px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.submit-button:hover {
  background-color: var(--heading-color);
  transform: scale(1.05);
}

.footer {
  text-align: center;
  padding: 40px 20px;
  background: rgba(2, 12, 27, 0.8);
  backdrop-filter: blur(10px);
  color: var(--text-color);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
  opacity: 0.6;
  letter-spacing: 0.5px;
}
