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


/**
 * copyright 2022 @codewithsadee
 */





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

:root {

  /**
   * ACCENT COLOR
   *
   * Everything colorful on the site comes from the three channels below.
   * Change them and the whole accent system follows: icons, active nav link,
   * title underlines, skill bars, timeline dots, button hover states.
   *
   * Current: emerald green. Previous: yellow (45, 100%, 72%).
   * Keep saturation under ~70% for green hues -- at 100% it reads neon on
   * the dark background, where yellow did not.
   */

  --accent-h: 142;            /* hue: 142 emerald, 95 leaf, 152 mint, 45 the old yellow */
  --accent-s: 58%;            /* saturation of every accent tone */
  --accent-l: 62%;            /* lightness of the main accent */

  /* second stop of every accent gradient: a warmer, slightly darker green */
  --accent-h-2: 126;
  --accent-l-2: 58%;

  /* the five accent tones, all derived from the channels above */

  /* solid accent -- icons, active nav link, link hover, scrollbar, focus ring */
  --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));

  /* opaque gradient bar -- title underlines, skill-bar fill, timeline dots */
  --accent-gradient: linear-gradient(
    to right,
    hsl(var(--accent-h), var(--accent-s), var(--accent-l)),
    hsl(var(--accent-h-2), var(--accent-s), var(--accent-l-2))
  );

  /* fades to transparent -- the 1px border layer of a hovered button */
  --accent-gradient-edge: linear-gradient(
    to bottom right,
    hsl(var(--accent-h), var(--accent-s), var(--accent-l)) 0%,
    hsla(var(--accent-h-2), var(--accent-s), var(--accent-l-2), 0) 50%
  );

  /* same fade at 25% -- the inner fill sitting inside that border */
  --accent-gradient-fill: linear-gradient(
    135deg,
    hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.251) 0%,
    hsla(var(--accent-h-2), var(--accent-s), var(--accent-l-2), 0) 59.86%
  ), hsl(240, 2%, 13%);

  /* desaturated accent -- resume date ranges, deliberately quieter */
  --accent-muted: hsl(var(--accent-h), 40%, 52%);

  /**
   * 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%);
  --border-gradient-onyx: linear-gradient(
    to bottom right, 
    hsl(0, 0%, 25%) 0%, 
    hsla(0, 0%, 25%, 0) 50%
  );

  /* 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%);
  --light-gray: hsl(0, 0%, 84%);
  --light-gray-70: hsla(0, 0%, 84%, 0.7);
  --bittersweet-shimmer: hsl(0, 43%, 51%);

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

  color-scheme: dark;

}





/*-----------------------------------*\
  #LIGHT THEME
\*-----------------------------------*/

/**
 * The theme is resolved once in an inline script in <head>, which sets
 * data-theme on <html> from localStorage or, with nothing stored, from the
 * operating system preference. So this file only ever has to answer one
 * question -- is data-theme light -- and there is a single copy of the light
 * palette rather than one for the media query and one for the toggle.
 *
 * The token names below still say "black" and "white". They are kept because
 * roughly fifty rules reference them; read them as positions in the stack,
 * not as colours. In light mode the stack runs the other way: the page is the
 * darkest surface and cards are the lightest.
 */

