/*===================================
  #THEME — dark navy + green accent
  All colours, sizes and spacing live
  as custom properties in :root below.
\*-----------------------------------*/

/*-----------------------------------*\
  #FONTS — Poppins, self-hosted (no third-party request)
  Latin subsets from Google Fonts, served from /assets/fonts.
\*-----------------------------------*/

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/poppins-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/poppins-300-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {

  /**
   * Colours — dark navy base (#070b11 page, #080e16 cards) with a
   * green accent (#37e19a). Change these and the whole site follows.
   */

  /* gradient */
  --bg-gradient-onyx: linear-gradient(
    to bottom right,
    hsl(214, 42%, 17%) 3%,
    hsl(214, 42%, 12%) 97%
  );
  --bg-gradient-jet: linear-gradient(
    to bottom right,
    hsla(214, 42%, 15%, 0.251) 0%,
    hsla(214, 44%, 9%, 0) 100%
  ), hsl(214, 44%, 11%);
  --bg-gradient-yellow-1: linear-gradient(
    to bottom right,
    hsl(155, 74%, 55%) 0%,
    hsla(156, 80%, 62%, 0) 50%
  );
  --bg-gradient-yellow-2: linear-gradient(
    135deg,
    hsla(155, 74%, 55%, 0.251) 0%,
    hsla(152, 78%, 58%, 0) 59.86%
  ), hsl(214, 44%, 11%);
  --border-gradient-onyx: linear-gradient(
    to bottom right,
    hsl(213, 38%, 26%) 0%,
    hsla(213, 38%, 26%, 0) 50%
  );
  --text-gradient-yellow: linear-gradient(
    to right,
    hsl(155, 78%, 58%),
    hsl(152, 85%, 62%)
  );

  /* solid */
  --jet: hsl(214, 30%, 17%);
  --onyx: hsl(214, 42%, 11.5%);
  --onyx-glass: hsla(214, 42%, 11.5%, 0.75);
  --eerie-black-1: hsl(214, 44%, 9.5%);
  --eerie-black-2: hsl(214, 46%, 6%);
  --smoky-black: hsl(209, 53%, 5%);
  --white-1: hsl(210, 50%, 96%);
  --white-2: hsl(211, 49%, 90%);
  --accent: hsl(155, 74%, 55%);
  --accent-muted: hsl(156, 56%, 62%);
  --light-gray: hsl(209, 40%, 76%);
  --light-gray-70: hsla(209, 40%, 76%, 0.7);
  --bittersweet-shimmer: hsl(355, 70%, 60%);

  /**
   * typography
   */

  --ff-poppins: 'Poppins', sans-serif;

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

  --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-1: 0.25s ease;
  --transition-2: 0.5s ease-in-out;

}

.image-transition {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease-in-out;
}

.image-transition:hover {
  transform: scale(1.1);
}

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

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

a { text-decoration: none; }

li { list-style: none; }

img, .pk-icon, a, button, time, span { display: block; }

/* Inline SVG icons from the sprite in index.html. Sized in em so the
   existing font-size rules (16/18/28/40px) keep working as before. */
.pk-icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: 0 0 auto;
  overflow: visible;
}

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-visible { outline-color: var(--accent); outline-offset: 2px; }

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

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

.skip-link{position:absolute;left:-999px;top:0;z-index:99;background:var(--accent);color:var(--smoky-black);padding:.6rem 1rem;border-radius:0 0 .4rem 0;font-size:.8rem;font-weight:500}
.skip-link:focus{left:0}

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

/* Ionicons default stroke-width is 32 in the 512 viewBox. These two spots
   bumped it to 35 / 28, preserved here as an explicit override. */
.icon-box .pk-icon { 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;
  height: 5px;
}

.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 {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 15px;
  padding-top: 45px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  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: 15px;
  max-height: 112px;
  overflow: hidden;
  transition: var(--transition-2);
}

