@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700&display=swap');
:root {
  --bg-gradient-onyx: linear-gradient(to bottom right, hsl(240, 1%, 25%) 3%, hsl(0, 0%, 19%) 97%);
  --bg-gradient-jet: linear-gradient(
      to bottom right,
      hsla(240, 1%, 18%, 0.251) 0%,
      hsla(240, 2%, 11%, 0) 100%
    ),
    hsl(240, 2%, 13%);
  --bg-gradient-yellow-1: linear-gradient(
    to bottom right,
    hsl(175, 77%, 58%) 0%,
    hsla(36, 100%, 69%, 0) 50%
  );
  --bg-gradient-yellow-2: linear-gradient(
      135deg,
      hsla(170, 100%, 71%, 0.251) 0%,
      hsla(35, 100%, 68%, 0) 59.86%
    ),
    hsl(240, 2%, 13%);
  --border-gradient-onyx: linear-gradient(
    to bottom right,
    hsl(0, 0%, 25%) 0%,
    hsla(0, 0%, 25%, 0) 50%
  );
  --text-gradient-yellow: linear-gradient(to right, hsl(176, 100%, 72%), hsl(167, 100%, 68%));

  --nav-bar : hsla(240, 1%, 17%, 0.75);
  /* solid */
  --jet: #383838;
  --jet2: #383838;
  --onyx: #2b2b2c;
  --black-1: #202022;
  --black-2: #1e1e1f;
  --black-3: #121212;
  --white-1: #ffffff;
  --white-2: #fafafa;
  --light-blue: #70fffd;
  --vegas-gold: #5aceb5;
  --light-gray: #d6d6d6;
  --light-gray-2: #d6d6d6b3;
  --light-brown: #b84c4c;

  /* font-family */
  --ff-poppins: 'Poppins', sans-serif;

  /* font-size */
  --fs-1: 24px;
  --fs-2: 18px;
  --fs-3: 17px;
  --fs-4: 16px;
  --fs-5: 15px;
  --fs-6: 14px;
  --fs-7: 13px;
  --fs-8: 11px;

  /* font-weight */
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;

  /* shadow */

  /* transition */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease-in-out;
}

/* RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

img,i,a,button,time,span {
  display: block;
}

button {
  font: inherit;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

input,
textarea {
  display: block;
  width: 100%;
  background: none;
  font: inherit;
}

::selection {
  background: var(--light-blue);
  color: var(--black-3);
}

:focus {
  outline-color: var(--light-blue);
}

html {
  font-family: var(--ff-poppins);
}

body {
  background: var(--black-3);
}

.sidebar,
article {
  background: var(--black-2);
  border: 1px solid var(--jet);
  border-radius: 20px;
  padding: 15px;
  z-index: 1;
  position: relative;
}

.separator {
  width: 100%;
  height: 1px;
  background: var(--jet);
  margin: 16px 0;
}

.icon-box {
  position: relative;
  background: var(--border-gradient-onyx);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: var(--light-blue);
  z-index: 1;
}

.icon-box::before { 
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--black-1);
  border-radius: inherit;
  z-index: -1;
}

.icon-box i {
  --ionicon-stroke-width: 35px;
}

article {
  display: none;
}

article.active {
  display: block;
  animation: fade 0.5s ease backwards;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.h2,
.h3,
.h4,
.h5 {
  color: var(--white-2);
  text-transform: capitalize;
}

.h2 {
  font-size: var(--fs-1);
}

.h3 {
  font-size: var(--fs-2);
}

.h4 {
  font-size: var(--fs-4);
}

.h5 {
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
}

.article-title {
  position: relative;
  padding-bottom: 7px;
}

.article-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--text-gradient-yellow);
  border-radius: 3px;
}

.liens{
  text-decoration: underline;
  color: var(--white-1);
}

.content-card {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 15px;
  padding-top: 45px;
  border-radius: 14px;
  cursor: pointer;
  z-index: 1;
}

.content-card::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

/*-----------------------------------*\
  MAIN
\*-----------------------------------*/
main {
  margin: 15px 12px;
  /* margin-bottom: 75px; */
  min-width: 259px;
}
.main-content{
  position: relative;
}

