/* --- Variables & Reset --- */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --bg-color: #ffffff;
    --bg-secondary: #f3f4f6;
    --text-color: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-main: 'Inter', sans-serif;
  }
  
  [data-theme="dark"] {
    --primary-color: #60a5fa;
    --primary-hover: #3b82f6;
    --bg-color: #111827;
    --bg-secondary: #1f2937;
    --text-color: #f9fafb;
    --text-secondary: #9ca3af;
    --border-color: #374151;
    --card-bg: #1f2937;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
  }
  
  ul {
    list-style: none;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* --- Typography --- */
  h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .section__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
  }
  
  .section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
  }
  
  /* --- Buttons --- */
  .btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: white;
  }
  
  .btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
  }
  
  .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
  }
  
  .btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  .btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
  }
  
  .btn-small:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
  }
  
  /* --- Header --- */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
  }
  
  .header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  .logo span {
    color: var(--primary-color);
  }
  
  .header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
  }
  
  .burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .burger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
  }
  
  .nav__list {
    display: flex;
    gap: 30px;
  }
  
  .nav__link {
    font-weight: 500;
    transition: var(--transition);
  }
  
  .nav__link:hover {
    color: var(--primary-color);
  }
  
  /* --- Hero Section --- */
  .hero {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
  }
  
  .hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
  
  .hero__title {
    font-size: 3rem;
    margin-bottom: 20px;
  }
  
  .highlight {
    color: var(--primary-color);
  }
  
  .hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
  }
  
  .hero__actions {
    display: flex;
    gap: 15px;
  }
  
  .avatar-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    font-weight: bold;
    box-shadow: var(--shadow);
  }
  
  /* --- Sections General --- */
  .section {
    padding: 80px 0;
  }
  
  .section:nth-child(even) {
    background-color: var(--bg-secondary);
  }
  
  /* --- Skills --- */
  .skills__group {
    margin-bottom: 40px;
  }
  
  .skills__group-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
  }
  
  .skill-item {
    margin-bottom: 20px;
  }
  
  .skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
  }
  
  .progress-bar {
    width: 100%;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
  }
  
  .progress-bar__fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 1s ease-in-out;
  }
  
  .skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .tag {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
  }
  
  /* --- Projects --- */
  .projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .project-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }
  
  .placeholder-img {
    height: 200px;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: bold;
  }
  
  .project-card__content {
    padding: 20px;
  }
  
  .project-card__tags {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
  }
  
  .project-card__tags span {
    font-size: 0.8rem;
    background-color: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
  }
  
  .btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
  }
  
  .btn-link:hover {
    text-decoration: underline;
  }
  
  /* --- Education (Timeline) --- */
  .timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--border-color);
  }
  
  .timeline__item {
    margin-bottom: 40px;
    position: relative;
  }
  
  .timeline__item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-color);
  }
  
  .timeline__date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
  }
  
  .timeline__content h3 {
    margin-bottom: 5px;
  }
  
  /* --- Contact --- */
  .contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: 2px solid var(--primary-color);
    border-color: transparent;
  }
  
  .social-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }
  
  .social-list a {
    font-size: 1.1rem;
    transition: var(--transition);
  }
  
  .social-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
  }
  
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  
  /* --- Footer --- */
  .footer {
    padding: 30px 0;
    text-align: center;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
  }
  
  /* --- Responsive --- */
  @media (max-width: 992px) {
    .hero__title {
        font-size: 2.5rem;
    }
  }
  
  @media (max-width: 768px) {
    .header__actions {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: var(--transition);
        z-index: 999;
    }
  
    .header__actions.active {
        right: 0;
    }
  
    .burger {
        display: flex;
        z-index: 1001;
    }
  
    .nav {
        display: none; /* Скрываем десктопное меню */
    }
  
    .hero__container {
        flex-direction: column-reverse;
        text-align: center;
    }
  
    .hero__actions {
        justify-content: center;
    }
  
    .contact__wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero__title {
        font-size: 2rem;
    }
  }
  
  .project-img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Эта строчка сделает так, чтобы картинка заполняла блок без искажения пропорций */
    display: block;
}