/*Сброс и базовая настройка*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

test {
  background: #f44336;   /* red */
  background: #e91e63;   /* pink */
  background: #9c27b0;   /* purple */
  background: #673ab7;   /* deepPurple */
  background: #3f51b5;   /* indigo */
  background: #2196f3;   /* blue */
  background: #03a9f4;   /* lightBlue */
  background: #00bcd4;   /* cyan */
  background: #009688;   /* teal */
  background: #4caf50;   /* green */
  background: #8bc34a;   /* lightGreen */
  background: #cddc39;   /* lime */
  background: #ffeb3b;   /* yellow */
  background: #ffc107;   /* amber */
  background: #ff9800;   /* orange */
  background: #ff5722;   /* deepOrange */
  background: #795548;   /* brown */
  background: #9e9e9e;   /* grey */
  background: #607d8b;   /* blueGrey */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f1f1f1;
}

/*Шапка*/
.header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: end;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
}

.header-left .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f1f1f1;
  text-decoration: none;
}

.header-center a {
  margin: 0 15px;
  color: #f1f1f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.header-center a:hover {
  color: #007bff;
  text-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
}

.header-right {
  position: relative;
  width: max-content;
}

.header-right select {
  padding: 10px 36px 10px 14px;
  font-size: 1rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background-color: #e0f0ff;
  color: #1a1a1a;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-image: linear-gradient(to right, #e0f0ff, #e0f0ff);
}

.header-right select:hover {
  background-color: #d0eaff;
}

.header-right select:focus {
  outline: none;
  border-color: #3399ff;
  box-shadow: 0 0 0 3px rgba(51, 153, 255, 0.3);
}

.header-right::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #3399ff;
  border-bottom: 2px solid #3399ff;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.header-right select:focus + .header-right::after,
.header-right select:hover + .header-right::after {
  transform: translateY(-50%) rotate(225deg);
}

/*Конец блока*/

/*Блок с рамкой и фото*/
.intro {
  background-image: url('background_computer_1280.jpg');
  background-size: cover;
  background-position: center;
  width: 100%;
  padding: 120px 0 60px;
  position: relative;
}

.intro {
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px;
  width: 100%;
  z-index: 1;
}

.intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('background_computer_1280.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  z-index: -2;
}

.about {
  padding: 30px 30px 60px;
  background-color: #4e9ba2;
  text-align: center;
}

.intro::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px; /* je nach Bedarf */
  background: linear-gradient(to bottom, transparent, #4e9ba2);
  z-index: -1;
}

.profile-box {
  display: flex;
  /*background: #2196f3;*/
  border: none;
  width: 800px;
  height: 400px;
  margin: 0 auto;
  /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);*/
  color: #f1f1f1;
  border-radius: 1rem;
  overflow: hidden;
}

.profile-photo {
  width: 50%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 10%;
}

.profile-info {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.profile-info h3 {
  font-size: 1.5rem;
}
.profile-info p {
  font-size: 1.2rem;
  margin: 8px 0;
}

/*Конец блока*/
/*Блок "Обо мне"*/

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: #f1f1f1;
}