/*-----------------------------------*\
  SIDEBAR
\*-----------------------------------*/
.sidebar {
  margin-bottom: 15px;
  max-height: 120px;
  overflow: hidden;
  transition: var(--transition-2);
  


}

.sidebar.active {
  max-height: 405px;
}

.theme-mod {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 45px;
  background: var(--nav-bar);
  backdrop-filter: blur(10px);
  border: 1px solid var(--jet);
  border-radius: 0 0 12px 0;
  transition: 0.3s;
}
.theme-mod img{
  width: 40px;
  padding: 5px;
}

.theme-mod:hover{
  background: hsla(240, 1%, 32%, 0.75);
  box-shadow: 0px 0px 10px 0.1px #949496;
  cursor: pointer;

}


.theme-mod-dark {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 45px;
  background: hsla(0, 0%, 100%, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--jet);
  border-radius: 0 0 12px 0;
  transition: 0.3s;
}
.theme-mod-dark img{
  width: 40px;
  padding: 5px;
}

.theme-mod-dark:hover{
  background: hsla(0, 0%, 89%, 0.75);
  box-shadow: 0px 0px 10px 0.1px #353535;
  cursor: pointer;

}

.sidebar-info {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
}

.avatar-box {
  background: var(--bg-gradient-onyx);
  border-radius: 20px;
}
.avatar-box img {
  border-radius: 20px;
}

.info-content .name {
  color: var(--white-2);
  font-size: var(--fs-3);
  font-weight: var(--fw-500);
  letter-spacing: -0.25px;
  margin-bottom: 10px;
}

.info-content .title {
  color: var(--white-1);
  background: var(--onyx);
  font-size: var(--fs-8);
  font-weight: var(--fw-300);
  width: max-content;
  padding: 3px 12px;
  border-radius: 8px;
}

.info_more-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  border-radius: 0 15px;
  font-size: 13px;
  color: var(--light-blue);
  background: var(--border-gradient-onyx);
  padding: 10px;
  transition: var(--transition-1);
  z-index: 1;
}

.info_more-btn::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--bg-gradient-jet);
  transition: var(--transition-1);
  z-index: -1;
}

.info_more-btn:hover,
.info_more-btn:focus {
  background: var(--bg-gradient-yellow-1);
}

.info_more-btn:hover::before,
.info_more-btn:focus::before {
  background: var(--bg-gradient-yellow-2);
}

.info_more-btn span {
  display: none;
}

.sidebar-info_more {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-2);
}

.sidebar.active .sidebar-info_more {
  opacity: 1;
  visibility: visible;
}

.contacts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-item {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info {
  max-width: calc(100% - 46px);
  width: calc(100% - 46px);
}

.contact-title {
  color: var(--light-gray-2);
  font-size: var(--fs-8);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-info :is(.contact-link, time, address) {
  color: var(--white-2);
  font-size: var(--fs-7);
}

.contact-info address {
  font-style: normal;
}

.social-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  padding-bottom: 4px;
  padding-left: 7px;
  margin-top: 10px;
}

.social-item .social-link {
  color: var(--light-gray-2);
  font-size: 20px;
}

.social-item .social-link:hover {
  color: var(--light-gray);
}
/*-----------------------------------*\
  SIDEBAR
\*-----------------------------------*/

/*-----------------------------------*\
  NAVBAR
\*-----------------------------------*/
.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--nav-bar);
  box-shadow: -3px 3px 6px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid var(--jet);
  border-radius: 12px 12px 0 0;
  z-index: 5;
}

.navbar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}

.navbar-link {
  color: var(--light-gray);
  font-size: var(--fs-8);
  padding: 20px 7px;
  transition: color var(--transition-1);
}

.navbar-link:hover,
.navbar-link:focus {
  color: var(--light-gray-2);
}

.navbar-link.active {
  color: var(--light-blue);
}
/*-----------------------------------*\
  NAVBAR
\*-----------------------------------*/

