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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 40px 20px;
  min-height: 100vh;
}

/* Container Layout */
.container {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: flex-start;
}

.profile-card {
  background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
  border-radius: 20px;
  padding: 40px 30px;
  width: 280px;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid #333;
  position: sticky;
  top: 40px;
  margin-top: 50px;
}

.profile-header {
  text-align: center;
  margin-bottom: 30px;
}

.profile-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background: #3a3a3a;
  border: 3px solid #444;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.profile-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
}

.profile-badges {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.badge {
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.badge-devops {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #ffffff;
}

.badge-sre {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #ffffff;
}

.profile-info {
  margin: 30px 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 20px 0;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #cccccc;
  font-size: 14px;
}

.info-link {
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 8px;
  margin-left: -8px;
  margin-right: -8px;
}

.info-link:hover i {
  color: #8b5cf6;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item i {
  color: #999;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.info-item span {
  flex: 1;
  word-break: break-word;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #333;
}

.social-icon:hover {
  background: #3a3a3a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.social-icon i {
  font-size: 18px;
}

/* Responsividade */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .profile-card {
    width: 100%;
    position: relative;
    top: 0;
  }

  .main-content {
    width: 100%;
  }
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-top: 50px;
}

/* Language Switcher */
.language-switcher {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 5px;
  background: #2a2a2a;
  border-radius: 8px;
  padding: 4px;
  border: 1px solid #333;
  z-index: 100;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #999;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 0;
  background: #2a2a2a;
  border-radius: 10px;
  padding: 5px;
  border: 1px solid #333;
}

.nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #999;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.1);
}

.nav-btn.active {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #ffffff;
}

/* Content Box */
.content-box {
  background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
  border-radius: 15px;
  padding: 40px;
  border: 1px solid #333;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  min-height: 500px;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

/* About Section */
.about-content h2 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 25px;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  color: #cccccc;
  line-height: 1.8;
  font-size: 14px;
  margin-bottom: 25px;
  text-align: justify;
}

/* Projects Section */
.projects-section {
  margin-top: 50px;
}

.projects-section h2 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 70px;
  height: 70px;
  background: linear-gradient(145deg, #3a3a3a, #2f2f2f);
  border-radius: 12px;
  border: 1px solid #444;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.project-card:hover .project-image img {
  filter: grayscale(0%);
}

.project-placeholder {
  width: 70px;
  height: 70px;
  background: linear-gradient(145deg, #3a3a3a, #2f2f2f);
  border-radius: 12px;
  border: 1px solid #444;
  flex-shrink: 0;
}

.project-name {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}

/* Timeline Section (Resume) */
.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -46px;
  top: 8px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border-radius: 50%;
  border: 3px solid #1f1f1f;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  z-index: 1;
}

/* Education Branch (Merge Request Style) */
.timeline-education {
  padding-left: 30px;
  position: relative;
}

.timeline-education::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 20px;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 2px;
}

.timeline-education::after {
  content: '';
  position: absolute;
  left: -40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  border-radius: 2px;
  opacity: 0.3;
}

.education-dot {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2) !important;
}

.education-content {
  border-color: #f59e0b !important;
  background: linear-gradient(145deg, #2a2a2a, #252525);
}

.education-content:hover {
  border-color: #fbbf24 !important;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.15) !important;
}

.education-content::before {
  border-right-color: #f59e0b !important;
}

.education-content .timeline-period {
  color: #fbbf24 !important;
}

/* Current Position Highlight */
.current-dot {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow:
    0 0 0 3px rgba(16, 185, 129, 0.2),
    0 0 15px rgba(16, 185, 129, 0.4) !important;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(16, 185, 129, 0.2),
      0 0 15px rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(16, 185, 129, 0.1),
      0 0 20px rgba(16, 185, 129, 0.6);
  }
}

.current-content {
  border-color: #10b981 !important;
}

.current-content:hover {
  border-color: #10b981 !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25) !important;
}

.current-content .timeline-period {
  color: #10b981 !important;
  font-weight: 600;
}

.timeline-content {
  background: linear-gradient(145deg, #2a2a2a, #252525);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 25px;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: #8b5cf6;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
  transform: translateX(5px);
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 15px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #333;
}

.timeline-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.timeline-period {
  color: #8b5cf6;
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 15px;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-list li {
  color: #cccccc;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.timeline-list li:last-child {
  margin-bottom: 0;
}

.timeline-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #8b5cf6;
  font-size: 12px;
}

.education-content .timeline-list li::before {
  color: #fbbf24;
}

/* Download Section */
.download-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.download-header h2 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.download-header p {
  color: #999;
  font-size: 14px;
  margin-bottom: 40px;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(145deg, #2a2a2a, #252525);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.download-btn:hover {
  border-color: #8b5cf6;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
  transform: translateY(-3px);
}

.download-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-icon i {
  color: #ffffff;
  font-size: 24px;
}

.download-info {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.download-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.download-subtitle {
  color: #999;
  font-size: 13px;
}

.download-arrow {
  color: #8b5cf6;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.download-btn:hover .download-arrow {
  transform: translateX(5px);
}

.download-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #666;
  font-size: 12px;
  margin-top: 20px;
}

.download-note i {
  font-size: 14px;
}

/* Footer */
.main-footer {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 13px;
  margin-top: 20px;
}

.main-footer p {
  margin: 5px 0;
}

.version {
  color: #666;
  font-size: 11px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
  border: 1px solid #333;
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #fff;
}

#modalTitle {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 20px;
}

#modalBody {
  color: #cccccc;
  line-height: 1.8;
}

/* Technology Tags in Modal */
.tech-tags-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tech-tag {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  display: inline-block;
}

#modalBody p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .content-box {
    padding: 25px;
  }

  .language-switcher {
    position: static;
    margin-bottom: 15px;
    justify-content: center;
  }

  .main-nav {
    margin-top: 0;
  }
}