.about p {
  font-size: 1.2rem;
  color: #f1f1f1;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}
/*Конец блока*/

/*Настройка градиента*/
.gradient {
  background: linear-gradient(#2c2b52, #f1f1f1);
  height: 10px;
  width: 100%;
}

/*Блок "Опыт работы"*/
.experience-background {
  background-color: #f1f1f1;
}

.experience-slider {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: auto;
  height: 700px;
  align-items: center;
  background-color: #f1f1f1;
  padding-top: 50px;
}

.experience-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  padding-bottom: 50px;
  color: #2c2b52;
}

.slider-wrapper {
  overflow: hidden; 
  width: 100%;
}

.event-inline {
  display: inline;
  float: left;
  width: 100%;
}

.events {
  display: flex;
  transition: transform 0.5s ease;
  width: calc(100% / 3 * 8); 
  color: #000000;
}

.event-firm {
  font-size: 1.4rem;
  color: #3f51b5;;
  font-weight: bold;
}

.event-place {
  color: #aaa;
}

.event-role {
  color:#2c2b52;
  font-size: 1.3rem;
}

.event-year {
  font-size: 1.2rem;
  color: #4caf50;
}

.event-description {
  font-size: 0.9rem;
}
.event {
  flex: 0 0 calc(100% / 8); 
  box-sizing: border-box;
  padding: 20px;
  overflow: hidden;
  /*border-left:1px solid #2c2b52;*/
}

.event-1, .event-4, .event-7 {
  border-left: none;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  font-size: 44px;
  padding: 10px;
  cursor: pointer;
  background: none;
  border: none;
}

.arrow.left {
  left: -100px;
}

.arrow.right {
  right: -100px;
}
/*Конец блока*/

/*Блок "Навыки"*/
.skills {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 25%;
  padding-right: 25%;
  padding-top: 5%;
  padding-bottom: 5%;
  background-image: url('background-skills.jpg');
  background-size: cover;
  background-position: center;
}

.row {
  display: flex;
  gap: 0;
}

.skill {
  background-color: #f1f1f1;
  flex: 1; 
  padding: 20px;
  text-align: center;
  border: 1px solid #ddd;
}

.skill-title {
  text-align: center;
  color: #f1f1f1;
  padding-bottom: 50px;
  font-size: 2.5rem;
  font-weight: bold;
}

.skill-name {
  font-size: 18px;
  font-weight: bold;
  /*margin-bottom: 10px;*/
  color: #2c2b52;
  /*text-transform: uppercase;*/
}

.skill-level {
  font-size: 2rem;
  /*font-weight: bold;*/
  color: #9fdfa2;
  /*text-transform: uppercase;*/
}

.middle-row .skill {
  flex: 2; 
}
/*Конец блока*/

/*Блок образование и языки*/
.educations-lagnguages {
  padding-top: 50px;
}

.info-block {
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  padding-bottom: 50px;
}

.info-header {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  color: #2c2b52;
}

.info-content {
  display: flex;
  flex-direction: row;
}

.info-column {
  flex: 1;
  padding: 1rem 1.5rem;
  color: #2c2b52;
}

.info-column:first-child {
  border-left: none;
}

.info-name {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #4caf50;
  font-size: 1.1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.3rem;
  text-align: center;
}

.info-column ul {
  margin: 0;
  padding-left: 1rem;
  list-style-type: disc;
  color: #555;
  padding-top: 5px;
}

.info-column ul li {
  margin-bottom: 0.4rem;
}

.contact-block {
  background-color: #333;
}

.contact-info {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  font-family: sans-serif;
  color: #fff;
}

.contact-info h2 {
  color: #4caf50;
  font-size: 22px;
  margin-bottom: 16px;
  border-bottom: 2px solid #4caf50;
  padding-bottom: 8px;
}

.contact-info ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 12px;
}

.contact-info a {
  color: #4caf50;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.contact-icon {
  font-size: 20px;
  color: #4caf50;
  margin-right: 12px;
  margin-top: 4px;
  min-width: 24px;
  text-align: center;
}

.contact-text a {
  color: #4caf50;
  text-decoration: none;
}

.contact-text a:hover {
  text-decoration: underline;
}

footer {
  background-color: #000000;
  color: #ccc;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

footer p {
  margin: 8px 0;
}

footer a {
  color: #4caf50;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 10px 15px;
  }

  .header-left, .header-right {
      display: flex;
      align-items: center;
  }

  .header-left {
      justify-content: flex-start;
  }

  .header-right {
      justify-content: flex-end;
  }

  .header-center a {
      display: none;
  }
  .intro {
    padding: 80px 15px 30px;
  }

  .profile-box {
    flex-direction: column;
    width: 100%;
    height: auto;
    box-shadow: none;
  }

  .profile-photo {
    width: 100%;
    height: auto;
  }

  .profile-info {
    width: 100%;
    padding: 20px;
    text-align: center;
  }

  .about {
    padding: 20px 15px 40px;
  }

  .experience-slider {
    height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .events {
    flex-direction: column;
    width: 100%;
  }

  .event {
    flex: 1 1 100%;
    padding: 20px 20px;
    border-bottom: 1px solid #2c2b52;
    border-left: none;
    
  }
  .event:last-of-type {
    border-bottom: none;
  }
  .arrow {
    display: none;
  }

  .skills {
    padding: 30px 15px;
  }

  .row {
    flex-wrap: wrap;
    gap: 0;
  }
  
  .skill {
    flex: 1 1 50%;
    box-sizing: border-box;
    padding: 15px;
  }

  .info-content {
    flex-direction: column;
  }

  .info-column {
    padding: 1rem;
  }

  .contact-info {
    padding: 20px 15px;
    width: 100%;
  }

  .columns {
    flex-direction: column;
    gap: 20px;
  }

  footer {
    font-size: 13px;
    padding: 15px;
  }
}