/*-----------------------------------*\
  ABOUT
\*-----------------------------------*/
.about .article-title {
  margin-bottom: 15px;
}

.about-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
  margin-bottom: 30px;
}

.about-text p {
  margin-bottom: 15px;
}

.about-text a {
  margin-top: 30px;
}


.lang-switch-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 45px;
  height: 45px; /* Додав висоту для центрування */
  
  background: var(--nav-bar); 
  border: 1px solid var(--jet);
  border-radius: 0 20px 0 20px; 
  
  backdrop-filter: blur(10px);
  box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1); /* Тінь вліво-вниз */
  
  cursor: pointer;
  transition: all 0.3s ease;
  
  /* Центрування тексту */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Стиль тексту всередині (EN / FR) */
.lang-text {
  color: var(--white-1);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

/* Ховер ефект */
.lang-switch-wrapper:hover {
  background: var(--bg-gradient-yellow-1);
  border-color: transparent;
}

.lang-switch-wrapper:hover .lang-text {
  color: #fff;
}

body.light-theme .lang-switch-wrapper {
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
}
/*-----------------------------------*\
  ABOUT
\*-----------------------------------*/

/*-----------------------------------*\
  SERVICES
\*-----------------------------------*/
.service {
  margin-bottom: 35px;
}

.service-title {
  margin-bottom: 20px;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-item {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 14px;
  z-index: 1;
}

.service-item::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.service-icon-box {
  margin-bottom: 10px;
}

.service-icon-box img {
  margin: auto;
}

.service-content-box {
  text-align: center;
}

.service-item-title {
  margin-bottom: 7px;
}

.service-item-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-3);
  line-height: 1.6;
}
/*-----------------------------------*\
  SERVICES
\*-----------------------------------*/

/*-----------------------------------*\
  CLIENTS
\*-----------------------------------*/
.clients {
  margin-bottom: 15px;
}

.clients-list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
  margin: 0 -15px;
  padding: 25px;
  padding-bottom: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 25px;
}

.clients-item {
  min-width: 50%;
  min-height: 80px;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  padding: 10px 20px;
  background: var(--nav-bar);
  backdrop-filter: blur(10px);
  border: 1px solid var(--jet);
  border-radius: 8px;
}

.clients-item img {
  width: 100%;
}
/*-----------------------------------*\
  CLIENTS
\*-----------------------------------*/

/*-----------------------------------*\
  RESUME
\*-----------------------------------*/
.article-title {
  margin-bottom: 30px;
}

/* education and experience */

.timeline {
  margin-bottom: 30px;
}

.timeline .title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.timeline-list {
  font-size: var(--fs-6);
  margin-left: 45px;
}

.timeline-item {
  position: relative;
}

.timeline-item:not(:last-child) {
  margin-bottom: 20px;
}

.timeline-item-title {
  font-size: var(--fs-6);
  line-height: 1.3;
  margin-bottom: 7px;
}

.timeline-list span {
  color: var(--vegas-gold);
  font-weight: var(--fw-400);
  line-height: 1.6;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: -25px;
  left: -30px;
  width: 1px;
  height: calc(100% + 50px);
  background: var(--jet2);
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 5px;
  left: -33px;
  height: 6px;
  width: 6px;
  background: var(--text-gradient-yellow);
  border-radius: 50%;
}

.timeline-text {
  color: var(--light-gray);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

/* skills */

.skills-list {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding-bottom: 75px;
}

.skills-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  background: var(--nav-bar);
  backdrop-filter: blur(10px);
  border: 1px solid var(--jet);
  border-radius: 8px;
  width: 45%;
  height: 100px;
  transition: 0.4s;
  cursor: pointer;
}

.skills-item:hover{
  background: var(--jet2);
}

.skills-item img {
  width: 48px;
  margin-bottom: 3px;
}

.skills-project-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skills-project-item {
  cursor: pointer;
  color: var(--white-2);
  padding: 15px;
  background: var(--nav-bar);
  border: 1px solid var(--jet);
  border-radius: 12px;
  text-align: center;
  font-size: var(--fs-4);
  font-weight: var(--fw-500);
  transition: var(--transition-1);
}

