/*-----------------------------------*\
  #style.css
\*-----------------------------------*/


/**
 * copyright 2022 @codewithsadee
 */





/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  /* gradient */

  --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%)
  );

  /* solid */

  --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%);
  --vegas-gold: hsl(45, 54%, 58%);
  --light-gray: hsl(0, 0%, 84%);
  --light-gray-70: hsla(0, 0%, 84%, 0.7);
  --bittersweet-shimmer: hsl(0, 43%, 51%);
  --link-accent: #ff7675;
  --navbar-bg: hsla(240, 1%, 17%, 0.75);

  /**
   * typography
   */

  /* font-family */
  --ff-poppins: 'Poppins', sans-serif;

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

  /* font-weight */
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;

  /**
   * shadow
   */
  
  --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
   */

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

}

[data-theme="light"] {
  --bg-gradient-onyx: linear-gradient(
    to bottom right,
    #ffffff 3%,
    #f1f5f9 97%
  );
  --bg-gradient-jet: linear-gradient(
    to bottom right,
    rgba(226, 232, 240, 0.42) 0%,
    rgba(255, 255, 255, 0) 100%
  ), #ffffff;
  --bg-gradient-yellow-1: linear-gradient(
    to bottom right,
    #294f75 0%,
    rgba(30, 58, 95, 0.14) 58%
  );
  --bg-gradient-yellow-2: linear-gradient(
    135deg,
    rgba(255, 118, 117, 0.16) 0%,
    rgba(255, 118, 117, 0) 59.86%
  ), #ffffff;
  --border-gradient-onyx: linear-gradient(
    to bottom right,
    #dbe3ee 0%,
    rgba(219, 227, 238, 0.3) 55%
  );
  --text-gradient-yellow: linear-gradient(
    to right,
    #ff7675,
    #ff9b9a
  );
  --jet: #dfe5ec;
  --onyx: #f1f5f9;
  --eerie-black-1: #ffffff;
  --eerie-black-2: #ffffff;
  --smoky-black: #f6f7f9;
  --white-1: #0f172a;
  --white-2: #111827;
  --orange-yellow-crayola: #1e3a5f;
  --vegas-gold: #d95757;
  --light-gray: #475569;
  --light-gray-70: rgba(71, 85, 105, 0.72);
  --link-accent: #ff7675;
  --navbar-bg: rgba(255, 255, 255, 0.92);
  --shadow-1: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-2: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shadow-3: 0 16px 36px rgba(15, 23, 42, 0.08);
  --shadow-4: 0 20px 44px rgba(15, 23, 42, 0.07);
  --shadow-5: 0 20px 54px rgba(15, 23, 42, 0.08);
}





/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

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

a { 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;
}

input, textarea {
  display: block;
  width: 100%;
  background: none;
  font: inherit;
}

::selection {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
}

:focus { outline-color: var(--orange-yellow-crayola); }

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

html[data-theme="light"] { color-scheme: light; }

body {
  background: var(--smoky-black);
  transition: background-color var(--transition-1), color var(--transition-1);
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 56px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--orange-yellow-crayola);
  background: var(--eerie-black-2);
  border: 1px solid var(--jet);
  border-radius: 50%;
  box-shadow: var(--shadow-2);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: color var(--transition-1), background-color var(--transition-1), transform var(--transition-1);
  z-index: 10;
}

.theme-toggle.is-dragging { cursor: grabbing; }

.theme-toggle:focus-visible {
  outline: 2px solid var(--orange-yellow-crayola);
  outline-offset: 3px;
}

.theme-toggle ion-icon {
  font-size: 21px;
  pointer-events: none;
}

.theme-toggle__moon,
[data-theme="light"] .theme-toggle__sun { display: none; }

[data-theme="light"] .theme-toggle__moon { display: block; }

[data-theme="light"] .theme-toggle {
  color: #ffffff;
  background: #1e3a5f;
  border-color: #1e3a5f;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.24);
}

[data-theme="light"] [style*="color:#ffffff"],
[data-theme="light"] [style*="color: #ffffff"] { color: var(--white-2) !important; }

[data-theme="light"] [style*="color: #cecece"] { color: var(--light-gray) !important; }

