/* Multi-page website with left sidebar - Mesh.html inspired styling */

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-size: 14px;
  line-height: 20px;
  font-weight: normal;
  font-style: normal;
  font-family: Consolas, monaco, monospace;
  color: #333333;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  height: 100vh;
  overflow-x: hidden;
}

/* Container Layout */
.container {
  display: flex;
  min-height: 100vh;
  /*max-width: 1200px;*/
  margin: 0 auto;
}

/* Left Sidebar */
.sidebar {
  width: 250px;
  background-color: #f8f8f8;
  border-right: 1px solid #ddd;
  padding: 20px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-header {
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
}

.sidebar-header h1 {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.sidebar-header h1 a {
  text-decoration: none;
  color: #333;
  border-bottom: none;
}

.sidebar-header h1 a:hover {
  color: #000;
}

.sidebar-header .subtitle {
  font-size: 12px;
  color: #666;
  margin: 0;
  font-style: italic;
  line-height: 1.3;
}

/* Navigation Links */
.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin-bottom: 8px;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  border-bottom: none;
  border-radius: 3px;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.nav-links a:hover {
  background-color: #dddddd;
  color: #000;
}

.nav-links a.active {
  background-color: #333;
  color: #fff;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 250px;
  padding: 20px 40px;
  background-color: #fff;
}

.image-caption {
  font-style: italic;
}

.content {
  /*max-width: 700px;*/
  margin: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.25;
  color: #313131;
  font-family: Consolas, monaco, monospace;
}

h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

h3 {
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
}

h4 {
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
}

p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  word-wrap: break-word;
}

/* Links */
a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #b1b1b1;
}

a:hover {
  /*border-bottom: 1px solid #555;*/
  color: #000;
}

.download-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-bottom: 20px;
  font-weight: bold;
}

.download-link:hover {
  background-color: #e0e0e0;
  border-bottom: 1px solid #ccc;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

.profile-photo {
  /*width: 150px;
  border: 2px solid #ddd;
  border-radius: 50%;
  height: 150px;*/
  width: 300px;
  object-fit: cover;
  margin: 0 auto 20px auto;
  display: block;
  background-image: url("img/profile.jpg");
  background-size: cover;
  background-position: center;
}

.section-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  border: 0px solid #ddd;
  margin: 20px auto;
  display: block;
}

/* GPT!!! */

.research-image-container {
    text-align: center;
    margin: 20px 0;
}

.image-pair {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    padding-bottom: 40px;
}

.image-item {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    height: 300px;
}

.image-item .section-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.image-caption {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .image-pair {
        flex-direction: column;
        align-items: center;
    }
    
    .image-item {
        width: 100%;
        max-width: 100%;
    }
}

.research-image-container,
.olympiad-image-container,
.teaching-image-container {
  text-align: center;
  margin: 20px 0;
  border: 0px;
}


.about-text {
  margin-top: 20px;
}

/* Lists */
ul, ol {
  padding-left: 25px;
  margin-bottom: 15px;
}

ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.technical-list li,
.achievements-list li,
.interests-list li,
.olympiad-achievements li {
  margin-bottom: 10px;
}

/* CV Sections */
.cv-section {
  margin-bottom: 30px;
}

.cv-item {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.cv-item:last-child {
  border-bottom: none;
}

.cv-item h4 {
  margin-bottom: 5px;
  font-size: 16px;
}

.cv-position {
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}

.cv-details {
  margin-bottom: 5px;
  font-style: italic;
}

.cv-date {
  color: #777;
  font-size: 13px;
  margin-bottom: 0;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 15px;
}

.skill-category h4 {
  margin-bottom: 8px;
  color: #333;
}

.skill-category p {
  margin-bottom: 0;
  color: #666;
}

/* Research Sections */
.achievements-section {
  margin-top: 20px;
}

.item {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 3px solid #ddd;
}

.item h4 {
  margin-top: 0;
  margin-bottom: 8px;
}

/* Olympiad Sections */
.camps-section {
  margin-top: 20px;
}

.camp-item {
  margin-bottom: 25px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 3px;
}

.camp-item h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

.experience-section {
  margin-top: 20px;
}

.links-placeholder {
  font-style: italic;
  color: #666;
  margin-top: 20px;
}

/* Teaching Sections */
.teaching-activities {
  margin-top: 20px;
}

.activity-item {
  margin-bottom: 25px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 3px;
}

.activity-item h4 {
  margin-top: 0;
  margin-bottom: 5px;
}

.activity-period {
  font-weight: bold;
  color: #666;
  margin-bottom: 3px;
  font-size: 13px;
}

.activity-institution {
  font-style: italic;
  color: #555;
  margin-bottom: 8px;
}

.activity-description {
  margin-bottom: 0;
}

.specialties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 15px;
}

.specialty-category {
  padding: 12px;
  background-color: #f9f9f9;
  border-radius: 3px;
}

.specialty-category h4 {
  margin-top: 0;
  margin-bottom: 8px;
}

.specialty-category p {
  margin-bottom: 0;
  color: #666;
}

/* Contact Sections */
.contact-intro {
  margin-bottom: 30px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 3px;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
}

.contact-item p {
  margin-bottom: 0;
}

.contact-areas {
  margin-bottom: 30px;
}

.contact-areas ul {
  margin-top: 10px;
}

.note {
  padding: 15px;
  background-color: #fff0f0;
  border-left: 3px solid #e24a4a;
  border-radius: 3px;
}

.contact-note p {
  margin-bottom: 0;
  margin-top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }
  
  .nav-links {
    padding-top: 40px;
  }
  .main-content {
    margin-left: 0;
    padding: 40px 20px 20px;
  }

  .main-content h2 {
    padding-top: 0px;
  }

  .sidebar-header {
    display: none;
  }
  
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .nav-links li {
    margin-bottom: 0;
  }
  
  .nav-links a {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .sidebar-header .subtitle {
    display: none;
  }
}
/*
@media (max-width: 480px) {
  .sidebar {
    padding: 15px;
  }
  
  .main-content {
    padding: 15px;
  }
  
  .content {
    max-width: 100%;
  }
  
  h2 {
    font-size: 20px;
  }
  
  h3 {
    font-size: 16px;
  }
  
  .profile-photo {
    width: 120px;
    height: 120px;
  }
  
  .section-image {
    max-width: 100%;
  }
  
  .skills-grid,
  .specialties-grid {
    grid-template-columns: 1fr;
  }
}
  */

/* Print Styles */
@media print {
  .sidebar {
    display: none;
  }
  
  .main-content {
    margin-left: 0;
    padding: 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
  }
  
  a {
    color: #000;
    border-bottom: none;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

