@import "./reset.css";
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary-bg-color: #f2f5f4;
  --primary-accent: #10191b;
  --secondary-accent: #8a4a48;
  --teal-accent: #367072;
  --bronze-accent: #735c35;
  --surface-color: #ffffff;

  --main-text-color: #10191b;
  --supportive-text-color: #293638;
  --gray-text-color: #5c6667;

  --white-color: #fff;
  --gray-color: #e9e8e8;
  --gray-color-2: #c0c0c0;
  --gray-color-3: #e6e6e6;

  --color-preloader-bg: var(--white-color);
  --color-dots: #1a1a1a;
}

/* Common styles */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

i {
  font-size: 52px;
}



body {
  color: var(--main-text-color);
  background-color: var(--surface-color);
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.15px;
}


.tooltip {
  position: relative;
  cursor: help;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  background-color: #111;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  white-space: nowrap;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0); /* Slide-up */
}

/* Mobile modal card */
.mobile-tooltip {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.mobile-tooltip-content {
  background: #fff;
  color: #111;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  max-width: 80%;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
}

.close-tooltip {
  background: none;
  border: none;
  font-size: 1.25rem;
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
}

/* Show modal only on small screens */
@media (max-width: 768px) {
  .tooltip-text {
    display: none !important;
  }

  .tooltip {
    cursor: pointer;
  }
}


.container {
  padding: 0 32px;
  max-width: 1200px;
  /* max-width: clamp(54.5rem, 38.125rem + 81.88vw, 120rem); */
  margin: 0 auto;
}

.container-lg {
  max-width: 1600px;
}

.title {
  font-size: 44px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 54px;
}

.title::after {
  display: block;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--secondary-accent), var(--teal-accent), var(--bronze-accent));
  content: "";
}

.btn {
  display: inline-block;
  height: 52px;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  line-height: 52px;
  padding: 0 36px;
  margin: 0 12px 16px 0;
  color: var(--white-color);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
  background-color: var(--primary-accent);
  border: 2px solid var(--primary-accent);
  transition: all 0.3s ease-in;
}

.btn:hover,
.btn:focus {
  background-color: var(--secondary-accent);
  border-color: var(--secondary-accent);
  color: var(--white-color);
  outline: 0;
}

.btn:active {
  background-color: #8b4a48;
}

.btn-white {
  background: transparent;
  font-weight: 700;
  border: 2px solid var(--primary-accent);
  color: var(--primary-accent);
  transition: all 0.3s ease-in;
}

.btn-white:hover,
.btn-white:focus {
  background: var(--primary-accent);
  border: 2px solid var(--primary-accent);
  color: var(--white-color);
}

.btn-white:active {
  background-color: #3c4446;
}

.btn-red {
  background: var(--secondary-accent);
  border: 2px solid var(--secondary-accent);
  color: var(--white-color);
  transition: all 0.3s ease-in;
}

.btn-red:hover,
.btn-red:focus {
  background: var(--primary-accent);
  border: 2px solid var(--primary-accent);
}

.btn-red:active {
  background-color: #3c4446;
}

h5 {
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 23px;
  font-weight: 600;
  text-transform: uppercase;
}

.white {
  color: var(--white-color);
}

/* Header */
.header {
  z-index: 100;
  background-color: transparent;
  height: 90px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  height: 90px;
}

.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1999;
  border-bottom: 1px solid rgba(16, 25, 27, 0.08);
  background-color: rgba(242, 245, 244, 0.94);
  backdrop-filter: blur(12px);
  padding-top: 0;
  padding-bottom: 0;
  transition: all 0.3s ease-in-out;
}

.logo {
  position: relative;
  line-height: 1;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.011rem + 0.57vw, 1.375rem);
  color: var(--main-text-color);
}

