:root,
.dark-mode {
  --border-color: #383838;
  --gray: #2b2c2b;
  --icon-box: #222020;
  --bg-gray: #1e1e1f;
  --bg-body: #121212;
  --selected-text: #121212;
  --title: #ffffff;
  --title-2: #fafafa;
  --accent-color: #ffdb70;
  --timeline: #ceb15a;
  --light-gray: #d6d6d6;
  --light-gray-70: #d6d6d6b3;
  --background-navbar: #2b2b2cb2;
  --on-hover: #fa8e00;
  --deko-accent-color: #ffdb70;
  --link: #ffdb70;
  --border-gradient-onyx: #303030;
  --avatar-box: #3f3f40 3%;
  --service-header: rgba(40, 40, 45, 0.3);
  --dropdown-content: rgba(28, 28, 30, 0.72);
  --bg-gradient-jet: #1e1e1f;
  --bittersweet-shimmer: #e06666;
}

.light-mode {
  --border-color: #b0bec5;
  --gray: #e3eaf3;
  --icon-box: #dfe7f2;
  --bg-gray: #f5f9ff;
  --bg-body: #eeecec;
  --selected-text: #ffffff;
  --title: #0e0e0e;
  --title-2: #050505;
  --accent-color: #496bd9a1;
  --timeline: #364fa3a1;
  --light-gray: #212121;
  --light-gray-70: #212121b3;
  --background-navbar: #ffffff30;
  --on-hover: #061d34;
  --deko-accent-color: #496bd9;
  --link: #496bd9a1;
  --border-gradient-onyx: #a9d0f0c7 0%;
  --avatar-box: #b6d5ee 3%;
  --service-header: rgba(127, 163, 232, 0.3);
  --dropdown-content: rgba(228, 233, 245, 0.82);
  --bg-gradient-jet: #f5f9ff;
  --bittersweet-shimmer: #c62828;
}

:root {
  --ff-poppins: "Poppins", sans-serif;

  --fs-1: 24px;
  --fs-2: 18px;
  --fs-3: 17px;
  --fs-4: 16px;
  --fs-5: 15px;
  --fs-6: 14px;
  --fs-7: 13px;
  --fs-8: 11px;

  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;

  --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.25);
  --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.25);
  --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.25);
  --shadow-4: 0 25px 50px hsla(0, 0%, 0%, 0.15);
  --shadow-5: 0 24px 80px hsla(0, 0%, 0%, 0.25);

  --transition-1: 0.25s ease;
  --transition-2: 1s ease-in-out;
}

*,
*::before,
*::after {
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--ff-poppins);
}

body {
  background: var(--bg-body);
}

a {
  display: inline;
  text-decoration: none;
  color: var(--link);
}

a:hover {
  color: var(--on-hover);
}

i {
  color: inherit;
}

.slash-separator {
  color: var(--light-gray);
  margin: 0 4px;
  font-style: normal;
  display: inline;
}

li {
  list-style: none;
}

li.list-dot {
  list-style: disc;
  margin-left: 20px;
}

img,
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(--accent-color);
  color: var(--bg-body);
}

:focus {
  outline-color: var(--accent-color);
}

footer {
  text-align: center;
  color: var(--border-color);
  position: relative;
  width: 100%;
  padding-top: 15px;
  margin-top: -60px;
}

a.contact-link:hover {
  color: var(--on-hover);
}

.sidebar,
article {
  width: 20%;
  background: var(--bg-gray);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 15px;
  box-shadow: var(--shadow-1);
  z-index: 1;
}

article {
  display: block;
  animation: fade 0.8s ease backwards;
}

.article {
  display: block;
  padding-bottom: 0px;
}

.article-second {
  margin-top: 0px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border-color, #3e3e3f);
  margin: 25px 0;
  width: 100%;
}

.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(--accent-color);
  box-shadow: var(--shadow-1);
  z-index: 1;
}

.icon-box::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--icon-box);
  border-radius: inherit;
  z-index: -1;
}

.h2,
.h3 {
  color: var(--accent-color);
}

.h4,
.h5 {
  color: var(--title-2);
}

.h2 {
  font-size: var(--fs-1);
  margin-top: 0px;
}

.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;
  margin-bottom: 30px;
}

.article-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--deko-accent-color);
  border-radius: 3px;
}

.has-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.has-scrollbar::-webkit-scrollbar-track {
  background: var(--gray);
  border-radius: 5px;
}

.has-scrollbar::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 5px;
}

.has-scrollbar::-webkit-scrollbar-button {
  width: 20px;
}

.content-card {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 15px;
  padding-top: 45px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  cursor: pointer;
  z-index: 1;
}

.content-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.ph-size {
  font-size: 32px;
}

