: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(45, 100%, 71%) 0%, hsla(36, 100%, 69%, 0) 50%);
  --bg-gradient-yellow-2: linear-gradient(135deg, hsla(45, 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(45, 100%, 72%), hsl(35, 100%, 68%));
  --jet: hsl(0, 0%, 22%);
  --onyx: hsl(240, 1%, 17%);
  --eerie-black-1: hsl(240, 2%, 13%);
  --eerie-black-2: hsl(240, 2%, 12%);
  --smoky-black: hsl(0, 0%, 7%);
  --white-1: hsl(0, 0%, 100%);
  --white-2: hsl(0, 0%, 98%);
  --orange-yellow-crayola: hsl(45, 100%, 72%);
  --light-gray: hsl(0, 0%, 84%);
  --light-gray-70: hsla(0, 0%, 84%, 0.7);
  --bittersweet-shimmer: hsl(0, 43%, 51%);
  --ff-poppins: "Poppins", sans-serif;
  --fs-1: 24px;
  --fs-2: 18px;
  --fs-3: 17px;
  --fs-4: 16px;
  --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);
  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease-in-out;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
a { color: var(--orange-yellow-crayola); text-decoration: none; }
li { list-style: none; }
img, ion-icon, a, button, time, span { display: block; }
button { font: inherit; background: none; border: none; text-align: left; cursor: pointer; color: inherit; }
input, textarea { display: block; width: 100%; background: none; font: inherit; color: inherit; }
::selection { background: var(--orange-yellow-crayola); color: var(--smoky-black); }
:focus-visible { outline: 2px solid var(--orange-yellow-crayola); outline-offset: 2px; }
html { font-family: var(--ff-poppins); }
body { background: var(--smoky-black); }

.sidebar, article {
  background: var(--eerie-black-2);
  border: 1px solid var(--jet);
  border-radius: 20px;
  padding: 15px;
  box-shadow: var(--shadow-1);
}

.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(--orange-yellow-crayola);
  box-shadow: var(--shadow-1);
  z-index: 1;
  flex-shrink: 0;
}
.icon-box::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--eerie-black-1);
  border-radius: inherit;
  z-index: -1;
}

article { display: none; }
article.active { display: block; animation: fade 0.5s ease backwards; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

h2, h3, h4 { color: var(--white-2); text-transform: capitalize; }
h2 { font-size: var(--fs-1); font-weight: var(--fw-600); }
h3 { font-size: var(--fs-2); font-weight: var(--fw-500); }
h4 { font-size: var(--fs-4); font-weight: var(--fw-500); }

.article-title { position: relative; padding-bottom: 7px; margin-bottom: 20px; }
.article-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--text-gradient-yellow);
  border-radius: 3px;
}

main { margin: 15px 12px 108px; min-width: 259px; }

.sidebar { margin-bottom: 15px; max-height: 112px; overflow: hidden; transition: var(--transition-2); }
.sidebar.active { max-height: 460px; }
.sidebar-info { position: relative; display: flex; align-items: center; gap: 15px; }

.avatar-box {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
}
.avatar-box img { width: 100%; height: 100%; object-fit: contain; }

.brand-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-bottom: 12px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--onyx);
}
.brand-chip img { width: 22px; height: 22px; object-fit: contain; }
.brand-chip span { color: var(--white-2); font-size: var(--fs-7); font-weight: var(--fw-500); }

.name {
  color: var(--white-2);
  font-size: var(--fs-3);
  font-weight: var(--fw-500);
  letter-spacing: -0.25px;
  margin-bottom: 10px;
}
.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(--orange-yellow-crayola);
  background: var(--border-gradient-onyx);
  padding: 10px;
  box-shadow: var(--shadow-2);
  z-index: 1;
}
.info_more-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--bg-gradient-jet);
  z-index: -1;
}
.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; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-info { min-width: 0; }
.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(--white-2);
  font-size: var(--fs-7);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.social-list { display: flex; gap: 15px; padding-left: 7px; }
.social-link { color: var(--light-gray-70); font-size: var(--fs-7); }
.social-link:hover { color: var(--light-gray); }