:root[data-theme="light"] {

  color-scheme: light;

  /* the accent keeps its hue and saturation and only drops in lightness.
     At 62% the emerald scores 1.8:1 on white, which is unreadable; 32%
     brings it to 4.9:1 */
  --accent-l: 32%;
  --accent-l-2: 28%;
  --accent-muted: hsl(var(--accent-h), 40%, 38%);

  /* surfaces, back to front */
  --smoky-black: hsl(240, 10%, 95%);      /* page background */
  --eerie-black-2: hsl(0, 0%, 100%);      /* cards, modal, dropdown */
  --eerie-black-1: hsl(240, 14%, 98%);    /* inner fill of buttons and boxes */
  --onyx: hsl(240, 12%, 96%);             /* sidebar, avatar tiles, form fields */
  --jet: hsl(240, 10%, 87%);              /* separators and dividers */

  /* text */
  --white-1: hsl(240, 6%, 11%);
  --white-2: hsl(240, 6%, 11%);
  --light-gray: hsl(240, 5%, 32%);
  --light-gray-70: hsla(240, 5%, 32%, 0.75);

  --bittersweet-shimmer: hsl(0, 55%, 42%);

  /* gradients: the dark originals brighten towards the top left to fake a
     light source, so the light versions have to darken instead */
  --bg-gradient-onyx: linear-gradient(
    to bottom right,
    hsl(240, 12%, 97%) 3%,
    hsl(240, 8%, 93%) 97%
  );
  /* flipped for the same reason as the border gradient below: the tint is
     darker than its base here, so it belongs at the shaded bottom right */
  --bg-gradient-jet: linear-gradient(
    to bottom right,
    hsla(240, 12%, 90%, 0) 0%,
    hsla(240, 12%, 90%, 0.4) 100%
  ), hsl(240, 14%, 98%);
  /**
   * Flipped end for end against the dark version, on purpose.
   *
   * In dark mode the visible stop is lighter than the surface, so putting it
   * at the top left reads as a highlight and the light appears to come from
   * the top left. In light mode the visible stop is darker than the surface,
   * so the same placement would read as a shadow and drag the apparent light
   * source round to the bottom right. Starting transparent and landing the
   * dark stop at the bottom right puts the light back where it belongs.
   */
  --border-gradient-onyx: linear-gradient(
    to bottom right,
    hsla(240, 10%, 84%, 0) 50%,
    hsl(240, 10%, 84%) 100%
  );

  /* the 25% wash was mixed against a near-black base; on white that reads far
     too heavy, so it drops to 13% and the base becomes the card colour.
     Also flipped: a dark green wash sitting at the top left would shade the
     lit corner of the button */
  --accent-gradient-fill: linear-gradient(
    135deg,
    hsla(var(--accent-h-2), var(--accent-s), var(--accent-l-2), 0) 40.14%,
    hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.13) 100%
  ), hsl(0, 0%, 100%);

  /* the lit edge of a hovered button. In dark mode the accent is brighter
     than the surface and catches the top left; in light mode it is darker
     than the surface, so it reads correctly only at the bottom right */
  --accent-gradient-edge: linear-gradient(
    to bottom right,
    hsla(var(--accent-h-2), var(--accent-s), var(--accent-l-2), 0) 50%,
    hsl(var(--accent-h), var(--accent-s), var(--accent-l)) 100%
  );

  /* black at 25% reads as dirt on a light page */
  --shadow-1: -4px 8px 24px hsla(240, 20%, 20%, 0.08);
  --shadow-2: 0 16px 30px hsla(240, 20%, 20%, 0.08);
  --shadow-3: 0 16px 40px hsla(240, 20%, 20%, 0.08);
  --shadow-4: 0 25px 50px hsla(240, 20%, 20%, 0.06);
  --shadow-5: 0 24px 80px hsla(240, 20%, 20%, 0.10);

}


/**
 * Dark mode separates layers by making each one lighter than the last. That
 * cannot work on light, where the front layer is already white, so the edges
 * that were implied by a gradient now have to be drawn.
 */

:root[data-theme="light"] :is(.sidebar, article) { border-color: hsl(240, 10%, 89%); }

:root[data-theme="light"] :is(.icon-box, .content-card, .form-btn, .info_more-btn) {
  border: 0.5px solid hsl(240, 10%, 89%);
}

:root[data-theme="light"] .form-btn:hover { border-color: transparent; }


/* colours written directly into rules, which the tokens above cannot reach */

:root[data-theme="light"] .navbar { background: hsla(240, 14%, 98%, 0.8); }

:root[data-theme="light"] .overlay { background: hsl(240, 10%, 40%); }

:root[data-theme="light"] .project-item > a:hover .project-img::before {
  background: hsla(0, 0%, 100%, 0.4);
}

:root[data-theme="light"] body::-webkit-scrollbar-thumb {
  background: hsla(240, 10%, 40%, 0.25);
  box-shadow: inset 1px 1px 0 hsla(240, 10%, 40%, 0.15),
              inset -1px -1px 0 hsla(240, 10%, 40%, 0.15);
}

:root[data-theme="light"] body::-webkit-scrollbar-thumb:hover {
  background: hsla(240, 10%, 40%, 0.35);
}





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

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

a { text-decoration: none; }

li { list-style: none; }

img, svg, 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(--accent);
  color: var(--smoky-black);
}

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

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

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





/*-----------------------------------*\
  #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(--accent);
  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;

  /* breathing room when a tab scrolls its heading into view */
  scroll-margin-top: 20px;

  /* the heading takes focus on tab switch; it is not an interactive control,
     so it should not draw an outline */
  outline: none;
}

