/* --- Variáveis Globais e Estilo Base --- */
:root {
  --bg-dark-primary: #0b1120;
  --bg-dark-secondary: #111827;
  --bg-glass: rgba(30, 41, 59, 0.5); /* Cinza ardósia com transparência */
  --text-primary: #e2e8f0; /* Cinza claro */
  --text-secondary: #94a3b8; /* Cinza médio */
  --text-headings: #ffffff;
  --gradient-start: #38bdf8; /* Azul céu */
  --gradient-end: #34d399; /* Verde esmeralda */
  --accent-gold: #fbbf24; /* Dourado */

  --font-heading: "Poppins", sans-serif;
  --font-body: "Roboto", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.7;
  background-color: var(--bg-dark-primary);
  background-image: linear-gradient(
    180deg,
    var(--bg-dark-primary) 0%,
    #080c16 100%
  );
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-headings);
}

.gradient-text {
  background: linear-gradient(
    90deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Animação de Scroll --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Cabeçalho --- */
header {
  background: rgba(11, 17, 32, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-headings);
  background: linear-gradient(
    90deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.logo span {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
}

.logo img {
  width: 120px;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 5px 0;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background-image: linear-gradient(
    90deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  transition: width 0.3s ease-out;
}

nav ul li a:hover {
  color: var(--text-primary);
}
nav ul li a:hover::after {
  width: 100%;
}

.cta-button {
  font-family: var(--font-heading);
  background-image: linear-gradient(
    90deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: var(--bg-dark-primary);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

/* --- Seção Hero --- */
.hero {
  text-align: center;
  background-color: var(--bg-dark-secondary);
  background-image: url("./assets/fundo2.png");
  background-size: cover;
  position: relative;
  padding: 120px 0;
}

.hero::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark-secondary);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.8;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

.hero-button {
  padding: 15px 35px;
  font-size: 1.1rem;
}

/* --- Seção Sobre --- */

#sobre {
  scroll-margin-top: 50px;
}

.about {
  padding: 100px 0;
}

.about .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-content {
  flex: 1.5;
}

.about-content h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.about-content h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.about-image::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  opacity: 0.5;
  filter: blur(20px);
  border-radius: 12px;
  z-index: 1;
}

/* --- Seção Especialidades (Cards com Brilho Sutil) --- */
.specialties {
  padding: 100px 0;
  background-color: var(--bg-dark-secondary);
  scroll-margin-top: 50px;
}

.specialties h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: border-color 0.4s ease;
}

.card:hover {
  border-color: var(--gradient-start);
}

.card-content {
  text-align: center;
  position: relative;
  z-index: 2; /* Garante que o conteúdo fique acima do brilho */
}

/* O wrapper do ícone agora é um brilho de fundo */
.icon-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(56, 189, 248, 0.15),
    rgba(17, 24, 39, 0) 70%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.card:hover .icon-wrapper {
  opacity: 1;
}

/* Estilizando o ícone diretamente */
.card-content i {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.4s ease;
}

.card:hover .card-content i {
  transform: scale(1.1);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--text-headings);
}

.card p {
  color: var(--text-secondary);
}

/* --- Seção de Contato --- */
.contact-form-section {
  padding: 100px 0;
  text-align: center;
  scroll-margin-top: 50px;
}

.contact-form-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-form-section p {
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

#contactForm {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 15px;
  background-color: var(--bg-dark-secondary);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: var(--text-secondary);
}

#contactForm input:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: var(--gradient-start);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

#form-message {
  margin-top: 20px;
  font-weight: 500;
  min-height: 22px;
}

/* --- Rodapé --- */
footer {
  background: var(--bg-dark-secondary);
  padding-top: 50px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.logo-footer img {
  width: 180px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
  flex-wrap: wrap;
}

.footer-content h3 {
  margin-bottom: 1rem;
  color: var(--text-headings);
  font-size: 1.2rem;
}

.footer-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social a {
  color: var(--text-secondary);
  font-size: 1.5rem;
  margin-right: 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: var(--gradient-start);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.dev {
  background: linear-gradient(
    90deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Design Responsivo --- */
@media (max-width: 992px) {
  .about .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  } /* Simplificação para mobile, idealmente seria um menu hamburguer */

  header .container {
    justify-content: space-between;
  }

  header .cta-button {
    font-size: 0.9rem;
    padding: 10px 18px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-content > div {
    margin-bottom: 20px;
  }

  .footer-content p {
    justify-content: center;
  }
}