.skills-project-item:hover {
  background: var(--jet2);
  color: var(--light-blue);
  transform: translateY(-2px);
}


/*Competences*/
/*==================== MATRICE DES COMPETENCES ====================*/
.matrix-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 30px;
}

.matrix-item {
  background: var(--border-gradient-onyx);
  border-radius: 14px;
  position: relative;
  z-index: 1;
  padding: 1px;
}

.matrix-item::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.matrix-header {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: transparent;
}

.matrix-title {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--white-2);
  font-size: var(--fs-4);
  text-transform: none;
}

.matrix-title i {
  color: var(--light-blue);
  font-size: 20px;
}

.toggle-icon {
  color: var(--light-gray);
  transition: transform var(--transition-1);
}

.matrix-header.active .toggle-icon {
  transform: rotate(180deg);
  color: var(--light-blue);
}

.matrix-content {
  display: none;
  padding: 0 20px 20px 20px;
  border-top: 1px solid var(--jet);
  margin-top: 5px;
  padding-top: 20px;
}

.matrix-content.active {
  display: block;
  animation: fade 0.3s ease;
}

.level-box {
  margin-bottom: 15px;
  padding: 15px;
  background: var(--nav-bar);
  border-radius: 10px;
  border: 1px solid var(--jet);
}

.level-box:last-child {
  margin-bottom: 0;
}

.level-box h5 {
  color: var(--light-blue);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: none;
}

.level-desc {
  color: var(--white-2);
  font-size: var(--fs-6);
  line-height: 1.5;
}

.level-desc strong {
  color: var(--vegas-gold);
}

/*==================== MATRIX PROJECTS CARDS ====================*/
.matrix-project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.matrix-project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--nav-bar);
  border: 1px solid var(--jet);
  border-radius: 12px;
  cursor: pointer;
  transition: transform var(--transition-1), border-color var(--transition-1);
}

.matrix-project-card:hover {
  transform: translateY(-3px);
  border-color: var(--light-blue);
}

.matrix-project-name {
  color: var(--white-2);
  font-size: var(--fs-6);
  font-weight: 500;
  text-align: center;
  transition: color var(--transition-1);
}

.matrix-project-card:hover .matrix-project-name {
  color: var(--light-blue);
}

.matrix-project-card .matrix-img {
  width: 140px;
  height: 85px;
  object-fit: cover;
  border-radius: 8px;
}


body.light-theme .level-box {
  background: var(--black-2);
}
/*-----------------------------------*\
  RESUME
\*-----------------------------------*/

/*-----------------------------------*\
  PORTFOLIO
\*-----------------------------------*/

.filter-list {
  display: none;
}

.filter-select-box {
  position: relative;
  margin-bottom: 25px;
}

.filter-select {
  background: var(--black-2);
  color: var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.filter-select.active .select-icon {
  transform: rotate(0.5turn);
}

.select-list {
  background: var(--black-2);
  position: absolute;
  top: calc(100% + 6px);
  width: 100%;
  padding: 6px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.15s ease-in-out;
}

.filter-select.active + .select-list {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.select-item button {
  background: var(--black-2);
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  text-transform: capitalize;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
}

.select-item button:hover {
  --black-2: hsl(240, 2%, 20%);
}

.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 10px;
  padding-bottom: 50px;
}

.project-item {
  display: none;
}

.project-item.active {
  display: block;
  animation: scaleUp 0.25s ease forwards;
}

@keyframes scaleUp {
  0% {
    transform: scale(0.5);
  }
  100% {
    transform: scale(1);
  }
}

.project-item > i {
  width: 100%;
  cursor: pointer;
}

.project-img {
  position: relative;
  width: 100%;
  max-height: 400px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 15px;
}


.project-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
  transition: var(--transition-1);
}

.project-item > i:hover .project-img::before {
  background: hsla(0, 0%, 0%, 0.5);
}

.project-item-icon-box {
  --scale: 0.8;
  background: var(--jet);
  color: var(--light-blue);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--scale));
  font-size: 20px;
  padding: 18px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  opacity: 0;
  z-index: 1;
  transition: var(--transition-1);
}

