@font-face {
  font-family: 'Borel';
  src: url('../fonts/Borel-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inconsolata';
  src: url('../fonts/static/Inconsolata_Condensed-Bold.ttf') format('truetype');
  font-weight: 700; /* Браузер поймет, что при font-weight: 700 нужно брать этот файл */
  font-style: normal;
}

::-webkit-scrollbar {
  background-color: #000;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  background-color: #000;
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 15px;
  font-family: 'Inconsolata', monospace;
  color: #f1f1f1;
  position: relative;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #000;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    /* Верхний слой: затемнение */
    url('../img/bg.jpg');
  /* Нижний слой: твоя картинка */
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ФИКСИРОВАННОЕ ЗАТЕМНЕНИЕ НА ВЕСЬ САЙТ (Как в Home) */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  /* Затемнение 50% — регулируй это число, если хочешь светлее/темнее */
  z-index: -1;
  pointer-events: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

.clear {
  clear: both;
}

img {
  max-width: 100%;
  height: auto;
}

/* === СЕКЦИИ ТЕПЕРЬ ПРОЗРАЧНЫЕ === */
#conteneur-about,
#conteneur-skills,
#conteneur-qualification,
#conteneur-portfolio,
#conteneur-contact,
#conteneur-services,
#conteneur-process,
#conteneur-footer {
  padding: 100px 0px;
  background-color: transparent;
  overflow-x: hidden;
}

#conteneur-footer {
  padding-bottom: 30px;
}


/* === ПЛАВАЮЩИЕ "СТЕКЛЯННЫЕ" КАРТЫ === */
.floating-card {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  padding: 40px;
  background-color: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* HOME */
/* HOME */
#conteneur-home {
  width: 100%;
  height: 100vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 20px;
  opacity: 1;
  transform: none;
  background: transparent;
  /* Очищаем, чтобы просвечивал глобальный фон body */
}

.home {
  position: relative;
  z-index: 1;
  padding: 20px;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.home h1 {
  font-family: 'Borel', cursive;
  font-weight: 400;
  font-size: 6rem;
  color: #FBF12E;
  padding: 0;
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
}

.home h2 {
  font-family: 'Inconsolata', sans-serif;
  font-weight: 400;
  font-size: 3rem;
  color: #FBF12E;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ABOUT */
.about {
  display: flex;
  align-items: center;
  gap: 40px;
}

.profil-photo {
  width: 50%;
  flex-shrink: 0;
}

.profil-photo img {
  width: 90%;
  border-radius: 12px;
}

.profil-text {
  width: 50%;
  position: static;
  float: none;
}

/* ЗАГОЛОВКИ СЕКЦИЙ */
.title {
  text-align: center;
  width: 100%;
}

.profil-text .title {
  text-align: left;
}

.profil-text h2,
.title h2,
.qualification h2,
.portfolio h2,
.contact-container h2 {
  font-family: 'Borel', cursive;
  font-size: 2.5rem;
  font-weight: 700;
  color: #FBF12E;
  letter-spacing: 0px;
}

.profil-text p,
.title p {
  padding-bottom: 40px;
  /* === ИЗМЕНЕНО: РАЗМЕР И ЖИРНОСТЬ === */
  font-size: 1.3rem;     /* Было 1.1rem — сделали заметно крупнее */
  font-weight: 600;       /* Сделали текст плотнее (Medium) */
  line-height: 1.8;       /* Увеличили воздух между строками, чтобы крупный текст не слипался */
  letter-spacing: 0.5px;  /* Добавили эстетичный отступ между буквами */
  /* =================================== */
  
  color: #ebebeb;
}

.profil-text p {
  text-align: justify;
}

.title p {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


/* Кнопка */
.button {
  background: #ffffff;
  color: #000000;
  border-radius: 70px;
  border: none;
  box-shadow: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  padding: 1em 2em;
  outline: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
  user-select: none;
  position: static;
  text-decoration: none;
  display: inline-block;
}

.button:hover {
  background-color: #dddddd;
  transform: scale(1.05);
  box-shadow: none;
}

.button:active {
  transform: scale(0.98);
}

.button .text {
  color: #000000;
  font-weight: 700;
  transition: none;
}

.button:hover .text,
.button:active .text {
  transform: none;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 50px;
}

.bardiv {
  width: 100%;
  margin: auto;
  transition: all 0.3s ease;
}

.bardiv:hover {
  transform: scale(1.02);
}

.bardiv:hover h3 {
  color: #ffffff;
}

.bardiv:hover .progressbar span {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}


.bardiv h3 {
  font-size: 18px;
  font-weight: 500;
  padding-bottom: 8px;
  color: #eeeeee;
}

.progressbar {
  width: 100%;
  margin: auto;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  position: relative;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.progressbar span {
  height: 8px;
  background-color: #FBF12E;
  z-index: 888;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
  border-radius: 8px;
}

#conteneur-skills.show .html {
  width: 90%;
}

#conteneur-skills.show .css {
  width: 80%;
}

#conteneur-skills.show .javascript {
  width: 65%;
}

#conteneur-skills.show .php {
  width: 50%;
}