.article-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--accent-gradient);
  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(--accent);
  border-radius: 5px;
}

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

.content-card {
    padding: 30px;
    padding-top: 25px;
    
    position: relative;
    background: var(--border-gradient-onyx);
    border-radius: 14px;
    box-shadow: var(--shadow-2);
    cursor: pointer;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
        
}

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

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

.avatar-box {
  background: var(--bg-gradient-onyx);
  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;
}

/* the contact block is always expanded -- there is no toggle button */

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

/**
 * The theme toggle is a button rather than a link, so it needs the bits the
 * reset strips from buttons in order to sit level with the social icons.
 * It shows the mode it will switch to: a sun while dark is active.
 */

.theme-toggle {
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 0;
}

.theme-toggle ion-icon { transition: var(--transition-1); }

.theme-toggle .icon-moon { display: none; }

:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }

:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }





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

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

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

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

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





/*-----------------------------------*\
  #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; }



/**
 * #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-icon-box svg {
    margin: auto;
    width: 40px;
    height: 40px;
    color: var(--accent);
}


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

.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;
  gap: 15px;
  margin: 0 -15px;
  padding: 0px 15px;
  padding-bottom: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
}

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

.testimonials-item {
  min-width: 100%;
  scroll-snap-align: center;
    position: relative;
    background: var(--border-gradient-onyx);
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow-2);
    z-index: 1;
}


.testimonials-item .tcontent-card {
    height: 100%;
    cursor: pointer;
    position:relative;
}

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

/*
.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-avatar-box img { 
    max-width: 100%; 
    border-radius: 12px;
    }

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

p a {
    display: inline;
}

.testimonials-wrapper {
  position: relative;
}
.scroll-btn {
   /* base arrow/icon color */
  color: rgba(255, 255, 255, 0.8);
  
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  
  position: absolute;
  top: 50%;

  /* IMPORTANT: same transform structure everywhere */
  transform: translate3d(0, -50%, 0);

  border-radius: 12px;
  width: 46px;
  height: 48px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  border: none;
  cursor: pointer;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease;
}

.scroll-btn.is-hidden {
  opacity: 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
}
.scroll-btn.left.is-hidden {
  transform: translate3d(-16px, -50%, 0);
}
.scroll-btn.right.is-hidden {
  transform: translate3d(16px, -50%, 0);
}

/* change color on real hover with mouse */
@media (hover: hover) and (pointer: fine) {
  .scroll-btn:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.10);
  }
}
/* change color only on touch with touch devices */
@media (hover: none) and (pointer: coarse) {
  .scroll-btn:active {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
  }
}

.scroll-btn.left { left: 8px; }
.scroll-btn.right { right: 8px; }


/* V shaped scroll arrows 
*/

.scroll-btn::before {
  content: "";
  position: absolute;
  
  /* CENTERING */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 12px;
  height: 12px;

  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  opacity: 1;
}

.scroll-btn.left::before {
  transform: translate(-35%, -50%) rotate(135deg);
}

.scroll-btn.right::before {
  transform: translate(-65%, -50%) rotate(-45deg);
}

/* hide on touch devices 
@media (hover: none) {
  .scroll-btn {
    display: none;
  }
} */

/**
 * #testimonials-modal
 */

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;

  /**
   * flex-start, not center, on purpose.
   *
   * Centring a flex item that is taller than its scroll container splits the
   * overflow across both ends, and the part above the top edge cannot be
   * scrolled back to -- which put the close button out of reach on tall
   * cards. The modal centres itself with margin:auto instead: auto margins
   * collapse to zero once there is no free space, so a tall card starts at
   * the top and scrolls all the way through.
   */
  align-items: flex-start;
  padding: 50px 12px;

  overflow-y: auto;
  overscroll-behavior: contain;

  /* above the navbar, which is also 20 and sits later in the markup, so it
     used to paint over the dimmed backdrop and stay clickable */
  z-index: 30;

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

  /* the page behind is blurred as well as dimmed, so the dimming itself can
     be much lighter than it was and the page stays recognisable */
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: var(--transition-1);
}

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

.testimonials-modal {
  background: var(--eerie-black-2);
  position: relative;
  padding: 15px;

  /* centres while the card fits and collapses to zero once it does not, so a
     tall card is reachable from top to bottom. The gutter that used to live
     here is now padding on the scroll container */
  margin: auto;

  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: 20px;
  right: 20px;
  background: var(--onyx);
  border-radius: 12px;
  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 {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-2);
}

