/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f4f4f4;
  color: #1e1e1e;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Header */
header {
  background: #1e1e1e;
  color: #fff;
  padding: 20px 0;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-image {
  width: 150px;
  height: 200px;
  border-radius: 10%;
  border: 2px solid #663399;
  object-fit: cover;
}

.header-text {
  text-align: left;
}

header h1 {
  font-size: 2.5rem;
  margin: 0;
}

header h1 span {
  color: #663399;
}

header p {
  font-size: 1.2rem;
  margin: 10px 0 0;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

nav ul li a:hover {
  color: #ff6f61;
}

/* Sections */
section {
  padding: 60px 0;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #333;
}

/* About Section */
#sobre_mim p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Skills Section */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* Programming Language */
.skill-plang {
  background: #663399;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
}

/* Hard Skill */
.skill-hitem {
  background: #1e1e1e;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
}

/* Soft Skill */
.skill-sitem {
  background: #1d64c1;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
}

/* Projects Section */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-item {
  background: #fff;
  padding: 20px;
}

.contact-item {
  background: #fff;
  color: #1e1e1e;
}

a {
  color: #663399;
  vertical-align: middle;
}

.icon-image {
  width: 50px;
  height: 50px;
  border-radius: 0%;
  object-fit: cover;
  vertical-align: middle;
}

/* Timeline Section */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #663399;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 60%;
  padding: 20px 40px;
  box-sizing: border-box;
  left: -80px;
}

.timeline-item-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  left: -10%;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.timeline-date {
  font-weight: 600;
  color: #663399;
  margin-bottom: 10px;
  display: inline-block;
  padding: 5px 10px;
  background: rgba(102, 51, 153, 0.1);
  border-radius: 4px;
  font-size: 1.1rem;
  white-space: nowrap;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #663399;
  border: 3px solid #fff;
  border-radius: 50%;
  top: 20px;
  z-index: 1;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
}

.timeline-item-image {
  width: 200px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

/* Responsive Design */
@media (max-width: 992px) {
  .timeline-date {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .skills-list {
    flex-direction: column;
    align-items: center;
  }

  .timeline {
    max-width: 100%;
    padding: 40px 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding: 20px 20px 20px 50px;
  }

  .timeline-item::after {
    left: 10px !important;
    right: auto !important;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-date {
    font-size: 0.95rem;
    padding: 4px 8px;
    white-space: normal;
  }

  .timeline-item-content {
    grid-template-columns: 1fr;
  }

  .timeline-item-image {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 15px;
  }
}

@media (max-width: 480px) {
  .header-text h1 {
    font-size: 2rem;
  }

  .header-text p {
    font-size: 1rem;
  }

  .icon-image {
    width: 30px;
    height: 30px;
  }

  .timeline-date {
    font-size: 0.9rem;
    padding: 3px 6px;
    line-height: 1.4;
  }
}