.sidebar.active { max-height: 405px; }

.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;
  overflow: hidden;
}

.avatar-box img { width: 80px; border-radius: inherit; }

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

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

.info-content .tagline {
  color: var(--light-gray);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
  line-height: 1.45;
  margin-top: 8px;
  max-width: 30ch;
}

.info_more-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  border-radius: 0 15px;
  font-size: 13px;
  color: var(--accent);
  background: var(--border-gradient-onyx);
  padding: 10px;
  box-shadow: var(--shadow-2);
  transition: var(--transition-1);
  z-index: 1;
}

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

.info_more-btn:hover,
.info_more-btn:focus { background: var(--bg-gradient-yellow-1); }

.info_more-btn:hover::before,
.info_more-btn:focus::before { background: var(--bg-gradient-yellow-2); }

.info_more-btn span { display: none; }

.sidebar-info_more {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-2);
}

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

.contacts-list {
  display: grid;
  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; }

.contact-link:hover { color: var(--accent); }

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

.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--onyx-glass);
  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(--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;
  font-size: 40px;
  color: var(--accent);
  display: flex;
  justify-content: center;
}

.service-icon-box .pk-icon { stroke-width: 28px; }

.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-300);
  line-height: 1.6;
}

/**
 * #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 a { width: 100%; }

.clients-card {
  display: block;
  width: 100%;
  text-decoration: none;
}

.clients-item img {
  width: 65%;
  margin: 0 auto;
  display: block;
  transition: var(--transition-1);
  object-fit: contain;
  /* No background here on purpose. The badge PNGs are already fully
     transparent, so a white plate only framed them in a box that did not
     match the card around it. */
  border-radius: 12px;
}

.clients-item-title {
  color: var(--white-2);
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  letter-spacing: -0.1px;
  margin: 12px 0 0;
  text-align: center;
  transition: var(--transition-1);
}

.clients-item-text {
  color: var(--light-gray);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
  line-height: 1.5;
  margin: 3px 0 0;
  text-align: center;
  transition: var(--transition-1);
}

.clients-card:hover .clients-item-title,
.clients-card:hover .clients-item-text,
.clients-card:focus-visible .clients-item-title,
.clients-card:focus-visible .clients-item-text {
  color: var(--accent);
}

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

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

.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-item:not(:last-child) { margin-bottom: 20px; }

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

.timeline-item-title a { color: var(--white-2); display: inline; }

/* The university and the issuing organisation sit one step below the entry
   title. They used to reuse .timeline-item-title, which made both glow as
   brightly as the credential itself. */
.timeline-item-subtitle {
  color: var(--light-gray);
  font-size: var(--fs-7);
  font-weight: var(--fw-400);
  line-height: 1.4;
  margin: -2px 0 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(--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;
}

.timeline-item a.timeline-text { color: var(--accent); display: block; }

.timeline-item a.timeline-text:hover { text-decoration: underline; }


/**
 * 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(--text-gradient-yellow);
  height: 100%;
  border-radius: inherit;
  width: 0%;
  transition: width 1s ease 0.2s;
}


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

.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,
.blog-banner-box .pk-banner {
  width: 100%;
  height: 100%;
  /* The banner is a wide, short box and the source art is 3:2, so `cover`
     threw away roughly two thirds of every illustration. `contain` shows the
     whole picture and the box keeps its height, radius and overflow. */
  object-fit: contain;
  transition: var(--transition-1);
}

.blog-banner-box .pk-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-gradient-yellow-1), var(--bg-gradient-jet);
  color: var(--accent);
  font-size: 56px;
}

/* Cropping is no longer doing the work, so the hover nudge is much smaller;
   scale(1.1) on a contained image just pushed the art out of its frame. */
.blog-post-item > a:hover .blog-banner-box img,
.blog-post-item > a:hover .pk-banner { transform: scale(1.03); }

