html {
  min-height: 100%;
  background: #f5f5f5;
  font-size: 16px;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  align-items: center;
  margin: 0;
  color: #333;
  line-height: 1.6;
  overflow-y: auto;
}

.wrapper {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 960px;
  width: 90%;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem 0 2rem 0;
  height: auto;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #3a4a5e, #263545);
  width: 100%;
  color: white;
  padding: 0.25rem 0;
}

.name-container {
  flex: 1 1 auto;
  text-align: center;
  padding: 0 1rem;
}

.name-container h1 {
  font-weight: 300;
  letter-spacing: 1px;
  font-size: 2.5rem;
  margin-bottom: 0.2rem;
  margin-top: 0.2rem;
}

.name-container h4 {
  font-weight: 400;
  opacity: 0.9;
  margin-top: 0;
  margin-bottom: 0.2rem;
}

.profile-container {
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  padding: 1rem 1.5rem;
  border-radius: 0 0 0 8px;
}

.social-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1rem;
  margin-top: 0.3rem;
}

.social-container a {
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-container a:hover {
  text-decoration: none;
  opacity: 0.8;
}

.contact-list {
  list-style-type: none;
  padding-left: 0;
}

.contact-list .fa {
  margin-right: 12px;
  font-size: 1.1rem;
  vertical-align: middle;
  width: 16px;
  text-align: center;
}

.contact-list li {
  margin-bottom: 5px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.portrait-pic {
  border-radius: 50%;
  height: 140px;
  width: 140px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

main {
  background: white;
  flex: 1 0 auto;
  width: 100%;
}

section {
  padding: 1rem 2rem;
}

.summ-box {
  padding: 1.5rem 2rem;
  text-align: left;
  background: #fcfcfc;
  margin-bottom: 0;
}

.summ-box p {
  margin: 0.5rem 0;
  max-width: 800px;
}

.experience-box, .education-box {
  margin: 0 auto;
  text-align: left;
  padding-top: 0rem;
  padding-bottom: 0.5rem;
}

.section-title {
  text-transform: uppercase;
  font-size: 1.25rem;
  font-weight: 500;
  color: #3a4a5e;
  margin-top: 1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.35rem;
  letter-spacing: 1px;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #3a4a5e;
  border-radius: 2px;
}

.item {
  margin-bottom: 2rem;
}

.experience-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  align-items: flex-start;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.experience-item:last-child {
  border-bottom: none;
}

.job-details {
  flex: 0 0 75%;
  align-self: flex-start;
}

.job-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #2c3e50;
}

.job-company {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #3a4a5e;
}

.job-company a {
  color: #3a4a5e;
  text-decoration: none;
  transition: color 0.2s;
}

.job-company a:hover {
  color: #4e7eb4;
}

.job-position {
  font-style: italic;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  color: #555;
}

.job-position:last-of-type {
  margin-bottom: 0.5rem;
}

.job-meta {
  flex: 0 0 25%;
  text-align: right;
}

.job-date {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
  color: #666;
  font-weight: 500;
}

.job-location {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #777;
}

.job-description ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  list-style: none;
}

.job-description li {
  margin-bottom: 0.35rem;
  position: relative;
  padding-left: 0.75rem;
}

.job-description li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 4px;
  height: 4px;
  background-color: #8595ab;
  border-radius: 50%;
  opacity: 0.7;
}

.line-break {
  width: 90%;
  border-top: 1px solid #eee;
  margin: 0.25rem auto;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 0.2rem 0;
  }
  
  .profile-container {
    width: 100%;
    justify-content: center;
    border-radius: 0;
    margin-top: 1rem;
  }
  
  .experience-item {
    flex-direction: column;
  }
  
  .job-details {
    flex: 0 0 100%;
    margin-bottom: 1rem;
  }
  
  .job-meta {
    flex: 0 0 100%;
    text-align: left;
  }
  
  .social-container {
    margin-right: 1rem;
  }
}