#conteneur-skills.show .figma {
  width: 35%;
}

#conteneur-skills.show .c {
  width: 60%;
}

#conteneur-skills.show .blender {
  width: 15%;
}

#conteneur-skills.show .python {
  width: 20%;
}

#conteneur-skills.show .sql {
  width: 30%;
}

#conteneur-skills.show .audition {
  width: 30%;
}

#conteneur-skills.show .premierpro {
  width: 50%;
}

#conteneur-skills.show .indesign {
  width: 40%;
}

#conteneur-skills.show .illustrator {
  width: 60%;
}

#conteneur-skills.show .photoshop {
  width: 40%;
}

/* DIPLOMA */
.qualification {
  text-align: center;
}

.qualification h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
}

.qualification h4 {
  font-size: 1.3rem;
  font-weight: 400;
  color: #aaa;
}

/* Делаем фон секции Processus темнее для контраста */
.process.floating-card {
  background-color: rgba(0, 0, 0, 0.6);
  /* Темнее */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  /* Чуть светлее фона карты */
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.service-card i {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #ccc;
}

/* PROCESSUS */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  padding: 30px;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.3s ease;
}

.process-step:hover {
  border-color: #FBF12E;
}

.process-number {
  font-size: 1rem;
  font-weight: 700;
  color: #888;
  margin-bottom: 20px;
}

.process-step h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 15px;
}

.process-step p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #e2e2e2;
}


.portfolio-filters {
  text-align: center;
  margin-bottom: 4rem;
}

/* === ДИЗАЙН ФИЛЬТРОВ === */
.filter-btn {
  background-color: transparent;
  color: #888;
  /* Приглушенный цвет */
  border: none;
  margin: 0.5rem 1rem;
  padding: 0.5rem 0;
  /* Убран боковой padding */
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #FBF12E;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.filter-btn:hover {
  color: #ffffff;
}

.filter-btn:hover::after {
  transform: scaleX(1);
}

.filter-btn.active {
  background-color: transparent;
  color: #ffffff;
  /* Яркий белый */
  font-weight: 700;
}

.filter-btn.active::after {
  transform: scaleX(1);
  /* Показываем линию */
}

/* === КОНЕЦ === */


.portfolio-list {
  max-width: 1000px;
  margin: 0 auto;
}

/* === ИСПРАВЛЕНИЕ: Убираем подчеркивание у ссылки Wix === */
a.portfolio-item,
a.portfolio-item:hover {
  text-decoration: none;
  color: inherit;
}

a.portfolio-item .portfolio-description h3 {
  color: #fff;
}

a.portfolio-item .portfolio-description p {
  color: #ccc;
}

a.portfolio-item .portfolio-description span {
  color: #888;
}

/* === КОНЕЦ ИСПРАВЛЕНИЯ === */