@keyframes fade {
  0% {
    opacity: 0;
    transform: translateX(-5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

main {
  margin: 15px 12px;
  margin-bottom: 75px;
  min-width: 259px;
}

#img-inverted {
  filter: invert(100%);
}

.sidebar {
  margin-bottom: 15px;
  max-height: 112px;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.sidebar.active {
  max-height: 405px;
}

.sidebar-info_more {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out;
  transform: translateY(10px);
}

.sidebar.active .sidebar-info_more {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease-out 0.2s, transform 0.4s ease-out 0.1s, visibility 0s;
}

.sidebar.active .contact-item {
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

.sidebar.active .contact-item:nth-child(1) {
  animation-delay: 0.1s;
}
.sidebar.active .contact-item:nth-child(2) {
  animation-delay: 0.15s;
}
.sidebar.active .contact-item:nth-child(3) {
  animation-delay: 0.2s;
}
.sidebar.active .contact-item:nth-child(4) {
  animation-delay: 0.25s;
}
.sidebar.active .contact-item:nth-child(5) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-info {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
}

.avatar-box {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-1);
  transition: transform 0.3s ease;
  margin: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 80px;
}

.avatar-box::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--avatar-box);
  border-radius: inherit;
  z-index: 0;
}

.info-content .name {
  color: var(--title-2);
  font-size: var(--fs-4);
  font-weight: var(--fw-500);
  letter-spacing: -0.25px;
  margin-bottom: 0px;
  margin-top: -10px;
}

.info-content .name a {
  margin-left: 35px;
}

.info-content .title {
  color: var(--title);
  background: var(--gray);
  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(--accent-color);
  background: var(--border-gradient-onyx);
  padding: 10px;
  box-shadow: var(--shadow-2);
  z-index: 1;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.info_more-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--bg-gradient-jet);
  z-index: -1;
}

.info_more-btn:hover {
  transform: translateY(-2px);
}

.info_more-btn:hover::before,
.info_more-btn:focus::before {
  background: var(--bg-gray);
}

.info_more-btn span {
  display: none;
}

.info_more-btn .ph {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.sidebar-info_more {
  opacity: 0;
  visibility: hidden;
}

.sidebar.active .info_more-btn .ph {
  transform: rotate(180deg);
}

.contacts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-item {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 25px;
}

.contact-info {
  max-width: calc(100% - 46px);
  width: calc(100% - 46px);
}

.contact-title {
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-info :is(.contact-link, time, address) {
  color: var(--title-2);
  font-size: var(--fs-7);
}

.contact-info address {
  font-style: normal;
}

.rounded-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  object-fit: cover;
}

.social-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  padding-bottom: 4px;
  padding-left: 7px;
}

.social-item .social-link {
  color: var(--light-gray-70);
  font-size: 18px;
}

.social-item .social-link:hover {
  color: var(--light-gray);
}

.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--background-navbar);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 12px 12px 0 0;
  z-index: 5;
  animation: fade 0.8s ease backwards;
}

.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);
  font-weight: var(--fw-500);
  padding: 20px 7px;
  transition: color var(--transition-1);
}

.navbar-link:hover,
.navbar-link:focus {
  color: var(--light-gray-70);
}

.navbar-link.active {
  color: var(--accent-color);
}

.navbar-active {
  color: var(--accent-color);
  font-weight: var(--fw-500);
  padding: 20px 7px;
}

.filter-list-research {
  position: fixed;
  margin: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 80%;
  padding: 0 20px;
  background: var(--background-navbar);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 0 0 0 20px;
  box-shadow: var(--shadow-2);
  z-index: 5;
  animation: fade 0.8s ease backwards;
}

.about .article-title {
  margin-bottom: 15px;
}

.about-text {
  color: var(--light-gray);
  font-size: var(--fs-12);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

.about-text p {
  margin-bottom: 15px;
}

.list {
  margin-left: 15px;
}

.about-title {
  font-size: var(--fs-6);
  color: var(--title);
  margin-bottom: 10px;
}

.service {
  margin-bottom: 35px;
}

.service-title {
  margin-bottom: 20px;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-item {
  position: relative;
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.125);
  padding: 30px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--service-header);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
  max-width: 90%;
}

.service-icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.service-icon-box img {
  margin: auto;
}

.service-content-box {
  width: 100%;
  text-align: left;
}

.service-item-title {
  margin: 0;
  text-align: center;
}

.service-item-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-3);
  line-height: 1.6;
  padding: 0;
  margin: 0;
  text-align: justify;
}

.team-section {
  margin-bottom: 35px;
}

.team-title {
  margin-bottom: 25px;
  color: var(--accent-color);
  font-size: var(--fs-2);
}

.team-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.team-item {
  width: 100%;
}

.team-card {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 30px;
  padding-top: 25px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  z-index: 1;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.team-member-image {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
  width: 100px;
  height: auto;
}

.team-member-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.team-member-name {
  color: var(--title-2);
  font-size: var(--fs-4);
  margin-bottom: 10px;
  padding-top: 10px;
}

.team-member-bio {
  color: var(--light-gray);
  font-size: var(--fs-6);
  line-height: 1.6;
  text-align: justify;
  overflow: hidden;
}

.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;
  margin-top: 7px;
}

