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

body {
  background-color:#12101A;      /*#12101A; */
  color: #e5e5e5;              
  font-family: 'Lato', sans-serif; 
  min-height: 100vh;           
  display: flex;
  flex-direction: column;

}

.navbar,
.content-Home,
.content-AboutMe,
.content-Education,
.content-WorkExperience,
.content-CompliteProject,
.content-ProfileHighlight,
.content-ProfessionalFocus,
.content-slider {

  margin-left: 10%;   
  margin-right: 10%;
  
}

.navbar {
  background: #12101A;
  display: flex;
  align-items: center;      /* по вертикали */
  justify-content: space-between; /* логотип - меню - кнопка */
  padding-top: 40px;
}

.header-button{
  width: 130px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background-color: #FD6F00;
  color: white;
  font-weight: 00;
}

.header-nav {
  display: flex;
  gap: 100px;
  color: #e5e5e5;
  z-index: 1000;
}

.header-nav a {
  color: #959595;
  font-family: Preahvihear;
  font-size: 1.2em;
}

.header-nav :hover{
  color: #FD6F00;
}

.content-Home {
  display: flex;
  flex: 1 1 auto;              /* занимать доступное пространство */
  height: calc(100vh - 60px);   /* оставшаяся высота после nav */
}

.block {
  flex: 1;                   
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
}

.block-left {
  display: flex;
  flex-direction: column; /* ← Ставим вертикальную ориентацию */
  justify-content: center;
  align-items: flex-start; 
  gap: 20px;
}

