@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg-primary: #1a0520;
  --bg-secondary: #2d1040;
  --bg-card: #3d1860;
  --accent-primary: #b83b95;
  --accent-secondary: #d16bb4;
  --accent-gradient: linear-gradient(135deg, #8b1874 0%, #b83b95 100%);
  --text-primary: #f5f5f5;
  --text-secondary: #c9a5c5;
  --text-muted: #9a7a96;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom, #1a0520 0%, #0f0318 30%, #000000 70%);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Hero Section - Roxo Vinho */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #6b1657 0%, #8b1874 50%, #b83b95 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(139,24,116,0.25) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(0px);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(139,24,116,0.3);
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #d9c5d6;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.1rem;
  color: #c9a5c5;
  margin-bottom: 35px;
  font-family: 'JetBrains Mono', monospace;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 35px;
  background: var(--accent-gradient);
  color: #ffffff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(139,24,116,0.4);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(139,24,116,0.6);
}

/* Botão secundário coerente com o tema */
.btn.btn-secondary{
  background: transparent;
  border: 1px solid rgba(184,59,149,0.45);
  color: var(--text-primary);
}
.btn.btn-secondary:hover{
  background: rgba(184,59,149,0.08);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139,24,116,0.35);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-indicator a {
  color: #c9a5c5;
  font-size: 2rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
}

section {
  margin: 100px 0;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #b83b95;
  text-shadow: 0 0 20px rgba(184,59,149,0.2);
}

.section-description {
  text-align: center;
  color: #c9a5c5;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* About Section */
.about-section {
  background: rgba(0, 0, 0, 0.3);
  padding: 60px 20px;
  border-radius: 20px;
}

.about-content p {
  font-size: 1.15rem;
  color: #c9a5c5;
  max-width: 800px;
  margin: 0 auto 25px;
  text-align: center;
  line-height: 1.8;
}

.about-content strong {
  color: #b83b95;
  font-weight: 600;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-category {
  background: rgba(107, 22, 87, 0.25);
  padding: 30px;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(139,24,116,0.3);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(139,24,116,0.3);
  background: rgba(107, 22, 87, 0.4);
}

.skill-category h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #b83b95;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills span {
  background: rgba(139, 24, 116, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #f5f5f5;
  transition: all 0.3s ease;
  border: 1px solid rgba(139,24,116,0.3);
}

.skills span:hover {
  background: var(--accent-gradient);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(139,24,116,0.4);
  border-color: transparent;
  color: #ffffff;
}

/* Projects Section */
.projects-section {
  background: rgba(0, 0, 0, 0.5);
  padding: 60px 20px;
  border-radius: 20px;
}

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

.project-card {
  background: rgba(20, 20, 20, 0.8);
  padding: 30px;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(139,24,116,0.2);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(139,24,116,0.3);
  border-color: var(--accent-primary);
  background: rgba(30, 30, 30, 0.9);
}

.project-icon {
  font-size: 2.5rem;
  color: #b83b95;
  margin-bottom: 20px;
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #f5f5f5;
}

.project-card p {
  color: #c9a5c5;
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.project-tags span {
  background: rgba(139, 24, 116, 0.3);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  color: #e9d8e8; /* contraste melhorado */
  transition: all 0.3s ease;
  border: 1px solid rgba(184,59,149,0.35);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b83b95;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: #d16bb4;
  transform: translateX(5px);
}

.project-link i {
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(5px);
}

/* Metric badges (AUC, R², etc.) */
.metrics-badge{
  display:inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(119,240,192,.4);
  background: rgba(119,240,192,.08);
  font-size: 12px;
  margin-right: 6px;
}

/* Learning & Certifications Section */
.learning-section {
  background: rgba(0, 0, 0, 0.6);
  padding: 60px 20px;
  border-radius: 20px;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.learning-item {
  background: rgba(107, 22, 87, 0.2);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(139,24,116,0.25);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.learning-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(139,24,116,0.3);
  background: rgba(107, 22, 87, 0.35);
  border-color: rgba(139,24,116,0.4);
}

.learning-icon {
  font-size: 2.5rem;
  color: #b83b95;
  margin-bottom: 20px;
}

.learning-item h3 {
  font-size: 1.3rem;
  color: #f5f5f5;
  margin-bottom: 20px;
}

.learning-item p {
  color: #c9a5c5;
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.6;
}

.learning-item p strong {
  color: #b83b95;
  font-weight: 600;
}

.book-author {
  font-size: 0.9rem;
  color: #9a7a96;
  font-style: italic;
}

/* Contact Section */
.contact-section {
  background: rgba(0, 0, 0, 0.7);
  padding: 60px 20px;
  border-radius: 20px;
}

.contact-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  background: rgba(20, 20, 20, 0.9);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(139,24,116,0.2);
  min-width: 200px;
  color: var(--text-primary);
}

.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(139,24,116,0.35);
  border-color: var(--accent-primary);
  background: rgba(30, 30, 30, 1);
}

.contact-card i {
  font-size: 3rem;
  color: #b83b95;
  margin-bottom: 15px;
}

.contact-card h3 {
  font-size: 1.3rem;
  color: #f5f5f5;
  margin-bottom: 10px;
}

.contact-card p {
  color: #c9a5c5;
}

/* Footer */
footer {
  background: #000000;
  text-align: center;
  padding: 30px 20px;
  color: #9a7a96;
  font-size: 0.95rem;
  border-top: 1px solid rgba(139,24,116,0.2);
}

.footer-tagline {
  margin-top: 10px;
  font-style: italic;
  color: #9a7a96;
}

/* Acessibilidade: foco visível */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible{
  outline: 2px solid #d16bb4;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Respeitar usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  .scroll-indicator a{ animation: none !important; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero { height: auto; min-height: 100svh; } /* melhora 100vh no mobile */

  .hero h1 { font-size: clamp(2rem, 6vw, 2.5rem); }
  .hero h2 { font-size: 1.2rem; }
  .subtitle { font-size: 1rem; }
  h2 { font-size: 2rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .learning-grid { grid-template-columns: 1fr; }

  section { margin: 60px 0; }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
    max-width: 300px;
  }
}