.blog-content { padding: 15px; }

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

.blog-meta :is(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
\*-----------------------------------*/

.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);
  /* 16px, not --fs-6 (14px): iOS Safari zooms the viewport on any
     focused field under 16px and never zooms back out. */
  font-size: 16px;
  font-weight: var(--fw-400);
  padding: 13px 20px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  outline: none;
  transition: border-color var(--transition-1);
}

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

.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 .pk-icon { font-size: 16px; }

.form-btn:hover { background: var(--bg-gradient-yellow-1); }

.form-btn:hover::before { background: var(--bg-gradient-yellow-2); }

/* Honeypot: pushed off-screen rather than display:none, so bots fill it. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-top: 16px;
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
  text-align: center;
  min-height: 1.3em;
  color: var(--white-2);
}

.form-status.is-ok { color: var(--accent); }

.form-status.is-error { color: var(--bittersweet-shimmer); }

.form-btn.is-busy {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- contact: social links ---------- */
/* Divider between the form and the direct-contact block below it. */
.contact-divider {
  height: 1px;
  background: var(--jet);
  margin: 40px 0;
}

/* The address is the one contact route that always works, so it gets a pill
   of its own rather than sharing the row below. `fit-content` keeps it to the
   width of the icon plus the address -- it was stretching to the full card
   width, which read as a banner rather than a button. */
.contact-email-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin-inline: auto;
  padding: 20px 22px;
  background: var(--onyx);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  color: var(--white-2);
  text-decoration: none;
  transition: var(--transition-1);
}

.contact-email-link:hover {
  border-color: var(--accent-muted);
  color: var(--white-1);
  transform: translateY(-2px);
}

.contact-email-link .contact-email-icon,
.contact-email-link .pk-icon {
  font-size: 26px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-email-text {
  font-size: var(--fs-5);
  font-weight: var(--fw-500);
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-socials { position: relative; margin-top: 30px; }

.contact-socials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  /* Shrink to the chips and centre, so the row lines up under the email pill
     instead of stretching the full card width. All four fit on one line
     (529px measured) from 768px up; below that they wrap, as intended. */
  width: fit-content;
  margin: 15px auto 0;
}

.contact-socials-list .contact-social { margin: 0; }

.contact-socials-list .contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 13px;
  background: var(--onyx);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--white-2);
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  text-decoration: none;
  transition: var(--transition-1);
}

.contact-socials-list .contact-social .pk-icon,
.contact-socials-list .contact-social .contact-social-icon {
  font-size: 18px;
  color: var(--accent);
  flex: 0 0 auto;
  transition: var(--transition-1);
}

.contact-socials-list .contact-social a:hover,
.contact-socials-list .contact-social a:focus-visible {
  background: var(--eerie-black-1);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--white-1);
  transform: translateY(-2px);
}

.contact-socials-list .contact-social a:hover .pk-icon,
.contact-socials-list .contact-social a:focus-visible .pk-icon {
  color: var(--accent);
  transform: scale(1.12);
}

/*-----------------------------------*\
  #LIKE POP (email click)
\*-----------------------------------*/

.pk-heart {
  position: fixed;
  z-index: 99;
  pointer-events: none;
  font-size: 26px;
  color: var(--accent);
  animation: pkUp 1.1s ease-out forwards;
}

.pk-heart::after {
  content: "+1";
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  font-family: var(--ff-poppins);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-muted);
  white-space: nowrap;
}

@keyframes pkUp {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.6); }
  15% { opacity: 1; transform: translate(-50%, -18px) scale(1.05); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -72px) scale(.9); }
}

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

/* larger than 450px */
@media (min-width: 450px) {
  .clients-item { min-width: calc(33.33% - 10px); }
  .blog-banner-box { height: auto; }
}