.block-left h3 {
  font-size: 1em;
  background: linear-gradient(90deg, #d8063b 0%, #dc0f80 46%, #00cac0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;

}

.block-right{
  
}

.block-right img {
  position: absolute;
  max-width: 100%;
  height: auto;
}

/* Можно управлять размерами и положением отдельно */
.block-right img:first-child {
  width: 1100px;           /* backgroundCircle */
  z-index: 1;
}

.block-right img:last-child {
  width: 800px;           /* image_man поверх круга */
  z-index: 2;
}

.intro {
  color: #999;
  font-size: 1.1rem;
  margin: 0;
}

.name {
  font-size: 1.6rem;
  font-weight: bold;
  color: #959595;
}

.role {
  background: linear-gradient(90deg, #984300 0%, #FD6F00 46%, #CA5900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  font-size: 100px;
}

.socials {
  margin: 20px 0;
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.social-icon {
  width: 46px;
  height: 46px;
  background: #1F1F2A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.social-icon:hover {
  background: #FF7A01;
}

.buttons {
  margin: 30px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hire {
  background-color: #FD6F00;
  border: none;
  padding: 12px 28px;
  color: white;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.cv {
  background: none;
  border: 2px solid #888;
  color: #ddd;
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.stats {
  width: 700px;
  height: 150px;
  align-items: center;
  background-color: #48426217;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  border-radius: 20px;
}

.stats div {
  text-align: start;
  font-size: 1.5rem;
  font-weight: 500;
  flex: 1;
  color: white;
  border-right: 2px solid #444;
  margin-left: 20px;
}

.stats div:last-child {
  border-right: none;
}

.number {
  color: #FD6F00;
  font-size: 1.8rem;
  font-weight: 800;

}


/* Медиа-запрос для экранов < 768px */
@media (max-width: 768px) {
  .header-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .header-nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .header-button {
    display: none;
  }
}



/* ===========================
   📱 Адаптивность
   =========================== */

/* 🟩 Большие экраны (1440px+) */
@media (min-width: 1440px) {
  .content-Home {

  }

  .role {
    font-size: 120px; /* 🟩 Крупнее текст */
  }

  .stats {
    width: 900px; /* 🟩 Шире блок статистики */
  }
}


/* 🟩 Ноутбуки (1024px – 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
  .header-nav {
    gap: 50px; /* 🟩 Уменьшаем расстояние между пунктами меню */
  }

  .role {
    font-size: 80px; /* 🟩 Текст поменьше */
  }

  .stats {
    width: 600px; 
  }

   .block-right img:first-child {
    width: 900px; 
  }

  .block-right img:last-child {
    width: 600px;
  }
}

/* 🟩 Планшеты (768px – 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 20px;
  }

  .content-Home {
    flex-direction: column;
    text-align: center;
    height: auto; /* 🟩 Убираем фиксированную высоту */
  }

  .block-left {
    align-items: center;
  }

  .block-right img:first-child {
    width: 700px; 
  }

  .block-right img:last-child {
    width: 500px;
  }

  .stats {
    width: 100%;
    flex-direction: column; /* 🟩 Делаем вертикальный стек */
    height: auto;
    gap: 10px;
  }

  .stats div {
    border-right: none;
    border-bottom: 2px solid #444;
    margin: 0;
    padding: 10px 0;
    text-align: center;
  }

  .stats div:last-child {
    border-bottom: none;
  }
}


footer {
  background:  #030305 ;
  color: #878787;
  font-size: 1em;
  font-weight: 100;
  text-align: center;
  padding: 20px 0;
}

/* 🟩 Смартфоны (до 767px) */
@media (max-width: 767px) {
  .header-nav {
    display: none; /* 🟩 Можно будет заменить на бургер-меню */
  }

  .header-button {
    width: 100px;
    height: 36px;
    font-size: 0.9rem;
  }

  .content-Home {
    flex-direction: column;
    padding: 20px;
  }

  .role {
    font-size: 48px; /* 🟩 Меньше заголовок */
  }

  .name {
    font-size: 1.2rem;
  }

  .socials {
    justify-content: center;
  }

  .buttons {
    flex-direction: column;
    gap: 12px;
  }

  .stats {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    height: auto;
  }

  .stats div {
    border: none;
    text-align: center;
  }

  .block-right img:first-child {
    width: 400px;
  }

  .block-right img:last-child {
    width: 280px;
  }
}


/* Ноутбуки: шапка и первый экран без фиксированной ширины и наложений. */
@media (min-width: 1024px) and (max-width: 1920px) {
  .navbar {
    padding-top: 28px;
    gap: 24px;
  }

  .navbar .header-nav {
    gap: clamp(24px, 4vw, 64px);
  }

  .navbar .header-nav a {
    font-size: clamp(16px, 1.2vw, 19px);
  }

  .navbar .header-button {
    width: clamp(110px, 9vw, 130px);
    flex-shrink: 0;
  }

  .content-Home {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(24px, 3vw, 56px);
    flex: none;
    height: auto;
    min-height: calc(100svh - 96px);
    padding-block: clamp(28px, 4vh, 56px);
  }

  .content-Home > .block {
    min-width: 0;
  }

  .content-Home > .block-left {
    gap: clamp(10px, 1.5vh, 18px);
  }

  .content-Home .name {
    font-size: clamp(20px, 1.8vw, 26px);
  }

  .content-Home h1.role {
    font-size: clamp(48px, min(5.4vw, 10vh), 104px);
    line-height: 1.08;
  }

  .content-Home .block-left h3 {
    font-size: clamp(18px, 1.8vw, 30px);
    line-height: 1.3;
  }

  .content-Home .socials,
  .content-Home .buttons {
    margin-block: 4px;
    flex-wrap: wrap;
  }

  .content-Home .hire,
  .content-Home .cv {
    min-height: 44px;
    font-size: 16px;
  }

  .content-Home .stats {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: clamp(16px, 1.5vw, 24px);
  }

  .content-Home .stats div {
    min-width: 0;
    margin-left: 0;
    padding-inline: clamp(8px, 1vw, 16px);
    font-size: clamp(14px, 1.1vw, 20px);
    line-height: 1.4;
  }

  .content-Home .stats div:first-child {
    padding-left: 0;
  }

  .content-Home .stats div:last-child {
    padding-right: 0;
  }

  .content-Home .number {
    font-size: clamp(22px, 1.8vw, 30px);
  }

  .content-Home > .block-right {
    display: grid;
    position: relative;
    aspect-ratio: 1;
    isolation: isolate;
  }

  .content-Home .block-right img {
    position: static;
    grid-area: 1 / 1;
    display: block;
    max-width: 100%;
    height: auto;
  }

  .content-Home .block-right img:first-child {
    width: 100%;
  }

  .content-Home .block-right img:last-child {
    width: 85%;
  }
}

/* Portfolio header interaction fix */
.navbar { position: relative; z-index: 20; }
/* Декоративные изображения не перехватывают нажатия. */
.content-Home .block-right img { pointer-events: none; }