.portfolio-item {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 100px;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease, height 0.4s ease, margin 0.4s ease;
  height: auto;
  overflow: visible;
}

.portfolio-item.hide {
  opacity: 0;
  transform: scale(0.9);
  height: 0px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}


.portfolio-item .portfolio-description {
  flex: 1;
  text-align: left;
}

.portfolio-item .portfolio-image {
  flex: 1.2;
  position: relative;
}

.portfolio-item .portfolio-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease;
  transform: rotate(-2deg);
}

.portfolio-item:hover .portfolio-image img {
  transform: rotate(0deg) scale(1.05);
}

.portfolio-item.layout-image-left {
  flex-direction: row-reverse;
}

.portfolio-item.layout-image-left .portfolio-description {
  text-align: right;
}

.portfolio-item.layout-image-left .portfolio-image img {
  transform: rotate(2deg);
}

.portfolio-item.layout-image-left:hover .portfolio-image img {
  transform: rotate(0deg) scale(1.05);
}


.portfolio-description h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.portfolio-description p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 20px;
}

.portfolio-description span {
  font-size: 1.15rem;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
}

.contact-container .title p {
  padding-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  font-family: 'Inconsolata', monospace !important;
  width: 100%;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #FBF12E;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #FBF12E;
  background-color: rgba(255, 255, 255, 0.1);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  align-self: center;
  /* Кнопка по центру */
}

/* === КОНЕЦ: CONTACT FORM === */


/* FOOTER */
footer {
  background-color: transparent;
  padding: 60px 0 30px;
  position: relative;
  width: 100%;
  box-shadow: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 30px;
  position: relative;
}

.footer-left {
  display: flex;
  justify-content: center;
  align-items: center;
  left: 20px;
}

/* === СТИЛИЗАЦИЯ ИКОНОК В ФУТЕРЕ (ТОЧНЫЙ ЦВЕТ #FBF12E) === */
.footer-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px; /* Отступы между иконками */
  z-index: 5;
}

.footer-icons a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer-icons .handdrawn-icon-img {
  width: 45px;  
  height: 45px;
  display: block;
  background-color: #FBF12E; 
  content: ""; 
  transition: background-color 0.3s ease;
}

/* Подключаем пути масок из твоей структуры (social icons) */
.footer-icons a[href*="instagram"] .handdrawn-icon-img {
  -webkit-mask: url('../social icons/Insta.svg') no-repeat center / contain;
  mask: url('../social icons/Insta.svg') no-repeat center / contain;
}

.footer-icons a[href*="github"] .handdrawn-icon-img {
  -webkit-mask: url('../social icons/Github.svg') no-repeat center / contain;
  mask: url('../social icons/Github.svg') no-repeat center / contain;
}

.footer-icons a[href*="discord"] .handdrawn-icon-img {
  -webkit-mask: url('../social icons/Discord.svg') no-repeat center / contain;
  mask: url('../social icons/Discord.svg') no-repeat center / contain;
}

.footer-icons a[href*="t.me"] .handdrawn-icon-img {
  -webkit-mask: url('../social icons/Telegram.svg') no-repeat center / contain;
  mask: url('../social icons/Telegram.svg') no-repeat center / contain;
}

.footer-icons a[href*="linkedin"] .handdrawn-icon-img {
  -webkit-mask: url('../social icons/Linkedin.svg') no-repeat center / contain;
  mask: url('../social icons/Linkedin.svg') no-repeat center / contain;
}

/* Эффект интерактивности при наведении курсора */
.footer-icons a:hover {
  /* Игриво наклоняем всю ссылку */
  transform: scale(1.2) rotate(8deg); 
}

.footer-icons a:hover .handdrawn-icon-img {
  /* При наведении иконка внутри ссылки мгновенно и чисто становится белой */
  background-color: #ffffff; 
}

footer p {
  font-size: 18px;
  color: #acacac;
  margin: 10px 0;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
}