.timeline-list span {
  color: var(--timeline);
  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(--border-color);
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 5px;
  left: -33px;
  height: 6px;
  width: 6px;
  background: var(--deko-accent-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--border-color);
}

.timeline-text {
  color: var(--light-gray);
  font-weight: var(--fw-300);
  line-height: 1.6;
  margin-top: 0px;
  margin-bottom: 25px;
  padding-bottom: 10px;
}

.timeline-text a {
  display: inline;
  white-space: normal;
  word-break: normal;
}

.skills-title {
  margin-bottom: 20px;
}

.skills-list {
  padding: 20px;
}

.skills-item:not(:last-child) {
  margin-bottom: 15px;
}

.skill .title-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.skill .title-wrapper data {
  color: var(--light-gray);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
}

.skill-progress-bg {
  background: var(--border-color);
  width: 100%;
  height: 8px;
  border-radius: 10px;
}

.skill-progress-fill {
  background: var(--deko-accent-color);
  height: 100%;
  border-radius: inherit;
}

.filter-list {
  display: none;
}

.filter-select-box {
  position: relative;
  margin-bottom: 25px;
}

.filter-select {
  background: var(--bg-gray);
  color: var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  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(--bg-gray);
  position: absolute;
  top: calc(100% + 6px);
  width: 100%;
  padding: 6px;
  border: 1px solid var(--border-color);
  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(--bg-gray);
  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 {
  --bg-gray: hsl(240, 2%, 20%);
}

.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 10px;
}

.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 > a {
  width: 100%;
}

.project-img {
  position: relative;
  width: 100%;
  height: 200px;
  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 > a:hover .project-img::before {
  background: hsla(0, 0%, 0%, 0.5);
}

.project-item-icon-box {
  --scale: 0.8;
  background: var(--border-color);
  color: var(--accent-color);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--scale));
  font-size: 20px;
  padding: 18px;
  border-radius: 12px;
  opacity: 0;
  z-index: 1;
  transition: var(--transition-1);
}

.project-item > a:hover .project-item-icon-box {
  --scale: 1;
  opacity: 1;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-1);
}

.project-item > a:hover img {
  transform: scale(1.1);
}

.project-title,
.project-category {
  margin-left: 10px;
}

.project-title {
  color: var(--title-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
  text-transform: capitalize;
  line-height: 1.3;
}

.project-category {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.padding-left-ph {
  margin-left: -5px;
}

.research-article-title {
  color: var(--title-2);
  font-size: var(--fs-2);
  position: relative;
  padding-bottom: 7px;
}
.research-article-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--deko-accent-color);
  border-radius: 3px;
}

.research1 {
  color: var(--light-gray);
  font-size: var(--fs-6);
  transition: color var(--transition-1);
}

.research1:hover,
.research1:focus {
  color: var(--light-gray-70);
}

.research1.active {
  color: var(--accent-color);
}

.research-paragraph-container {
  color: var(--light-gray);
  margin-left: 10px;
  padding-bottom: 0px;
}

.list-research {
  padding-left: 20px;
  color: var(--light-gray);
}

.research-list-padding {
  padding-left: 20px;
}

.research-projects-time {
  color: var(--timeline);
  font-weight: var(--fw-400);
  line-height: 1.6;
  padding-left: 20px;
}

.research-projects-title {
  font-size: var(--fs-6);
  line-height: 1.3;
  margin-bottom: 7px;
}

.filter-item a {
  color: hsl(0, 0%, 84%);
  font-size: 15px;
  padding: 20px 7px;
  transition: color var(--transition-1);
}
.filter-item:hover,
.filter-item:focus {
  color: hsla(0, 0%, 84%, 0.7);
}

.filter-item.active {
  color: hsl(45, 100%, 72%);
}

.blog-posts {
  margin-bottom: 10px;
}

.blog-posts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.blog-post-item > a {
  position: relative;
  background: var(--border-gradient-onyx);
  height: 100%;
  box-shadow: var(--shadow-4);
  border-radius: 16px;
  z-index: 1;
}

.blog-post-item > a::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--icon-box);
  z-index: -1;
}

.blog-banner-box {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.blog-banner-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-1);
}

.blog-post-item > a:hover .blog-banner-box img {
  transform: scale(1.1);
}

.blog-content {
  padding: 15px;
}

.blog-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.blog-meta :is(.blog-category, time) {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.blog-meta .dot {
  background: var(--light-gray-70);
  width: 4px;
  height: 4px;
  border-radius: 4px;
}

.blog-item-title {
  margin-bottom: 10px;
  line-height: 1.3;
  transition: var(--transition-1);
}

.blog-post-item > a:hover .blog-item-title {
  color: var(--accent-color);
}

.blog-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

.mapbox {
  position: relative;
  height: 350px;
  width: 100%;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

#map-container {
  width: 100%;
  height: 100%;
  z-index: 1;
}

#map-consent-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-gray);
  color: var(--light-gray);
  z-index: 2;
  padding: 20px;
  text-align: center;
  border-radius: 16px;
}

