/* =========================
   Общие переменные
   ========================= */
:root {
  --accent-color: aquamarine;
  --main-text-color: #222;
  --bg: #111;
  --fg: #eee;
  --font-main: 'Fira Code', monospace;
}

/* =========================
   Header: Основная шапка
   ========================= */
header {
  height: 5rem;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  z-index: 99999;
}

/* =========================
   Header: Левая и правая части
   ========================= */
.header-left,
.header-right {
  height: 100%;
  display: flex;
  align-items: center;
}

.header-left {
  flex: 0.3;
  justify-content: space-evenly;
}

.header-right {
  flex: 0.7;
  justify-content: end;
}

img.main-logo {
  width: 70px;
  height: auto;
}

.title-logo {
  color: var(--accent-color);
  font-size: 28pt;
}

/* =========================
   Header: Навигация и меню
   ========================= */
.header-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  box-shadow: none;
}

.menu {
  display: flex;
  gap: 24px;
  list-style: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 8px 24px;
  box-shadow: 0 2px 12px rgba(34, 60, 80, 0.07);
  align-items: center;
  margin: 0;
}

.menu li {
  display: flex;
}

.menu a {
  display: block;
  padding: 8px 18px;
  border-radius: 8px;
  color: var(--main-text-color);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.menu a:hover,
.menu a:focus {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 2px 8px rgba(221, 181, 2, 0.15);
}

.menu a.active {
  background: var(--main-text-color);
  color: #fff;
}

/* =========================
   Header: Бургер-меню
   ========================= */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  cursor: pointer;
  width: 36px;
  height: 36px;
  margin-right: 20px;
  margin-left: auto;
  position: relative;
  z-index: 1100;
}

.burger span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--accent-color);
  border-radius: 2px;
  margin: 4px 0;
  transition: 0.3s;
}

/* =========================
   Hero: Секция и фон
   ========================= */
.header-hero {
  background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
  height: 800px;
  width: 100%;
  text-align: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* =========================
   Hero: Контент
   ========================= */
.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  gap: 2rem;
  z-index: 2;
}

/* =========================
   Hero: Слоган и кнопка
   ========================= */
.hero-content-top {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-slog {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  padding: 2rem 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-main-slog h1 {
  width: 100%;
  font-size: clamp(2.5rem, 6vw, 1.5rem); /* Гибкий размер для разных экранов */
  color: var(--accent-color); /* Яркий акцентный цвет */
  font-family: 'Montserrat', 'Viaoda Libre', sans-serif; /* Современный шрифт */
  font-weight: 900; /* Максимальная жирность для «логотипного» эффекта */
  text-transform: capitalize; /* Заглавные буквы для строгости */
  letter-spacing: 2px; /* Лёгкое растягивание для выразительности */
  text-shadow: 
    0 3px 3px rgba(0, 0, 0, 0.1),
    0 6px 10px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.2); /* Объёмная тень как у логотипов */
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 30%, rgba(255, 255, 255, 0.3) 70%); /* Лёгкий градиент за текстом */
  border-radius: 0 0 10px 10px; /* Скругление для мягкости */
  display: inline-block; /* Делаем блочным элементом для фоновых эффектов */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Тень вокруг блока */
  white-space: wrap; /* Запрещаем перенос строки */
  overflow: hidden; /* Скрываем переполнение */
}



/* Скачать резюме */
.resume-download-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  margin-top: 2rem;
}

.resume-label {
  font-weight: 700;
  font-size: 1.8rem;
  color: #eee;
  margin-bottom: 1rem;
  text-align: center;
}

.resume-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap; /* позволяет кнопкам переноситься на новую строку при узости экрана */
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(255, 165, 0, 0.3); /* лёгкая тень */
}

.resume-btn.pdf {
  background: #FFA500; /* насыщенный оранжевый для PDF */
  color: #fff;
}

.resume-btn.docx {
  background: #FFDAB9; /* светло-оранжевый для DOCX */
  color: #555;
}

.resume-btn[href*="rezume.html"] {
  background: #4CAF50; /* зелёный для "просмотреть" */
  color: #fff;
  box-shadow: 0 4px 6px rgba(76, 175, 80, 0.3); /* тень в тон фона кнопки */
}

.resume-btn i {
  font-size: 1.2rem;
}