.privacy-link {
  display: inline-block;
  font-size: 18px;
  color: #acacac;
  margin-top: 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
  text-decoration: underline;
}

.privacy-link:hover {
  color: #ffffff;
}

.footer-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  color: #FBF12E;
  border: 1px solid #FBF12E;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: transparent;
}

.footer-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #FBF12E;
  transition: all 0.3s ease;
  z-index: -1;
}

.footer-button:hover::before {
  left: 0;
}

.footer-button:hover {
  color: #000000;
}

.scroll-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 999;
  background-color: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FBF12E;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}

.scroll-top::before {
  content: "\f062";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background-color: #ffffff;
  color: #000000;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.fade-in {
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  transition: opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#conteneur-home.fade-in {
  opacity: 1;
  transform: none;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0px) scale(1);
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: #1e1e1e;
  color: white;
  padding: 1em;
  border-radius: 10px;
  font-size: 0.95em;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  z-index: 10000;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#cookie-banner p {
  margin: 0;
}

.cookie-buttons button {
  padding: 0.6em 1.5em;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cookie-buttons .button-accept {
  background-color: #f0f0f0;
  color: #1e1e1e;
}

.cookie-buttons .button-accept:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}

.cookie-buttons .button-reject {
  background-color: #444;
  color: #d0d0d0;
}

.cookie-buttons .button-reject:hover {
  background-color: #777;
  color: #ffffff;
  transform: translateY(-2px);
}

#cookie-banner a {
  color: #4ea4f7;
  text-decoration: underline;
  font-weight: 500;
}

/* === АНИМАЦИЯ ПОЯВЛЕНИЯ ХЕАДЕРА === */
@keyframes slideDownHeader {
  0% {
    transform: translate(-50%, -150%);
    /* Начинается выше экрана */
    opacity: 0;
  }

  100% {
    transform: translate(-50%, 0);
    /* Встает на свое место */
    opacity: 1;
  }
}

/* === ИЗМЕНЕНО: ОПТИМИЗИРОВАННЫЙ Mobile Menu === */
.mobile-header {
  display: flex;
  position: fixed;
  top: 20px;
  left: 50%;

  /* Подсказка браузеру заранее подготовить видеокарту для этих анимаций */
  will-change: transform, background-color;

  /* Используем scale(1) по умолчанию */
  transform: translateX(-50%) scale(1);
  transform-origin: top center;
  /* Точка отсчета для уменьшения - верхний центр */
  width: 85%;
  /* Фиксируем ширину, больше ее не анимируем */
  max-width: 900px;
  box-sizing: border-box;
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 24px;
  /* Фиксируем padding */
  z-index: 1001;
  align-items: center;
  justify-content: space-between;
  border-radius: 50px;
  border: 1px solid #fff42b61;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideDownHeader 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.mobile-header.scrolled {
  transform: translateX(-50%) scale(0.96);
  background-color: rgba(10, 10, 10, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-header.menu-open {
  background-color: #000 !important;
  border-color: #333;
  backdrop-filter: none;
  transform: translateX(-50%) scale(1);
  /* Возвращаем нормальный размер при открытии меню */
}

.mobile-logo {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-logo img {
  max-width: 100%;
  max-height: 100%;
}

.mobile-menu-text {
  color: #FBF12E;
  font-size: 18px;
  letter-spacing: 1px;
  margin-right: 12px;
}

.menu-right-group {
  display: flex;
  align-items: center;
}

.header-language-selector {
  margin-right: 20px;
  display: flex;
  gap: 10px;
}

.header-language-selector .lang-option {
  font-family: 'Inconsolata', monospace;
  font-weight: 700;
  font-size: 18px;
  color: #8f8919;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.header-language-selector .lang-option:hover {
  color: #fff;
  text-shadow: 0 0 8px #FBF12E;
}

.header-language-selector .lang-option.active {
  color: #FBF12E;
  font-weight: 700;
}

/* === КОНЕЦ НОВОГО БЛОКА === */


.mobile-menu-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
  outline: none;
}

.mobile-menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: #FBF12E;
  position: relative;
  transition: all 0.3s ease;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #FBF12E;
  left: 0;
  transition: all 0.3s ease;
}

.mobile-menu-icon::before {
  top: -6px;
}

.mobile-menu-icon::after {
  top: 6px;
}

.mobile-menu-btn.active .mobile-menu-icon {
  background: transparent;
}

.mobile-menu-btn.active .mobile-menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-btn.active .mobile-menu-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* === ИЗМЕНЕНО: ДИЗАЙН BURGER MENU === */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* Новый "стеклянный" фон */
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow-y: auto;
  padding: 100px 20px 40px;
  box-sizing: border-box;
}

