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

:root {
  --bg-gradient-onyx: linear-gradient(to bottom right, hsl(240, 6%, 22%) 3%, hsl(240, 6%, 16%) 97%);
  --bg-gradient-jet: linear-gradient(to bottom right, hsla(240, 4%, 18%, 0.5) 3%, hsla(240, 4%, 10%, 0) 100%), hsl(240, 4%, 13%);
  --border-gradient-onyx: linear-gradient(to bottom right, hsl(0, 0%, 24%) 0%, hsla(0, 0%, 25%, 0) 50%);
  --text-gradient-yellow: linear-gradient(to right, hsl(45, 100%, 72%), hsl(34, 100%, 68%));
  --jet: hsl(240, 4%, 22%);
  --onyx: hsl(240, 5%, 17%);
  --eerie-black1: hsl(240, 5%, 13%);
  --eerie-black2: hsl(240, 5%, 12%);
  --smoky-black: hsl(240, 8%, 7%);
  --white1: hsl(0, 0%, 100%);
  --white2: hsl(0, 0%, 98%);
  --orange-yellow-crayola: hsl(45, 100%, 72%);
  --vegas-gold: hsl(45, 54%, 58%);
  --light-gray: hsl(0, 0%, 84%);
  --light-gray70: hsla(0, 0%, 84%, 0.7);
  --ff-poppins: 'Poppins', sans-serif;
  --fs1: 24px;
  --fs2: 18px;
  --fs3: 17px;
  --fs4: 16px;
  --fs5: 15px;
  --fs6: 14px;
  --fs7: 13px;
  --fs8: 12px;
  --fw300: 300;
  --fw400: 400;
  --fw500: 500;
  --fw600: 600;
  --shadow1: -4px 8px 24px hsla(0, 0%, 0%, 0.25);
  --shadow2: 0 16px 30px hsla(0, 0%, 0%, 0.25);
  --shadow3: 0 16px 40px hsla(0, 0%, 0%, 0.25);
  --transition1: 0.25s ease;
  --transition2: 0.5s ease-in-out;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a { text-decoration: none; color: inherit; }
li { list-style: none; }
img, a, button, time, span, address { display: block; }
button {
  font: inherit;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
html { font-family: var(--ff-poppins); }
body {
  background:
    radial-gradient(circle at top left, hsla(45, 100%, 72%, 0.08), transparent 25%),
    var(--smoky-black);
  color: var(--white2);
}
main {
  margin: 16px 12px 90px;
  min-width: 259px;
}
.sidebar, article, .static-card {
  background: var(--eerie-black2);
  border: 1px solid var(--jet);
  border-radius: 24px;
  box-shadow: var(--shadow1);
  z-index: 1;
}
article {
  display: none;
  padding: 22px;
}
article.active {
  display: block;
  animation: fade 0.35s ease backwards;
}
@keyframes fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.h2, .h3, .h4, .h5 {
  color: var(--white2);
  text-transform: capitalize;
}
.h2 { font-size: var(--fs1); }
.h3 { font-size: var(--fs2); }
.h4 { font-size: var(--fs4); }
.h5 { font-size: var(--fs7); font-weight: var(--fw500); }
.article-title {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 26px;
}
.article-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 4px;
  background: var(--text-gradient-yellow);
  border-radius: 999px;
}
.separator {
  width: 100%;
  height: 1px;
  background: var(--jet);
  margin: 18px 0;
}
.icon-box {
  position: relative;
  background: var(--border-gradient-onyx);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-yellow-crayola);
  box-shadow: var(--shadow1);
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.icon-box::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--eerie-black1);
  border-radius: inherit;
  z-index: -1;
}
.content-card {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 18px;
  box-shadow: var(--shadow2);
  z-index: 1;
}
.content-card::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}
.sidebar {
  margin-bottom: 16px;
  max-height: 124px;
  overflow: hidden;
  padding: 18px;
  transition: var(--transition2);
}
.sidebar.active { max-height: 560px; }
.sidebar-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar-box {
  background: var(--bg-gradient-onyx);
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-box img {
  width: 82px;
  height: 82px;
  object-fit: cover;
}
.info-content {
  min-width: 0;
}
.info-content .name {
  color: var(--white2);
  font-size: var(--fs3);
  font-weight: var(--fw500);
  letter-spacing: -0.25px;
  margin-bottom: 10px;
}
.info-content .title {
  color: var(--white1);
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  font-size: var(--fs8);
  font-weight: var(--fw400);
  width: fit-content;
  padding: 8px 12px;
  border-radius: 18px;
  max-width: 100%;
  line-height: 1.45;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.info-content .title span {
  white-space: normal;
}
.info-more-btn {
  position: absolute;
  top: -18px;
  right: -18px;
  border-radius: 0 16px;
  font-size: 12px;
  color: var(--orange-yellow-crayola);
  background: var(--border-gradient-onyx);
  padding: 10px;
  box-shadow: var(--shadow2);
  transition: var(--transition1);
  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(--transition2);
}
.sidebar.active .sidebar-info-more {
  opacity: 1;
  visibility: visible;
}
.contacts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-info {
  max-width: calc(100% - 48px);
  min-width: 0;
}
.contact-title {
  color: var(--light-gray70);
  font-size: var(--fs8);
  text-transform: uppercase;
  margin-bottom: 3px;
  letter-spacing: 0.04em;
}
.contact-info :is(.contact-link, span, address) {
  color: var(--white2);
  font-size: var(--fs7);
  font-style: normal;
  line-height: 1.6;
  word-break: break-word;
}
.social-list {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 4px;
  flex-wrap: wrap;
}
.social-link {
  color: var(--light-gray70);
  font-size: 14px;
  border: 1px solid var(--jet);
  border-radius: 999px;
  padding: 7px 11px;
}
.social-link:hover { color: var(--orange-yellow-crayola); }
.main-content {
  position: relative;
}
.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: hsla(240, 5%, 17%, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--jet);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow2);
  z-index: 5;
}
.navbar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}
.navbar-link {
  color: var(--light-gray);
  font-size: var(--fs8);
  padding: 18px 10px;
  transition: color var(--transition1);
}
.navbar-link.active { color: var(--orange-yellow-crayola); }
.about-text {
  color: var(--light-gray);
  font-size: var(--fs6);
  font-weight: var(--fw300);
  line-height: 1.8;
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}
.service, .timeline, .skill, .clients, .projects-grid-section, .contact-panel { margin-bottom: 8px; }
.service-title, .clients-title, .skills-title, .form-title { margin-bottom: 18px; }
.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.service-item, .chip-card, .project-panel {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 18px;
  box-shadow: var(--shadow2);
  z-index: 1;
}
.service-item::before, .chip-card::before, .project-panel::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}
.service-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.service-icon, .project-icon, .contact-icon-hero {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(244,195,90,0.24), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--orange-yellow-crayola);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 12px 30px rgba(0,0,0,0.22);
  flex-shrink: 0;
}
.service-item-title { margin-bottom: 8px; }
.service-item-text, .timeline-text, .project-copy, .contact-copy {
  color: var(--light-gray);
  font-size: var(--fs6);
  font-weight: var(--fw300);
  line-height: 1.75;
}
.clients-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 18px 40px rgba(0,0,0,0.22);
}
.chip-card {
  color: var(--light-gray);
  text-align: center;
  font-size: var(--fs6);
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.chip-icon {
  font-size: 20px;
  color: var(--orange-yellow-crayola);
}
.chip-label {
  line-height: 1.5;
}
.title-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.timeline-list {
  font-size: var(--fs6);
  margin-left: 22px;
}
.timeline-list span {
  color: var(--vegas-gold);
  font-weight: var(--fw400);
  line-height: 1.6;
  margin-bottom: 8px;
}
.timeline-item {
  position: relative;
  padding-left: 14px;
}
.timeline-item:not(:last-child) { margin-bottom: 24px; }
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: -18px;
  left: -18px;
  width: 1px;
  height: calc(100% + 40px);
  background: var(--jet);
}
.timeline-item::after {
  content: '';
  position: absolute;
  top: 6px;
  left: -21px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-yellow-crayola);
  box-shadow: 0 0 0 4px var(--jet);
}
.timeline-item-title { margin-bottom: 8px; }
.skills-list { padding: 22px; }
.skills-item:not(:last-child) { margin-bottom: 18px; }
.skill .title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.skill .title-wrapper data {
  color: var(--light-gray);
  font-size: var(--fs7);
  font-weight: var(--fw300);
  flex-shrink: 0;
}
.skills-progress-bg {
  background: var(--jet);
  width: 100%;
  height: 8px;
  border-radius: 10px;
}
.skills-progress-fill {
  background: var(--text-gradient-yellow);
  height: 100%;
  border-radius: inherit;
}
.static-project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.project-item.active { display: block; }
.project-panel { height: 100%; }
.project-title {
  color: var(--white2);
  margin: 14px 0 8px;
}
.project-category {
  color: var(--vegas-gold);
  font-size: var(--fs7);
  margin-bottom: 12px;
}
.project-copy { margin-top: 2px; }
.contact-card-fancy {
  text-align: center;
}
.contact-icon-hero {
  margin: 0 auto 18px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  font-size: 24px;
}
.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  justify-content: center;
}
.button-primary, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: var(--fs6);
  transition: var(--transition1);
}
.button-primary {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
}
.button-secondary {
  border: 1px solid var(--jet);
  color: var(--white2);
}
.button-secondary:hover { border-color: var(--orange-yellow-crayola); }

