/* ========== GLOBAL RESET ========== */

html { scroll-behavior: smooth; }

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

/* ========== DARK THEME OVERRIDES ========== */
body.dark {
  background: #ffffff;
  color: #000000;
}

/* Перекрашиваем секции */
body.dark .hero-section,
body.dark .projects-section,
body.dark .about-section,
body.dark .contact-section {
  background: #ffffff !important;
}

/* Тексты */
body.dark .hero-subtitle,
body.dark .projects-subtitle,
body.dark .project-description,
body.dark .project-info-item,
body.dark .project-info-label,
body.dark .about-sub-text,
body.dark .contact-subtitle-text {
  color: #ccc;
}

/* Контакты */
body.dark .contact-email { color: #caff33; }

body {
  background: #0b0b0b; /* основной фон */
  color: #ffffff;      /* основной цвет текста */
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
}

/* Формы */
body.dark .form-input,
body.dark .form-textarea { 
  background: #1a1a1a !important;
  color: #fff;
  border: 1px solid #333;
}

/* Кнопки */
body.dark .submit-btn { background: #caff33; color: #0b0b0b; }
body.dark .submit-btn:hover { background: #b5ff00; }

/* Хедер и меню */
body.dark .header { background: rgba(18,18,18,0.9); }
body.dark .nav-menu { background: #1a1a1a; }
body.dark .nav-item { color: #f1f1f1; }

/* ========== THEME TOGGLE BUTTON ========== */
#theme-toggle {
  margin-left: 1rem;
  cursor: pointer;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* ========== CONTAINERS ========== */
.main-container {
  width: 100%;
  margin: 0 auto;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(11, 11, 11, 0.616);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8%;
  z-index: 999;
  backdrop-filter: blur(8px);
}

.nav-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  background: #111;
  position: absolute;
  top: 60px;
  right: 10px;
  padding: 1rem;
  border-radius: 8px;
}

.nav-menu.open {
  display: flex;
}

.nav-item:hover {
  color: #caff33;
}

.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
}

/* Большие экраны */
@media (min-width: 769px) {
  #hamburger { display: none; }
  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
  }
  .menu {
    display: flex;
    gap: 1rem;
  }
}

/* ========== HERO SECTION ========== */
.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 180px 8% 120px;
  background: #0b0b0b;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
}

.hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-text-section {
  flex: 1 1 500px;
}

.hero-text-content {
  margin-bottom: 40px;
}

.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 72px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 20px;
  color: #ffffff;
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.contact-btn {
  display: flex;
  align-items: center;
  background-color: #caff33;
  color: #0b0b0b;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  transition: 0.3s;
}

.contact-btn:hover { background-color: #b5ff00; }

.contact-btn-icon { width: 20px; margin-left: 10px; }

.github-btn {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  transition: 0.3s;
}

.github-btn:hover { background: #2a2a2a; }

.hero-image {
  width: 420px;
  border-radius: 12px;
}

/* ========== PROJECTS SECTION ========== */
.projects-section {
  background: #0e0e0e;
  padding: 120px 8%;
}

.projects-header { text-align: center; margin-bottom: 80px; }

.projects-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  letter-spacing: 1px;
}

.projects-subtitle {
  color: #bbbbbb;
  font-size: 18px;
  margin-top: 10px;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.project-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.project-card {
  flex: 1 1 480px;
  position: relative;
}

.project-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #caff33;
  color: #0b0b0b;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.project-image { width: 100%; border-radius: 12px; }

.project-content { flex: 1 1 500px; }

.project-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.project-description {
  color: #ccc;
  font-size: 17px;
  margin-bottom: 30px;
}

.project-info-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  margin-bottom: 10px;
}

.project-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-info-item {
  display: flex;
  justify-content: space-between;
  color: #aaa;
  border-bottom: 1px solid #222;
  padding-bottom: 5px;
}

.project-info-label { color: #777; }

/* ========== DIVIDER ========== */
.divider {
  height: 1px;
  width: 84%;
  background-color: #1d1d1d;
  margin: 120px auto;
}

/* ========== ABOUT SECTION ========== */
.about-section {
  background: #0b0b0b;
  padding: 100px 8%;
}

.about-content { max-width: 1100px; margin: 0 auto; }

.about-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  text-transform: uppercase;
  margin-bottom: 50px;
}

.about-text-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-text-content { flex: 1 1 550px; }

.about-main-text {
  font-size: 24px;
  color: #caff33;
  margin-bottom: 20px;
}

.about-sub-text { color: #ccc; font-size: 18px; }

.about-link {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
}

.about-link-text {
  color: #caff33;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.about-link-text:hover { color: #b5ff00; }

.about-link-line {
  width: 80px;
  height: 2px;
  background: #caff33;
  margin-top: 8px;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
  background: #0e0e0e;
  padding: 120px 8%;
}

.contact-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-left { flex: 1 1 400px; }

.contact-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.contact-subtitle-text { color: #bbbbbb; font-size: 16px; }

.contact-email { color: #caff33; font-weight: 600; cursor: pointer; }

.contact-email-line {
  width: 100%;
  height: 2px;
  background: #caff33;
  margin-top: 4px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.social-link {
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: transform 0.3s;
}

.social-link:hover { transform: scale(1.1); }

.contact-form {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label { color: #bbb; font-size: 15px; }

.form-input,
.form-textarea {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-size: 16px;
  font-family: "Manrope", sans-serif;
  resize: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #caff33;
  outline: none;
}

.submit-btn {
  align-self: flex-start;
  background: #caff33;
  color: #0b0b0b;
  border: none;
  border-radius: 8px;
  padding: 14px 36px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover { background: #b5ff00; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-main {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .hero-image { width: 300px; }

  .project-item { flex-direction: column; }

  .about-text-section { flex-direction: column; gap: 40px; }

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

@media (max-width: 768px) {
  .projects-title,
  .about-title,
  .contact-title { font-size: 36px; }
}
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #0b66ff;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.scroll-top:hover { background: #0853cc; }

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