.fullscreen-menu.active {
  opacity: 1;
  visibility: visible;
}

.menu-container {
  width: 100%;
  max-width: 600px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  padding: 20px 0;
  text-align: center;
  margin: auto;
}

.menu-section {
  background: transparent;
  border-left: none;
  padding: 10px 0;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Staggered animation */
.fullscreen-menu.active .menu-section {
  opacity: 1;
  transform: translateY(0);
}

.fullscreen-menu.active .menu-section:nth-child(1) {
  transition-delay: 0.1s;
}

.fullscreen-menu.active .menu-section:nth-child(2) {
  transition-delay: 0.15s;
}

.fullscreen-menu.active .menu-section:nth-child(3) {
  transition-delay: 0.2s;
}

.fullscreen-menu.active .menu-section:nth-child(4) {
  transition-delay: 0.25s;
}

.fullscreen-menu.active .menu-section:nth-child(5) {
  transition-delay: 0.3s;
}

.fullscreen-menu.active .menu-section:nth-child(6) {
  transition-delay: 0.35s;
}

.fullscreen-menu.active .menu-section:nth-child(7) {
  transition-delay: 0.4s;
}

.fullscreen-menu.active .menu-section:nth-child(8) {
  transition-delay: 0.45s;
}

.fullscreen-menu.active .menu-section:nth-child(9) {
  transition-delay: 0.5s;
}

.fullscreen-menu.active .menu-section.mobile-language-section {
  transition-delay: 0.55s;
}


.menu-section:hover {
  background: transparent;
  transform: scale(1.05);
  /* Эффект "наведения" */
}

.menu-section h3 {
  color: #ffffff;
  margin: 0 0 5px 0;
  font-family: 'Borel', cursive; /* Рукописный Borel, либо убавь, если хочешь строгий Inconsolata */
  font-size: 2.5rem;
  /* Значительно крупнее */
  font-weight: 500;
  /* Немного жирнее */
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.menu-section:hover h3 {
  color: #FBF12E;
  text-shadow: 0 0 10px #FBF12E;
  /* Свечение при наведении */
}

.menu-section p {
  color: #9c9c9c;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

/* Language (Mobile) */
.mobile-language-section {
  border-left: none;
  /* Убран border */
  padding: 10px 0;
  /* Уменьшен padding */
  margin-top: 20px;
  /* Больше отступ сверху */
  background: transparent;
  /* Убран фон */
  border-radius: 0;
  /* Анимация уже есть от .menu-section */
}

.mobile-language-section h3 {
  display: none;
  /* Скрываем заголовок "LANGAGE", он не нужен */
}

.mobile-language-options {
  display: flex;
  flex-direction: row;
  /* Горизонтально */
  justify-content: center;
  /* Центрируем */
  gap: 20px;
}

.mobile-language-options .lang-option {
  color: #888;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  padding: 5px 10px;
  background: transparent;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.mobile-language-options .lang-option span {
  margin-right: 8px;
  font-size: 1.2rem;
}

.mobile-language-options .lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FBF12E;
  transform: scale(1.1);
  /* Увеличение при наведении */
}

/* === КОНЕЦ: ДИЗАЙН BURGER MENU === */


/* === RESPONSIVE === */
@media (max-width: 879px) {
  .floating-card {
    padding: 30px 20px;
    width: 100%;
  }

  #conteneur-about,
  #conteneur-skills,
  #conteneur-qualification,
  #conteneur-portfolio,
  #conteneur-contact,
  #conteneur-services,
  #conteneur-process,
  #conteneur-footer {
    padding: 60px 15px;
  }

  #conteneur-footer {
    padding-bottom: 30px;
  }

  .home h1 {
    font-size: 3rem;
    letter-spacing: 0;
  }

  .home h2 {
    font-size: 1.5rem;
  }

  .profil-text h2,
  .title h2,
  .qualification h2,
  .portfolio h2,
  .contact-container h2 {

    font-size: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-content {
    flex-direction: column;
    padding: 0 15px;
  }

  .footer-button {
    padding: 8px 16px;
    font-size: 12px;
    border: 1px solid #ffffff;
  }

  .footer-button:hover {
    background: #ffffff;
    color: #000000;
  }

  .footer-left {
    position: static;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
  }

  .footer-icons {
    width: 100%;
    margin: 0 auto 20px;
    text-align: center;
  }

  .about {
    flex-direction: column;
  }

  .profil-photo,
  .profil-text {
    width: 100%;
    float: none;
    top: 0;
    padding: 0;
  }

  .profil-photo img {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto 30px;
  }

  .profil-text h2,
  .profil-text .title {
    text-align: center;
  }

  .profil-text {
    text-align: center;
  }

  .button {
    margin: 20px auto 0;
  }

  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item,
  .portfolio-item.layout-image-left {
    flex-direction: column;
    gap: 20px;
  }

  .portfolio-item .portfolio-description,
  .portfolio-item.layout-image-left .portfolio-description {
    text-align: left;
  }

  .portfolio-item .portfolio-image img,
  .portfolio-item.layout-image-left .portfolio-image img {
    transform: rotate(0deg);
  }

  .form-group {
    flex-direction: column;
  }
}

/* === ИЗМЕНЕНО: ОТКЛЮЧЕНИЕ КУРСОРА НА ПЛАНШЕТАХ === */
@media (max-width: 1024px) {
  body {
    cursor: auto;
    /* Возвращаем обычный курсор */
  }

  .cursor-dot,
  .cursor-outline,
  .spotlight {
    display: none !important;
    /* Прячем кастомный курсор и прожектор */
  }
}

@media (max-width: 768px) {
  .scroll-top {
    width: 44px;
    height: 44px;
    font-size: 18px;
    bottom: 25px;
    right: 15px;
  }

  .scroll-top:active {
    background-color: #555555 !important;
    color: #ffffff !important;
    transform: scale(0.92);
    transition: all 0.1s ease;
  }

  .header-language-selector {
    display: none;
  }
}

/* === УДАЛЕНЫ МЕДИА-ЗАПРОСЫ ДЛЯ ПЕРЕКЛЮЧЕНИЯ МЕНЮ === */
/* @media (max-width: 1350px) { ... } */
/* @media (min-width: 1351px) { ... } */


/* === СТИЛИ КУРСОРА === */
.cursor-dot,
.cursor-outline {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: #FBF12E;
  transition: opacity 0.3s ease, transform 0.1s ease;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid #FBF12E;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, transform 0.07s linear, opacity 0.3s ease;
}

body.cursor-hover .cursor-outline {
  width: 60px;
  height: 60px;
  border-color: #FBF12E;
}

body.cursor-hover .cursor-dot {
  opacity: 0;
}

/* === Стили "Прожектора" === */
.spotlight {
  position: fixed;
  width: 800px;
  height: 800px;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 60%);
  transform: translate(-50%, -50%);
  transition: transform 0.1s linear, opacity 0.3s ease;
  opacity: 0;
}

body:hover .spotlight {
  opacity: 1;
}

/*
 * === СТИЛИ ДЛЯ ВТОРИЧНЫХ СТРАНИЦ (CV, PRIVACY, RESOURCES) ===
 */

/* === Кнопка "Назад" === */
.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  padding: 10px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
  color: white;
}