@media (max-width: 579px) {
  .sidebar { max-height: 88px; padding: 10px 12px; }
  .avatar-box { width: 56px; height: 56px; border-radius: 16px; }
  .sidebar-info { gap: 10px; }
  .brand-chip { display: none; }
  .info-content { min-width: 0; display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
  .name { margin-bottom: 0; font-size: 17px; line-height: 1; }
  .title {
    font-size: 12px;
    font-weight: var(--fw-500);
    line-height: 1;
    padding: 7px 14px;
    border-radius: 10px;
    white-space: nowrap;
  }
  .info_more-btn {
    position: relative;
    top: auto;
    right: auto;
    margin-left: auto;
    align-self: center;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    padding: 0;
  }
  .info_more-btn ion-icon { font-size: 16px; }
}

.navbar {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: calc(100vw - 20px);
  max-width: 520px;
  padding: 5px;
  background: rgba(18, 18, 20, 0.55);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  z-index: 5;
}
.navbar-bar { position: relative; }
.navbar-list { display: flex; align-items: center; gap: 2px; }
.navbar-list li { flex: 1 1 0; position: relative; z-index: 1; }
.navbar-indicator {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), width 0.42s cubic-bezier(0.22, 1, 0.36, 1), height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.navbar-link {
  width: 100%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: var(--fw-500);
  text-align: center;
  padding: 10px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.navbar-link:hover, .navbar-link:focus { color: var(--white-1); }
.navbar-link.active { color: var(--orange-yellow-crayola); }

.about-text, .timeline-text, .service-item-text, .project-category {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}
.about-text { margin-bottom: 28px; }
.about-text p + p { margin-top: 15px; }

.service-title, .skills-title { margin-bottom: 20px; }
.service-list { display: grid; gap: 20px; }
.service-item {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  z-index: 1;
  text-align: center;
}
.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-item-title { margin-bottom: 7px; }

.timeline { margin-bottom: 30px; }
.title-wrapper { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.timeline-list { margin-left: 45px; }
.timeline-item { position: relative; }
.timeline-item:not(:last-child) { margin-bottom: 20px; }
.timeline-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -30px;
  width: 8px;
  height: 8px;
  background: var(--text-gradient-yellow);
  border-radius: 50%;
}
.timeline-item-title { margin-bottom: 7px; }
.timeline-item :is(time, span) {
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-7);
  font-weight: var(--fw-400);
  margin-bottom: 7px;
}
.timeline-text { margin-top: 7px; }

.skills-list { display: grid; gap: 18px; }
.skill-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.skill-head h4 { font-size: var(--fs-6); text-transform: none; }
.skill-head data { color: var(--light-gray); font-size: var(--fs-7); }
.skill-track { height: 8px; background: var(--jet); border-radius: 10px; overflow: hidden; }
.skill-track span { display: block; height: 100%; background: var(--text-gradient-yellow); border-radius: inherit; }

.testimonials { margin-top: 35px; }
.testimonials-list, .clients-list, .blog-list { display: grid; gap: 15px; }
.testimonial-item {
  width: 100%;
  position: relative;
  padding: 15px 15px 15px 15px;
  border-radius: 14px;
  background: var(--border-gradient-onyx);
  box-shadow: var(--shadow-2);
  text-align: left;
}
.testimonial-item img:first-child { width: 60px; height: 60px; border-radius: 14px; margin-bottom: 12px; }
.testimonial-item h4 { margin-bottom: 8px; }
.testimonial-item p {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.quote-icon { position: absolute; top: 15px; right: 15px; width: 24px; }
.clients { margin-top: 30px; }
.clients-list { grid-template-columns: 1fr 1fr; }
.clients-list a {
  background: var(--white-2);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  place-items: center;
}
.clients-list img { width: 100%; height: 36px; object-fit: contain; }

.blog-post a { color: inherit; }
.blog-banner { height: 200px; border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.blog-banner img { width: 100%; height: 100%; object-fit: cover; }
.blog-meta { display: flex; justify-content: space-between; color: var(--light-gray-70); font-size: var(--fs-8); text-transform: uppercase; margin-bottom: 8px; }
.blog-post h3 { font-size: var(--fs-4); margin-bottom: 6px; text-transform: none; }
.blog-post p { color: var(--light-gray); font-size: var(--fs-6); font-weight: var(--fw-300); line-height: 1.5; }

.mapbox { margin-bottom: 25px; }
.mapbox iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 16px;
  filter: grayscale(1) invert(1);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: hsla(0, 0%, 5%, 0.8);
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative;
  width: min(520px, 100%);
  background: var(--eerie-black-2);
  border: 1px solid var(--jet);
  border-radius: 16px;
  padding: 30px 20px 20px;
}
.modal-card img { width: 80px; height: 80px; border-radius: 14px; margin-bottom: 12px; }
.modal-card time { color: var(--orange-yellow-crayola); font-size: var(--fs-7); margin: 6px 0 12px; }
.modal-card p { color: var(--light-gray); font-size: var(--fs-6); font-weight: var(--fw-300); line-height: 1.6; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--white-2);
  font-size: 22px;
}

.filter-list { display: none; }
.filter-select-box { position: relative; margin-bottom: 25px; }
.filter-select {
  width: 100%;
  background: var(--eerie-black-2);
  color: var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--jet);
  border-radius: 14px;
}
.select-list {
  background: var(--eerie-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;
}
.filter-select.active + .select-list { opacity: 1; visibility: visible; pointer-events: all; }
.select-item button, .select-list button {
  color: var(--light-gray);
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  text-transform: capitalize;
}
.select-list button:hover, .filter-list button.active, .select-list button.active { color: var(--orange-yellow-crayola); }

.project-list { display: grid; gap: 30px; }
.project-item { display: none; }
.project-item.active { display: block; animation: scaleUp 0.25s ease forwards; }
@keyframes scaleUp { from { transform: scale(0.5); } to { transform: scale(1); } }
.project-item > a { color: inherit; }
.project-img {
  position: relative;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 15px;
}
.project-img::before {
  content: "";
  position: absolute;
  inset: 0;
  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 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  color: var(--orange-yellow-crayola);
  font-size: 28px;
  opacity: 0;
  z-index: 2;
  transition: var(--transition-1);
}
.project-item > a:hover .project-item-icon-box { opacity: 1; transform: translate(-50%, -50%) scale(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 { color: var(--white-2); font-size: var(--fs-4); margin: 0 10px 6px; }
.project-category { margin-left: 10px; text-transform: capitalize; }

.field { display: grid; gap: 8px; }
.field > span {
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.input-wrapper { display: grid; gap: 25px; margin-bottom: 25px; }
.form-input {
  color: var(--white-2);
  font-size: var(--fs-6);
  padding: 13px 20px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  outline: none;
}
.form-input:focus { border-color: var(--orange-yellow-crayola); }
.form-input:focus:invalid { border-color: var(--bittersweet-shimmer); }
textarea.form-input { min-height: 120px; resize: vertical; margin-bottom: 25px; }
.form-btn {
  position: relative;
  width: 100%;
  background: var(--border-gradient-onyx);
  color: var(--orange-yellow-crayola);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: var(--fs-6);
  box-shadow: var(--shadow-3);
  z-index: 1;
}
.form-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -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); }

@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: min(520px, 100%); margin-inline: auto; padding: 30px; }
  .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: 120px; }
  .sidebar { max-height: 180px; margin-bottom: 30px; }
  .sidebar.active { max-height: 520px; }
  .sidebar-info { gap: 25px; }
  .avatar-box, .avatar-box img { width: 120px; height: 120px; }
  .avatar-box { border-radius: 30px; }
  .name { margin-bottom: 15px; }
  .brand-chip { display: flex; }
  .title { padding: 5px 18px; }
  .info_more-btn { top: -30px; right: -30px; padding: 10px 15px; width: auto; height: auto; display: block; place-items: unset; }
  .info_more-btn span { display: block; font-size: var(--fs-8); }
  .info_more-btn ion-icon { display: none; }
  .navbar { width: max-content; }
  .navbar-list li { flex: 0 0 auto; }
  .navbar-link { width: auto; font-size: 14px; padding: 10px 16px; }
  .service-item { display: flex; text-align: left; align-items: flex-start; gap: 18px; padding: 30px; }
  .service-icon-box { margin: 5px 0 0; }
  .timeline-list { margin-left: 65px; }
}