[data-theme="light"] [style*="color: #a6a6a6"] { color: var(--light-gray) !important; }

[data-theme="light"] [style*="border-bottom: 1px solid #383838"] { border-color: var(--jet) !important; }

[data-theme="light"] [style*="color:#ff7675"] { color: var(--link-accent) !important; }

[data-theme="light"] [style*="color:#f3dc8a"] { color: var(--orange-yellow-crayola) !important; }

[data-theme="light"] img[src*="simpleicons.org/github/ffffff"] { filter: invert(1); }

[data-theme="light"] .reviewer-logo { background: #ffffff; }





/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.sidebar,
article {
  background: var(--eerie-black-2);
  border: 1px solid var(--jet);
  border-radius: 20px;
  padding: 15px;
  box-shadow: var(--shadow-1);
  z-index: 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;
}

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

.icon-box ion-icon { --ionicon-stroke-width: 35px; }

article { display: none; }

article.active {
  display: block;
  animation: fade 0.5s ease backwards;
}

@keyframes fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.h2,
.h3,
.h4,
.h5 {
  color: var(--white-2);
  text-transform: capitalize;
}

.h2 { font-size: var(--fs-1); }

.h3 { font-size: var(--fs-2); }

.h4 { font-size: var(--fs-4); }

.h5 {
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
}

.article-title {
  position: relative;
  padding-bottom: 7px;
}

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

.has-scrollbar::-webkit-scrollbar {
  width: 5px; /* for vertical scrollbar */
  height: 5px; /* for horizontal scrollbar */
}

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

.has-scrollbar::-webkit-scrollbar-thumb {
  background: var(--orange-yellow-crayola);
  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;
}





/*-----------------------------------*\
  #MAIN
\*-----------------------------------*/

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





/*-----------------------------------*\
  #SIDEBAR
\*-----------------------------------*/

.sidebar {
  margin-bottom: 0;
  max-height: none;
  overflow: hidden;
  transition: var(--transition-2);
}


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

.avatar-box {
  background: transparent;
  border-radius: 20px;
}

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

.info-content .title {
  color: var(--white-1);
  background: var(--onyx);
  font-size: var(--fs-8);
  font-weight: var(--fw-300);
  width: max-content;
  padding: 3px 12px;
  border-radius: 8px;
}

.sidebar-info_more {
  opacity: 1;
  visibility: visible;
}

/* Keep the always-visible contact block compact at every screen size. */
.sidebar .separator { margin: 12px 0; }

.sidebar .contacts-list {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 0;
  grid-column: 1 / -1;
}

.sidebar .info-content { min-width: 0; }

.sidebar .avatar-box { flex-shrink: 0; }

.sidebar[data-sidebar] { padding: 16px; }

.sidebar .sidebar-info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
}

.sidebar .avatar-box img {
  width: 80px;
  height: 106px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .sidebar[data-sidebar] { padding: 18px 24px; }

  .sidebar .sidebar-info {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 24px;
  }

  .sidebar .contacts-list {
    grid-column: 3;
    grid-row: 1;
    gap: 10px;
  }

  .sidebar .avatar-box img {
    width: 128px;
    height: 170px;
  }
}

.sidebar .social-list {
  justify-content: center;
  padding: 0;
}

.sidebar .contact-item { gap: 12px; }

.sidebar .contact-item ion-icon { color: #ff7675; }

.sidebar .contact-item .icon-box {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  font-size: 18px;
}

.sidebar .contact-info {
  width: calc(100% - 48px);
  max-width: calc(100% - 48px);
  overflow-wrap: anywhere;
}

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

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

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

.contact-title {
  color: var(--light-gray-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);
}

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

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

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


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





/*-----------------------------------*\
  #NAVBAR
\*-----------------------------------*/

.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--jet);
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow-2);
  z-index: 5;
}

.navbar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}

.navbar-link {
  color: var(--light-gray);
  font-size: var(--fs-8);
  padding: 20px 7px;
  transition: color var(--transition-1);
}

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

.navbar-link.active { color: var(--orange-yellow-crayola); }

/* Anchor the navigation to the profile card's top-right corner. */
.sidebar[data-sidebar] {
  position: relative;
  padding-top: 66px;
}