.nav-list {
  display: flex;
  column-gap: 46px;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.15px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.language-toggle {
  min-width: 38px;
  padding: 6px 8px;
  border: 1px solid rgba(16, 25, 27, 0.25);
  border-radius: 999px;
  color: var(--main-text-color);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
}

.language-toggle:focus-visible {
  outline: 2px solid var(--secondary-accent);
  outline-offset: 2px;
}

.header:not(.header-sticky) .language-toggle {
  border-color: rgba(242, 245, 244, 0.35);
  color: #f2f5f4;
}

.nav-btn {
  display: none;
}

.nav-link {
  color: var(--main-text-color);
}

.nav-link.active {
  text-decoration: underline;
  text-decoration-color: var(--secondary-accent);
  text-decoration-thickness: 1.2px;
  text-underline-offset: 7px;
}

.header:not(.header-sticky) .logo,
.header:not(.header-sticky) .nav-link {
  color: #f2f5f4;
}

.header:not(.header-sticky) .nav-btn img {
  filter: brightness(0) invert(1);
}

/* Hero section */
.hero {
  position: relative;
  display: flex;
  min-height: min(760px, 100svh);
  align-items: center;
  padding-top: 180px;
  padding-bottom: 110px;
  background-color: var(--primary-accent);
  background-image: radial-gradient(circle at 10% 28%, rgba(138, 74, 72, 0.38), transparent 32%),
    radial-gradient(circle at 86% 22%, rgba(54, 112, 114, 0.36), transparent 34%),
    radial-gradient(circle at 72% 92%, rgba(115, 92, 53, 0.3), transparent 30%);
  color: #f2f5f4;
}

.hero .container {
  width: 100%;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(242, 245, 244, 0.12);
  border-radius: 14px;
  margin-top: 70px;
  background: rgba(242, 245, 244, 0.045);
  backdrop-filter: blur(10px);
}

.impact-item {
  padding: 22px 24px;
  border-right: 1px solid rgba(242, 245, 244, 0.1);
}

.impact-item:last-child {
  border-right: 0;
}

.impact-item strong {
  display: block;
  color: var(--white-color);
  font-size: clamp(1.6rem, 1.371rem + 1.14vw, 2.4rem);
  font-weight: 600;
  line-height: 1;
}

.impact-item .impact-value-long {
  font-size: clamp(1.35rem, 1.05rem + 1.5vw, 2.15rem);
}

.impact-item span {
  display: block;
  margin-top: 8px;
  color: #c8cecf;
  font-size: 11px;
  line-height: 1.45;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
}

.hero-content {
  text-align: left;
  align-self: center;
  padding: 20px;
  flex-grow: 1;
}

.hero-greeting {
  font-size: clamp(1rem, 0.929rem + 0.36vw, 1.25rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #d58b87;
}

.hero-heading {
  margin: 5px 0;
  font-weight: 500;
  font-size: clamp(3.25rem, 2.75rem + 2.5vw, 5rem);
  line-height: 1.2;
}

.hero-heading-subtitle {
  font-size: clamp(1.125rem, 1.054rem + 0.36vw, 1.375rem);
  font-weight: 400;
  color: #c8cecf;
}

.hero .btn {
  border-color: var(--secondary-accent);
  background-color: var(--secondary-accent);
}

.hero .btn:hover,
.hero .btn:focus {
  border-color: var(--teal-accent);
  background-color: var(--teal-accent);
}

.hero .btn-white {
  border-color: rgba(242, 245, 244, 0.72);
  background: transparent;
  color: #f2f5f4;
}

.hero .btn-white:hover,
.hero .btn-white:focus {
  border-color: #f2f5f4;
  background: #f2f5f4;
  color: var(--primary-accent);
}

.hero-img {
  display: flex;
  flex: 1 1 356px;
  justify-content: flex-end;
  margin-top: auto;
}

.hero-img img {
  display: block;
  position: relative;
}

.about-social-list {
  display: flex;
}

.social-links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 20px;
  margin: 40px 0 40px;
  height: 24px;

  img {
    height: 24px;
    width: 24px;
  }
}

.social-links-row a {
  filter: invert(35%) sepia(11%) saturate(160%) hue-rotate(145deg)
    brightness(88%) contrast(80%);
  transition: all 0.3s ease-in-out;
}

.social-links-row a:hover {
  filter: invert(0%) sepia(0%) saturate(7500%) hue-rotate(305deg)
    brightness(97%) contrast(103%);
}

.hero .social-links-row a {
  filter: brightness(0) invert(1);
  opacity: 0.76;
}

.hero .social-links-row a:hover {
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* About section */
.about {
  padding: 7rem 0;
  background-color: var(--surface-color);
}

.about-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  justify-content: center;
  gap: 90px;
  margin-bottom: 80px;
  color: var(--supportive-text-color);
}

.about-descr {
  font-size: clamp(1rem, 0.964rem + 0.18vw, 1.125rem);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 10px;
}

.skill {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 30px;
}

.skill-title,
.skill-percent {
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  /* text-transform: uppercase; */
  letter-spacing: 0px;
}

.skill-percent {
  float: right;
}
.skill-bar__progress {
  background-color: var(--gray-color);
  border-radius: 5px;
  height: 4px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.skill-bar__fill {
  background-color: var(--secondary-accent);
  height: 4px;
  width: 0; /* Initial width is 0 */
  transition: width 1.5s ease-in-out; /* Smooth transition for the fill */
}

.about-download-btn {
  margin-top: 40px;
}

.services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
}

.service-card {
  max-width: 300px;
  padding: 28px 24px;
  border: 1px solid var(--gray-color-3);
  border-top: 3px solid var(--secondary-accent);
  border-radius: 14px;
  background-color: var(--primary-bg-color);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:nth-child(2) {
  border-top-color: var(--teal-accent);
}

.service-card:nth-child(3) {
  border-top-color: var(--bronze-accent);
}

.service-card:hover {
  box-shadow: 0 16px 38px rgba(16, 25, 27, 0.09);
  transform: translateY(-3px);
}

.service-card-img {
  display: block;
  height: 50px;
  margin: 0 auto 20px;
  filter: invert(33%) sepia(7%) saturate(243%) hue-rotate(145deg)
    brightness(94%) contrast(81%);
}

.service-card-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: clamp(1.125rem, 1.089rem + 0.18vw, 1.25rem);
}

.service-card p {
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

/* Experience */
.experience {
  padding: 7rem 0;
  background-color: var(--primary-accent);
  color: var(--white-color);
}

.experience-title {
  text-align: center;
}

.experience-title .title {
  color: var(--white-color);
}

.section-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-color-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.experience-card {
  position: relative;
  display: flex;
  min-height: 390px;
  overflow: hidden;
  align-items: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  isolation: isolate;
  background-color: #172326;
  background-position: center;
  background-size: cover;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.experience-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 12, 14, 0.08) 10%, rgba(5, 12, 14, 0.92) 88%);
  content: "";
}

