/* ===================================================================
   Estilos Globais e Variáveis
   =================================================================== */
:root {
  --primary-color: #e100ff;
  --primary-hover: #b800cc;
  --bg-dark: #0e0e17;
  --bg-light: #171729;
  --text-color: #f5f5f5;
  --text-muted: #b3b3c6;
  --border-color: #2a2a3d;
  --gradient-primary: linear-gradient(135deg, #e100ff, #7f00ff);
  --animation-duration: 0.5s;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-hover); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===================================================================
   Animações
   =================================================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 50% { opacity: 0; } }

.page-container { animation: fadeIn var(--animation-duration) ease-out forwards; }
.page-container.exiting { animation: fadeOut 0.3s ease-in forwards; }

.fade-in-up {
  animation: fadeInUp var(--animation-duration) ease-out forwards;
  opacity: 0;
}

/* ===================================================================
   Layout Principal
   =================================================================== */
.page { display: flex; min-height: 100vh; }
.site-header {
  width: 250px;
  background-color: var(--bg-light);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-color);
  position: fixed;
  height: 100%;
  z-index: 10;
}
.site-main {
  flex-grow: 1;
  padding: 40px;
  margin-left: 250px;
}
.section-inner {
  background-color: var(--bg-light);
  padding: 35px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ===================================================================
   Header / Navegação
   =================================================================== */
.site-title { font-size: 24px; font-weight: 600; text-align: center; margin-bottom: 50px; letter-spacing: 1px; }
.site-title span { color: var(--primary-color); }
.site-main-menu { list-style: none; padding: 0; margin: 0; }
.site-main-menu li a {
  display: block;
  padding: 15px 20px;
  color: var(--text-color);
  font-size: 17px;
  border-radius: 5px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}
.site-main-menu li a:hover, .site-main-menu li a.active {
  background-color: var(--primary-color);
  color: #fff;
}

/* ===================================================================
   Estrutura de Conteúdo (Grid, Blocos, etc.)
   =================================================================== */
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col { padding: 0 15px; margin-bottom: 30px; }
.col-half { flex: 0 0 50%; max-width: 50%; }
.col-full { flex: 0 0 100%; max-width: 100%; }
.block-title h3 {
  font-size: 22px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.block-title h3 span { color: var(--primary-color); }

/* ===================================================================
   Página Inicial 
   =================================================================== */
.photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 25px rgba(225, 0, 255, 0.25);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.photo:hover {
  box-shadow: 0 0 40px rgba(225, 0, 255, 0.5);
  transform: scale(1.05);
}
.photo img {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  border-radius: 50%; 
}

.title-block h1 { font-size: 42px; margin: 0 0 10px; font-weight: 700; }
.sp-subtitle { font-size: 22px; color: var(--text-muted); min-height: 30px; }
.sp-subtitle::after {
  content: '|';
  display: inline-block;
  animation: blink 1s infinite;
  margin-left: 2px;
  color: var(--primary-color);
}
.about-me p { line-height: 1.8; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 10px;
  box-shadow: 0 0 12px rgba(225, 0, 255, 0.3);
}
.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 20px rgba(225, 0, 255, 0.5);
}
/* ===================================================================
   Página Currículo
   =================================================================== */
.page-header h2 { font-size: 36px; color: var(--primary-color); margin-top: 0; }
.timeline { position: relative; }
.timeline-item {
  padding-left: 30px;
  border-left: 2px solid var(--border-color);
  margin-bottom: 30px;
  position: relative;
  transition: border-color 0.3s ease;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 2px solid var(--bg-light);
  transition: transform 0.3s ease;
}
.timeline-item:hover { border-left-color: var(--primary-color); }
.timeline-item:hover::before { transform: scale(1.2); }
.item-title { font-size: 18px; margin: 0; font-weight: 600; }
.item-period { color: var(--text-muted); font-size: 14px; margin: 4px 0; display: inline-block; }
.item-small { display: block; font-style: italic; margin-bottom: 10px; }
.item-description { margin: 10px 0; line-height: 1.7; }
.course-image { margin-top: 10px; border-radius: 5px; border: 1px solid var(--border-color); max-width: 250px; opacity: 0.8; transition: opacity 0.3s ease; }
.timeline-item:hover .course-image { opacity: 1; }

.skills-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skills-tags span {
  background-color: var(--border-color);
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s;
}
.skills-tags span:hover {
  transform: translateY(-3px);
  background-color: var(--primary-color);
  color: #fff;
}
.skills-info p { margin: 8px 0; }

.soft-skill-card h4 { margin-top: 0; font-weight: 600; }
.soft-skill-card p { line-height: 1.7; color: var(--text-muted); }

/* ===================================================================
   Responsividade
   =================================================================== */
@media (max-width: 992px) {
  .page { flex-direction: column; }
  .site-header { position: static; width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border-color); }
  .site-main { margin-left: 0; }
}
@media (max-width: 768px) {
  .col-half { flex: 0 0 100%; max-width: 100%; }
  .title-block h1 { font-size: 36px; }
  .site-main { padding: 20px; }
  .section-inner { padding: 25px; }
  .photo {
    width: 150px;
    height: 150px;
  }
}