.sidebar .navbar {
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: auto;
  left: auto;
  width: max-content;
  max-width: calc(100% + 2px);
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--jet);
  border-radius: 0 20px;
  background: var(--navbar-bg);
  box-shadow: none;
}

.sidebar .navbar-list {
  flex-wrap: nowrap;
  gap: 10px;
  padding: 0;
}

.sidebar .navbar-link {
  padding: 15px 0;
  font-size: 11px;
}

@media (min-width: 768px) {
  .sidebar[data-sidebar] { padding-top: 18px; }
  .sidebar .avatar-box { align-self: start; }
  .sidebar .info-content { margin-top: 0; }
  .sidebar .contacts-list { margin-top: 52px; }
  .sidebar .navbar { padding: 0 30px; }
  .sidebar .navbar-list { gap: 30px; }
  .sidebar .navbar-link {
    padding: 20px 0;
    font-size: 15px;
  }
}


/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

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

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

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

.about-text .news-title {
  color: var(--white-2);
  font-family: var(--ff-poppins);
  font-size: var(--fs-6);
  font-weight: var(--fw-600);
  margin-bottom: 10px;
}

.news-list {
  display: grid;
  gap: 12px;
  max-height: calc(4.8em + 24px);
  padding-right: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--orange-yellow-crayola) var(--jet);
}

.news-list::-webkit-scrollbar { width: 5px; }

.news-list::-webkit-scrollbar-track {
  background: var(--jet);
  border-radius: 5px;
}

.news-list::-webkit-scrollbar-thumb {
  background: var(--orange-yellow-crayola);
  border-radius: 5px;
}

.about-text .news-item {
  font-family: var(--ff-poppins);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
  margin-bottom: 0;
}



/**
 * #service 
 */

.service { margin-bottom: 35px; }

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

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

.service-item {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  z-index: 1;
}

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

.service-icon-box { margin-bottom: 10px; }

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

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

.service-item-title { margin-bottom: 7px; }

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


/**
 * #testimonials 
 */

.testimonials { margin-bottom: 30px; }

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

.testimonials-list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
  margin: 0 -15px;
  padding: 25px 15px;
  padding-bottom: 35px;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
}

.testimonials-item {
  min-width: 100%;
  scroll-snap-align: center;
}

.testimonials-avatar-box {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(15px, -25px);
  background: var(--bg-gradient-onyx);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
}

.testimonials-item-title { margin-bottom: 7px; }

.testimonials-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/**
 * #testimonials-modal
 */

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 20;
  pointer-events: none;
  visibility: hidden;
}

.modal-container::-webkit-scrollbar { display: none; }

.modal-container.active {
  pointer-events: all;
  visibility: visible;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: hsl(0, 0%, 5%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: var(--transition-1);
}

.overlay.active {
  opacity: 0.8;
  visibility: visible;
  pointer-events: all;
}

.testimonials-modal {
  background: var(--eerie-black-2);
  position: relative;
  padding: 15px;
  margin: 15px 12px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  box-shadow: var(--shadow-5);
  transform: scale(1.2);
  opacity: 0;
  transition: var(--transition-1);
  z-index: 2;
}

.modal-container.active .testimonials-modal {
  transform: scale(1);
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--onyx);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white-2);
  font-size: 18px;
  opacity: 0.7;
}

.modal-close-btn:hover,
.modal-close-btn:focus { opacity: 1; }

.modal-close-btn ion-icon { --ionicon-stroke-width: 50px; }

.modal-avatar-box {
  background: var(--bg-gradient-onyx);
  width: max-content;
  border-radius: 14px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-2);
}

.modal-img-wrapper > img { display: none; }

.modal-title { margin-bottom: 4px; }

.modal-content time {
  font-size: var(--fs-6);
  color: var(--light-gray-70);
  font-weight: var(--fw-300);
  margin-bottom: 10px;
}

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


/**
 * #clients 
 */

.clients { margin-bottom: 15px; }

.clients-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 0 -15px;
  padding: 15px;
  padding-bottom: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 15px;
}

.clients-item {
  min-width: fit-content;
  scroll-snap-align: start;
}

.clients-item img {
  width: 100%;
  filter: grayscale(1);
  transition: var(--transition-1);
}