.experience-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-4px);
}

.experience-card-mistr {
  background-image: radial-gradient(circle at 75% 18%, rgba(138, 74, 72, 0.9), transparent 42%),
    linear-gradient(145deg, #26383b, #10191b);
}

.experience-card-coqui {
  background-image: radial-gradient(circle at 25% 20%, rgba(54, 112, 114, 0.9), transparent 44%),
    linear-gradient(145deg, #233638, #10191b);
}

.experience-card-hyperion {
  background-image: radial-gradient(circle at 72% 18%, rgba(115, 92, 53, 0.9), transparent 44%),
    linear-gradient(145deg, #303330, #10191b);
}

.experience-card-content {
  width: 100%;
  padding: 30px;
}

.experience-dates {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  margin-bottom: 16px;
  background: rgba(12, 22, 24, 0.35);
  backdrop-filter: blur(8px);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.experience-card h3 {
  margin-bottom: 7px;
  color: var(--white-color);
  font-size: clamp(1.5rem, 1.286rem + 1.07vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
}

.experience-role {
  min-height: 42px;
  color: #e9eded;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.experience-summary {
  margin-top: 15px;
  color: #c8cecf;
  font-size: 13px;
  line-height: 1.65;
}

/* Works */
.projects {
  padding: 7rem 0;
  background-color: var(--primary-bg-color);
  background-image: radial-gradient(circle at 8% 20%, rgba(54, 112, 114, 0.1), transparent 25%),
    radial-gradient(circle at 92% 82%, rgba(115, 92, 53, 0.09), transparent 28%);
}

.projects-title {
  text-align: center;
}

.projects-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Works carousel */
.projects-carousel {
  position: relative;
  margin-top: 1.5rem;
}

.carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.carousel-viewport::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.carousel-track.projects-row {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 24px;
  padding: 14px 56px;
  width: max-content;
}

.carousel-track .project-box {
  flex: 0 0 clamp(260px, 80vw, 510px);
  scroll-snap-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 15, 20, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.carousel-btn:hover {
  background: rgba(15, 15, 20, 0.85);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--secondary-accent);
  outline-offset: 2px;
}

.carousel-btn-prev {
  left: 10px;
}

.carousel-btn-next {
  right: 10px;
}

.carousel-btn span {
  font-size: 30px;
  line-height: 1;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(16, 25, 27, 0.2);
  cursor: pointer;
}

.carousel-dot[aria-current="true"] {
  background: var(--teal-accent);
}

@media (hover: none) {
  .carousel-btn {
    display: none;
  }
}

.carousel-track .project-box a {
  width: 100%;
}

.carousel-track .project-img {
  border-radius: 16px;
}

.carousel-track .project-mask {
  border-radius: 16px;
}

.project-box {
  position: relative;
  overflow: hidden;
  display: block;
  max-width: 510px;
}

.project-box a {
  display: inline-block;
}

.project-box:hover .project-mask {
  opacity: 1;
  visibility: visible;
}

.project-box:hover .project-mask .project-caption {
  bottom: 30px;
  opacity: 1;
}

.project-box:hover .project-img {
  transform: scale(1.1);
  transition: all 2s cubic-bezier(0.23, 1, 0.32, 1) 0s;
  width: 100%;
}

/* .project-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
} */

.project-img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  width: 100%;
}



.project-mask {
  background: linear-gradient(180deg, rgba(16, 25, 27, 0.08), rgba(16, 25, 27, 0.92));
  height: 100%;
  position: absolute;
  transition: all 0.5s ease-in-out 0s;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}

.project-mask p {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 400;
  margin-top: 0;
  text-align: left;
}

.project-mask .project-caption {
  position: absolute;
  bottom: -60px;
  left: 0;
  padding-left: 30px;
  padding-right: 30px;
  text-align: left;
  transition: all 0.5s ease-in-out 0s;
  opacity: 0;
}

.project-mask p {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 400;
  margin-top: 0;
  text-align: left;
}

/* Selected work */
.projects-eyebrow {
  color: var(--teal-accent);
}

.projects-title .title {
  margin-bottom: 16px;
}

.projects-intro {
  max-width: 580px;
  margin: 0 auto 46px;
  color: var(--supportive-text-color);
  font-size: 16px;
  line-height: 1.7;
}

.selected-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(16, 25, 27, 0.1);
  border-radius: 16px;
  background: var(--surface-color);
  box-shadow: 0 18px 45px rgba(16, 25, 27, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 24px 55px rgba(16, 25, 27, 0.14);
  transform: translateY(-5px);
}

.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e7eceb;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-image {
  transform: scale(1.045);
}

.project-category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--white-color);
  backdrop-filter: blur(9px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-category-client {
  background: rgba(138, 74, 72, 0.9);
}

.project-category-personal {
  background: rgba(54, 112, 114, 0.9);
}

.project-category-experiment {
  background: rgba(115, 92, 53, 0.92);
}

.project-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.project-details h3 {
  margin-bottom: 10px;
  color: var(--main-text-color);
  font-size: 25px;
  font-weight: 600;
}

.project-description {
  color: var(--supportive-text-color);
  font-size: 13px;
  line-height: 1.7;
}

.project-role {
  padding-top: 14px;
  margin-top: 16px;
  border-top: 1px solid var(--gray-color-3);
  color: var(--gray-text-color);
  font-size: 11px;
  line-height: 1.55;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 17px 0 24px;
}

.project-tags li {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--primary-bg-color);
  color: var(--gray-text-color);
  font-size: 10px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
}

.project-links a {
  color: var(--teal-accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.project-links a:hover,
.project-links a:focus {
  color: var(--secondary-accent);
}

.project-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--bronze-accent);
  font-size: 11px;
  font-weight: 600;
}

.project-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bronze-accent);
  box-shadow: 0 0 0 4px rgba(115, 92, 53, 0.12);
}

.project-links-case-study {
  margin-top: 18px;
}

/* Contact */
.contact {
  padding: 7rem 0;
  text-align: center;
  background-color: var(--surface-color);
  background-image: radial-gradient(circle at 18% 80%, rgba(138, 74, 72, 0.09), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(54, 112, 114, 0.09), transparent 26%);
}

.contact-content {
  font-size: clamp(1rem, 0.964rem + 0.18vw, 1.125rem);
  color: var(--supportive-text-color);
  margin: 0 auto 20px;
}

.contact form {
  max-width: 500px;
  margin: 20px auto;
  text-align: center;
}

.contact form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 15px;
  font-size: 15px;
  color: var(--gray-text-color);
  border: 1px solid var(--gray-color-2);
  margin: 7px 0;
}