/* larger than 580px */
@media (min-width: 580px) {
  :root {
    --fs-1: 32px;
    --fs-2: 24px;
    --fs-3: 26px;
    --fs-4: 18px;
    --fs-6: 15px;
    --fs-7: 15px;
    --fs-8: 12px;
  }

  .sidebar, article {
    width: 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 {
    margin-top: 60px;
    margin-bottom: 100px;
  }

  .sidebar {
    max-height: 180px;
    margin-bottom: 30px;
  }

  .sidebar.active { max-height: 584px; }

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

  .info_more-btn {
    top: -30px;
    right: -30px;
    padding: 10px 15px;
  }

  .info_more-btn span {
    display: block;
    font-size: var(--fs-8);
  }

  .info_more-btn .pk-icon { display: none; }

  .separator { margin: 32px 0; }

  .contacts-list { gap: 20px; }

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

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

  .navbar-list { gap: 20px; }

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

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

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

  .service-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
    padding: 30px;
  }

  .service-icon-box {
    margin-bottom: 0;
    margin-top: 4px;
    flex: none;
  }

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

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

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

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

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

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

  .blog-content { padding: 25px; }

  .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 .pk-icon { font-size: 18px; }
}

/* larger than 768px */
@media (min-width: 768px) {
  .sidebar, article { width: 700px; }

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

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

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

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

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

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

/* larger than 1024px */
@media (min-width: 1024px) {
  :root {
    --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);
  }

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

  main { margin-bottom: 60px; }

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

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

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

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

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

/* larger than 1250px */
@media (min-width: 1250px) {
  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; }

  .sidebar, article { width: auto; }

  article { min-height: 100%; }

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

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

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

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

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

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

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

  .info_more-btn { display: none; }

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

  .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: 14px;
    font-weight: var(--fw-300);
  }

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

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

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  article.active { animation: none; }
  .sidebar, .sidebar-info_more, .image-transition, .blog-banner-box img,
  .blog-banner-box .pk-banner, .skill-progress-fill { transition: none; }
  .blog-post-item > a:hover .blog-banner-box img { transform: none; }
  html { scroll-behavior: auto; }
}

/*-----------------------------------*\
  #BACKGROUND STREAM — canvas backdrop
  \*-----------------------------------*/

/* html carries the dark base so the transparent body never falls
   through to the browser's white default. */
html {
  background-color: #070b11;
}

/* transparent body reveals the fixed #bgFx canvas behind the content */
body {
  background: transparent;
}

/* Dims the whole background with a 60% translucent shell layered over
   the canvas so the stream reads subtle rather than raw. The cards are
   fully opaque, so without this the exposed gutters would show undimmed
   canvas and the lines would look thicker and glowier. Paints above the
   canvas (z-index -1) and below all content. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: rgba(7, 11, 17, 0.6);
  pointer-events: none;
}

#bgFx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
#bgFx canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}


/* ============================================================================
   LAYOUT STABILITY + VISIBLE BACKGROUND GUTTER
   ----------------------------------------------------------------------------
   Why this block exists
   ---------------------
   index.html ships an outer <main id="app">, and app.js injects a *second*
   <main> inside it. Both are matched by the bare element selector `main`, so
   every rule written for the inner <main> was silently applied to the outer
   wrapper too. At >=1250px that made #app a flex ROW, which turned the inner
   <main> into a flex item sized by its max-content. On top of that,
   .main-content used `width: 75%` / `min-width: 75%`, a percentage that
   cannot be resolved against a shrink-to-fit parent -- a cyclic dependency.
   The browser resolved it from the visible article, so both column widths
   depended on which tab was open:

       1440px viewport     main-content     sidebar
       About tab               1050px        325px
       Resume tab               648px        191px
       Blog tab                1050px        325px
       Contact tab              870px        265px

   A second, smaller cause: the page uses a fixed-width vertical scrollbar
   (15px, or 20px at >=1250px). Short tabs (Blog, Contact) did not overflow,
   so the scrollbar vanished and every centred box shifted 7-20px sideways.

   This block makes the frame depend only on the viewport, never on content:
     * #app is forced back to a plain block, undoing the accidental flex row
     * the inner <main> fills its wrapper with width:100%
     * the sidebar gets a clamped fixed flex-basis, the content column takes
       the remainder via flex:1 with min-width:0
     * the vertical scrollbar gutter is reserved, so its appearance can no
       longer move anything
     * hard-coded 700px / 950px card widths become width:100% + max-width,
       centred, so a single column never leaves a dead band on one side
   Cards (.sidebar, article, .content-card) stay fully opaque, as intended.
   ========================================================================= */