.clients-item img:hover { filter: grayscale(0); }

.reviewer-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 210px));
  justify-content: space-evenly;
  gap: 20px;
  width: 100%;
  margin-inline: auto;
}

.reviewer-group-title { margin-bottom: 15px; }

.reviewer-list + .reviewer-group-title { margin-top: 30px; }

.reviewer-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  background: var(--border-gradient-onyx);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
}

.reviewer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 220px;
  padding: 16px;
  overflow: hidden;
  background: var(--white-1);
  border-radius: 10px;
}

.reviewer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0);
  transition: transform var(--transition-1);
}

.reviewer-logo:hover img {
  transform: scale(1.03);
}

.reviewer-info {
  margin-top: 18px;
  text-align: center;
  line-height: 1.55;
}

.reviewer-info h3,
.reviewer-info p,
.reviewer-info span {
  color: var(--white-1) !important;
  text-align: center !important;
}

.reviewer-info h3,
.reviewer-info p {
  font-size: var(--fs-5);
  font-weight: var(--fw-500);
}

.reviewer-info span {
  font-size: var(--fs-6);
}

@media (max-width: 900px) {
  .reviewer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .reviewer-list {
    grid-template-columns: 1fr;
    max-width: 430px;
  }

  .reviewer-logo {
    height: 200px;
  }
}





/*-----------------------------------*\
  #RESUME
\*-----------------------------------*/

.article-title { margin-bottom: 30px; }


/**
 * education and experience 
 */

.timeline { margin-bottom: 30px; }

.timeline .title-wrapper,
.blog-posts .title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.timeline-list {
  font-size: var(--fs-6);
  margin-left: 45px;
}

.timeline-item { position: relative; }

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

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

.timeline-list span {
  color: var(--vegas-gold);
  font-weight: var(--fw-400);
  line-height: 1.6;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: -25px;
  left: -30px;
  width: 1px;
  height: calc(100% + 50px);
  background: var(--jet);
}

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

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

.experience-highlights {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding-left: 18px;
}

.experience-highlights li {
  list-style: disc;
  padding-left: 2px;
}

.experience-highlights li::marker {
  color: var(--orange-yellow-crayola);
}


/**
 * skills 
 */

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

.skills-list { padding: 15px; }

.skills-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 16px 20px;
  color: var(--light-gray);
  font-size: var(--fs-6);
}

.skills-summary p { white-space: nowrap; }

.skills-summary strong {
  color: var(--white-2);
  font-weight: var(--fw-500);
}

.skills-accent {
  display: inline;
  color: var(--link-accent);
  font-weight: var(--fw-500);
}

@media (max-width: 700px) {
  .skills-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}


.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(--jet);
  width: 100%;
  height: 8px;
  border-radius: 10px;
}

.skill-progress-fill {
  background: var(--text-gradient-yellow);
  height: 100%;
  border-radius: inherit;
}





/*-----------------------------------*\
  #PORTFOLIO
\*-----------------------------------*/

.filter-list { display: none; }

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

.filter-select {
  background: var(--eerie-black-2);
  color: var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.filter-select.active .select-icon { transform: rotate(0.5turn); }

.select-list {
  background: var(--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;
  transition: 0.15s ease-in-out;
}

.filter-select.active + .select-list {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.select-item button {
  background: var(--eerie-black-2);
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  text-transform: capitalize;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
}

.select-item button:hover { --eerie-black-2: 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(--jet);
  color: var(--orange-yellow-crayola);
  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-item-icon-box ion-icon { --ionicon-stroke-width: 50px; }

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





/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/

.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(--eerie-black-1);
  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);
}

#publications .blog-banner-box {
  position: relative;
  height: auto;
  aspect-ratio: 3 / 2;
  flex-shrink: 0;
}

#publications .blog-banner-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}



.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 {
  flex: 0 0 4px;
  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(--orange-yellow-crayola); }

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

.publication-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.publication-link {
  color: #ff7675;
  font-weight: var(--fw-600);
  text-decoration: none;
  transition: opacity var(--transition-1);
}

a.publication-link:hover { opacity: 0.72; }

.publication-link.is-disabled {
  color: var(--light-gray-70);
  cursor: default;
  opacity: 0.55;
}

.publication-link-separator { color: var(--light-gray-70); }





/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/

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

.mapbox figure { height: 100%; }

.mapbox iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(1);
}

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

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

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

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

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