.contact form .input-box input {
  width: 100%;
}

.contact form textarea {
  resize: none;
}

.contact-button {
  margin-top: 20px;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 34px auto 0;
}

.contact-action {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border: 1px solid rgba(16, 25, 27, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--main-text-color);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-action:hover,
.contact-action:focus {
  border-color: var(--teal-accent);
  box-shadow: 0 12px 30px rgba(16, 25, 27, 0.08);
  transform: translateY(-2px);
}

.contact-action-primary {
  border-color: var(--secondary-accent);
  background: var(--secondary-accent);
  color: var(--white-color);
}

.contact-action-primary:hover,
.contact-action-primary:focus {
  border-color: var(--teal-accent);
  background: var(--teal-accent);
}

/* Footer */
.footer {
  background-color: var(--primary-accent);
  background-image: linear-gradient(120deg, rgba(138, 74, 72, 0.15), rgba(54, 112, 114, 0.14) 55%, rgba(115, 92, 53, 0.16));
  color: var(--gray-color-3);
}

.footer-row {
  display: flex;
  flex-direction: column;
  column-gap: 20px;
  align-items: center;
  padding: 40px 0;
}

.footer-social {
  margin-top: 0;
}

.footer-social a:hover {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg)
    brightness(102%) contrast(102%);
}