@media (min-width: 768px) {
  .sidebar, article { width: min(700px, 100%); }
  .contacts-list { grid-template-columns: 1fr 1fr; gap: 30px 15px; }
  .filter-select-box { display: none; }
  .filter-list { display: flex; gap: 25px; margin-bottom: 30px; }
  .filter-list button { color: var(--light-gray); font-size: var(--fs-6); text-transform: capitalize; }
  .filter-list button:hover { color: var(--light-gray-70); }
  .testimonials-list, .blog-list { grid-template-columns: 1fr 1fr; }
  .project-list { grid-template-columns: 1fr 1fr; }
  .input-wrapper { grid-template-columns: 1fr 1fr; }
  .form-btn { width: max-content; margin-left: auto; }
}

@media (min-width: 1024px) {
  .sidebar, article { width: min(950px, 100%); }
  main { margin-bottom: 120px; }
  .service-list { grid-template-columns: 1fr 1fr; }
  .project-list { grid-template-columns: repeat(3, 1fr); }
  .project-img { height: 180px; }
}

@media (min-width: 1250px) {
  .sidebar, article { width: auto; }
  main {
    max-width: 1200px;
    margin: 60px auto 120px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
  }
  .main-content { width: 75%; min-width: 0; }
  .sidebar {
    position: sticky;
    top: 60px;
    width: 25%;
    max-height: none;
    height: auto;
    margin-bottom: 0;
    padding-top: 60px;
    overflow: visible;
  }
  .sidebar-info { flex-direction: column; }
  .avatar-box, .avatar-box img { width: 150px; height: 150px; }
  .name { text-align: center; white-space: nowrap; }
  .brand-chip { margin-inline: auto; }
  .title { margin-inline: auto; }
  .info_more-btn { display: none; }
  .sidebar-info_more { opacity: 1; visibility: visible; }
  .contacts-list { grid-template-columns: 1fr; }
  .social-list { justify-content: center; padding-left: 0; }
}