.form-input:focus { border-color: var(--orange-yellow-crayola); }

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(--orange-yellow-crayola);
  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 ion-icon { font-size: 16px; }

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





/*-----------------------------------*\
  #RESPONSIVE
\*-----------------------------------*/

/**
 * responsive larger than 450px screen
 */

@media (min-width: 450px) {

  /**
   * client
   */

  .clients-item { min-width: calc(33.33% - 10px); }



  /**
   * #PORTFOLIO, BLOG 
   */

  .project-img,
  .blog-banner-box { height: auto; }

}





/**
 * responsive larger than 580px screen
 */

@media (min-width: 580px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 32px;
    --fs-2: 24px;
    --fs-3: 26px;
    --fs-4: 18px;
    --fs-6: 15px;
    --fs-7: 15px;
    --fs-8: 12px;

  }



  /**
   * #REUSED STYLE
   */

  .sidebar, article {
    width: 520px;
    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
   */

  main {
    margin-top: 16px;
    margin-bottom: 100px;
  }



  /**
   * #SIDEBAR
   */

  .sidebar {
    margin-bottom: 0;
  }

  .sidebar-info { gap: 25px; }

  .avatar-box { border-radius: 30px; }

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

  .info-content .name { margin-bottom: 15px; }

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

  .separator { margin: 32px 0; }

  .contacts-list { gap: 20px; }

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



  /**
   * #NAVBAR
   */

  .navbar { border-radius: 20px 20px 0 0; }

  .navbar-list { gap: 20px; }

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



  /**
   * #ABOUT
   */

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

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

  /* service */

  .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 */

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

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

  .content-card {
    padding: 15px;
    padding-top: 15px;
  }

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

  /* testimonials modal */

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

  /* clients */

  .clients-list {
    gap: 50px;
    margin: 0 -30px;
    padding: 15px;
    scroll-padding-inline: 15px;
  }

  .clients-item { min-width: calc(33.33% - 35px); }



  /**
   * #RESUME
   */

  .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: 15px; }
  /*slef add*/
  .timeline-item {
    display: flex;           /* 水平排列子元素 */
    align-items: flex-start; /* 顶部对齐 */
    gap: 15px;               /* 图标和文字间距 */
  }

  .timeline-logo img {
    width: 80px;             /* 图标大小，可按需调整 */
    height: 80px;
    object-fit: contain;
  }

  .timeline-content {
    flex: 1;                 /* 占满剩余空间 */
  }
  /**/



  /**
   * #PORTFOLIO, BLOG
   */

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

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

  .blog-content { padding: 25px; }



  /**
   * #CONTACT
   */

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

}





/**
 * responsive larger than 768px screen
 */

@media (min-width: 768px) {

  /**
   * REUSED STYLE
   */

  .sidebar, article { width: 700px; }

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



  /**
   * SIDEBAR
   */

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



  /**
   * NAVBAR
   */

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



  /**
   * ABOUT
   */

  /* testimonials modal */

  .testimonials-modal {
    gap: 35px;
    max-width: 680px;
  }

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



  /**
   * PORTFOLIO
   */

  .article-title { padding-bottom: 20px; }

  .filter-select-box { display: none; }

  .filter-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    padding-left: 5px;
    margin-bottom: 30px;
  }

  .filter-item button {
    color: var(--light-gray);
    font-size: var(--fs-5);
    transition: var(--transition-1);
  }

  .filter-item button:hover { color: var(--light-gray-70); }

  .filter-item button.active { color: var(--orange-yellow-crayola); }

  /* portfolio and blog grid */

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



  /**
   * CONTACT
   */

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

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





/**
 * responsive larger than 1024px screen
 */

