/* Base Styles */
body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1em;
  line-height: 1.6em;
  background-color: #FCF9EC;
  background-image: url(../img/background.png);
  color: #444444;
  /* Enable font smoothing for better rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: 3em;
  font-family: "league-gothic-1","league-gothic-2",sans-serif;
  margin: 0 0 0.3em 0;
  color: #333;
}

h2 {
  font-size: 1.7em;
  font-weight: normal;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.3em;
  margin: 0 0 0.5em 0;
  color: #333;
  font-weight: 600;
}

a {
  color: #0088cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: #005580;
  text-decoration: underline;
}

p {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2.5em 2em 3em;
  background: linear-gradient(to bottom, rgba(252,249,236,0.95), rgba(252,249,236,0.8));
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.avatar {
  display: inline-block;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-bottom: 1em;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: cover;
}

.intro {
  max-width: 700px;
  margin: 0 auto 1.2em;
  font-size: 1.05em;
  line-height: 1.6em;
  color: #555;
}

.connect-btn {
  display: inline-block;
  padding: 0.7em 1.8em;
  background-color: #0088cc;
  color: white;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,136,204,0.3);
}

.connect-btn:hover {
  background-color: #005580;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,136,204,0.4);
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2em 2em 3em;
}

.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 1.5em;
  color: #333;
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding: 1em 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #0088cc, #00ccaa);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5em;
  display: flex;
  align-items: flex-start;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  background-color: #0088cc;
  border: 3px solid #FCF9EC;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 0 0 3px rgba(0,136,204,0.2);
}

.timeline-content {
  width: 45%;
  background: white;
  padding: 1em 1.2em;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-content:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.timeline-content h3 {
  font-size: 1.1em;
  margin-bottom: 0.4em;
}

.timeline-content p {
  font-size: 0.95em;
  line-height: 1.5em;
  margin-bottom: 0.5em;
}

.timeline-date {
  display: inline-block;
  font-size: 0.8em;
  color: #0088cc;
  font-weight: 600;
  margin-bottom: 0.4em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-tag {
  display: inline-block;
  padding: 0.25em 0.65em;
  background-color: #e8f4f8;
  color: #0088cc;
  font-size: 0.75em;
  border-radius: 10px;
  margin-right: 0.4em;
  margin-top: 0.3em;
  font-weight: 500;
}

.timeline-education {
  opacity: 0.9;
}

.timeline-education .timeline-marker {
  background-color: #00ccaa;
}

.timeline-education .timeline-content {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {
  .hero {
    padding: 2em 1.5em 3em;
  }

  h1 {
    font-size: 2.2em;
  }

  .avatar {
    width: 140px;
    height: 140px;
  }

  .intro {
    font-size: 1em;
  }

  .container {
    padding: 2em 1.5em 3em;
  }

  .section-title {
    font-size: 1.8em;
  }

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

  .timeline-item {
    flex-direction: column !important;
    padding-left: 50px;
  }

  .timeline-item:nth-child(even) {
    flex-direction: column !important;
  }

  .timeline-marker {
    left: 20px;
    transform: translateX(-50%);
  }

  .timeline-content {
    width: 100%;
    margin: 0 !important;
  }

  .timeline-tag {
    font-size: 0.75em;
    padding: 0.25em 0.6em;
  }
}