.footer-copyright {
  font-size: clamp(0.75rem, 0.679rem + 0.36vw, 1rem);
}

.response {
  position: fixed;
  display: inline-block;
  background-color: var(--primary-accent);
  color: var(--white-color);
  border: 1px solid var(--white-color);
  min-width: 280px;
  padding: 20px 40px;
  bottom: -100px;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: all 0.3s ease-in-out;
  z-index: 5;
}

.response.open {
  bottom: 20px;
  opacity: 1;
  visibility: visible;
}

/* "go to top" button */
.goToTop {
  z-index: 599;
  position: fixed;
  width: 40px;
  height: 40px;
  background-color: var(--gray-color);
  top: auto;
  left: auto;
  right: 30px;
  bottom: 30px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  border-radius: 2px;
  transition: opacity 350ms, visibility 350ms;
}

.goToTop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  filter: invert(4%) sepia(23%) saturate(2306%) hue-rotate(148deg)
    brightness(91%) contrast(90%);
}

.goToTop img {
  height: 16px;
  width: 16px;
}

.goToTop:hover {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg)
    brightness(102%) contrast(102%);
}

.goToTop.reveal {
  display: block;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s;
}

/* Preloader with jumping dots */
#preloader {
  position: fixed;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  background: var(--color-preloader-bg);
  z-index: 3000;
  height: 100vh;
  width: 100vw;
  opacity: 1;
  overflow: hidden;
  transition: opacity 0.5s ease-out;
}

.jumping-dots {
  position: relative;
  width: 6px;
  height: 6px;
  padding: 0;
  display: inline-block;
}

.jumping-dots > div {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--color-dots);
  border-radius: 50%;
}

.jumping-dots > div:nth-of-type(1) {
  left: 20px;
}

.jumping-dots > div:nth-of-type(3) {
  left: -20px;
}

.jumping-dots > div {
  animation: jumping-dots 1.2s infinite ease;
  animation-delay: 0.2s;
}

.jumping-dots > div:nth-of-type(1) {
  animation-delay: 0.4s;
}

.jumping-dots > div:nth-of-type(3) {
  animation-delay: 0s;
}

@keyframes jumping-dots {
  0% {
    top: 0;
  }

  40% {
    top: -6px;
  }

  80% {
    top: 0;
  }
}

.about-skills {
  min-width: 0;
}

.skill-groups {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.skill-group-title {
  margin-bottom: 10px;
  color: var(--gray-text-color);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.skill-group:nth-child(1) .skill-group-title {
  color: var(--secondary-accent);
}

.skill-group:nth-child(2) .skill-group-title {
  color: var(--teal-accent);
}

.skill-group:nth-child(3) .skill-group-title,
.skill-group:nth-child(4) .skill-group-title {
  color: var(--bronze-accent);
}

.skill-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-carousel-controls {
  display: none;
}

.skills-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 10px;
}

.skills-track:focus-visible {
  border-radius: 10px;
  outline: 2px solid var(--secondary-accent);
  outline-offset: 4px;
}

.skill-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 12px 6px 10px;
  border: 1px solid var(--gray-color-3);
  border-radius: 10px;
  background: var(--white-color);
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.skill-icon:hover {
  border-color: var(--teal-accent);
  box-shadow: 0 8px 22px rgba(12, 22, 24, 0.08);
  transform: translateY(-2px);
}

.skill-icon i {
  font-size: 34px;
}

.skill-icon span {
  font-size: 11px;
  margin-top: 8px;
  color: var(--main-text-color);
}

.skill-group-additional {
  padding-top: 2px;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chips li {
  padding: 6px 11px;
  border: 1px solid var(--gray-color-3);
  border-radius: 999px;
  background-color: rgba(115, 92, 53, 0.08);
  border-color: rgba(115, 92, 53, 0.2);
  color: var(--supportive-text-color);
  font-size: 11px;
  line-height: 1;
}