@media (min-width: 1024px) {

  .theme-toggle {
    top: 72px;
    right: 16px;
  }

  /**
   * CUSTOM PROPERTY
   */

  :root:not([data-theme="light"]) {

    /**
    * shadow
    */

    --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);

  }



  /**
   * REUSED STYLE
   */

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



  /**
   * MAIN 
   */

  main { margin-bottom: 60px; }

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



  /**
   * NAVBAR
   */

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



  /**
   * ABOUT
   */

  /* service */

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

  /* testimonials */

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

  /* clients */

  .clients-item { min-width: calc(25% - 38px); }



  /**
   * PORTFOLIO
   */

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



  /**
   * BLOG
   */

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

}





/**
 * responsive larger than 1250px screen
 */

@media (min-width: 1250px) {

  /**
   * RESET
   */

  body::-webkit-scrollbar { width: 20px; }

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

  body::-webkit-scrollbar-thumb {
    border: 5px solid var(--smoky-black);
    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; }



  /**
   * REUSED STYLE
   */

  .sidebar, article { width: auto; }

  article { min-height: auto; }



  /**
   * MAIN
   */

  main {
    max-width: 1200px;
    margin-inline: auto;
    display: block;
  }

  .main-content {
    min-width: 0;
    width: 100%;
    margin: 0;
  }



  /**
   * SIDEBAR
   */

  .sidebar {
    position: static;
    height: auto;
    margin-bottom: 0;
    padding: 30px;
  }

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

  /**
	 * RESUME
	 */

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

  /* 强制让 logo 默认就是彩色 */
  .clients-item img {
    filter: grayscale(0) !important;
    opacity: 1 !important;
    transition: filter .25s ease, transform .25s ease;
  }

  /* 鼠标放上去轻微放大 + 阴影 */
  .clients-item img:hover {
    filter: grayscale(0);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

.main-content article {
  min-height: auto !important;
  height: auto !important;
}

html {
  scroll-behavior: smooth;
}

.bio {
  white-space: normal;
}

/*-----------------------------------*\
  #SITE STATISTICS
\*-----------------------------------*/

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  min-width: 259px;
  margin: -35px 12px 30px;
}

.site-footer .social-list { padding: 0; }

.visitor-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--light-gray-70);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
}

.visitor-count ion-icon {
  color: var(--orange-yellow-crayola);
  font-size: 16px;
}

.visitor-count__number {
  color: var(--light-gray);
  font-weight: var(--fw-500);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 580px) {
  .site-footer { margin-top: -60px; }
}

@media (min-width: 1024px) {
  .site-footer { margin-top: -35px; }
}

/* Profile links and the shared left edge of navigation and contacts. */
.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 16px;
  min-width: 0;
}

.profile-link {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  text-align: left;
  align-items: center;
  gap: 4px 6px;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--onyx);
  color: #ff7675;
  font-size: 15px;
  text-decoration: none;
}

.profile-link img, .profile-link ion-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.profile-link span { color: var(--light-gray-70); font-size: 12px; }

.profile-link .profile-downloads {
  display: inline-flex;
  flex-flow: row nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  line-height: 1;
  white-space: nowrap;
}

.profile-link .profile-downloads ion-icon {
  width: 14px;
  height: 14px;
  font-size: 14px;
  transform: translateY(-1px);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .sidebar .info-content { margin-top: 52px; }
  .sidebar .contacts-list { grid-column: 2 / -1; grid-row: 2; margin-top: 0; }
}

@media (min-width: 1024px) {
  .sidebar[data-sidebar] { --profile-nav-width: 360px; }

  .sidebar .navbar { width: var(--profile-nav-width); }
  .sidebar .navbar-list { justify-content: space-between; gap: 0; }
  .sidebar .navbar-link { font-size: 13px; }

  .sidebar .sidebar-info {
    grid-template-columns: auto minmax(0, 1fr) calc(var(--profile-nav-width) - 24px);
    column-gap: 16px;
  }

  .sidebar .avatar-box img { width: 100px; height: 133px; }
  .sidebar .info-content .name { font-size: 22px; }
  .sidebar .contacts-list { grid-column: 3; padding-left: 30px; }
}

@media (min-width: 1250px) {
  .sidebar[data-sidebar] { --profile-nav-width: 440px; }
  .sidebar .navbar-link { font-size: 15px; }
  .sidebar .avatar-box img { width: 128px; height: 170px; }
  .sidebar .info-content .name { font-size: 26px; }
}

