body {
  font-family: 'Calibri', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

.navbar {
  background: linear-gradient(90deg, #6f1d80, #fae1ff);
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.nav-tabs {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-tabs li {
  margin: 0 10px;
}

.nav-tabs a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.nav-tabs a.active,
.nav-tabs a:hover {
  background-color: #400b5f;
}

.tab-content {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.project img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.content-with-image {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.text-content {
  flex: 2;
}

.image-container {
  flex: 1;
  text-align: center;
}

.profile-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

h1, h2, h3 {
  font-family: 'Calibri', sans-serif;
  background: linear-gradient(90deg, #5e0952, #e588f8);
  -webkit-background-clip: text;
  color: transparent;
  font-weight: bold;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 10px;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 20px 0;
}

a {
  color: #007BFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.project-list {
    width: 30%;
    max-width: 300px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.project-list ul {
    list-style-type: none;
    padding-left: 0;
}

.project-list li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.2s;
}

.project-list li:hover {
    background-color: #e0e0e0;
}

.project-details {
    width: 70%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animated {
  animation: slideUpFade 0.8s ease-out forwards;
  opacity: 0;
}

.animated-delay-1 { animation-delay: 0.1s; }
.animated-delay-2 { animation-delay: 0.2s; }
.animated-delay-3 { animation-delay: 0.3s; }
.animated-delay-4 { animation-delay: 0.4s; }
.animated-delay-5 { animation-delay: 0.5s; }
.animated-delay-6 { animation-delay: 0.6s; }
.animated-delay-7 { animation-delay: 0.7s; }
.animated-delay-8 { animation-delay: 0.8s; }
.animated-delay-9 { animation-delay: 0.9s; }
.animated-delay-10 { animation-delay: 1.0s; }
.animated-delay-11 { animation-delay: 1.1s; }
.animated-delay-12 { animation-delay: 1.2s; }
.animated-delay-13 { animation-delay: 1.3s; }
.animated-delay-14 { animation-delay: 1.4s; }
.animated-delay-15 { animation-delay: 1.5s; }
.animated-delay-16 { animation-delay: 1.6s; }
.animated-delay-17 { animation-delay: 1.7s; }
.animated-delay-18 { animation-delay: 1.8s; }
.animated-delay-19 { animation-delay: 1.9s; }
.animated-delay-20 { animation-delay: 2.0s; }
.animated-delay-21 { animation-delay: 2.1s; }
.animated-delay-22 { animation-delay: 2.2s; }
.animated-delay-23 { animation-delay: 2.3s; }
.animated-delay-24 { animation-delay: 2.4s; }
.animated-delay-25 { animation-delay: 2.5s; }
.animated-delay-26 { animation-delay: 2.6s; }
.animated-delay-27 { animation-delay: 2.7s; }
.animated-delay-28 { animation-delay: 2.8s; }
.animated-delay-29 { animation-delay: 2.9s; }
.animated-delay-30 { animation-delay: 3.0s; }
.animated-delay-31 { animation-delay: 3.1s; }
.animated-delay-32 { animation-delay: 3.2s; }
.animated-delay-33 { animation-delay: 3.3s; }
.animated-delay-34 { animation-delay: 3.4s; }

.profile-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: fadeIn 1s ease-out 1.8s forwards;
}

body {
  font-family: 'Calibri', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

.navbar {
  background: linear-gradient(90deg, #6f1d80, #fae1ff);
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.nav-tabs {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-tabs li {
  margin: 0 10px;
}

.nav-tabs a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.nav-tabs a.active,
.nav-tabs a:hover {
  background-color: #400b5f;
}

.tab-content {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.project img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.content-with-image {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.text-content {
  flex: 2;
}

.image-container {
  flex: 1;
  text-align: center;
}

.profile-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

h1, h2, h3 {
  font-family: 'Calibri', sans-serif;
  background: linear-gradient(90deg, #5e0952, #e588f8);
  -webkit-background-clip: text;
  color: transparent;
  font-weight: bold;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 10px;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 20px 0;
}

a {
  color: #007BFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.project-list {
    width: 30%;
    max-width: 300px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.project-list ul {
    list-style-type: none;
    padding-left: 0;
}

.project-list li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.2s;
}

.project-list li:hover {
    background-color: #e0e0e0;
}

.project-details {
    width: 70%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animated {
  animation: slideUpFade 0.8s ease-out forwards;
  opacity: 0;
}

.animated-delay-1 { animation-delay: 0.1s; }
.animated-delay-2 { animation-delay: 0.2s; }
.animated-delay-3 { animation-delay: 0.3s; }
.animated-delay-4 { animation-delay: 0.4s; }
.animated-delay-5 { animation-delay: 0.5s; }
.animated-delay-6 { animation-delay: 0.6s; }
.animated-delay-7 { animation-delay: 0.7s; }
.animated-delay-8 { animation-delay: 0.8s; }
.animated-delay-9 { animation-delay: 0.9s; }
.animated-delay-10 { animation-delay: 1.0s; }
.animated-delay-11 { animation-delay: 1.1s; }
.animated-delay-12 { animation-delay: 1.2s; }
.animated-delay-13 { animation-delay: 1.3s; }
.animated-delay-14 { animation-delay: 1.4s; }
.animated-delay-15 { animation-delay: 1.5s; }
.animated-delay-16 { animation-delay: 1.6s; }
.animated-delay-17 { animation-delay: 1.7s; }
.animated-delay-18 { animation-delay: 1.8s; }
.animated-delay-19 { animation-delay: 1.9s; }
.animated-delay-20 { animation-delay: 2.0s; }
.animated-delay-21 { animation-delay: 2.1s; }
.animated-delay-22 { animation-delay: 2.2s; }
.animated-delay-23 { animation-delay: 2.3s; }
.animated-delay-24 { animation-delay: 2.4s; }
.animated-delay-25 { animation-delay: 2.5s; }
.animated-delay-26 { animation-delay: 2.6s; }
.animated-delay-27 { animation-delay: 2.7s; }
.animated-delay-28 { animation-delay: 2.8s; }
.animated-delay-29 { animation-delay: 2.9s; }
.animated-delay-30 { animation-delay: 3.0s; }
.animated-delay-31 { animation-delay: 3.1s; }
.animated-delay-32 { animation-delay: 3.2s; }
.animated-delay-33 { animation-delay: 3.3s; }
.animated-delay-34 { animation-delay: 3.4s; }

.profile-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: fadeIn 1s ease-out 1.8s forwards; /* Появляется последним */
}

/* НОВЫЕ СТИЛИ ДЛЯ МОДЕРНИЗАЦИИ */

.hero-section {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #6f1d80;
}

.tech-group {
  display: flex;
  flex-direction: column;
}

.tech-group strong {
  font-size: 0.9rem;
  color: #5e0952;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-group span {
  font-size: 0.85rem;
  color: #333;
  line-height: 1.4;
}

.intro-text {
  font-size: 1.1rem;
  margin: 20px 0;
  color: #444;
}

.achievements-title {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.achievement-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.achievement-card h4 {
  margin-top: 0;
  color: #5e0952;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.achievement-card ul {
  padding-left: 20px;
  margin: 0;
}

.achievement-card li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.contact-info {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.9rem;
}

.diagram-container {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 20px 0;
  overflow-x: auto;
  text-align: center;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, #6f1d80, #fae1ff);
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 10px 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .tech-stack-grid {
    grid-template-columns: 1fr;
  }
  
  .project-layout {
    flex-direction: column;
  }
  
  .project-list, .project-details {
    width: 100%;
  }
}