#map-consent-banner p {
  margin-bottom: 20px;
  font-size: var(--fs-6);
  max-width: 80%;
}

#accept-map-btn {
  background-color: var(--accent-color);
  color: var(--bg-body);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: var(--fw-500);
  transition: background-color 0.3s ease;
}

#accept-map-btn:hover {
  background-color: var(--on-hover);
}

:root.dark-mode #map-container {
  filter: grayscale(1) invert(1);
}

:root.light-mode #map-container {
  filter: none;
}

.leaflet-control-attribution {
  background-color: rgba(255, 255, 255, 0.7) !important;
  font-size: 10px !important;
}

:root.dark-mode .leaflet-control-attribution {
  background-color: rgba(0, 0, 0, 0.5) !important;
  color: #fff !important;
}

:root.dark-mode .leaflet-control-attribution a {
  color: var(--accent-color) !important;
}

.contact-form {
  margin-bottom: 10px;
}

.form-title {
  margin-bottom: 20px;
}

.input-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.form-input {
  color: var(--title-2);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  padding: 13px 20px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  outline: none;
}

.form-input::placeholder {
  font-weight: var(--fw-500);
}

.form-input:focus {
  border-color: var(--accent-color);
}

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(--bittersweet-shimmer);
}

.form-btn {
  position: relative;
  width: 100%;
  background: var(--border-gradient-onyx);
  color: var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: var(--fs-6);
  text-transform: capitalize;
  box-shadow: var(--shadow-3);
  z-index: 1;
  transition: var(--transition-1);
}

.form-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.form-btn:hover {
  background: var(--bg-gradient-yellow-1);
}

.form-btn:hover::before {
  background: var(--bg-gradient-yellow-2);
}

.form-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-btn:disabled:hover {
  background: var(--border-gradient-onyx);
}

.form-btn:disabled:hover::before {
  background: var(--bg-gradient-jet);
}

.theme-toggle-btn {
  background: none;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  width: 34px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent-color);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
  padding: 0;
  margin: 0 4px;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.1);
}

.light-mode .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.theme-toggle-btn .ph {
  font-size: 16px;
  transition: transform 0.4s ease;
  display: flex;
}

.theme-toggle-btn:hover .ph {
  transform: rotate(20deg);
}

.mobile-menu-toggle {
  align-items: center;
  background-color: var(--accent-color);
  border-radius: 50%;
  bottom: 30px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: none;
  height: 56px;
  justify-content: center;
  position: fixed;
  right: 24px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  width: 56px;
  z-index: 100;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 219, 112, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 219, 112, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 219, 112, 0);
  }
}

.mobile-menu-toggle:hover {
  background-color: var(--on-hover);
  transform: scale(1.05) rotate(90deg);
}

body.menu-open .mobile-menu-toggle {
  background-color: var(--on-hover);
  transform: rotate(225deg);
}

.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
  background-color: var(--bg-body);
  border-radius: 2px;
  content: "";
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease-in-out;
}

.mobile-menu-toggle::before {
  height: 20px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
}

.mobile-menu-toggle::after {
  height: 3px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
}

body.menu-open .mobile-menu-toggle::before {
  transform: translate(-50%, -50%) rotate(90deg);
}

body.menu-open .mobile-menu-toggle::after {
  transform: translate(-50%, -50%) rotate(180deg);
}

.mobile-menu {
  background-color: var(--bg-gray);
  border-radius: 24px 0 0 24px;
  bottom: 0;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  display: block;
  height: 100vh;
  max-width: 320px;
  min-width: 280px;
  opacity: 0;
  overflow-y: auto;
  padding: 60px 24px 40px;
  pointer-events: none;
  position: fixed;
  right: -100%;
  top: 0;
  transition: right 0.4s cubic-bezier(0.17, 0.67, 0.24, 0.99), opacity 0.3s ease, background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  width: 85%;
  z-index: 1001;
}

.light-mode .mobile-menu {
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
  right: 0;
}

.mobile-menu-close {
  align-items: center;
  background-color: var(--bg-body);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: var(--light-gray);
  cursor: pointer;
  display: flex;
  font-size: 22px;
  height: 36px;
  justify-content: center;
  position: absolute;
  right: 20px;
  top: 20px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  width: 36px;
  z-index: 2;
}

.mobile-menu-close:hover {
  background-color: var(--accent-color);
  color: var(--bg-body);
  transform: rotate(90deg);
}

.mobile-menu-header {
  align-items: center;
  display: flex;
  margin-bottom: 40px;
  margin-top: 20px;
}

.mobile-menu-avatar {
  border-radius: 12px;
  height: auto;
  margin-right: 15px;
  overflow: hidden;
  width: 60px;
}

