* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #0ea5e9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --gradient-main: linear-gradient(
    135deg,
    #1e40af 0%,
    #2563eb 50%,
    #0ea5e9 100%
  );

  --gradient-main-new: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 50%,
    #0f4c75 100%
);
  --gradient-card: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--gradient-main-new);
  color: var(--bg-secondary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
/* Animated background particles */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes float {
  0%   { transform: translateY(0); opacity: 0.8; }
  50%  { transform: translateY(-10px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.8; }
}
/* Header with navigation */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a:hover {
  color: var(--primary-color);
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
/* Social links em destaque no header */
.header-social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.header-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}
.header-social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}
.header-social-link:hover::before {
  left: 100%;
}
.header-social-link:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #1e40af 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-heavy);
}
.header-social-link[title="LinkedIn"] {
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}
.header-social-link[title="GitHub"] {
  background: linear-gradient(135deg, #333 0%, #000 100%);
}
.header-social-link[title="LinkedIn"]:hover {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}
.header-social-link[title="GitHub"]:hover {
  background: linear-gradient(135deg, #444 0%, #111 100%);
}
/* Main content */
.main-content {
  margin-top: 100px;
  padding: 2rem;
}
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 80vh;
}
.hero-content {
  animation: slideInLeft 1s ease-out;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}
.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s forwards;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.9s forwards;
}
.btn {
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: var(--shadow-medium);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
  background: white;
  transform: translateY(-2px);
}
.hero-image {
  position: relative;
  animation: slideInRight 1s ease-out;
}
.profile-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: var(--shadow-heavy);
  position: relative;
  overflow: hidden;
}
.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-main);
}
.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.profile-pic-placeholder {
  font-size: 4rem;
  color: white;
  display: none;
}
/* Social links destacados no perfil */
.profile-social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
}
.profile-social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  border-radius: 1rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}
.profile-social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}
.profile-social-link:hover::before {
  left: 100%;
}
.profile-social-link.linkedin {
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}
.profile-social-link.github {
  background: linear-gradient(135deg, #333 0%, #000 100%);
}
.profile-social-link:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-heavy);
}
.profile-social-link.linkedin:hover {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}
.profile-social-link.github:hover {
  background: linear-gradient(135deg, #444 0%, #111 100%);
}
.social-icon {
  font-size: 1.2rem;
}
/* Skills section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.skill-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}
.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.skill-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.skill-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
/* Experience section */
.experience-section {
  max-width: 1000px;
  margin: 6rem auto 4rem;
  padding: 0 2rem;
}
.container {
  width: 100%;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: white;
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-main);
  border-radius: 2px;
}
.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 80px;
}
.timeline-marker {
  position: absolute;
  left: 18px;
  top: 8px;
  width: 24px;
  height: 24px;
  background: var(--gradient-main);
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-medium);
  z-index: 2;
}
.timeline-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
}
.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}
.timeline-content::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 20px;
  border: 12px solid transparent;
  border-right-color: rgba(255, 255, 255, 0.95);
}
.timeline-header {
  margin-bottom: 1rem;
}
.job-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.company {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}
.period {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: rgba(37, 99, 235, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  display: inline-block;
  font-weight: 500;
}
.job-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tech-tag {
  background: var(--gradient-main);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 1rem;
  white-space: nowrap;
}
/* Education section */
.education-section {
  max-width: 1200px;
  margin: 6rem auto 4rem;
  padding: 0 2rem;
}
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.education-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}
.education-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-main);
}
.education-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}
.education-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}
.education-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.education-institution {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.education-period {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: rgba(37, 99, 235, 0.1);
  padding: 0.375rem 1rem;
  border-radius: 1rem;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 500;
}
.education-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.quote-section {
  margin: 4rem auto;
  max-width: 800px;
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.quote-text {
  font-size: 1.25rem;
  font-style: italic;
  color: white;
  margin-bottom: 1rem;
  position: relative;
}
.quote-text::before,
.quote-text::after {
  content: '"';
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
  position: absolute;
  top: -10px;
}
.quote-text::before {
  left: -20px;
}
.quote-text::after {
  right: -20px;
}
/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}
/* File upload section */
.photo-upload {
  margin-bottom: 1rem;
  text-align: center;
}
.upload-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-main);
  color: white;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.upload-label:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}
#photoInput {
  display: none;
}
/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
  }
  100% {
    transform: scale(1);
  }
}
/* Responsive design */
@media (max-width: 768px) {
  .nav {
    padding: 0 1rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .nav-links {
    display: none;
  }
  .header-social-links {
    gap: 0.75rem;
  }
  .header-social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .profile-social-links {
    flex-direction: column;
    gap: 1rem;
  }
  .profile-social-link {
    justify-content: center;
  }
  .quote-text::before,
  .quote-text::after {
    display: none;
  }
  .experience-section {
    padding: 0 1rem;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    padding-left: 60px;
  }
  .timeline-marker {
    left: 8px;
    width: 20px;
    height: 20px;
  }
  .timeline-content::before {
    left: -10px;
    border-width: 10px;
    border-right-color: rgba(255, 255, 255, 0.95);
  }
  .section-title {
    font-size: 2rem;
  }
  .tech-tags {
    gap: 0.375rem;
  }
  .tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  .education-section {
    padding: 0 1rem;
  }
  .education-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .education-card {
    padding: 1.5rem;
  }
  .education-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  .education-title {
    font-size: 1.1rem;
  }
}
.justificado {
  text-align: justify;
}

.profile-social-link.contact {
    background-color: #25D366; /* Verde WhatsApp */
}