.back-button i {
  margin-right: 5px;
}

/* === Контейнер для CV, Privacy, Resources === */
.subpage-container {
  max-width: 900px;
  margin-top: 80px;
  /* Оставляем место для кнопки "Назад" */
  padding: 40px;
}

/* === Стили для CV (на основе твоего фото) === */
.cv-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.cv-left {
  color: #ccc;
}

.cv-left img {
  width: 100%;
  max-width: 250px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.cv-section {
  margin-bottom: 30px;
}

.cv-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #fff;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.cv-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 5px;
}

.cv-section p,
.cv-section li {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 5px;
}

.cv-section ul {
  list-style: none;
  padding-left: 0;
}

.cv-section a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cv-section a:hover {
  text-decoration: underline;
}

.cv-right .cv-section h2 {
  border-bottom-color: #aaa;
  color: #eee;
}

.cv-timeline {
  position: relative;
  padding-left: 30px;
}

.cv-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.3);
}

.cv-timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.cv-timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #1a1a1a;
  z-index: 1;
}

.cv-timeline-item p {
  font-weight: 700;
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.cv-timeline-item h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.cv-timeline-item h4 {
  font-size: 1rem;
  font-weight: 400;
  color: #ccc;
  font-style: italic;
  margin-bottom: 10px;
}

.cv-timeline-item ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #ccc;
}