.mobile-menu-title {
  color: var(--title-2);
  font-size: 20px;
  font-weight: 500;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.mobile-nav-item {
  border-radius: 12px;
  margin: 0;
  position: relative;
  transition: background-color 0.2s ease;
}

.mobile-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.light-mode .mobile-nav-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.mobile-nav-link {
  border-radius: 12px;
  color: var(--light-gray);
  display: flex;
  font-size: var(--fs-4);
  font-weight: var(--fw-400);
  padding: 14px 16px;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  color: var(--accent-color);
}

.mobile-nav-active {
  background-color: rgba(255, 219, 112, 0.1);
  color: var(--accent-color) !important;
  font-weight: var(--fw-500);
}

.light-mode .mobile-nav-active {
  background-color: rgba(73, 107, 217, 0.1);
}

.mobile-nav-icon {
  align-items: center;
  color: inherit;
  display: flex;
  font-size: 20px;
  margin-right: 16px;
}

.has-submenu::after {
  content: "";
  border-style: solid;
  border-width: 5px 5px 0 5px;
  border-color: var(--light-gray) transparent transparent transparent;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease-in-out;
}

.has-submenu:hover::after {
  border-color: var(--accent-color) transparent transparent transparent;
}

.has-submenu.expanded::after {
  transform: translateY(-50%) rotate(180deg);
  border-color: var(--accent-color) transparent transparent transparent;
}

.mobile-nav-item.has-active-child > .mobile-nav-link {
  color: var(--accent-color);
}

.mobile-submenu {
  border-left: 2px solid var(--accent-color);
  display: none;
  margin-bottom: 8px;
  margin-left: 20px;
  margin-top: 2px;
  opacity: 0;
  padding-left: 16px;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.3s ease;
}

.mobile-submenu.expanded {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-submenu .mobile-nav-item {
  margin: 2px 0;
}

.mobile-submenu .mobile-nav-link {
  font-size: var(--fs-5);
  padding: 10px 16px;
}

.mobile-menu-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  bottom: 0;
  display: block;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease-in-out;
  z-index: 1000;
}

.light-mode .mobile-menu-overlay {
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-theme-toggle {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding: 20px 0;
}

.light-mode .mobile-theme-toggle {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-theme-label {
  color: var(--light-gray);
  font-size: var(--fs-5);
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-menu.active .mobile-nav-item {
  animation: fadeInRight 0.3s ease forwards;
  opacity: 0;
}

.mobile-menu.active .mobile-nav-item:nth-child(1) {
  animation-delay: 0.1s;
}
.mobile-menu.active .mobile-nav-item:nth-child(2) {
  animation-delay: 0.15s;
}
.mobile-menu.active .mobile-nav-item:nth-child(3) {
  animation-delay: 0.2s;
}
.mobile-menu.active .mobile-nav-item:nth-child(4) {
  animation-delay: 0.25s;
}
.mobile-menu.active .mobile-nav-item:nth-child(5) {
  animation-delay: 0.3s;
}
.mobile-menu.active .mobile-nav-item:nth-child(6) {
  animation-delay: 0.35s;
}

.mobile-menu-toggle.pulse-once {
  animation: pulse 1.5s ease-out 1;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown button {
  background: transparent;
  color: var(--light-gray);
  font-size: var(--fs-8);
  padding: 20px 7px;
  border: none;
  cursor: pointer;
  font-family: var(--ff-poppins);
  transition: color var(--transition-1);
}

.dropdown button:hover,
.dropdown button:focus {
  color: var(--light-gray-70);
}

.dropdown button.navbar-active {
  color: var(--accent-color);
}

.dropdown-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: var(--dropdown-content);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  min-width: 240px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-2);
  z-index: 10;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 5px;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
  color: var(--light-gray);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: var(--fs-8);
  transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
  padding-left: 20px;
}

.light-mode .dropdown-content a:hover {
  background-color: rgba(0, 0, 0, 0.07);
}

.mobile-menu-toggle,
.scroll-to-top {
  align-items: center;
  background-color: var(--accent-color);
  border-radius: 50%;
  bottom: 30px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  height: 56px;
  justify-content: center;
  position: fixed;
  right: 24px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  width: 56px;
  z-index: 99;
  border: none;
  color: var(--bg-body);
}

.scroll-to-top {
  bottom: 100px;
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--on-hover);
  transform: scale(1.05);
}

.scroll-to-top:hover i {
  transform: rotate(360deg);
}

.scroll-to-top i {
  font-size: 28px;
  font-weight: bold;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pulse-accent-color {
  0% {
    box-shadow: 0 0 0 0 var(--accent-color-transparent);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.dark-mode {
  --accent-color-transparent: rgba(255, 219, 112, 0.7);
}

.light-mode {
  --accent-color-transparent: rgba(73, 107, 217, 0.7);
}

.mobile-menu-toggle.pulse-once {
  animation: pulse-accent-color 1.5s ease-out;
}

.scroll-to-top.pulse {
  animation: pulse-accent-color 1.5s ease-out;
  animation-iteration-count: 1;
}

.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
  background-color: var(--bg-body);
  border-radius: 2px;
  content: "";
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease-in-out;
}

.mobile-menu-toggle::before {
  height: 20px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
}

.mobile-menu-toggle::after {
  height: 3px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
}

body.menu-open .mobile-menu-toggle {
  background-color: var(--on-hover);
  transform: rotate(225deg);
}

body.menu-open .mobile-menu-toggle::before {
  transform: translate(-50%, -50%) rotate(90deg);
}

body.menu-open .mobile-menu-toggle::after {
  transform: translate(-50%, -50%) rotate(180deg);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }

  .scroll-to-top {
    bottom: 30px;
  }
}

@media (max-width: 449px) {
  :root {
    --fs-1: 24px;
    --fs-2: 20px;
    --fs-3: 20px;
    --fs-4: 16px;
    --fs-5: 14px;
    --fs-6: 13px;
    --fs-7: 13px;
    --fs-8: 10px;
  }

  .sidebar,
  article {
    width: 100%;
    padding: 20px;
    margin-inline: auto;
  }

  .article-title {
    font-weight: var(--fw-500);
    padding-bottom: 10px;
  }

  .article-title::after {
    width: 30px;
    height: 3px;
  }

  .icon-box {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    font-size: 14px;
  }

  main {
    margin-top: 40px;
    margin-bottom: 60px;
  }

  .sidebar {
    max-height: 150px;
    margin-bottom: 20px;
    overflow: hidden;
  }

  .sidebar.active {
    max-height: 920px;
  }

  .sidebar-info {
    gap: 10px;
    padding: 5px 0;
  }

  .avatar-box {
    border-radius: 18px;
    margin-right: 10px;
    margin-left: 15px;
    padding: 2px;
    min-width: 60px;
    max-width: 80px;
  }

  .avatar-box img {
    width: 80px;
    border-radius: 16px;
  }

  .info-content .name {
    font-size: 18px;
    margin-top: 0;
  }

  .info-content .name a {
    margin-left: 0px;
  }

  .info-content .title {
    padding: 3px 12px;
  }

  .info_more-btn {
    top: -25px;
    right: -20px;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 0 12px;
  }

  .info_more-btn .ph {
    font-size: 18px;
    display: block;
    margin-top: 3px;
  }

  .info_more-btn span {
    display: none;
  }

  .separator {
    margin: 20px 0;
  }

  .contacts-list {
    gap: 20px;
  }

  .contact-info {
    max-width: calc(100% - 45px);
    width: calc(100% - 45px);
  }

  .navbar {
    border-radius: 12px 12px 0 0;
    display: none;
  }

  .navbar-list {
    gap: 10px;
  }

  .navbar-link {
    --fs-8: 12px;
  }

  .about .article-title {
    margin-bottom: 12px;
  }

  .about-text {
    margin-bottom: 0px;
  }

  .service-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
  }

  .service-item-text {
    margin-right: -50px;
  }

  .service-icon-box {
    margin-bottom: 0;
    margin-top: 5px;
  }

  .service-content-box {
    text-align: left;
    width: calc(100% - 50px);
  }

  .service-item-title {
    margin-left: 0;
    margin-top: 7px;
    margin-bottom: 0px;
    text-align: left;
  }

  .service-item-text {
    padding-left: 0;
  }

  .team-member-image {
    width: 80px;
  }

  .team-card {
    padding: 20px;
    padding-top: 15px;
  }

  .timeline-list {
    margin-left: 45px;
  }

  .timeline-item:not(:last-child)::before {
    left: -30px;
  }

  .timeline-item::after {
    height: 6px;
    width: 6px;
    left: -33px;
  }

  .skills-item:not(:last-child) {
    margin-bottom: 15px;
  }

  .project-img,
  .blog-banner-box {
    border-radius: 10px;
  }

  .blog-posts-list {
    gap: 20px;
  }

  .blog-content {
    padding: 15px;
  }

  .mapbox {
    height: 300px;
    border-radius: 12px;
  }

  .input-wrapper {
    gap: 20px;
    margin-bottom: 20px;
  }

  .form-input {
    padding: 10px 15px;
    font-size: var(--fs-7);
  }

  textarea.form-input {
    margin-bottom: 20px;
  }

  .form-btn {
    --fs-6: 14px;
    padding: 12px 15px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (min-width: 450px) {
  :root {
    --fs-1: 28px;
    --fs-2: 22px;
    --fs-3: 24px;
    --fs-4: 17px;
    --fs-6: 14px;
    --fs-7: 14px;
    --fs-8: 11px;
  }

  .sidebar,
  article {
    width: 100%;
    margin-inline: auto;
    padding: 25px;
  }

  .article-title {
    font-weight: var(--fw-600);
    padding-bottom: 12px;
  }

  .article-title::after {
    width: 35px;
    height: 4px;
  }

  .icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 16px;
  }

  main {
    margin-top: 50px;
    margin-bottom: 80px;
  }

  .sidebar {
    max-height: 170px;
    margin-bottom: 25px;
  }

  .sidebar.active {
    max-height: 920px;
  }

  .sidebar-info {
    gap: 20px;
  }

  .avatar-box img {
    width: 110px;
  }

  .info-content .title {
    padding: 4px 15px;
  }

  .info_more-btn {
    top: -30px;
    right: -30px;
    padding: 10px 15px;
  }

  .info_more-btn .ph {
    font-size: 18px;
    display: block;
    margin-top: 3px;
    margin-right: 3px;
  }

  .separator {
    margin: 25px 0;
  }

  .contacts-list {
    gap: 30px;
  }

  .contact-info {
    max-width: calc(100% - 55px);
    width: calc(100% - 55px);
  }

  .navbar {
    border-radius: 16px 16px 0 0;
    display: none;
  }

  .navbar-list {
    gap: 15px;
  }

  .navbar-link {
    --fs-8: 13px;
  }

  .about .article-title {
    margin-bottom: 15px;
  }

  .service-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5px;
    padding: 25px;
  }

  .service-icon-box {
    margin-bottom: 0;
    margin-top: 4px;
  }

  .service-content-box {
    text-align: left;
  }

  .testimonials-title {
    margin-bottom: 20px;
  }

  .testimonials-list {
    gap: 25px;
    margin: 0 -25px;
    padding: 25px;
    padding-bottom: 30px;
  }

  .content-card {
    padding: 25px;
    padding-top: 20px;
  }

  .testimonials-avatar-box {
    transform: translate(25px, -25px);
    border-radius: 16px;
  }

  .testimonials-avatar-box img {
    width: 70px;
  }

  .testimonials-item-title {
    margin-bottom: 8px;
    margin-left: 85px;
  }

  .modal-container {
    padding: 15px;
  }

  .testimonials-modal {
    gap: 20px;
    padding: 25px;
    border-radius: 16px;
  }

  .modal-avatar-box {
    border-radius: 15px;
  }

  .modal-avatar-box img {
    width: 55px;
  }

  .modal-img-wrapper > img {
    width: 30px;
  }

  .timeline-list {
    margin-left: 55px;
  }

  .timeline-item:not(:last-child)::before {
    left: -35px;
  }

  .timeline-item::after {
    height: 7px;
    width: 7px;
    left: -38px;
  }

  .skills-item:not(:last-child) {
    margin-bottom: 20px;
  }

  .project-img,
  .blog-banner-box {
    border-radius: 14px;
  }

  .blog-posts-list {
    gap: 25px;
  }

  .blog-content {
    padding: 20px;
  }

  .mapbox {
    height: 350px;
    border-radius: 15px;
  }

  .input-wrapper {
    gap: 25px;
    margin-bottom: 25px;
  }

  .form-input {
    padding: 12px 18px;
  }

  textarea.form-input {
    margin-bottom: 25px;
  }

  .form-btn {
    --fs-6: 15px;
    padding: 14px 18px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (min-width: 580px) {
  :root {
    --fs-1: 32px;
    --fs-2: 24px;
    --fs-3: 26px;
    --fs-4: 18px;
    --fs-6: 15px;
    --fs-7: 15px;
    --fs-8: 12px;
  }

  .sidebar,
  article {
    width: 100%;
    margin-inline: auto;
    padding: 30px;
  }

  .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: 920px;
  }

  .sidebar-info {
    gap: 20px;
  }

  .avatar-box {
    max-width: 150px;
    margin: auto 15px;
  }

  .avatar-box img {
    width: 120px;
    border-radius: 22px;
  }

  .info-content .title {
    padding: 5px 18px;
  }

  .info_more-btn {
    padding: 10px 15px;
    border-radius: 0 15px;
  }

  .info_more-btn .ph {
    display: none;
  }

  .info_more-btn span {
    display: block;
    font-size: var(--fs-8);
    font-weight: var(--fw-500);
  }

  .info_more-btn ion-icon {
    display: none;
  }

  .info-content .name {
    font-size: 22px;
    margin-top: 0;
  }

  .separator {
    margin: 32px 0;
  }

  .contacts-list {
    gap: 40px;
  }

  .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: 0px;
  }

  .service-item {
    display: flex;
    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;
  }

  .testimonials-title {
    margin-bottom: 25px;
  }

  .testimonials-list {
    gap: 30px;
    margin: 0 -30px;
    padding: 30px;
    padding-bottom: 35px;
  }

  .content-card {
    padding: 30px;
    padding-top: 25px;
  }

  .testimonials-avatar-box {
    transform: translate(30px, -30px);
    border-radius: 20px;
  }

  .testimonials-avatar-box img {
    width: 80px;
  }

  .testimonials-item-title {
    margin-bottom: 10px;
    margin-left: 95px;
  }

  .testimonials-text {
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }

  .modal-container {
    padding: 20px;
  }

  .testimonials-modal {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 25px;
    padding: 30px;
    border-radius: 20px;
  }

  .modal-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .modal-avatar-box {
    border-radius: 18px;
    margin-bottom: 0;
  }

  .modal-avatar-box img {
    width: 65px;
  }

  .modal-img-wrapper > img {
    display: block;
    flex-grow: 1;
    width: 35px;
  }

  .timeline-list {
    margin-left: 65px;
  }

  .timeline-item:not(:last-child)::before {
    left: -40px;
  }

  .timeline-item::after {
    height: 8px;
    width: 8px;
    left: -43px;
  }

  .skills-item:not(:last-child) {
    margin-bottom: 25px;
  }

  .project-img,
  .blog-banner-box {
    border-radius: 16px;
  }

  .blog-posts-list {
    gap: 30px;
  }

  .blog-content {
    padding: 25px;
  }

  .mapbox {
    height: 380px;
    border-radius: 18px;
  }

  .input-wrapper {
    gap: 30px;
    margin-bottom: 30px;
  }

  .form-input {
    padding: 15px 20px;
  }

  textarea.form-input {
    margin-bottom: 30px;
  }

  .form-btn {
    --fs-6: 16px;
    padding: 16px 20px;
  }

  .form-btn ion-icon {
    font-size: 18px;
  }

  footer {
    margin-top: -90px;
  }
}

@media (max-width: 768px) {
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
  }

  td,
  th {
    padding: 6px 8px;
    font-size: var(--fs-6);
  }

  table table {
    width: auto;
    margin: 0;
  }

  .table-container {
    position: relative;
    overflow-x: auto;
    max-width: 100%;
  }

  .table-container::after {
    content: "←→";
    position: absolute;
    bottom: 8px;
    right: 8px;
    color: var(--light-gray-70);
    font-size: var(--fs-8);
    pointer-events: none;
    opacity: 0.7;
  }
}

@media (min-width: 768px) {
  .has-scrollbar::-webkit-scrollbar-button {
    width: 100px;
  }

  .contacts-list {
    grid-template-columns: 1fr 1fr;
    gap: 30px 15px;
  }

  .navbar-link {
    --fs-8: 15px;
  }

  .team-list {
    grid-template-columns: 1fr 1fr;
  }

  .team-member-image {
    width: 120px;
  }

  .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-70);
  }

  .filter-item button.active {
    color: var(--accent-color);
  }

  .project-list,
  .blog-posts-list {
    grid-template-columns: 1fr 1fr;
  }

  .input-wrapper {
    grid-template-columns: 1fr 1fr;
  }

  .form-btn {
    width: max-content;
    margin-left: auto;
  }

  .dropdown button,
  .dropdown-content a {
    --fs-8: 15px;
  }
}

