body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f7f7f7;
}
.container {
  display: flex;
  max-width: 1100px;
  margin: auto;
  background: #fff;
  box-shadow: 0 0 10px #eee;
  min-height: 700px;
}
.sidebar {
  flex: 0 0 325px;
  background: #ffede2;
  padding: 30px 20px 20px 20px;
  box-sizing: border-box;
  border-right: 3px solid #e4d9cb;
}
.profile-photo {
  display: flex;
  justify-content: center;
}
.profile-photo img {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
}
.sidebar h1 {
  margin: 0 0 6px;
  font-size: 1.7em;
}
.sidebar h2 {
  margin: 0 0 18px;
  font-weight: 400;
  opacity: 0.8;
  font-size: 1.2em;
}
.section {
  margin-bottom: 24px;
  margin-top: 10px;
}
.section h3 {
  font-size: 1em;
  letter-spacing: .5px;
  font-weight: bold;
  background: #fff;
  padding: 4px 0;
  margin: 0 0 4px;
  border-bottom: 3px solid #878787;
}
.sidebar ul, .sidebar li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebar a { color: #d38737; text-decoration: underline; }


.main-content {
  flex: 1;
  padding: 24px 24px 28px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.row {
  display: flex;
  gap: 36px;
  margin-bottom: 12px;
}
.section.skills, .section.education, .section.projects, .section.more {
  width: 50%;
  background: #ffbb93;
  padding: 14px 18px;
  border-radius: 10px;
  box-sizing: border-box;
}
.section.education, .section.more {
  background: #fff;
  border: 2px solid #e4d9cb;
}
.section.projects, .section.more {
  margin-top: 6px;
}
.section.skills ul {
  margin: 0;
  padding-left: 15px;
}
.section.skills li {
  margin-bottom: 10px;
}

.section.projects ul {
  padding-left: 10px;
}

.section.certificates {
  background: #fff;
  border: 2px solid #e4d9cb;
  border-radius: 10px;
  padding: 18px;
  margin-top: 22px;
}
.cert-list { display: flex; flex-direction: column; gap: 18px; }
.cert {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #faf5ef;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 5px #eee;
}
.cert-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.cert-img:hover {
  box-shadow: 0 0 10px #d38737;
  transform: scale(1.06);
}
.cert-content {
  flex: 1;
  font-size: 0.98em;
}
@media (max-width: 950px) {
  .container { flex-direction: column; }
  .sidebar { border-right: none; border-bottom: 2px solid #e4d9cb; }
  .row { flex-direction: column; gap: 20px; }
  .section.skills, .section.education, .section.projects, .section.more { width: 100%; }
  .profile-photo img {
    border-radius: 50%;
    width: 240px;
    height: 240px;
  }
}

.modal-modal {
  display: none;
  position: fixed;
  z-index: 99;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(24, 20, 18, 0.33);
  align-items: center;
  justify-content: center;
}
.modal-modal-content {
  background: #fff;
  padding: 0;
  border-radius: 12px;
  position: relative;
  max-width: 900px;
  width: 98vw;
  min-height: 440px;
  box-shadow: 0 0 18px #666;
  display: flex;
  flex-direction: column;
}
.modal-modal-body {
  display: flex;
  flex-direction: row;
  padding: 40px 28px 24px 28px;
  gap: 0;
}
.modal-modal-content h2 {
  font-size: 1.43em;
  font-weight: 600;
  margin: 0 0 14px 0;
  letter-spacing: 0.2px;
}
#modalImg {
  max-width: 430px;
  max-height: 76vh;
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-right: 42px;
  box-shadow: 0 2px 12px #aaa;
  object-fit: contain;
  background: #222;
}
.modal-modal-info {
  width: 308px;
  min-width: 180px;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
}
#modalDesc {
  font-size: 1em;
  color: #292929;
}
.modal-close {
  position: absolute;
  top: 22px;
  right: 30px;
  font-size: 2.1em;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  user-select: none;
  transition: color 0.14s;
  z-index: 10;
}
.modal-close:hover {
  color: #ed2e0e;
}
@media (max-width: 720px){
  .modal-modal-content { max-width:98vw; min-width:0; }
  .modal-modal-body { flex-direction:column; align-items:center; padding:32px 12px 20px 12px;}
  #modalImg { margin-right:0; margin-bottom:22px; max-width:96vw;}
  .modal-modal-info { width:100%; }
}