.modal-img-wrapper > .quote-icon {
  display: none;
  color: var(--accent);
}

.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 time img {
    height: 1.2em;
    display: inline;
    position: relative;
    vertical-align: bottom;
}

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

.modal-content ul {
  color: var(--light-gray);
  font-size: calc(0.95*var(--fs-6));
  font-weight: var(--fw-300);
  line-height: 1.6;
  padding-left: 2em;
}

.modal-content ul li {
    list-style-type: disc;
}

.modal-content button {
  color: var(--accent);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  line-height: 1.6;
}

.modal-content .button-icon {
    width: 1em;
    display: inline;
    position: relative;
    vertical-align: bottom;
}

.modal-avatar-box img {
    width: 100%;
    border-radius: 12px;
}


/**
 * #clients 
 */

.clients { margin-bottom: 15px; }

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

.clients-item {
  min-width: 50%;
  scroll-snap-align: start;
}

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

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





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

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


/**
 * education and experience 
 */

.timeline { margin-bottom: 30px; }

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

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

.timeline-item { position: relative; }

.timeline-img { 
    width: 100%;
    height: 6.5em;
    margin-top: 6px;
    
}
.timeline-img img {
    float: left;
    position: relative;
    max-width: 6em;
    width: 30%;
    border-radius: 12px;
    margin-right: 8px;
}

.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(--accent-muted);
  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(--accent-gradient);
  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;
}

.timeline-img-descr {
    color: var(--light-gray);
    font-weight: var(--fw-300);
    line-height: 1.4;
    font-size: 0.8em;
}


/**
 * skills 
 */

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

.skills-list { padding: 20px; }


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

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

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

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

.skill-progress-fill {
  background: var(--accent-gradient);
  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;
}

.project-item.active:hover {
  cursor: pointer;
}


@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(--accent);
  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);
}

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

.blog-content { padding: 15px; }

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

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

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

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

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

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





/*-----------------------------------*\
  #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(--accent); }

textarea.form-input {
  min-height: 100px;
  height: 120px;
  max-height: 200px;
  resize: vertical;
  margin-bottom: 25px;
}

textarea.form-input::-webkit-resizer { display: none; }

.form-input:focus:invalid { border-color: var(--bittersweet-shimmer); }

.form-btn {
  position: relative;
  width: 100%;
  background: var(--border-gradient-onyx);
  color: var(--accent);
  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(--accent-gradient-edge); }

.form-btn:hover::before { background: var(--accent-gradient-fill); }

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


  .icon-box svg {
    color: var(--accent);
  }
  


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

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


.avatar-box img { 
    border-radius: 12px;
  }
  
@media (min-width: 250px) {
    
    .icon-box svg {
      width: 14px;
      height: 14px;
    }
    
}

@media (min-width: 450px) {
    
    .icon-box svg {
      width: 16px;
      height: 16px;
    }
    
    
    /*.contact-item .icon-box svg {
      width: 16px;
      height: 16px;
    }*/

  /**
   * client
   */

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



  /**
   * #PORTFOLIO, BLOG 
   */

  .project-img,
  .blog-banner-box { height: auto; }
  
  
  .testimonials-item .tcontent-card {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
    }
    
    .testimonials-item .service-icon-box {
    margin-top: auto;
    margin-bottom: auto;
    }
    
    .testimonials-avatar-box img { max-width: 120px; }
  
}



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

