body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #f9f9fb;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding-top: 50px;
}

.container {
  width: 90%;
  max-width: 900px;
  background: #fff;
  padding: 20px 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Вкладки */
.tabs {
  display: flex;
  justify-content: center;
  background: #2c3e50;
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 36px;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 15px;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: 500;
}

.tab:hover { background: #34495e; }
.tab.active { background: #1abc9c; }

/* Контент */
.content {
  display: none;
  animation: fadeIn 0.4s ease-in;
}
.content.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Профиль */
.profile-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
}

.profile-left {
  display: flex;
  align-items: center;
}

.profile-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin-right: 25px;
  object-fit: cover;
  border: 3px solid #1abc9c;
  background-color: #e6f7f4;
}



.profile-info h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.profile-info p {
  margin: 3px 0;
  font-size: 16px;
  color: #666;
}

/* Правая колонка — контакты */
.profile-right {
  text-align: right;
}

.profile-right p {
  margin: 3px 0;
  font-size: 16px;
}

.profile-right a {
  color: #1abc9c;
  text-decoration: none;
}

.profile-right a:hover {
  text-decoration: underline;
}

/* Хронология */




.timeline {
  position: relative;
  margin-left: 20px;
  padding-left: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 0;
  width: 3px;
  background: #1abc9c;
}

.timeline-item {
  position: relative;
  margin: 25px 0;
  padding-left: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px; 
  top: 6px;
  width: 14px;
  height: 14px;
  background: #1abc9c;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #e0f7f4;
}

.timeline-year {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  color: #1abc9c;
}

.timeline-position {
  margin: 5px 0;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

.timeline-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #555;
}

.timeline-item h3 {
  margin: 0;
  font-size: 18px;
  color: #1abc9c;
}

.about-me {
  margin-bottom: 30px;
}

.about-me h3 {
  margin-bottom: 8px;
  color: #2c3e50;
}

.about-me p {
  font-size: 15px;
  line-height: 1.5;
  color: #555;
}

.skills-section {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.skills-left, .skills-right {
  width: 45%;
}

.skills-left h3, .skills-right h3 {
  margin-bottom: 8px;
  color: #2c3e50;
}

.skills-left ul, .skills-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-left li, .skills-right li {
  margin-bottom: 6px;
  font-size: 15px;
  color: #555;
  line-height: 1.3;
  font-weight: 525;
}

p, li {
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  font-family: inherit; 
}


.portfolio-frame {
  width: 80%;           
  max-width: 700px;    
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;    
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  box-sizing: border-box;
}


.portfolio-frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.portfolio-header h4 {
  margin: 0;
  font-size: 18px;
  color: #2c3e50;
}

.portfolio-btn {
  text-decoration: none;
  background: #1abc9c;
  color: #fff;
  padding: 1px 10px;
  border-radius: 6px;
  font-size: 24px;
  transition: background 0.2s;
}

.portfolio-btn:hover {
  background: #16a085;
}

.portfolio-frame p {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

/* Контент: фото / гиф / иконка */
.portfolio-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  background: #f4f4f6;
  border-radius: 8px;
  overflow: hidden;
}

.portfolio-media {
  max-width: 90%;     
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.4s ease-in-out;
  opacity: 0.8
}

.portfolio-media:hover {
  opacity: 1;
}

.icon-only {
  width: 100%;
  max-width: none;
  height: auto;
  transform-origin: center;
  object-fit: contain;
  display: block;
  margin: 10px auto;
}