.cv-timeline-item ul li {
  font-size: 0.95rem;
}


/* === Стили для Resources === */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.resource-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.resource-card h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
}

.resource-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 20px;
}

.resource-card a {
  /* Используем стиль .button */
  background: #ffffff;
  color: #000000;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 0.8em 1.5em;
  outline: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.resource-card a:hover {
  background-color: #dddddd;
  transform: scale(1.05);
}


/* === Стили для Privacy === */
.privacy-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}

.privacy-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.privacy-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 20px;
  text-align: left;
}

.privacy-content a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}

.privacy-content a:hover {
  text-decoration: none;
}

.privacy-content footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  color: #888;
}

/* === Адаптация для второстепенных страниц === */
@media (max-width: 879px) {

  .floating-card {
    width: 95%;
  }

  .subpage-container {
    margin-top: 80px;
    padding: 30px 20px;
  }

  .cv-grid {
    grid-template-columns: 1fr;
  }

  .profil-text h2,
  .title h2,
  .qualification h2,
  .portfolio h2,
  .contact-container h2,
  .privacy-content h1 {
    font-size: 2rem;
  }

  .services-grid,
  .process-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    gap: 40px;
  }

  .portfolio-item,
  .portfolio-item.layout-image-left {
    flex-direction: column;
    gap: 20px;
  }

  .portfolio-item .portfolio-description,
  .portfolio-item.layout-image-left .portfolio-description {
    text-align: left;
  }

  .portfolio-item .portfolio-image img,
  .portfolio-item.layout-image-left .portfolio-image img {
    transform: rotate(0deg);
  }

  .form-group {
    flex-direction: column;
  }

  .footer-left {
    position: static;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header-language-selector {
    display: none;
  }
}

/* === ЭКРАН ЗАГРУЗКИ (LOADER) === */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0f0f0f;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

/* === СТИЛИ ДЛЯ ТЕКСТА В ЛОУДЕРЕ === */
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.loader-text-wrapper {
  min-height: 24px;
  font-family: 'Borel', cursive;
  font-size: 20px;
  font-weight: 400;
  color: #FBF12E;
}

/* Кастомный курсор отдельно для лоудера */
#loader-wrapper .typed-cursor {
  color: #ffffff;
  font-size: 18px;
  margin-left: 2px;
  transition: opacity 0.5s ease;
}