.project-item > i:hover .project-item-icon-box {
  --scale: 1;
  opacity: 1;
}

.project-item-icon-box i {
  transition: all 0.3s ease;
}

.project-item > i:hover .project-item-icon-box i {
  transform: rotate(45deg);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-1);
}

.project-item > i:hover img {
  transform: scale(1.1);
}

.project-title,
.project-category {
  margin-left: 10px;
}

.project-title {
  color: var(--white-2);
  font-size: var(--fs-3);
  font-weight: var(--fw-400);
  text-transform: capitalize;
  line-height: 1.3;
}

.project-category {
  color: var(--light-gray-2);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}
/*-----------------------------------*\
  PORTFOLIO
\*-----------------------------------*/

/*-----------------------------------*\
  CONTACT
\*-----------------------------------*/
.mapbox {
  position: relative;
  height: 250px;
  width: 100%;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--jet);
  overflow: hidden;
}

.mapbox figure {
  height: 100%;
}

.mapbox iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(1);
}

.contact-form {
  margin-bottom: 50px;
}

.form-title {
  margin-bottom: 20px;
}

.input-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.form-input {
  color: var(--white-2);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  padding: 13px 20px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  outline: none;
}

.form-input::placeholder {
  font-weight: var(--fw-500);
}

.form-input:focus {
  border-color: var(--light-blue);
}

textarea.form-input {
  min-height: 100px;
  height: 120px;
  max-height: 200px;
  resize: vertical;
  margin-bottom: 25px;
}

textarea.form-input::-webkit-resizer {
  display: none;
}

.form-input:focus:invalid {
  border-color: var(--light-brown);
}

.btn {
  position: relative;
  width: max-content;
  background: var(--border-gradient-onyx);
  color: var(--light-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: var(--fs-6);
  text-transform: capitalize;
  z-index: 1;
  transition: var(--transition-1);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.btn i {
  font-size: 16px;
}

.btn:hover {
  background: var(--bg-gradient-yellow-1);
}

.btn:hover::before {
  background: var(--bg-gradient-yellow-2);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn:disabled:hover {
  background: var(--border-gradient-onyx);
}

.btn:disabled:hover::before {
  background: var(--bg-gradient-jet);
}

/*-----------------------------------*\
  CONTACT
\*-----------------------------------*/

/*-----------------------------------*\
  MODAL
\*-----------------------------------*/


#popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999999;
  justify-content: center;
  align-items: center;
  overflow: auto;
}
#popup-content {
  width: 1000px;
  max-height: 80vh; 
  background: #282829;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  overflow-y: auto; 
}

.modal__header h2{
  margin: 0;
  color: var(--white-2);
  padding: 20px;
}
.modal__header{
  text-align: center;
  width: 100%;
  background: #282829;
}
.modal__blocks{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 10px;
}
.modal__block{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #444445;
  margin: 20px 0;
}
.modal__block:first-child{
border-radius: 20px 20px 0 0;
}
.modal__block:last-child{
border-radius: 0 0 20px 20px;
}
.modal__block img{
  width: 40%;
  margin: 20px;
  cursor: pointer;
}
.modal__block p{
  width: 60%;
  text-align: center;
  color: var(--white-2);
}

.modal__block a{
  text-decoration: underline;
  color: var(--white-2);
  display: inline; 
  transition: color 0.3s ease;
}
.modal__block a:hover{
  color: var(--light-blue);
}
.block-text-wrapper {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--white-2);
}

.block-text-wrapper p,
.block-text-wrapper ul {
  width: 100%;
  margin: 0;
  padding: 0; 
}

.block-text-wrapper ul {
  list-style-position: inside; 
  text-align: left; 
  padding-left: 20px; 
}

.block-text-wrapper li {
  margin-bottom: 5px; 
}


/*-----------------------------------*\
  MODAL
\*-----------------------------------*/


/**
 * responsive larger than 450px screen
 */

