/* --- Design System & Estilos Globais --- */

:root {
  /* Cores Modernas (HSL) */
  --primary: 255, 87%, 66%; /* #6D5DF6 */
  --primary-dark: 255, 80%, 55%;
  --secondary: 221, 84%, 65%; /* #5A8DEE */
  --secondary-dark: 221, 75%, 55%;
  --accent: 340, 95%, 68%; /* Rosa suave de destaque */
  
  --bg-primary: 230, 60%, 98%; /* #F8F9FD */
  --bg-secondary: 0, 0%, 100%;
  --bg-card: 0, 0%, 100%;
  --border-color: 230, 20%, 93%;
  
  --text-main: 210, 30%, 24%; /* #2C3E50 */
  --text-muted: 210, 15%, 48%; /* #6C7A89 */
  --text-white: 0, 0%, 100%;

  /* Fontes */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transições e Sombras */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(109, 93, 246, 0.08), 0 4px 6px -2px rgba(109, 93, 246, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(109, 93, 246, 0.12), 0 10px 10px -5px rgba(109, 93, 246, 0.04);
  
  --border-radius: 16px;
}

/* Reset CSS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: hsl(var(--bg-primary));
  color: hsl(var(--text-main));
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: hsl(var(--text-main));
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Botões Premium --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--text-white));
}

.btn-primary:hover {
  background-color: hsl(var(--primary-dark));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: hsl(var(--primary));
  border: 2px solid hsl(var(--primary));
}

.btn-secondary:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--text-white));
  transform: translateY(-2px);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(248, 249, 253, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--border-color), 0.5);
  transition: var(--transition);
}

.header.scrolled {
  background-color: hsl(var(--bg-secondary));
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  font-weight: 500;
  color: hsl(var(--text-muted));
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: hsl(var(--primary));
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: hsl(var(--primary));
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* --- Hero Section --- */
.hero {
  padding: 160px 0 100px;
  background: radial-gradient(circle at 80% 20%, rgba(109, 93, 246, 0.05), transparent 40%),
              radial-gradient(circle at 10% 80%, rgba(90, 141, 238, 0.05), transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: hsl(var(--text-main));
}

.hero-content h1 span {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: hsl(var(--text-muted));
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-features {
  display: flex;
  gap: 24px;
}

.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--text-muted));
}

.hero-feat-item svg {
  color: hsl(var(--primary));
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* --- Seções Genéricas --- */
.section {
  padding: 100px 0;
}

.section-alt {
  background-color: hsl(var(--bg-secondary));
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.section-header p {
  color: hsl(var(--text-muted));
}

/* --- Sobre Mim --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-info h3 {
  font-size: 1.75rem;
  margin-bottom: 8px; /* Margem reduzida para aproximar o CRF */
}

.crf-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(var(--primary));
  background-color: rgba(109, 93, 246, 0.08);
  border: 1px solid rgba(109, 93, 246, 0.15);
  padding: 4px 14px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px; /* Margem para empurrar a caixa destacada */
}

.about-info p {
  color: hsl(var(--text-muted));
  margin-bottom: 20px;
}

.highlight-box {
  background-color: rgba(109, 93, 246, 0.05);
  border-left: 4px solid hsl(var(--primary));
  padding: 16px 20px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-bottom: 24px;
}

.highlight-box p {
  margin: 0;
  font-style: italic;
  color: hsl(var(--text-main));
  font-weight: 500;
}

/* --- Áreas de Atuação --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  background-color: hsl(var(--bg-card));
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid hsl(var(--border-color));
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(109, 93, 246, 0.2);
}

.service-icon-box {
  width: 64px;
  height: 64px;
  background-color: rgba(109, 93, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-card p {
  color: hsl(var(--text-muted));
  margin-bottom: 24px;
}

.service-list {
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: hsl(var(--text-main));
  font-size: 0.95rem;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: hsl(var(--primary));
  font-weight: bold;
}

/* --- Habilidades e Diferenciais --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.skill-card {
  background-color: hsl(var(--bg-card));
  padding: 24px;
  border-radius: var(--border-radius);
  border: 1px solid hsl(var(--border-color));
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.skill-card:hover {
  border-color: hsl(var(--primary));
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.skill-card p {
  font-weight: 600;
  font-family: var(--font-title);
  color: hsl(var(--text-main));
}

/* --- Certificações --- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.cert-card {
  background-color: hsl(var(--bg-card));
  padding: 30px;
  border-radius: var(--border-radius);
  border-top: 4px solid hsl(var(--primary));
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cert-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.cert-card .institution {
  color: hsl(var(--primary));
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.cert-card .hours {
  display: inline-block;
  padding: 4px 10px;
  background-color: rgba(109, 93, 246, 0.08);
  color: hsl(var(--primary));
  font-size: 0.8rem;
  border-radius: 50px;
  font-weight: 500;
}

/* --- Contato --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  background-color: rgba(109, 93, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-item p, .contact-item a {
  color: hsl(var(--text-muted));
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: hsl(var(--primary));
}

.contact-form {
  background-color: hsl(var(--bg-card));
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid hsl(var(--border-color));
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid hsl(var(--border-color));
  border-radius: 8px;
  background-color: hsl(var(--bg-primary));
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  color: hsl(var(--text-main));
}

.form-control:focus {
  outline: none;
  border-color: hsl(var(--primary));
  background-color: hsl(var(--bg-secondary));
  box-shadow: 0 0 0 4px rgba(109, 93, 246, 0.1);
}

/* --- Footer --- */
.footer {
  background-color: hsl(var(--text-main));
  color: hsl(var(--bg-primary));
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: hsl(var(--text-white));
  margin-bottom: 16px;
}

.footer-brand p {
  color: #a0aec0;
  max-width: 300px;
}

.footer-links h4 {
  color: hsl(var(--text-white));
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul a {
  color: #a0aec0;
}

.footer-links ul a:hover {
  color: hsl(var(--text-white));
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #4a5568;
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: #a0aec0;
}

/* --- Animações Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsividade --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  
  .hero-ctas, .hero-features {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: hsl(var(--bg-secondary));
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
}
