/* =========================================
   Intro Grid (1/3 фото, 2/3 текст)
   ========================================= */
#about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr; 
  gap: var(--padding); 
  align-items: start;
}

@media (max-width: 800px) {
  #about-intro-grid {
    grid-template-columns: 1fr; /* Одна колонка */
  }
}

/* Фото */
.intro-photo-col img {
  width: 100%;
  height: auto;
  border-radius: var(--round-borders);
  border: 4px solid var(--sidebar-background-color); 
  box-shadow: 6px 6px 0px var(--sidebar-text-color);
  transition: all 0.2s;
}

.intro-photo-col img:hover {
  transform: scale(1.03);
}

/* Текст */
.intro-text-col h1 {
  margin-top: 0;
  font-family: var(--heading-font);
  color: var(--text-color);
}

.subtitle {
  font-size: 1.1em;
  color: var(--sidebar-text-color);
  margin-top: -3px;
  margin-bottom: var(--padding);
  font-style: italic;
  font-family: var(--font);
}

.intro-bio p {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Контакты */
.contact-info {
  margin-top: var(--padding);
  padding: var(--padding);
  background-color: rgba(255, 255, 255, 0.3); /* Немного высветляем фон под контактами */
  border-radius: var(--round-borders);
  border-left: 4px solid var(--link-color);
  font-family: var(--font);
}

.contact-info p {
  margin: 5px 0;
}



/* =========================================
   Кнопка скачивания
   ========================================= */
.button-link {
  display: inline-block;
  background-color: var(--link-color);
  color: #fff !important; /* Принудительно белый текст на кнопке */
  padding: 10px 20px;
  text-decoration: none;
  border-radius: var(--round-borders);
  font-family: var(--heading-font);
  font-weight: bold;
  border: 2px solid var(--sidebar-text-color);
  box-shadow: 3px 3px 0px var(--sidebar-text-color);
  transition: all 0.2s;
}

.button-link:hover {
  background-color: var(--link-color-hover);
  transform: translate(2px, 2px); /* Эффект нажатия */
  box-shadow: 1px 1px 0px var(--sidebar-text-color);
  text-decoration: none;
}

/* =========================================
   Опыт работы (Cards)
   ========================================= */
.job-card {
  /* Фон карточки чуть темнее или светлее основного, 
     здесь берем sidebar-background-color с прозрачностью или просто белый с прозрачностью */
  background-color: rgba(255,255,255, 0.4);
  border: 2px solid var(--sidebar-background-color);
  padding: var(--padding);
  margin-bottom: var(--margin);
  border-radius: var(--round-borders);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  border-bottom: 2px dashed var(--sidebar-background-color);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.job-header h3 {
  margin: 0;
  font-family: var(--heading-font);
  color: var(--text-color);
}

.job-date {
  font-family: var(--font);
  background: var(--sidebar-background-color);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

.job-content ul li {
  list-style-type: square; /* Квадратные маркеры в ретро стиле */
  margin-left: 20px;
}

/* Иконки */
.tech-stack-icons {
  font-size: 32px;
}



/* =========================================
   Education & Misc
   ========================================= */
.misc-container {
  display: flex;
  gap: var(--padding);
  flex-wrap: wrap;
}

.misc-container > div {
  flex: 1;
  min-width: 250px;
  background: rgba(255,255,255, 0.2);
  padding: var(--padding);
  border-radius: var(--round-borders);
  border: 1px solid var(--sidebar-background-color);
}


/* Картинки */
.images-showcase {
  display: flex;
  gap: var(--padding);
  flex-wrap: wrap;
  margin-top: var(--margin);
  align-items: center;
  justify-content: center;
}

.images-showcase a {
  position: relative; 
  display: inline-block; 
  text-decoration: none; 
}

.images-showcase img {
  height: 6em;
  width: 9em;
  display: block; 
  border: 2px solid var(--sidebar-text-color);
  border-radius: var(--round-borders);
  box-shadow: 4px 4px 0 var(--sidebar-background-color);
  transition: all 0.2s;
}

.images-showcase a:hover img {
  transform: scale(1.03);
}

.image-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  
  /* Визуал */
  font-size: 0.8em;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 5px;
  
  /* Чтобы скругления совпадали с низом картинки */
  border-bottom-left-radius: var(--round-borders);
  border-bottom-right-radius: var(--round-borders);
  
  pointer-events: none; 
}


/* ====================================================
   VPS INFO
======================================================= */
#vps-info img {
  width: 100%;
  height: auto;
  border-radius: var(--round-borders);
  border: 4px solid var(--sidebar-background-color);
  transition: all 0.2s;
}





/* =========================================
   Job Details (Expandable)
   ========================================= */
.job-details summary {
  list-style: none; /* Hide default triangle in Firefox/Standard */
  cursor: pointer;
  font-family: var(--heading-font);
  color: var(--link-color);
  font-weight: bold;
  font-size: 0.95em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px dashed var(--link-color);
  border-radius: var(--round-borders);
  transition: all 0.2s ease;
  user-select: none;
}

.job-details summary::-webkit-details-marker {
  display: none;
}

.job-details:not([open]) summary:hover {
  background: var(--link-color);
  color: #fff;
  border-style: solid;
}

.job-details summary::after {
  content: '▼'; 
  font-size: 0.7em;
  transition: transform 0.3s ease;
}

.job-details[open] summary::after {
  transform: rotate(180deg);
}

.job-details[open] summary {
  background: rgba(0, 0, 0, 0.05);
  border-style: solid;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.job-details ul {
  margin-top: 0;
  background: rgba(0, 0, 0, 0.05);
  padding: 15px; /* Adjust padding for list items */
  border: 1px solid var(--link-color);
  border-bottom-left-radius: var(--round-borders);
  border-bottom-right-radius: var(--round-borders);
  border-top-right-radius: var(--round-borders);
}