@media (min-width: 1024px) {
  :root {
    --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.125);
    --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.125);
    --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.125);
  }

  .sidebar,
  article {
    width: 1000px;
    box-shadow: var(--shadow-5);
  }

  main {
    margin-bottom: 60px;
  }

  .main-content {
    position: relative;
    width: max-content;
    margin: auto;
  }

  .article-second {
    max-width: 100%;
    margin: auto;
    margin-top: 80px;
  }

  .navbar {
    display: block;
    position: absolute;
    bottom: auto;
    top: 0;
    left: auto;
    right: 0;
    width: max-content;
    border-radius: 0 20px;
    padding: 0 20px;
    box-shadow: none;
  }

  .navbar-list {
    gap: 30px;
    padding: 0 20px;
  }

  .navbar-link {
    font-weight: var(--fw-500);
  }

  .mobile-menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .mobile-menu-overlay {
    display: none;
  }

  .navbar {
    display: block;
  }

  body.menu-open {
    overflow: visible;
  }

  .info-content .name a {
    margin-left: 100px;
  }

  .service-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
  }

  .testimonials-item {
    min-width: calc(50% - 15px);
  }

  .project-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-banner-box {
    height: 230px;
  }

  .dropdown button {
    font-weight: var(--fw-500);
  }

  footer {
    margin-top: -60px;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .scroll-to-top {
    bottom: 30px;
  }
}