@media (min-width: 580px) {
    
    
    .modal-close-btn {
      top: 15px;
      right: 15px;
    }
    .icon-box svg {
      width: 24px;
      height: 24px;
    }

  /**
   * 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: 60px;
    margin-bottom: 100px;
  }



  /**
   * #SIDEBAR
   */

  .sidebar {
    margin-bottom: 30px;
  }

  .sidebar-info { gap: 25px; }

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

  .avatar-box img { 
    width: 120px; 
    border-radius: 25px;
    -webkit-box-shadow: box-shadow: var(--shadow-2);
    box-shadow: box-shadow: var(--shadow-2);
  }

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

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

  .testimonials-avatar-box {
    border-radius: 20px;
  }*/

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

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

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

  /* clients */

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

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



  /**
   * #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) {

  /**
   * SCALE CORRECTION
   *
   * The 580px breakpoint jumps the whole scale up in one step -- headings
   * +33%, the sidebar name +53%, card padding +100% -- and those values were
   * tuned for the 520px card that exists at that width. From 768px up the
   * card keeps growing (700px, then 900px beside the sidebar) while the
   * chrome stays frozen at the 580px size, which is what makes wide viewports
   * look oversized.
   *
   * So walk the scale back roughly 20% here, and again at 1500px. The pull is
   * deliberately uneven: the tokens that overshot hardest come down hardest,
   * while body text only steps 15px -> 14px.
   */

  :root {
    --fs-1: 26px;   /* h2 page headings, was 32px */
    --fs-2: 20px;   /* h3, was 24px */
    --fs-3: 20px;   /* sidebar name -- the worst offender, was 26px */
    --fs-4: 16px;   /* h4, was 18px */
    --fs-6: 14px;   /* body copy, was 15px */
    --fs-7: 13px;   /* h5, contact links, was 15px */
    --fs-8: 11px;   /* the title badge, was 12px */
  }


  /**
   * REUSED STYLE
   */

  .sidebar, article {
    width: 700px;
    padding: 24px;
  }

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

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

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

  /* the project carousel bleeds to the card edge with a negative margin that
     has to match the card padding exactly, so it follows every step below */
  .testimonials-list {
    gap: 24px;
    margin: 0 -24px;
    padding: 24px;
    padding-top: 0;
  }

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



  /**
   * SIDEBAR
   */

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

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



  /**
   * NAVBAR
   */

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



  /**
   * ABOUT
   */

  /* testimonials modal */

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

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



  /**
   * 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(--accent); }

  /* 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) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
    * 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;
  }

  /* from here up the navbar sits above the heading rather than at the bottom
     of the screen, so leave it in view when a tab scrolls to its heading */
  .article-title { scroll-margin-top: 100px; }

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



  /**
   * SCALE CORRECTION, SECOND STEP
   *
   * This is where the layout turns into sidebar + content side by side, so
   * the chrome has to work in two narrower columns rather than one wide card.
   * Take another 10% off everything structural on top of the 768px pullback.
   * Type is left alone -- it is already where it should be.
   */

  .sidebar, article { padding: 22px; }

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

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

  .icon-box {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .separator { margin: 28px 0; }

  .testimonials-list {
    gap: 22px;
    margin: 0 -22px;
    padding: 22px;
    padding-top: 0;
  }


  /**
   * REUSED STYLE
   */

  .sidebar, article { width: auto; }

  article { min-height: 100%; }


  /**
   * MAIN
   */

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

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



  /**
   * SIDEBAR
   */

  .sidebar {
    position: sticky;
    top: 54px;
    max-height: max-content;
    height: 100%;
    margin-bottom: 0;
    padding-top: 54px;
    z-index: 1;
  }

  .sidebar-info { flex-direction: column; }

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

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

  .info-content .title { margin: auto; }

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

  .contact-info :is(.contact-link) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-info :is(.contact-link, time, address) {
    --fs-7: 13px;
    font-weight: var(--fw-300);
  }

  .separator:last-of-type {
    margin: 15px 0;
    opacity: 0;
  }

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



  /**
	 * RESUME
	 */

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

}





/*-----------------------------------*\
  #RESPONSIVE FOR LARGE SCREEN (1500px)
\*-----------------------------------*/

@media (min-width: 1500px) {

  /**
   * SCALE CORRECTION, THIRD STEP
   *
   * Past 1500px the layout stops growing -- main is capped at 1200px and just
   * centres itself in the extra space -- so the page reads smaller and smaller
   * relative to the screen. Take another ~7% off the headings and chrome to
   * match. Body copy stays at 14px; below that it stops being comfortable.
   *
   * Every value here has to stay under its 1250px counterpart, or the chrome
   * would grow again on the widest screens.
   */

  :root {
    --fs-1: 24px;   /* h2 page headings */
    --fs-2: 19px;   /* h3 */
    --fs-3: 19px;   /* sidebar name */
    --fs-4: 15px;   /* h4 */
  }

  .sidebar, article { padding: 20px; }

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

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

  .icon-box {
    width: 33px;
    height: 33px;
    font-size: 14px;
  }

  .separator { margin: 26px 0; }

  .testimonials-list {
    gap: 20px;
    margin: 0 -20px;
    padding: 20px;
    padding-top: 0;
  }

}