:root {
  /* Цвета Microsoft Fluent UI */
  --bg-color: #f3f2f1;
  --text-color: #323130;
  --card-bg: #ffffff;
  --card-shadow: 0 1.6px 3.6px 0 rgba(0, 0, 0, 0.13), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.11);
  --primary-color: #0078d4;
  --primary-hover: #106ebe;
  --neutral-light: #edebe9;
  --neutral-lighter: #f3f2f1;
  --border-radius: 2px;
  --font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
}

.dark-theme {
  --bg-color: #222;
  --text-color: #f0f0f0;
  --card-bg: #333;
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  --arrow-bg: #444;
  --arrow-hover: #555;
  --arrow-disabled: #333;
  --arrow-color: #4a8eff;
  --arrow-disabled-color: #aaaaaa;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  transition: all 0.3s ease-out;
}

/* Основная структура */
.content-box {
  display: flex;
  width: 100%;
  height: 100vh;
}

.side-menu {
  flex: 25%;
  background: var(--bg-color);
  padding: 20px;
  box-shadow: var(--card-shadow);
  border-right: 1px solid #454545;
}

.side-menu h1,
h4,
p {
  text-align: center;
  margin: 10px;
}

.side-menu h1 {
  font-size: 1.6em;
}

.main-content {
  flex: 75%;
  background: var(--card-bg);
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* Кнопки управления */
.controls {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 200;
}

.control-btn {
  background: var(--card-bg);
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.2s ease;
  width: 75px;
}

.control-btn .theme-svg {
  margin: 0 auto;
}

.control-btn:hover {
  background: var(--arrow-hover);
}

/* Галерея и стрелки */
.gallery-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--arrow-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 100;
}

.slide-arrow.prev {
  left: 20px;
}

.slide-arrow.next {
  right: 20px;
}

.slide-arrow:hover {
  background: var(--arrow-hover);
}

.slide-arrow:disabled {
  opacity: 0.6;
  cursor: default;
  background: var(--arrow-disabled);
}

.slide-arrow svg {
  width: 24px;
  height: 24px;
  fill: var(--arrow-color);
}

.slide-arrow:disabled svg {
  fill: var(--arrow-disabled-color);
}

.slide-content {
  width: calc(100% - 140px);
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-content h3 {
  margin-block-start:0.5em;
  margin-block-end:0.3em;
}

.slide-content a{
  text-decoration: solid;
}

/* Социальные иконки */
.social-links {
  display: flex;
  gap: 12px;
  padding: 8px;
  background: var(--bg-color);
  border-radius: 4px;
  width: fit-content;
  margin: 10px auto 0;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: all 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.social-link:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.social-link svg {
  width: 48px;
  height: 48px;
}

.email svg {
  fill: #0078D4;
}

.linkedin svg {
  fill: #0078D4;
}

.telegram svg {
  width: 36px;
  height: 36px;
  fill: #0078D4;
}

.telegram path {
  fill: var(--bg-color);
}

.github svg {
  fill: #0078D4;
}

.url svg {
  fill: #0078D4;
}

/* Аватар */
.avatar-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.avatar-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

/* Адаптация */
@media (max-width: 1024px) {
  .content-box {
    flex-direction: column;
    height: auto;
  }

  .side-menu,
  .main-content {
    flex: 100%;
  }

  .slide-content {
    width: calc(100% - 100px);
  }
}

@media (max-width: 768px) {
  .slide-arrow {
    width: 40px;
    height: 40px;
  }

  .slide-arrow.prev {
    left: 10px;
  }

  .slide-arrow.next {
    right: 10px;
  }

  .slide-content {
    width: calc(100% - 60px);
    padding: 20px;
  }

  .controls {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .slide-arrow {
    width: 36px;
    height: 36px;
  }

  .slide-content {
    width: calc(100% - 40px);
    padding: 15px;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .avatar-placeholder {
    width: 150px;
    height: 150px;
  }
}

/* Win11 Style List */
.win11-list {
  font-family: var(--font-family);
  /*max-width: 600px;*/
  margin: 0;
  padding: 8px;
}

.win11-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.win11-list li {
  margin-bottom: 4px;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.win11-list li:hover {
  background: rgba(var(--primary-color), 0.1);
  transform: translateX(4px);
}

.list-item {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  cursor: pointer;
  position: relative;
}

.item-icon {
  font-size: 20px;
  margin-right: 16px;
  color: var(--primary-color);
  width: 24px;
  text-align: center;
}

.item-content {
  flex: 1;
}

.item-content p {
  margin: 4px 0 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--text-color) 60%, transparent);
}

.win11-list li:hover .item-chevron {
  opacity: 1;
}

/* Акриловый эффект */
.win11-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  z-index: -1;
  border-radius: var(--border-radius);
  border: 1px solid var(--neutral-light);
  box-shadow: var(--card-shadow);
}

/* Темная тема */
.dark-theme .win11-list li::before {
  background: color-mix(in srgb, var(--card-bg) 90%, transparent);
  border-color: color-mix(in srgb, var(--neutral-light) 20%, transparent);
}

.dark-theme .win11-list li:hover {
  background: rgba(var(--primary-color), 0.2);
}

/* Адаптация для мобильных */
@media (max-width: 640px) {
  .list-item {
    padding: 10px 12px;
  }

  .item-icon {
    margin-right: 12px;
    font-size: 18px;
  }

  .item-content h3 {
    font-size: 15px;
  }

  .item-content p {
    font-size: 13px;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.skill-category {
  background: var(--card-bg);
  border-radius: calc(var(--border-radius) * 2);
  padding: 15px;
  box-shadow: var(--card-shadow);
}

.category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
  margin: 0 0 15px 0;
  font-size: 18px;
  font-weight: 600;
}

.category-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

/* Стили для технических навыков с прогресс-баром */
.skill-level {
  margin-bottom: 8px;
}

.skill-name {
  display: block;
  margin-bottom: 6px;
  margin-top: 25px;
  font-size: 14px;
  color: var(--text-color);
}

.level-bar {
  height: 8px;
  background: var(--neutral-lighter);
  border-radius: 4px;
  position: relative;
  margin-bottom: 2px;
}

.level-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--primary-color);
  transition: width 0.5s ease;
}

.level-text {
  font-size: 12px;
  color: color-mix(in srgb, var(--text-color) 60%, transparent);
}

/* Стили для профессиональных навыков (теги) */
.skill-tag {
  display: inline-block;
  color: var(--text-color);
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--arrow-bg);
  border: none;
  box-shadow: var(--card-shadow);
  margin: 0 8px 8px 0;
  font-size: 14px;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: rgba(var(--text-color), 0.2);
  transform: translateY(-2px);
}

/* Темная тема */
.dark-theme .level-bar {
  background: color-mix(in srgb, var(--neutral-light) 10%, transparent);
}

.dark-theme .skill-tag {
  background: rgba(var(--text-color), 0.2);
}

/* Адаптация */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-category {
    padding: 16px;
  }
}