/* ===== ОСНОВНЫЕ СТИЛИ ===== */
:root {
  --primary: #2c5aa0;
  --secondary: #667eea;
  --accent: #764ba2;
  --text: #333;
  --light: #f8f9ff;
  --white: #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.6;
  color: var(--text);
  min-height: 100vh;
}

.container {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  margin: 20px 0;
}

/* ===== НАВИГАЦИЯ ===== */
.nav-bar {
  background: white;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  color: var(--primary);
  background: transparent;
  border: 2px solid transparent;
}

.nav-links a:hover {
  background: var(--light);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Активная ссылка (для текущей страницы) */
.nav-links a.active {
  background: var(--light);
  color: var(--accent);
  border-color: var(--secondary);
}

/* Специальный стиль для Blog (выделяется) */
.nav-links .blog-link {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: white !important;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.nav-links .blog-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .nav-links {
    gap: 15px;
  }
  
  .nav-links a {
    padding: 6px 15px;
    font-size: 14px;
  }
}

/* ===== ХЕДЕР ===== */
.header {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--white);
  position: relative;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--white);
  margin: 0 auto 20px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
}

.name {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tagline {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.journey-tag {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  backdrop-filter: blur(10px);
  display: inline-block;
  text-decoration: none;
}

/* ===== СЕКЦИИ ===== */
.content-section {
  padding: 40px;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 30px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  border-radius: 2px;
}

/* ===== JOURNEY CARDS ===== */
.journey-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px 0;
}

.journey-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.journey-card {
  background: var(--light);
  padding: 25px;
  border-radius: 15px;
  border-left: 4px solid var(--secondary);
  transition: transform 0.3s ease;
}

.journey-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.journey-icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.journey-title {
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 20px;
}

.journey-period {
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 14px;
}

/* ===== APP CARDS ===== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.app-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  border: 1px solid #f0f0f0;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.app-image {
  height: 200px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
}

.app-content {
  padding: 25px;
}

.app-title {
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 20px;
}

.app-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.app-link {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.app-link:hover {
  background: var(--secondary);
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.skill-category {
  background: var(--light);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
}

.skill-icon {
  font-size: 40px;
  margin-bottom: 15px;
  color: var(--primary);
}

.skill-title {
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 18px;
}

/* ===== CONTACT ===== */
.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.contact-link {
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.contact-link:hover {
  transform: translateY(-3px);
}

.quote {
  font-style: italic;
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: white;
  border-radius: 15px;
  margin: 40px 0;
  font-size: 18px;
  line-height: 1.8;
}

/* ===== СТИЛИ БЛОГА ===== */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.blog-post {
  background: var(--light);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  border-left: 4px solid var(--secondary);
  transition: transform 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.blog-title {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 10px;
  text-decoration: none;
  display: block;
  font-weight: bold;
}

.blog-meta {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 15px;
}

.blog-excerpt {
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.read-more:hover {
  transform: translateY(-2px);
}

.back-link {
  display: inline-block;
  margin: 20px 0 30px 20px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  color: var(--accent);
}

/* ===== СТИЛИ СТАТЬИ ===== */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.article h1 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 10px;
}

.article h2 {
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary);
  border-left: 4px solid var(--secondary);
  padding-left: 20px;
}

.article h3 {
  font-size: 22px;
  margin-top: 30px;
  color: var(--accent);
}

.article p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.article blockquote {
  margin: 30px 0;
  padding: 20px 30px;
  background: var(--light);
  border-radius: 10px;
  font-style: italic;
  border-left: 4px solid var(--secondary);
}

.article pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 30px 0;
}

.article code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.article hr {
  margin: 50px 0;
  border: none;
  border-top: 2px solid var(--light);
}

.lead {
  font-size: 20px;
  line-height: 1.8;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 40px;
}

/* ===== АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
  .nav-links {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .nav-links a {
    font-size: 14px;
  }
  
  .blog-link {
    padding: 6px 15px;
  }
  
  .journey-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
  }
  
  .name {
    font-size: 28px;
  }
  
  .tagline {
    font-size: 18px;
  }
  
  .content-section {
    padding: 30px 20px;
  }
  
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
  
  .article h1 {
    font-size: 28px;
  }
  
  .article h2 {
    font-size: 24px;
  }
}