
.header {
  border-bottom: 1px solid #e9e9e9;
  background: #fff;
}
.header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.header__logo {
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  display: inline-block;
  border-radius: 6px;
}
.nav { gap: 12px; }

.profile {
  max-width: 1100px;
  margin: 22px auto;
  padding: 18px;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  background: #fff;
}
.profile__top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.profile__photo {
  width: 140px;
  height: 140px;
  background: #fbfbfb;
  border: 1px dashed #e1e1e1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.profile__info { flex: 1; }
.profile__name { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.profile__text { color: #333; margin-bottom: 8px; }
.btn-resume { margin-top: 12px; }


.skills,
.projects,
.project-card {
  transition: transform 0.28s cubic-bezier(.22,.9,.36,1), box-shadow 0.28s cubic-bezier(.22,.9,.36,1);
}

.profile .skills,
.profile .projects {
  box-shadow: 0 0 0 rgba(0,0,0,0);
  border-radius: 8px;
}
.profile .skills:hover,
.profile .projects:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.06); 
}

.project-card {
  min-height: 120px;
  border: 1px dashed #dcdcdc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  text-align: center;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.project-card:hover,
.project-card:focus {
  transform: translateY(-10px);
  box-shadow: 0 14px 32px rgba(20, 30, 50, 0.10); 
}


.skills {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fbfbfb;
}
.skills__title {
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}
.skills__item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.skills__name { width: 110px; }

.progress { height: 12px; background: #eee; border-radius: 8px; overflow: hidden; }
.progress-bar { border-radius: 8px; }

.projects {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
}
.projects__filters { display:flex; align-items:center; gap:8px; }

.projects__filter--active {
  background: #f7f7f8;
  border-color: #dedede;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 12px;
}
.project-card__title { font-weight: 600; margin-bottom: 8px; }
.project-card__tech { color: #666; font-size: 0.95rem; }

.footer {
  max-width: 1100px;
  margin: 22px auto;
  padding: 14px;
  text-align: center;
  color: #666;
  border-top: 1px solid #eee;
}

@media (max-width: 767px) {
  .profile__top { flex-direction: column; align-items: center; text-align: center; }
  .profile__photo { margin-bottom: 12px; }
  .skills__name { width: auto; }
  .projects__grid { grid-template-columns: 1fr; }
  .header__inner {
    flex-direction: column; 
    gap: 15px;
  }
  
  .nav {
    flex-wrap: wrap; 
    justify-content: center;
  }
  
  .projects__filters {
    overflow-x: auto; 
    width: 100%;
  }
  
  .btn-group {
    flex-wrap: nowrap; 
  }
}

.diary__section {
  transition: all 0.3s ease;
}

.progress-list__item {
  padding: 6px 0;
  border-bottom: 1px dashed #e1e1e1;
}
.progress-list__item:last-child {
  border-bottom: none;
}

.courses__item .progress-bar {
  background-color: #0d6efd;
}

.courses__item:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.contacts__form {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contacts__form:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.contacts__info p {
  font-size: 1rem;
  color: #555;
}

.contacts__info a:hover {
  text-decoration: underline;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.project-card__img {
    width: 100%;
    height: 100px; 
    object-fit: cover; 
}

.profile__photo-img {
    width: 100%;
    height: auto;
}

.header__logo {
    width: auto; 
    max-height: 50px; 
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.portfolio-item__title {
  font-size: 1.4em;
  font-weight: bold;
  color: #000;
  text-shadow: 0 0 20px #fff;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.portfolio-item__tech {
  color: #000;
  text-shadow: 10px 10px 30px #fff;
  position: relative;
  z-index: 1;
}

.portfolio-item {
  transition: transform 0.28s cubic-bezier(.22,.9,.36,1), box-shadow 0.28s cubic-bezier(.22,.9,.36,1);
  min-height: 120px;
  border: 1px dashed #dcdcdc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  position: relative;
  overflow: hidden;
}

.portfolio-item:hover,
.portfolio-item:focus {
  transform: translateY(-10px);
  box-shadow: 0 14px 32px rgba(20, 30, 50, 0.10);;
}

.profile .portfolio {
  box-shadow: 0 0 0 rgba(0,0,0,0);
  border-radius: 8px;
}
.profile .portfolio:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.06);
}

.portfolio-item__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.portfolio-item__title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #000;
  text-shadow: 10px 10px 30px #fff;  position: relative;
  z-index: 2;
}

.portfolio-item__tech {
  color: #000;
  text-shadow: 10px 10px 30px #fff;  position: relative;
  z-index: 2;
}

.portfolio {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 12px;
}

@media (max-width: 767px) {
  .portfolio__grid {
    grid-template-columns: 1fr;
  }
}