@media (min-width: 450px) {
  .clients-item {
    min-width: calc(33.33% - 10px);
  }

  .project-img{
    height: auto;
  }
  .popup-content{
    margin: 25px;
    max-height: 60vh;
  }
  .modal__block{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
}

/**
 * responsive larger than 580px screen
 */

@media (min-width: 580px) {
  :root {
    /**
     * typography
     */

    --fs-1: 32px;
    --fs-2: 24px;
    --fs-3: 26px;
    --fs-4: 18px;
    --fs-6: 15px;
    --fs-7: 15px;
    --fs-8: 12px;
  }

  .sidebar,
  article {
    width: 520px;
    margin-inline: auto;
    padding: 20px;
  }

  .article-title {
    font-weight: var(--fw-600);
    padding-bottom: 15px;
  }

  .article-title::after {
    width: 40px;
    height: 5px;
  }

  .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 18px;
  }

  main {
    margin-top: 60px;
    margin-bottom: 100px;
  }

  .sidebar {
    max-height: 180px;
    margin-bottom: 30px;
  }

  .sidebar.active {
    max-height: 584px;
  }

  .sidebar-info {
    gap: 25px;
  }

  .avatar-box {
    border-radius: 30px;
  }

  .avatar-box img {
    width: 120px;
    border-radius: 30px;
  }

  .info-content .name {
    margin-bottom: 15px;
  }

  .info-content .title {
    padding: 5px 18px;
  }

  .info_more-btn {
    top: -30px;
    right: -30px;
    padding: 10px 15px;
  }

  .info_more-btn span {
    display: block;
    font-size: var(--fs-8);
  }

  .info_more-btn i {
    display: none;
  }

  .separator {
    margin: 32px 0;
  }

  .contacts-list {
    gap: 20px;
  }

  .contact-info {
    max-width: calc(100% - 64px);
    width: calc(100% - 64px);
  }

  
  .navbar {
    border-radius: 20px 20px 0 0;
  }

  .navbar-list {
    gap: 20px;
  }

  .navbar-link {
    --fs-8: 14px;
  }

 
  .about .article-title {
    margin-bottom: 20px;
  }

  .about-text {
    margin-bottom: 40px;
  }


  .service-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
    padding: 30px;
  }

  .service-icon-box {
    margin-bottom: 0;
    margin-top: 5px;
  }

  .service-content-box {
    text-align: left;
  }

  .clients-list {
    gap: 30px;
    margin: 0 -30px;
    padding: 45px;
    scroll-padding-inline: 45px;
  }

  .clients-item {
    min-width: calc(33.33% - 35px);
  }

  .timeline-list {
    margin-left: 65px;
  }

  .timeline-item:not(:last-child)::before {
    left: -40px;
  }

  .timeline-item::after {
    height: 8px;
    width: 8px;
    left: -43px;
  }

  .project-img {
    border-radius: 16px;
  }

  .mapbox {
    height: 380px;
    border-radius: 18px;
  }

  .input-wrapper {
    gap: 30px;
    margin-bottom: 30px;
  }

  .form-input {
    padding: 15px 20px;
  }

  textarea.form-input {
    margin-bottom: 30px;
  }

  .btn {
    --fs-6: 16px;
    padding: 16px 20px;
  }

  .btn i {
    font-size: 18px;
  }


  .popup-content{
    margin: 25px;
  }
  .modal__block{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
}

/**
 * responsive larger than 768px screen
 */

