/* =====================================================
   VARIÁVEIS — LIGHT MODE
===================================================== */
:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #0f172a;

  --text-main: #1e293b;
  --text-muted: #475569;
  --text-title: #0f172a;

  --primary: #0284c7;
  --primary-light: #38bdf8;

  --border: #cbd5e1;
}

/* =====================================================
   RESET + BASE
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Segoe UI', sans-serif;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  display: flex;
}

/* =====================================================
   TIPOGRAFIA
===================================================== */
/* =====================================================
   TIPOGRAFIA
===================================================== */
h1 { font-size: 56px; color: var(--text-title); line-height: 1.2; }
h2 { font-size: 28px; margin-bottom: 20px; color: var(--text-title); }
h3 { font-size: 32px; color: var(--primary); margin-bottom: 20px; }
h4 { font-size: 18px; margin-bottom: 8px; color: var(--text-title); }

p { 
  color: var(--text-muted); 
  line-height: 1.9; 
  font-size: 18px; 
  margin-bottom: 16px; 
  text-align: justify;
}

h1 #typing{
  font-size: 70px;
  font-weight: 700;
  color: #1e293b;
}
.destaque-profissao{
  font-weight: 700;
  color: #0284c7; /* azul mais suave */
  text-align: left;
  font-size: 19px;
}
/* =====================================================
   LAYOUT PRINCIPAL
===================================================== */
.content {
  margin-left: 220px;
  width: calc(100% - 220px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.section {
  padding: 100px 60px;
  flex-shrink: 0;
}

/* Última seção tem padding extra para separar footer */
.contato-section {
  position: relative;
  padding-bottom: 60px; /* espaço extra entre botão CV e footer */
}

/* =====================================================
   SIDEBAR
===================================================== */
.sidebar {
  width: 220px;
  height: 100vh;
  background: var(--bg-sidebar);
  position: fixed;
  top: 0;
  left: 0;
  padding: 30px 20px;
}

.logo {
  color: var(--primary-light);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar a {
  color: #cbd5e1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  transition: 0.3s;
}

.sidebar a:hover { color: var(--primary-light); }

/* =====================================================
   HOME + SOBRE
===================================================== */
.home-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.home-text { max-width: 600px; }
.home-text p { max-width: 520px; margin-bottom: 18px; }

.social-links {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}

.social-links a {
  width: 44px;
  height: 44px;
  background: var(--bg-sidebar);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: 0.3s;
  text-decoration: none;
}

.social-links a:hover { background: var(--primary); transform: translateY(-3px); }

.home-photo img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--primary-light);
  box-shadow: 0 12px 35px rgba(0,0,0,0.35);
}

/* =====================================================
   PROJETOS
===================================================== */
.cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap:30px;
}

.card{
  background: var(--bg-card);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
  transition:0.3s;
}

.card:hover{
  transform: translateY(-8px);
  box-shadow:0 20px 35px rgba(0,0,0,0.25);
}

.card-img img{
  width:100%;
  display:block;
}

.card-content{
  padding:20px;
}

.card-content h4{
  margin-bottom:10px;
}

.card-content p{
  font-size:14px;
  margin-bottom:15px;
}

.btn-projeto{
  display:inline-block;
  padding:10px 16px;
  background:var(--primary);
  color:#fff;
  border-radius:6px;
  text-decoration:none;
  font-size:14px;
  transition:0.3s;
}

.btn-projeto:hover{
  opacity:0.85;
}
/* =====================================================
   CONTATO
===================================================== */
.contato-section h2 {
  text-align: center;
  margin-bottom: 40px;
}


.contato-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.pdf-preview {
  border: none;
  height: auto;
  margin-bottom: 20px;
}

.pdf-preview iframe { width: 100%; height: 100%; border: none; }

.btn-cv {
  display: inline-flex;
  gap: 10px;
  padding: 14px 22px;
  background: var(--bg-sidebar);
  color: #ffffff;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
  margin-bottom: 40px; /* espaço extra antes do footer */
  position: relative;   /* garante que fique acima do footer */
  z-index: 2;           /* acima do footer */
}

.btn-cv:hover { background: var(--primary); }

.contact-form {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: -15px; 
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 15px;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form button {
  padding: 15px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 10px;
  border: none;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199,0.35);
}

/* =====================================================
   FOOTER (última seção)
===================================================== */
.contato-section .site-footer {
  position: absolute;    /* Fica dentro da seção */
  bottom: 0;             /* Gruda no final da seção */
  left: 0;
  width: 100%;           /* Ocupa toda a largura */
  height: 60px;          /* Altura do footer */
  background: var(--bg-sidebar);
  z-index: 1;            /* Atrás do menu lateral */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
}

/* Texto centralizado */
.contato-section .site-footer p {
  margin: 0;
  line-height: 1;
  padding: 0;
}

/* Ícones abaixo do texto, pequenos e centralizados */
.footer-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.footer-icons a img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s;
}

.footer-icons a img:hover {
  transform: translateY(-1px);
}

/* =====================================================
   WHATSAPP FIXO
===================================================== */
.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 3;          /* acima de tudo, inclusive footer */
  background: #25d366;
  color: #ffffff;
  font-size: 26px;
  padding: 15px;
  border-radius: 50%;
}

/* =====================================================
   RESPONSIVO — MOBILE
===================================================== */
@media (max-width: 900px) {
  body { flex-direction: column; }

  .sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    padding: 15px 20px;
    z-index: 10;
  }

  .sidebar nav {
    flex-direction: row;
    justify-content: center;
    gap: 25px;
  }

  .content {
    margin-left: 0;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .section {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .home-content {
    flex-direction: column;
    gap: 25px;
    align-items: center;
    text-align: center;
  }

  .home-text { max-width: 100%; }
  .home-text p { max-width: 100%; }
  .home-text h1, .home-text h3 { text-align: center; }

  .home-photo img {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .social-links { justify-content: center; }

  .cards { justify-content: center; }
  .card {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .contato-wrapper {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 20px;
    justify-items: center;
  }

  .contact-form { max-width: 100%; width: 100%; }

  .contato-section .site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--bg-sidebar);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
  }

  .footer-icons a img {
    width: 20px;
    height: 20px;
  }

  .whatsapp {
    right: 15px;
    bottom: 60px;
    z-index: 3; /* mantém sobre o footer */
  }
}
.download-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 16px 30px;
  margin-top: 10px;

  background: var(--bg-sidebar);
  color: #ffffff;

  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;

  transition: all 0.3s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.download-cv-btn:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

.download-cv-btn i {
  font-size: 18px;
}