@media (min-width: 580px) {
  :root {
    --fs1: 32px;
    --fs2: 24px;
    --fs3: 26px;
    --fs4: 18px;
    --fs6: 15px;
    --fs7: 15px;
  }

  main {
    margin-top: 32px;
    margin-bottom: 110px;
  }

  .sidebar, article {
    width: 520px;
    margin-inline: auto;
    padding: 28px;
  }

  .sidebar {
    max-height: 198px;
    margin-bottom: 24px;
  }

  .sidebar.active { max-height: 690px; }
  .avatar-box img { width: 120px; height: 120px; }
  .info-more-btn { top: -28px; right: -28px; padding: 10px 15px; }
  .info-more-btn span { display: block; font-size: var(--fs8); }
  .contacts-list { gap: 18px; }
  .navbar { border-radius: 20px 20px 0 0; }
  .service-item, .project-panel, .chip-card { padding: 22px; }
}

@media (min-width: 768px) {
  .sidebar, article { width: 700px; }
  .contacts-list { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .clients-list { grid-template-columns: 1fr 1fr; }
  .static-project-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  :root {
    --shadow1: -4px 8px 24px hsla(0, 0%, 0%, 0.125);
    --shadow2: 0 16px 30px hsla(0, 0%, 0%, 0.125);
    --shadow3: 0 16px 40px hsla(0, 0%, 0%, 0.125);
  }

  .sidebar, article {
    width: 950px;
    box-shadow: 0 24px 80px hsla(0, 0%, 0%, 0.25);
  }

  main { margin-bottom: 60px; }

  .main-content {
    position: relative;
    width: max-content;
    margin: auto;
    padding-top: 76px;
  }

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

  .navbar-list { gap: 26px; padding: 0 10px; }
  .navbar-link { font-size: 14px; padding: 20px 8px; }
}

@media (min-width: 1250px) {
  .sidebar, article { width: auto; }
  article { min-height: 100%; }

  main {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
  }

  .main-content {
    min-width: 75%;
    width: 75%;
    margin: 0;
    padding-top: 76px;
  }

  .sidebar {
    position: sticky;
    top: 44px;
    max-height: none;
    height: auto;
    margin-bottom: 0;
    padding: 28px;
  }

  .sidebar-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .avatar-box img { width: 150px; height: 150px; }
  .info-content .title { margin: auto; }
  .info-more-btn { display: none; }

  .sidebar-info-more {
    opacity: 1;
    visibility: visible;
  }

  .contacts-list { grid-template-columns: 1fr; }
  .social-list { justify-content: center; }
}