/* Адаптация под мобильные устройства */
@media (max-width: 768px) {
  .resume-buttons {
    flex-direction: column; /* кнопки в столбик на мобильных */
    gap: 1rem;
  }

  .resume-btn {
    width: 100%; /* кнопки на всю ширину */
    margin-bottom: 0.5rem;
  }
}





/* =========================
   Hero: Нижний блок
   ========================= */
.hero-content-buttom {
   display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1000px;
  margin-top: 2rem;

}

/* =========================
   Hero: Заголовок
   ========================= */
.hero-title {
  height: 250px;
   flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-main);
  color: var(--fg);

}

.hero-title-name {
   font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent-color);

}

.hero-title-profession {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 1rem;

}

.hero-title-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: center;

}

.hero-title-link {
  margin: 15px 0 0 0 ;
  background: var(--accent-color);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 8px var(--accent-color);
}

.hero-title-link:hover {
  background: var(--accent-color);
  transform: scale(1.05);

}

/* =========================
   Hero: Кнопка "Оставить запрос"
   ========================= */
.hero-title-link.askQuery {
  background: var(--accent-color);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;

  font-size: 1.4rem;
  box-shadow: 0 4px 24px rgba(221, 181, 2, 0.15);
  border: none;
  outline: none;
  position: relative;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  animation: pulse-btn 1.5s infinite;
}

.hero-title-link.askQuery:hover,
.hero-title-link.askQuery:focus {
  background: #ffb300;
  color: #222;
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgba(221, 181, 2, 0.22);
  text-decoration: none;
}

@keyframes pulse-btn {
  0% {
    box-shadow: 0 0 0 0 rgba(221, 181, 2, 0.3);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(221, 181, 2, 0.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(221, 181, 2, 0.3);
  }
}
/* =========================
   social-media 
   ========================= */
.social-media {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 250px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-main);
  color: var(--accent-color);
}

.social-media span {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.separator {
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  margin-bottom: 1rem;
}

.social-media .icon {
  display: flex;
  gap: 1rem;
}

.social-media .icon a {
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform 0.2s ease;
}

.social-media .icon a:hover {
  transform: scale(1.2);
}




/* =========================
   Адаптивность
   ========================= */







@media screen and (max-width: 900px) {
  .menu {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 16px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(34, 60, 80, 0.15);
    border-radius: 12px;
    padding: 16px 0;
    gap: 0;
    min-width: 180px;
    z-index: 1000;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(.4, 0, .2, 1), opacity 0.3s;
    display: flex;
  }

  .menu.menu-open {
    max-height: 500px;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
  }

  .menu:not(.menu-open) {
    pointer-events: none;
  }

  .menu li {
    width: 100%;
  }

  .menu a {
    width: 100%;
    text-align: left;
    padding: 12px 24px;
    border-radius: 0;
    border-bottom: 1px solid #eee;
  }

  .menu a:last-child {
    border-bottom: none;
  }

  .burger {
    display: flex;
  }
}

@media screen and (max-width: 768px) {
  .header-right {
    flex: 0.3;
  }

  .header-left {
    flex: 0.7;
  }

  .title-logo {
    font-size: 18pt;
  }

  .header-nav {
    position: fixed;
    top: 1.8rem;
    z-index: 199;
  }

  .header-hero {
    height: auto;
  }

  .hero-content {
    flex-direction: column;
    margin-top: 6rem;
    padding: 20px;
    gap: 2rem;
  }

  .hero-content-top {
    flex-direction: column;
  }

  .hero-main-slog h1 {
    font-size: 1.6rem;
  }

  .hero-main-slog button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .hero-content-buttom {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .hero-title {
    width: 90%;
    max-height: 200px;
    align-items: center;
    text-align: center;
  }


  .social-media {
    max-height: 100px;
  }


  .hero-title-name {
    font-size: 17pt;
  }

  .hero-title-profession {
    font-size: 0.8rem;
    font-weight: 700;
    max-width: 100%;
    text-align: center;
  }

  .hero-title-links {
    display: none;
  }

  .social-media {
    width: 80%;
    flex-direction: column;
    font-size: 18px;
    padding: 0;
    transform: none;
    align-items: center;
  }

  .social-media .icon {
    flex-direction: row;
  }

  .hero-content .fa-brands,
  .hero-content .fab {
    transform: none;
  }
}