* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }

        header {
            background-color: #ffffff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 5%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: #2c3e50;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            text-decoration: none;
            color: #555;
            font-weight: 500;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: #3498db;
        }

        main {
            max-width: 1200px;
            margin: 0 auto;
            padding: 3rem 5%;
        }

        section {
            margin-bottom: 4rem;
            background-color: #ffffff;
            padding: 2rem;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .about-content {
            display: flex;
            gap: 3rem;
            align-items: center;
        }

        .about-text {
            flex: 1;
            font-size: 22px;
        }

        .about-image {
            flex: 0 0 300px;
        }

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

        h1 {
            font-size: 2.5rem;
            color: #2c3e50;
            margin-bottom: 1rem;
        }

        h2 {
            font-size: 2rem;
            color: #2c3e50;
            margin-bottom: 1.5rem;
            border-bottom: 3px solid #3498db;
            padding-bottom: 0.5rem;
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-top: 1.5rem;
        }

        .skill-item {
            background-color: #f0f8ff;
            padding: 1.5rem;
            border-radius: 6px;
            text-align: center;
            transition: transform 0.3s;
        }

        .skill-item:hover {
            transform: translateY(-5px);
        }

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

        .project-card {
            background-color: #f8f9fa;
            padding: 1.5rem;
            border-radius: 6px;
            border-left: 4px solid #3498db;
        }

        .project-card h3 {
            color: #2c3e50;
            margin-bottom: 0.5rem;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        footer {
            background-color: #3498db;
            color: #ffffff;
            padding: 2rem 5%;
            text-align: center;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-top: 1rem;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: #ffffff;
            text-decoration: none;
            transition: opacity 0.3s;
        }

        .footer-links a:hover {
            opacity: 0.8;
        }

        @media (max-width: 768px) {
            .nav-links {
                gap: 1rem;
            }

            h1 {
                font-size: 2rem;
            }

            h2 {
                font-size: 1.5rem;
            }

            .about-content {
                flex-direction: column;
            }

            .about-image {
                flex: 0 0 auto;
                width: 100%;
                max-width: 300px;
            }
        }
        /* ====== ТЕМЫ ====== */

/* Плавный переход */
body {
  transition: background-color 0.4s, color 0.4s;
}

/* Темная тема */
body.dark-mode {
  background-color: #1a1a1a;
  color: #f8f9fa;
}

/* Темная тема — элементы */
body.dark-mode header {
  background-color: #2a2a2a;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

body.dark-mode section {
  background-color: #2a2a2a;
  color: #f8f9fa;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

body.dark-mode .skill-item {
  background-color: #333;
}

body.dark-mode .project-card {
  background-color: #2a2a2a;
  border-left: 4px solid #9b59b6;
}

body.dark-mode .nav-links a {
  color: #f8f9fa;
}

body.dark-mode .nav-links a:hover {
  color: #9b59b6;
}

body.dark-mode footer {
  background-color: #111;
}

/* ====== КНОПКА ПЕРЕКЛЮЧЕНИЯ ====== */
.theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.theme-toggle:hover {
  transform: scale(1.2);
}
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.back-to-top:hover {
  transform: scale(1.1);
}

body.dark-mode .back-to-top {
  background: #9b59b6;
}
/* ====== ГАМБУРГЕР ====== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 110;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: 0.3s;
  border-radius: 3px;
}

/* Анимация иконки при открытии */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ====== Мобильное меню ====== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    background: #ffffff;
    flex-direction: column;
    width: 200px;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  /* Чтобы меню не мешало кнопке темы */
  .theme-toggle {
    position: absolute;
    right: 60px;
  }

  body.dark-mode .nav-links {
    background: #2a2a2a;
  }

  body.dark-mode .hamburger span {
    background: #f8f9fa;
  }
}


        