/* Publication rows: figure, title, authors, venue, and resource links. */
#publications .blog-posts-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

#publications .blog-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

#publications .blog-banner-box {
  aspect-ratio: 2 / 1;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 9px rgb(0 0 0 / 16%);
}

/* Resize each diagram into the same frame without clipping its content. */
#publications .blog-banner-box img { object-fit: fill; }

/* Exclude existing white margins before fitting these two diagrams. */
#publications .publication-figure-natural img {
  inset: auto;
  top: -13.9303%;
  left: -10.5218%;
  width: 121.6424%;
  height: 127.2388%;
  max-width: none;
}

#publications .publication-figure-trimmed img {
  inset: auto;
  top: -23.4043%;
  left: -9.8291%;
  width: 117.8633%;
  height: 151.2766%;
  max-width: none;
}

#publications .blog-content {
  min-width: 0;
  padding: 0;
}

#publications .blog-item-title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: var(--fw-400);
  line-height: 1.45;
  text-transform: none;
}

.publication-authors {
  margin-bottom: 7px;
  color: var(--light-gray);
  font-size: 14px;
  line-height: 1.65;
}

.publication-authors strong { color: var(--white-2); }

#publications .blog-meta {
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 8px;
}

.publication-venue { display: inline; white-space: nowrap; }
.publication-venue em { display: inline; }

#publications .publication-links {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.paper-list-simple {
  max-height: calc(8 * 1.8 * 14px + 8px);
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--light-gray-70) var(--eerie-black-1);
  padding: 4px 18px 4px 0;
  margin-bottom: 36px;
  color: var(--light-gray);
  font-size: 14px;
  font-weight: var(--fw-300);
  line-height: 1.8;
}

.paper-list-simple:focus-visible {
  outline: 2px solid var(--orange-yellow-crayola);
  outline-offset: 5px;
}

.paper-list-simple > div + div { margin-top: 28px; }

.paper-list-simple h4 {
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--jet);
  color: var(--white-2);
  font-size: 18px;
}

.paper-list-simple li { margin-bottom: 12px; }
.paper-list-simple strong { color: var(--white-2); font-weight: 600; }
.paper-list-simple::-webkit-scrollbar { width: 7px; }
.paper-list-simple::-webkit-scrollbar-track { background: var(--eerie-black-1); }
.paper-list-simple::-webkit-scrollbar-thumb { background: var(--light-gray-70); border-radius: 8px; }

@media (min-width: 580px) {
  #publications .blog-card {
    grid-template-columns: minmax(0, 28%) minmax(0, 1fr);
    gap: 24px;
  }

  #publications .blog-banner-box { margin-top: 0; }
}

@media (min-width: 1024px) {
  #publications .blog-posts-list { gap: 24px; }
  #publications .blog-card { gap: 32px; grid-template-columns: 250px minmax(0, 1fr); }
  #publications .blog-item-title { font-size: 17px; }
  .publication-authors { font-size: 15px; }
}

/* Year divisions and compact publication resources. */
.publication-year-group + .publication-year-group { margin-top: 28px; }

.publication-year {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--light-gray-70);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.2;
  text-align: left;
}

.publication-year::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--jet);
}

.publication-preview { min-width: 0; }

#publications .publication-venue {
  display: table;
  margin-bottom: 10px;
  padding: 2px 12px;
  border-radius: 4px;
  background: var(--link-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgb(0 0 0 / 14%);
}

#publications .blog-meta {
  color: var(--light-gray);
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

#publications .blog-meta time {
  color: inherit;
  font-size: inherit;
  font-weight: 400;
}

#publications .publication-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 32px;
  min-width: 72px;
  padding: 4px 14px;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: var(--white-2);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
  transition: background var(--transition-1), color var(--transition-1);
}

#publications a.publication-link:hover {
  background: var(--white-2);
  color: var(--eerie-black-2);
  opacity: 1;
}

#publications a.publication-link:focus-visible {
  outline: 2px solid var(--orange-yellow-crayola);
  outline-offset: 4px;
}

#publications .publication-link.is-disabled { opacity: .35; }

@media (max-width: 579px) {
  .publication-preview { width: min(100%, 280px); }
  .publication-year { font-size: 24px; margin-bottom: 16px; }
}
