
/* -------------------- Fonts -------------------- */

@media (max-width: 769px) {
  html {
    /* Уменьшаем базовый размер шрифта на 30% */
    font-size: 90%; 
  }
}

/* -------------------- Lists -------------------- */

ul {
  list-style: disc;
  padding-left: 20px;
}

ul li {
  margin-bottom: 5px; /* отступ между пунктами */
}

ul li::marker {
  color: #fc7a67;
  font-weight: bold;
}

section  {
  width: 100%;
}



a { color: #fc7a67; }
a:hover { color: #fe7be2; }

/* Цвет выделения */
::selection {
  background-color: #fe7be4;
  color: #000000; /* чтобы текст был виден на ярком фоне */
}

html {
  scroll-behavior: smooth;
}

/* html, body {
  -ms-overflow-style: none !important;  
  scrollbar-width: none !important;    
} */

/* -------------------- Root Variables -------------------- */
:root {
  --bg: #e9e7ec;
  --card: #ffffff;
  --text: #111;
  --muted: #bbb;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* -------------------- Header -------------------- */
.main-header {
  position: fixed;
  top: 0;
  max-width: 100dvw;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  /* backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);*/
  padding: 10px 0;
  transition: all 0.3s ease;
}

@media(max-width:500px){
.main-header .header-inner .container{
max-width: 100px; 
padding: 0;

}}


.main-header.scrolled {
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* чтобы кнопка языка и ссылки были справа */
  gap: 10px; /* уменьшенный промежуток между кнопкой и ссылками */
  height: 70px;
}

/* Хедер ссылки в черном прямоугольнике */
.header-nav {
  background: #111;
  border-radius: 12px;
  padding: 8px 16px;
  display: flex;
  gap: 30px;
}

/* Элемент будет скрыт, если ширина экрана 550px или меньше */
@media (max-width: 700px) {
  .header-nav {
    display: none;
  }
}

.header-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  white-space: nowrap;
}

.header-nav a:hover {
  color: #fc7a67;
}


/* -------------------- Language Popup -------------------- */
.language {
  position: relative;
}

.lang-btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
  white-space: nowrap;
}

.lang-btn:hover {
  background: #333;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background: #111;
  border-radius: 12px;
  padding: 10px 0;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  min-width: 140px;
  z-index: 10;
}

.lang-menu.show {
  display: flex;
}

.lang-option {
  background: #111;
  color: #fff;
  padding: 10px 20px;
  text-align: left;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1.0rem; 

}

.lang-option:hover {
  background: #333;
}

/* -------------------- Top Gradient / Hero -------------------- */
.top-gradient { 
  background: linear-gradient(90deg,#fca54d,#fc7a67,#ff7bfb);
  padding-top: 70px; /* чтобы header не перекрывал */
  padding-bottom: 30px;
  min-height: 100vh;


    display: flex;
  align-items: center;   /* ВОТ ЭТО центрирует по вертикали */

  
}



/* Hero */
.hero {
  padding: 10px 0 30px;
}
/* .hero {
    display: flex;
    flex-direction: column; 
    align-items: center;     
    text-align: center;      
    justify-content: center; 
    min-height: 80vh;        
} */



.heroTitles{
    font-size: 4.35rem; 
    max-width: 600px;
    margin-bottom: 30px;


/*     
    margin-left: auto;
    margin-right: auto; */
}

#about_me_text, #about_me_text_en {
  max-width: 850px;  
  /* text-align: start; */
}

.hero p {
  line-height: 1.8;
  font-size: 1.5rem; 
  margin-bottom: 1.3em;

  
}

/* Hero CV Button */
.hero-cv {
  background: #111;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
    font-size: 1.5rem; 

}

.hero-cv:hover {
  background: #333;
  color: #fff;
}

/* -------------------- Section Titles -------------------- */
.section-title {
  text-align: center;
  font-size: 48px;
  margin-bottom: 80px;
}

/* -------------------- Skills -------------------- */
.skills {
  padding: 90px 0;
}

.skill-item {
  margin-bottom: 70px;
}

.skill-card {
  background: var(--card);
  padding: 35px 50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}


.skill-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.skill-card p {
  font-size: 1.3rem;
  line-height: 1.6;
}
#soft-skills{
  font-size: 1.3rem;
  line-height: 1.6;
}
.softskills-list{
  font-size: 1.3rem;
  line-height: 1.6;
}


/* -------------------- Portfolio -------------------- */
.portfolio {
  background: #111;  /* темный фон секции */
  color: white;
  padding: 80px 0;
}
#section-title-Portfolio{
  margin-bottom: 60px;
}

.portfolio h1,
.portfolio h2,
.portfolio h3,
.portfolio h4 {
  margin-bottom: 12px;
}

.portfolio p,
.portfolio ul,
.portfolio div {
  margin-bottom: 8px;
}

/* Списки с цветными маркерами */
.portfolio-projects ul {
  margin-left: 20px;
  padding-left: 12px;
}

.portfolio-projects li {
  margin-bottom: 4px;
  line-height: 1.5;
}

.portfolio-projects ul li::marker {
  color: #fc7a67;
  font-weight: bold;
}

/* -------------------- Portfolio Cards -------------------- */

.portfolio-cards {
  display: flex;
  flex-direction: column;   /* карточки друг под другом */
  gap: 40px;
  align-items: center;
  
}

/* Горизонтальная карточка */
.portfolio-cards .project {
  display: flex;            /* горизонтальная структура */
  flex-direction: row;
  background: #fff;
  color: #111;
  width: 100%;
  max-width: 900px;         /* шире */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.3rem;
  line-height: 1.6;
}

/* чтобы текст занимал всё пространство */
.portfolio-cards .project-text {
  width: 100%;
}

/* убираем искусственную высоту */
.portfolio-cards .project {
  min-height: auto;
}

.portfolio-cards .project {
  align-items: flex-start;
}


.portfolio-cards .project:hover {
  transform: translateY(-8px); /* чуть сильнее */
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

/* -------------------- WHY ME -------------------- */
.why_me{
  /* background-color: #fc7a67; */
  background: linear-gradient(90deg, #ff7bfb, #fc7a67, #fca54d);
  padding: 40px 0;
  display: flex;
  flex-direction: column;
}

.why_me p{
  font-size: 1.5rem;
}
.why_me_text{
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------- Education -------------------- */
.education {
  padding: 120px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.5rem;

}

.education .section-title {
  margin-bottom: 50px; /* отступ под заголовком секции */
}

.firstinEducation{
  padding-bottom: 20px;
}

.education-item {
  max-width: 900px;
  width: 100%;
  text-align: left;

}

.education-item ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  
}

.education-item ul li {
  margin-bottom: 5px; /* отступ между пунктами */
}

.education-item ul li::marker {
  color: #fc7a67;
  font-weight: bold;
}
/* -------------------- Footer -------------------- */
footer {
  padding: 60px 0;
  text-align: center;
  background: #000;
  color: white;
}

footer a {
  display: block;
  margin-bottom: 16px; /* больше отступ между ссылками */
  color: white;
  text-decoration: none;
  font-size: 1.6rem; /* увеличенный текст */
  line-height: 1.8;  /* чтобы было воздушнее */
}


@media(max-width:500px){
.calltaction{
  font-size: 1.8rem; /* увеличенный текст */

}}

/* -------------------- Responsive -------------------- */
@media(max-width:900px){
  .portfolio .project{
    grid-template-columns: 1fr;
  }
  /* .header-inner {
    flex-direction: column;
    gap: 10px;
  } */
}