@media (min-width: 768px) {
  /**
   * REUSED STYLE
   */

  .sidebar,
  article {
    width: 700px;
  }

  /**
   * SIDEBAR
   */

  .contacts-list {
    grid-template-columns: 1fr 1fr;
    gap: 30px 15px;
  }

  /**
   * NAVBAR
   */

  .navbar-link {
    --fs-8: 15px;
  }

  .lang-switch-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20; /* Піднімаємо вище за Navbar (якщо він має менший z-index) */
    width: 45px;
    height: 45px;
    background: var(--nav-bar); 
    border: 1px solid var(--jet);
    
    /* Важливий момент: кути мають співпадати з батьківським блоком */
    /* Якщо у Navbar радіус 20px, то у кнопки він має бути таким: */
    border-radius: 0 20px 0 20px; 
    
    backdrop-filter: blur(10px);
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  /**
   * PORTFOLIO
   */

  .article-title {
    padding-bottom: 20px;
  }

  .filter-select-box {
    display: none;
  }

  .filter-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    padding-left: 5px;
    margin-bottom: 30px;
  }

  .filter-item button {
    color: var(--light-gray);
    font-size: var(--fs-5);
    transition: var(--transition-1);
  }

  .filter-item button:hover {
    color: var(--light-gray-2);
  }

  .filter-item button.active {
    color: var(--light-blue);
  }

  /* portfolio grid */

  .project-list {
    grid-template-columns: 1fr 1fr;
  }

  /**
   * CONTACT
   */

  .input-wrapper {
    grid-template-columns: 1fr 1fr;
  }

  .btn.form-btn {
    width: max-content;
    margin-left: auto;
  }

  .skills-item {
    width: 31%;
  }

  .popup-content{
    margin: 25px;
  }
  .modal__block{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
}

/**
 * responsive larger than 1024px screen
 */

@media (min-width: 1024px) {
  

  /**
   * REUSED STYLE
   */

  .sidebar,
  article {
    width: 950px;
    position: relative;
  }

  /**
   * MAIN 
   */

  main {
    margin-bottom: 60px;
  }

  .main-content {
    position: relative;
    width: 950px;
    margin: auto;
  }
  
  /**
   * NAVBAR
   */

  .navbar {
    position: absolute;
    bottom: auto;
    top: 0;
    left: 0;
    right: auto;
    width: max-content;
    border-radius: 20px 0px;
    padding: 0 20px;
  }

  .navbar-list {
    gap: 30px;
    padding: 0 20px;
  }

  .navbar-link {
    font-weight: var(--fw-500);
  }

  /**
   * ABOUT
   */

  /* service */

  .service-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
  }

  /* clients */

  .clients-item {
    min-width: calc(25% - 38px);
  }

  /**
   * PORTFOLIO
   */

  .skills-item {
    width: 23%;
  }
  .popup-content{
    max-height: 80vh;
  }
  .modal__block{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
  }
}


@media (min-width: 1300px) {
  /**
   * RESET
   */

  body::-webkit-scrollbar {
    width: 20px;
  }

  body::-webkit-scrollbar-track {
    background: var(--black-3);
  }

  body::-webkit-scrollbar-thumb {
    border: 5px solid var(--black-3);
    background: hsla(0, 0%, 100%, 0.1);
    border-radius: 20px;
  }

  body::-webkit-scrollbar-thumb:hover {
    background: hsla(0, 0%, 100%, 0.15);
  }

  body::-webkit-scrollbar-button {
    height: 60px;
  }

  /**/
  .popup-content::-webkit-scrollbar {
    width: 20px;
  }

  .popup-content::-webkit-scrollbar-track {
    background: var(--black-3);
  }

  .popup-content::-webkit-scrollbar-thumb {
    border: 5px solid var(--black-3);
    background: hsla(0, 0%, 100%, 0.1);
    border-radius: 20px;
  }

  .popup-content::-webkit-scrollbar-thumb:hover {
    background: hsla(0, 0%, 100%, 0.15);
  }

  .popup-content::-webkit-scrollbar-button {
    height: 60px;
  }

  /**
   * REUSED STYLE
   */

  .sidebar,
  article {
    width: auto;
  }

  article {
    min-height: 100%;
  }

  /**
   * MAIN
   */

  main {
    max-width: 1300px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
  }

  .main-content {
    min-width: 75%;
    width: 75%;
    margin: 0;
  }

  /**
   * SIDEBAR
   */

  .sidebar {
    position: sticky;
    top: 60px;
    max-height: max-content;
    height: 100%;
    margin-bottom: 0;
    padding-top: 60px;
    z-index: 1;
  }

  .sidebar-info {
    flex-direction: column;
  }

  .avatar-box img {
    width: 150px;
  }

  .info-content .name {
    white-space: nowrap;
    text-align: center;
  }

  .info-content .title {
    margin: auto;
  }

  .info_more-btn {
    display: none;
  }

  .sidebar-info_more {
    opacity: 1;
    visibility: visible;
  }

  .contacts-list {
    grid-template-columns: 1fr;
  }

  .contact-info :is(.contact-link) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-info :is(.contact-link, time, address) {
    --fs-7: 14px;
    font-weight: var(--fw-300);
  }

  .separator:last-of-type {
    margin: 15px 0;
  }

  .social-list {
    justify-content: center;
  }

  /**
	 * RESUME
	 */

  .timeline-text {
    max-width: 700px;
  }

  .article-title {
    padding-top: 100px;
  }

  .skills-item {
    width: 15%;
  }
  .modal__block{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
  }
}

