body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f6fa;
  color: #2f3640;
}

header {
  background-color: #ffffff;
  padding: 1.5em 1em 1em;
  border-bottom: 1px solid #dcdde1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: relative;
}

header h1 {
  margin: 0;
  padding-left: 50px;
  font-size: 1.8em;
  color: #353b48;
  position: absolute;
  left: 1em;
  top: 50%;
  transform: translateY(-50%);
}

nav {
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #2f3640;
  padding: 0.5em 1em;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

nav a:hover,
nav a:focus {
  background-color: #dcdde1;
  color: #000;
  border-color: #dcdde1;
}

nav a:active {
  background-color: #c8d6e5;
  border-color: #c8d6e5;
}
.active{
   background-color: #c8d6e5;
  border-color: #c8d6e5;
}


main {
  max-width: 800px;
  margin: 2em auto;
  padding: 2em;
  background: #ffffff;
  border: 1px solid #dcdde1;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.blog-container {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.blog-post {
  background: #ffffff;
  border-left: 5px solid #487eb0;
  padding: 1.5em;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.blog-post:hover {
  transform: translateY(-4px);
}

.blog-post h2 {
  margin-top: 0;
  color: #192a56;
}

.blog-post section {
  margin-top: 1em;
}

.blog-post h3 {
  color: #40739e;
  margin-bottom: 0.5em;
}

.blog-post audio {
  margin-top: 1em;
  width: 100%;
}

.blog-image {
  width: 100%;
  aspect-ratio: 1 / 0.5;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1em;
}

.skills-section {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #dcdde1;
}

.skills-content {
  display: flex;
  align-items: flex-start;
  gap: 1.5em;
  flex-wrap: wrap;
}

.skills-image {
  max-width: 180px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.skills-text {
  flex: 1;
  min-width: 200px;
}

.cv-download {
  display: inline-block;
  margin-top: 1em;
  padding: 0.6em 1em;
  background-color: #40739e;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.cv-download:hover {
  background-color: #487eb0;
}

.icon-skills {
  margin-top: 3em;
  text-align: center;
}

.icon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  margin-top: 1em;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
}

.icon-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.5em;
  transition: transform 0.3s ease;
}

.icon-item img:hover {
  transform: scale(1.1);
}

.icon-item p {
  margin: 0;
  font-size: 0.9em;
  color: #353b48;
}

main .education-timeline:nth-of-type(2) h2 {
  border-top: 1px solid #dcdde1;
  padding-top:15px;
}

.education-timeline h2 {
  margin-bottom: 1em;
  color: #192a56;
}

.timeline {
  list-style: none;
  padding-left: 1em;
  border-left: 3px solid #487eb0;
  margin: 0;
}

.timeline li {
  
  position: relative;
  margin-bottom: 1.5em;
  padding-left: 1em;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: -0.6em;
  width: 0.8em;
  height: 0.8em;
  background-color: #487eb0;
  border-radius: 50%;
}

.timeline-date {
  font-size: 0.9em;
  color: #718093;
  display: inline-block;
  margin-bottom: 0.4em;
}


.intro-home a {
  color: #487eb0;
  text-decoration: none;
  font-weight: 600;
}

.intro-home a:hover {
  text-decoration: underline;
}



@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    gap: 0.5em;
  }
}