/* Анимация "дыхания" логотипа */
@keyframes logoPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.1);
    /* Легкое увеличение */
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    /* Свечение */
  }

  100% {
    transform: scale(1);
    opacity: 0.6;
  }
}

/* Класс для скрытия загрузчика */
.loader-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

/* === АДАПТИВНЫЙ КОНТЕЙНЕР ДЛЯ YOUTUBE / VIDEO === */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* Жестко задает пропорцию 16:9 для видео */
  height: 0;
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease;
  transform: rotate(-2deg);
  /* Тот самый наклон */
  /* Исправляет баг в Safari, когда видео вылезает за скругленные углы */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Сам плеер внутри контейнера */
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Эффекты наведения (выравнивание и увеличение) */
.portfolio-item:hover .video-wrapper {
  transform: rotate(0deg) scale(1.05);
}

.portfolio-item.layout-image-left .video-wrapper {
  transform: rotate(2deg);
}

.portfolio-item.layout-image-left:hover .video-wrapper {
  transform: rotate(0deg) scale(1.05);
}

/* === ОБЩИЙ СЛОЙ ШУМА НА ВЕСЬ САЙТ (Используем твой noise.gif) === */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/noise.gif');
  background-repeat: repeat;
  background-size: 400px;
  /* Плотность зерна. Чем меньше число, тем мельче и эстетичнее шум */
  opacity: 0.045;
  /* Прозрачность шума из твоего реактовского примера */
  z-index: 9999;
  /* Поверх всего контента и карточек, как на Webflow */
  pointer-events: none;
  /* Пропускает клики сквозь себя к кнопкам */
}

p, span, a, button, input, textarea, li {
  font-family: 'Inconsolata', bold;
  
}

/* === КРЕАТИВНЫЙ БОЛЬШОЙ ФУТЕР === */
#conteneur-footer {
  position: relative;
  width: 100%;
  padding: 100px 40px 40px 40px; /* Больше отступов вокруг */
  background-color: transparent;
  display: flex;
  flex-direction: column;
  gap: 60px; /* Расстояние между элементами */
  overflow: hidden; /* Скрываем всё, что может вылезти за края */
}

/* ГИГАНТСКИЕ БУКВЫ */
.footer-big-text {
  width: 100%;
  text-align: center;
  font-family: 'Borel', cursive; /* Рукописный Borel, либо убавь, если хочешь строгий Inconsolata */
  font-size: clamp(4rem, 12vw, 16rem); /* Адаптивный размер: подстраивается под экран от мобилки до ПК */
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.04em; /* Плотный "сжатый" интервал, как в трендах */
  color: #FBF12E; /* Белый цвет. Если хочешь эффект как на скриншотах, можно сделать красный #ff3333 или приглушенный темно-серый #151515 */
  margin-top: 20px;
  user-select: none; /* Чтобы текст случайно не выделялся мышкой */
}

/* Строка с кнопкой и иконками соцсетей */
.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 2; /* Поверх огромных букв */
}

/* НИЖНЯЯ СТРОКА ФУТЕРА (ИСПРАВЛЕНО: ВСЁ ПО ЦЕНТРУ) */
#conteneur-footer .footer-bottom {
  display: flex;
  flex-direction: column; /* Выстраиваем элементы вертикально друг под другом */
  justify-content: center;
  align-items: center;
  gap: 10px; /* Расстояние между копирайтом и политикой конфиденциальности */
  
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Очень тонкая, едва заметная линия разделения */
  z-index: 2;
  text-align: center;
}

#conteneur-footer .footer-bottom p {
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #ffffff; /* Делаем копирайт чуть приглушенным, чтобы он не отвлекал */
}

#conteneur-footer .privacy-link {
  font-size: 14px;
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

/* Эффект при наведении на ссылку политики */
#conteneur-footer .privacy-link:hover {
  color: #FBF12E; /* При наведении ссылка плавно становится белой */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .footer-top-row {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  #conteneur-footer .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    margin-top: 0;
  }
}