#image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999999;
}

#image-viewer img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
}

#close-viewer {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}




/* White theme */
body.light-theme {
 --bg-gradient-onyx: linear-gradient(
    to bottom right, 
    hsl(0, 0%, 100%) 0%, 
    hsl(0, 0%, 96%) 100%
  );

  --bg-gradient-jet: linear-gradient(
      to bottom right,
      rgba(255, 112, 114, 0.1) 0%, 
      rgba(255, 112, 114, 0) 100%
    ),
    hsl(0, 0%, 98%); 

  --bg-gradient-yellow-1: linear-gradient(
    to bottom right,
    #FF7072 0%, 
    #ff9f43 100%
  );

  --bg-gradient-yellow-2: linear-gradient(
      135deg,
      rgba(255, 112, 114, 0.25) 0%,
      rgba(255, 159, 67, 0) 59.86%
    ),
    hsl(0, 0%, 100%);

  --border-gradient-onyx: linear-gradient(
    to bottom right,
    hsl(0, 0%, 70%) 0%,
    hsla(0, 0%, 70%, 0) 50%
  );
  --nav-bar: hsla(0, 0%, 100%, 0.75);
  --text-gradient-yellow: linear-gradient(
    to right, 
    #FF7072, 
    #ff4757
  );

  --jet: #eeeeee;   
  --jet2: #a5a5a5;   
  --onyx: #ffffff;      
  --black-1: #ffffff;   
  --black-2: #f5f5f5;   
  --black-3: #dcdcdc;   

  --white-1: #0a0a0a;   
  
  --white-2: #333333;   

  --light-gray: #555555;    
  --light-gray-2: #666666;  

  --light-blue: #FF7072;  
  
  --vegas-gold: #ff4757;  
  --light-brown: #b84c4c;   
}

body.light-theme .sidebar{
  border: 5px solid var(--jet);
  box-shadow: 0px 0px 10px 0.1px #353535;
}
body.light-theme .main-content{
  /* border: 5px solid var(--jet); */
  border-radius: 12px;
  box-shadow: 0px 0px 10px 0.1px #353535;
}

body.light-theme #popup-container {
  background: rgba(0, 0, 0, 0.2); 
  backdrop-filter: blur(2px); 
}

body.light-theme #popup-content {
  background: var(--onyx); 
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); 
  border: 1px solid var(--jet); 
}

body.light-theme .modal__header {
  background: var(--onyx);
  border-bottom: 1px solid var(--jet); 
}

body.light-theme .modal__header h2 {
  color: var(--white-1); 
}

body.light-theme .modal__block {
  background: var(--jet); 
  border: 1px solid rgba(0, 0, 0, 0.05); 
}

body.light-theme .modal__block p,
body.light-theme .block-text-wrapper {
  color: var(--white-2);
}

body.light-theme .modal__block a {
  color: var(--light-blue); 
  font-weight: 500;
}

body.light-theme .modal__block a:hover {
  color: var(--vegas-gold); 
}
body.ligth-theme .timeline-item:not(:last-child)::before {
    background: var(--jet2);
}



/* ==========================================================================
   KILL GOOGLE TRANSLATE BANNER (NUCLEAR OPTION)
   ========================================================================== */
.skiptranslate{
  display: none !important;
  margin: 0;
  padding: 0;
}