/* 1. the outer wrapper must never be a flex row, and must not inherit the
      inner main's max-width / min-width / margin */
#app {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  align-items: normal;
  justify-content: normal;
}

/* 2. the inner <main> fills its wrapper deterministically.
      NB: no margin override here -- the base `main` rule already supplies
      the 15px/12px gutters, and zeroing or auto-ing them would remove the
      band the background needs in order to be visible. Centring only kicks
      in at >=1024px, where main is capped at 1440px. */
main:not(#app) {
  min-width: 0;
}

/* 3. long certificate-verify URLs must not inflate the flex items'
      intrinsic max-content -- that is what collapsed the Resume tab */
.main-content,
.main-content a,
.main-content p {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 4. reserve the scrollbar gutter so its appearance cannot shift the layout.
      This design scrolls on `body` (it styles body::-webkit-scrollbar), so
      the gutter has to be reserved on body -- html alone had no effect, and
      short tabs such as Blog and Contact still lost their 15px. */
@media (min-width: 768px) {
  html,
  body {
    scrollbar-gutter: stable;
  }
}

/* 5. >=768px single column: was a hard 700px pinned left, which left a dead
      band on the right at some widths. Cap and centre instead. */
@media (min-width: 768px) {
  .sidebar,
  article {
    width: 100%;
    max-width: 700px;
    margin-inline: auto;
  }
}

/* 6. >=1024px two columns with widths derived only from the viewport.
      Replaces the old 1024/1250 mode pair that switched the sidebar from
      stacked-above to side-by-side at exactly 1250px. */
@media (min-width: 1024px) {
  main:not(#app) {
    width: 100%;
    /* 1440, not 1400. The 20px side padding is inside this box, so a 1400
       cap only ever handed the columns 1360 to share and the article landed
       at 1009px. Widening the cap to 1440 gives 1400 of content, which with
       the 23% sidebar below splits as 322 / 1053 -- the same 1050 / 318
       balance as the reference layout. */
    max-width: 1440px;
    margin-inline: auto;
    padding: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 25px;
  }

  .sidebar,
  article {
    width: auto;
    max-width: none;
    margin-inline: 0;
  }

  .sidebar {
    flex: 0 0 clamp(260px, 23%, 340px);
    position: sticky;
    /* 80px is this sidebar's own resting offset (60px shell offset + 20px
       main padding). Matching it means the card sticks exactly where it
       already sits, instead of hopping 20px the moment you scroll. */
    top: 80px;
    /* the expanded desktop sidebar treatment used to start at 1250px, so
       1024-1249px rendered a collapsed 180px card with a 120px avatar beside
       the same two-column layout. Same sidebar at every desktop width now. */
    max-height: max-content;
    height: auto;
    margin-bottom: 0;
    padding-top: 60px;
    z-index: 1;
  }

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

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

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

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

  /* The name and the title chip are both centred from here up, so the
     tagline has to be too. Without this it sat left-aligned underneath a
     centred pair, which is what made the block look misaligned. */
  .info-content .tagline {
    text-align: center;
    margin-inline: auto;
  }

  .info_more-btn { display: none; }

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

  .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: 14px;
    font-weight: var(--fw-300);
  }

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

  .main-content {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  article {
    min-height: 0;
  }
}