@media (min-width: 1250px) {
  body::-webkit-scrollbar {
    width: 20px;
  }

  body::-webkit-scrollbar-track {
    background: var(--bg-body);
  }

  body::-webkit-scrollbar-thumb {
    border: 5px solid var(--bg-body);
    background: hsla(0, 0%, 100%, 0.1);
    border-radius: 20px;
    box-shadow: inset 1px 1px 0 hsla(0, 0%, 100%, 0.11), inset -1px -1px 0 hsla(0, 0%, 100%, 0.11);
  }

  body::-webkit-scrollbar-thumb:hover {
    background: hsla(0, 0%, 100%, 0.15);
  }

  body::-webkit-scrollbar-button {
    height: 60px;
  }

  .sidebar,
  article {
    width: 100%;
  }

  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 {
    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;
    border-radius: 20px;
  }

  .info-content .name {
    white-space: nowrap;
    text-align: center;
  }

  .info-content .name a {
    margin-left: 0px;
  }

  .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;
    opacity: 0;
  }

  .social-list {
    justify-content: center;
  }

  .team-card {
    height: 100%;
  }

  .timeline-text {
    max-width: 700px;
  }
}

/* ============================
   UTILITY CLASSES
   ============================ */

.text-center,
.aligncenter {
  text-align: center;
}
