/* --------------------------------- */
/* ----- Basic Setup -----*/
/* --------------------------------- */

@font-face {
  font-family: "Mona Sans";
  src: url("assets/fonts/Mona-Sans.woff2") format("woff2 supports variations"),
    url("assets/fonts/Mona-Sans.woff2") format("woff2-variations");
  font-display: swap;
  font-weight: 200 900;
  font-stretch: 75% 125%;
}

:root {
  --h1: 3.5rem;
  --h2: 3rem;
  --h3: 2.145rem;
  --h4: 1.5rem;
  --text-large: 1.6rem;
  --text-medium: 1.275rem;
  --text-small: 1.125rem;

  --gradient-brand: radial-gradient(
      at 60% 31%,
      rgb(255, 131, 139) 0px,
      transparent 50%
    ),
    radial-gradient(at 48% 98%, rgba(0, 255, 166, 0.707) 0px, transparent 50%),
    radial-gradient(at 84% 67%, rgb(255, 129, 125) 0px, transparent 50%),
    radial-gradient(at 16% 47%, rgb(255, 90, 112) 0px, transparent 50%),
    radial-gradient(at 73% 11%, rgb(115, 255, 225) 0px, transparent 50%),
    radial-gradient(at 49% 37%, rgba(255, 249, 89, 0.695) 0px, transparent 50%),
    radial-gradient(at 70% 21%, rgba(58, 255, 186, 0.715) 0px, transparent 50%);
  --easing: cubic-bezier(0.86, 0, 0.07, 1);

  --site-max-width: 1280px;
  --gutter-nano: 0.5rem;
  --gutter-micro: 1rem;
  --gutter-x-small: 1.5rem;
  --gutter-small: 2rem;
  --gutter-medium: 2.5rem;
  --gutter-large: 3rem;
  --gutter-x-large: 6rem;
  --gutter-huge: 12rem;

  --scroll-padding: 4.375rem;
  --radius: 85px;
}

body.dark {
  --bg-color-primary: #0c0a0a;
  --bg-color-secondary: #161211;
  --important: #fff;
  --sub: #c3c3c3;
  --body: #989898;
  --border: #c0c0c015;
  --border-dark: #c0c0c02f;
  --gradient-border: linear-gradient(to left bottom, #777, #0e0d0d);
  --shadow: 0 1rem 1rem #00000040;
}

body.light {
  --bg-color-primary: #fbfbfb;
  --bg-color-secondary: #ffffff;
  --important: #000;
  --sub: #111;
  --body: #585b63;
  --border: #62626234;
  --border-dark: #5e5e5e1f;
  --gradient-border: linear-gradient(to left bottom, #000000c6, #0e0d0d00);
  --shadow: 0 1rem 1rem rgba(0, 0, 0, 0.25);
}

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

html {
  font-family: "Mona Sans", sans-serif;
  box-sizing: border-box;
  scroll-padding-top: var(--scroll-padding);
}

@media (max-width: 1200px) {
  html {
    font-size: 90%;
  }
}

@media (max-width: 645px) {
  html {
    font-size: 80%;
  }
}

body {
  font-size: var(--text-medium);
  color: var(--body);
  background-color: var(--bg-color-primary);
  line-height: 1.4;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Improve media defaults */

picture,
svg,
img {
  display: block;
  max-inline-size: 100%;
  object-fit: contain;
}

textarea {
  resize: none;
}

/* --------------------------------- */
/* ----- Typography -----*/
/* --------------------------------- */

input,
textarea,
button {
  font: inherit;
}

p,
h1,
h2,
h3,
.h4 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
.h4 {
  font-stretch: 125%;
  line-height: 1.2;
  color: var(--important);
}

.h1 {
  font-size: var(--h1);
}

.h2 {
  font-size: var(--h2);
  text-align: center;
}

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

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

@media (max-width: 845px) {
  :root {
    --h1: 2.845rem;
    --h2: 2.45rem;
    --h3: 1.85rem;
  }
}

@media (max-width: 700px) {
  :root {
    --h1: 2.545rem;
  }
}

@media (max-width: 545px) {
  :root {
    --h1: 2.4rem;
    --text-large: 1.5rem;
  }
}

@media (max-width: 485px) {
  :root {
    --h1: 2.145rem;
    --h2: 1.875rem;
    --h3: 1.6rem;
    --text-large: 1.345rem;
  }
}

/* --------------------------------- */
/* ----- Utilities -----*/
/* --------------------------------- */

/* Center and constrain the width of page sections */

.container {
  max-inline-size: var(--site-max-width);
  margin-inline: auto;
}

@media (max-width: 1375px) {
  :root {
    --site-max-width: 1160px;
  }
}

@media (max-width: 1275px) {
  .container {
    padding-inline: var(--gutter-small);
  }
}

@media (max-width: 1200px) {
  .container {
    padding-inline: var(--gutter-medium);
  }
}

@media (max-width: 575px) {
  .container {
    padding-inline: var(--gutter-small);
  }
}

/* disable scroll when menu is opened */

.lock-screen {
  overflow-y: hidden;
}

/* hides visually and removes from accessibility tree  */

.hidden {
  visibility: hidden;
  transform: translateX(-100%);
}

.transform {
  transform: translateY(6rem);
  opacity: 0;
}

.shown {
  transition: 0.1s;
  color: lightgrey;
}

/* --------------------------------- */
/* ----- Components -----*/
/* --------------------------------- */

.btn {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 18px 60px;
  border-radius: var(--gutter-nano);
  transition: 0.3s all ease-in-out;
  cursor: pointer;
}

@media (max-width: 700px) {
  .btn {
    padding: 16px 48px;
  }
}

@media (max-width: 485px) {
  .btn {
    font-size: 1.2rem;
    padding: 14px 38px;
  }
}

.btn-cta {
  color: var(--bg-color-primary);
  background-color: var(--important);
}

body.dark .btn-cta:hover,
body.dark .btn-cta:focus {
  box-shadow: #ffffff40 0 0 0 var(--gutter-nano);
}

body.light .btn-cta:hover,
body.light .btn-cta:focus {
  box-shadow: #07070733 0 0 0 var(--gutter-nano);
}

.btn-secondary {
  border: 1px solid var(--border-dark);
  color: var(--important);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--important);
}

.link {
  display: inline-block;
  font-weight: 600;
  font-size: var(--text-small);
  padding: var(--gutter-nano) 0;
  text-decoration: none;
  color: var(--important);
  position: relative;
}

.link::after,
.link::before {
  content: "";
  width: 100%;
  height: 1px;
  margin-block-start: var(--gutter-nano);
  position: absolute;
  bottom: -1px;
  left: 0;
  transition: 300ms;
}

body.dark .link::before {
  background-color: #d3d3d357;
}

body.dark .link::after {
  background-color: white;
}

body.light .link::before {
  background-color: lightgray;
}

body.light .link::after {
  background-color: black;
}

.link::after {
  background-color: white;
  transform-origin: left;
  transform: scaleX(0);
}

.link:hover::after,
.link:focus::after {
  transform: scaleX(1);
}

/* --------------------------------- */
/* ----- Layout -----*/
/* --------------------------------- */

section:not(:first-child) {
  padding-block-start: var(--gutter-huge);
}

section:first-child {
  padding-block-start: 7rem;
}

@media (max-width: 885px) {
  :root {
    --gutter-huge: 8rem;
    --gutter-x-large: 4rem;
  }
}

main {
  border-top: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background-color: var(--bg-color-primary);
  transform: translateY(calc(-1 * var(--radius)));
}

@media (max-width: 1185px) {
  :root {
    --radius: 45px;
  }
}

/* --------------------------------- */
/* ----- Menu Button -----*/
/* --------------------------------- */

.menu-btn-container {
  position: fixed;
  width: 100%;
  top: var(--gutter-x-small);
  left: 0;
  z-index: 10;
}

.menu-btn {
  display: block;
  margin-inline-start: auto;
  border: 1px solid var(--border-dark);
  inline-size: 132px;
  padding-block: var(--gutter-nano);
  border-radius: var(--gutter-large);
  text-decoration: none;
  background-color: var(--bg-color-secondary);
  color: var(--important);
  cursor: pointer;
}

.menu-btn,
.nav-items a {
  font-stretch: 125%;
  font-weight: 900;
}

/* --------------------------------- */
/* ----- Navigation -----*/
/* --------------------------------- */

.nav {
  min-block-size: 100vh;
  position: fixed;
  width: 100%;
  background-color: #ff5e99;
  background-image: var(--gradient-brand);
  transition: 450ms var(--easing);
  z-index: 3;
}

.nav-items {
  position: absolute;
  top: 50%;
  left: 15%;
  transform: translateY(-50%) translateX(-15%);
  list-style-type: none;
}

.nav-item:not(:last-child) {
  margin-block-end: var(--gutter-x-small);
}

.nav-item a {
  display: inline-block;
  font-size: var(--h2);
  text-decoration: none;
  color: #fff;
}

.nav-item a::after {
  content: "";
  display: block;
  block-size: var(--gutter-nano);
  width: 100%;
  transform: scale(0);
  transform-origin: left;
  background-color: white;
  transition: transform 250ms var(--easing);
}

.nav-item a:hover::after,
.nav-item a:focus::after {
  transform: scale(1);
}

/* --------------------------------- */
/* ----- Header -----*/
/* --------------------------------- */

.header {
  min-block-size: calc(100vh + var(--radius));
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.header .container {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-btn-container .container {
  display: block;
  min-height: auto;
}

body.dark .header {
  background-image: linear-gradient(#0000008b, #000000e6),
    url("assets/images/hero-bg.webp");
}

body.light .header {
  background-image: linear-gradient(#ffffffa2, #ffffffe6),
    url("assets/images/hero-bg-light.webp");
}

.header-textbox {
  position: relative;
  flex: 1;
  max-width: 60%;
}

@media (max-width: 768px) {
  .header-textbox {
    max-width: 100%;
  }
}

.header-text {
  font-size: var(--text-large);
  font-weight: 400;
  max-inline-size: 745px;
  margin-block-start: var(--gutter-micro);
  margin-block-end: var(--gutter-medium);
}

@media (max-width: 1200px) {
  .header-text {
    max-inline-size: 685px;
  }
}

@media (max-width: 845px) {
  .header-text {
    max-inline-size: 585px;
  }
}

.header-btns {
  display: inline-flex;
  gap: var(--gutter-x-small);
}

/* Hacker-style stats container */
.hacker-stats {
  position: relative;
  flex-shrink: 0;
  margin-left: var(--gutter-medium);
  align-self: center;
}

.stats-terminal {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  min-width: 260px;
  padding: 0;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: 'Courier New', monospace;
  overflow: hidden;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.7;
}

.terminal-dot.red {
  background: rgba(255, 95, 86, 0.7);
}

.terminal-dot.yellow {
  background: rgba(255, 189, 46, 0.7);
}

.terminal-dot.green {
  background: rgba(39, 202, 63, 0.7);
}

.stats-content {
  padding: 18px;
  text-align: center;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeInSubtle 0.5s ease-out forwards;
}

.stat-number {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.8rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  text-shadow: none;
  opacity: 0;
  animation: fadeInSubtle 0.5s ease-out 0.2s forwards;
}

@keyframes fadeInSubtle {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-transition {
  animation: fadeOutSubtle 0.3s ease-in forwards;
}

@keyframes fadeOutSubtle {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@media (max-width: 1200px) {
  .hacker-stats {
    margin-left: var(--gutter-small);
  }
  
  .stats-terminal {
    min-width: 220px;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .header .container {
    display: block;
    padding-top: 80px;
    min-height: 100vh;
  }
  
  .header-textbox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 90%;
    width: 100%;
  }
  
  .hacker-stats {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
  }
  
  .stats-terminal {
    margin: 0 auto;
    max-width: 260px;
  }
}

@media (max-width: 400px) {
  .header .container {
    padding-top: 70px;
  }
  
  .header-textbox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 90%;
    width: 100%;
  }
  
  .header-btns {
    flex-direction: column;
    width: 80%;
    margin: 0 auto;
    gap: var(--gutter-small);
  }
  
  .hacker-stats {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .stats-terminal {
    min-width: 240px;
    max-width: 280px;
  }
}

/* --------------------------------- */
/* ----- Clients -----*/
/* --------------------------------- */

.logos {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-block-start: var(--gutter-x-large);
}

@media (max-width: 885px) {
  .logos {
    padding-block-start: calc(
      var(--gutter-x-large) + var(--gutter-x-large) - 2rem
    );
  }
}

.logo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo {
  position: absolute;
  top: 0;
  max-block-size: 60px;
  max-inline-size: 150px;
  transition: all 2.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 845px) {
  .logo {
    max-inline-size: 100px;
  }

  .logo-group:last-child {
    display: none;
  }
}

@media (max-width: 400px) {
  .logo {
    max-inline-size: 85px;
  }
}

.logo.hide {
  opacity: 0;
}

.logo.to-top {
  transform: scale(0.4) translateY(-150px);
}

.logo.to-bottom {
  transform: scale(0.4) translateY(150px);
}

body.dark .logo {
  filter: invert(97%) grayscale(100%) opacity(0.9);
}

body.light .logo {
  filter: grayscale(100%) opacity(0.9);
}

/* --------------------------------- */
/* ----- Work -----*/
/* --------------------------------- */

.work-boxes {
  padding-block-start: var(--gutter-x-large);
}

.work-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 1045px) {
  .work-boxes {
    max-inline-size: fit-content;
    margin-inline: auto;
  }

  .work-box {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .work-img {
    margin-block-end: var(--gutter-medium);
  }
}

.work-box:not(:last-child) {
  margin-block-end: var(--gutter-huge);
}

@media (max-width: 1285px) {
  .work-box:not(:last-child) {
    margin-block-end: 8rem;
  }
}

.work-img,
.work-textbox {
  flex-basis: 49%;
}

.work-img {
  max-inline-size: 785px;
  transition: 0.6s all;
}

body.light .work-img {
  box-shadow: var(--shadow);
}

.work-textbox {
  max-inline-size: 445px;
}

@media (max-width: 885px) {
  .work h2 {
    margin-block-start: 45px;
  }
}

@media (max-width: 485px) {
  .work h2 {
    margin-block-start: 0;
  }
}

.work-text {
  margin-block: var(--gutter-micro);
}

.work-technologies {
  list-style-position: inside;
  list-style-type: disc;
  margin-block-end: var(--gutter-x-small);
}

.work-links {
  display: inline-flex;
  align-items: center;
  gap: var(--gutter-x-small);
}

.work-links img {
  block-size: 28px;
  inline-size: 28px;
}

body.dark .work-links img {
  filter: invert(1);
}

/* Github icon */

.work-links > a:last-child {
  transition: 0.3s transform ease-in;
}

.work-links > a:last-child:hover,
.work-links > a:last-child:focus {
  transform: scale(1.1);
}

.work-text,
.contact-text,
.work-technologies {
  font-weight: 300;
}

.work-textbox h3,
.work-text,
.work-technologies,
.work-links {
  --delay: 0.2s;
  animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-play-state: paused;
}

.work-text {
  animation-delay: var(--delay);
}

.work-technologies {
  animation-delay: calc(var(--delay) * 1.5);
}

.work-links {
  animation-delay: calc(var(--delay) * 2);
}

@keyframes slide-up {
  from {
    transform: translateY(45px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

/* --------------------------------- */
/* ----- Articles -----*/
/* --------------------------------- */

.article-boxes {
  display: flex;
  flex-flow: row wrap;
  gap: 3.5%;
  margin-block-start: var(--gutter-x-large);
}

.article-box {
  flex-basis: 31%;
  border: 1px solid var(--border);
  padding: var(--gutter-medium) var(--gutter-small);
  border-radius: var(--gutter-nano);
  background-color: var(--bg-color-secondary);
}

.article-textbox {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-text {
  font-size: var(--text-small);
  margin-block: var(--gutter-x-small);
}

.article-info {
  display: flex;
  justify-content: space-between;
  margin-block-start: auto;
}

.reaction-count {
  display: inline-flex;
  align-items: center;
  gap: var(--gutter-nano);
  font-size: initial;
}

@media (max-width: 985px) {
  .article-boxes {
    max-inline-size: 685px;
    margin-inline: auto;
    justify-content: center;
    gap: 4%;
  }

  .article-box:nth-of-type(2),
  .article-box:nth-of-type(3) {
    flex-basis: 48%;
  }

  .article-box:last-child {
    display: none;
  }
}

@media (max-width: 650px) {
  .article-box:nth-child(2),
  .article-box:nth-child(3),
  .article-box:last-child {
    flex-basis: 100%;
  }

  .featured-article {
    margin-block-end: 0;
  }

  .article-box:not(:last-child) {
    margin-block-end: var(--gutter-x-small);
  }

  .article-box:last-child {
    display: block;
  }
}

/* --------------------------------- */
/* ----- Featured article -----*/
/* --------------------------------- */

.featured-article {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 44.8px;
}

@media (max-width: 985px) {
  .featured-article {
    margin-block-end: 24.4px;
    flex-direction: column-reverse;
  }
}

.featured-article .article-textbox {
  flex-basis: 44%;
}

.featured-article h3 {
  margin-block-start: var(--gutter-x-small);
}

.featured-article .article-illustration {
  flex-basis: 50%;
}

.article-illustration img {
  border-radius: var(--gutter-nano);
}

.featured-article .article-text {
  font-size: var(--text-medium);
}

.featured-article .article-info {
  justify-content: flex-start;
  gap: var(--gutter-medium);
}

/* --------------------------------- */
/* ----- Testimonials -----*/
/* --------------------------------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-block-start: var(--gutter-x-large);
  list-style-type: none;
  background-image: linear-gradient(
    rgba(88, 88, 88, 0.297),
    rgba(214, 214, 214, 0.082)
  );
}

@media (max-width: 1100px) {
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 645px) {
  .testimonials {
    grid-template-columns: 1fr;
  }
}

.testimonial {
  display: flex;
  flex-direction: column;
  padding: var(--gutter-small);
  background-color: var(--bg-color-primary);
}

.testimonial-text {
  font-size: var(--text-small);
  margin-block-end: var(--gutter-x-small);
}

.testimonial-author {
  margin-block-start: auto;
  display: flex;
  align-items: center;
  gap: var(--gutter-micro);
}

.testimonial-author-name {
  margin-block-end: 0.3rem;
}

.testimonial-author-name,
.testimonial-author-job {
  font-size: initial;
}

.testimonial-author > img {
  block-size: 52px;
  inline-size: 52px;
  border-radius: 50%;
  background-color: var(--bg-color-secondary);
}

/* --------------------------------- */
/* ----- Skills -----*/
/* --------------------------------- */

/* New skills grid */
.skills-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centers the last row */
  align-items: flex-start;
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
  padding-block-start: var(--gutter-x-large);
  margin: 0;
}

@media (max-width: 1100px) {
  .skills-grid { gap: var(--gutter-small); }
}

.skill-card {
  display: grid;
  place-items: center;
  width: clamp(62px, 8vw, 92px);
  height: clamp(62px, 8vw, 92px);
  padding: clamp(0.2rem, 0.8vw, 0.5rem);
  background-color: var(--bg-color-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: transform 180ms var(--easing), box-shadow 220ms var(--easing), border-color 180ms var(--easing), background-color 180ms var(--easing);
}

.skill-card:hover,
.skill-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(var(--accent, 200,200,200), 0.65);
  box-shadow: 0 8px 28px rgba(var(--accent, 200,200,200), 0.22), 0 0 0 2px rgba(var(--accent, 200,200,200), 0.12) inset;
}

.skill-icon {
  width: clamp(28px, 4.2vw, 44px);
  height: clamp(28px, 4.2vw, 44px);
  object-fit: contain;
  filter: saturate(1.05) contrast(1.05);
}

.skill-name { display: none; }

/* --------------------------------- */
/* ----- GitHub Section -----*/
/* --------------------------------- */

.github-section {
  padding-block: var(--gutter-x-large);
  position: relative;
  background: linear-gradient(
    135deg,
    var(--bg-color-secondary) 0%,
    var(--bg-color-primary) 100%
  );
  border-radius: 20px;
  margin-block: var(--gutter-large);
}

/* Loading Animation */
.github-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color-primary);
  z-index: 10;
  border-radius: 20px;
}

.terminal-loader {
  background: #0d1117;
  border-radius: 12px;
  padding: 2rem;
  font-family: 'Courier New', monospace;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid #30363d;
}

.terminal-screen {
  min-width: 300px;
}

.terminal-line {
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInLine 0.8s ease-out forwards;
}

.terminal-line.delay-1 {
  animation-delay: 0.3s;
}

.terminal-line.delay-2 {
  animation-delay: 0.6s;
}

.terminal-prompt {
  color: #7c3aed;
  font-weight: bold;
}

.terminal-command {
  color: #10b981;
  margin-left: 0.5rem;
}

.terminal-text {
  color: #6b7280;
  margin-left: 1rem;
}

.terminal-cursor {
  color: #7c3aed;
  animation: blink 1s infinite;
}

@keyframes fadeInLine {
  to {
    opacity: 1;
  }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.github-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gutter-medium);
  margin-block: var(--gutter-large);
}

.stat-card {
  background: var(--bg-color-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--gutter-medium);
  display: flex;
  align-items: center;
  gap: var(--gutter-small);
  transition: all 0.3s var(--easing);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #7b2cbf 0%, #ff416c 100%);
  transition: left 0.5s var(--easing);
}

.stat-card:hover::before {
  left: 0;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(123, 44, 191, 0.15);
  border-color: rgba(123, 44, 191, 0.3);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.1), rgba(255, 65, 108, 0.1));
  color: #7b2cbf;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: var(--h3);
  font-weight: 700;
  color: var(--important);
  line-height: 1;
  background: linear-gradient(90deg, #7b2cbf, #ff416c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--text-small);
  color: var(--sub);
  margin-top: 4px;
}

/* GitHub Content Layout */
.repos-card-full,
.activity-graph-card-full {
  width: 100%;
  margin-bottom: var(--gutter-large);
}

.repos-card-full {
  margin-top: var(--gutter-large);
}

/* Recent Commits and Charts Grid */
.github-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gutter-large);
  margin-bottom: var(--gutter-large);
  align-items: start;
}

.github-content-grid .commits-card {
  min-width: 0;
  height: fit-content;
}

.github-content-grid .charts-container {
  min-width: 0;
}

.github-card {
  background: var(--bg-color-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--gutter-medium);
  transition: all 0.3s var(--easing);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.github-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7b2cbf 0%, #ff416c 100%);
  opacity: 0;
  transition: opacity 0.3s var(--easing);
}

.github-card:hover::before {
  opacity: 1;
}

.github-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(123, 44, 191, 0.15);
  border-color: rgba(123, 44, 191, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--gutter-medium);
  padding-bottom: var(--gutter-small);
  border-bottom: 1px solid var(--border);
}

.card-header h3 {
  margin: 0;
  color: var(--important);
}

/* Contribution Calendar Section (Full Width at Bottom) */
.contribution-calendar-section {
  margin-top: var(--gutter-x-large);
  margin-bottom: var(--gutter-large);
  width: 100%;
}

.contribution-calendar-wrapper {
  padding: var(--gutter-small) var(--gutter-medium);
  background: transparent;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contribution-calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  width: 100%;
}

.calendar-months {
  height: 26px;
  position: relative;
  margin-left: 45px;
  margin-bottom: 8px;
}

.month-label {
  position: absolute;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.calendar-body {
  display: flex;
  gap: 12px;
}

.calendar-days {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 38px;
}

.day-label {
  height: 15px;
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.calendar-weeks {
  display: flex;
  gap: 5px;
}

.calendar-week {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.calendar-day {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  border: 1px solid rgba(55, 65, 81, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}

.calendar-day:hover {
  transform: scale(1.3);
  border-color: rgba(123, 44, 191, 0.8);
  box-shadow: 0 0 8px rgba(123, 44, 191, 0.5);
  z-index: 10;
}

.calendar-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding: 0 4px;
}

.legend-label {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
}

.legend-colors {
  display: flex;
  gap: 4px;
}

.legend-box {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid #374151;
}

.legend-box[data-level="0"] {
  background-color: #1f2937;
}

.legend-box[data-level="1"] {
  background-color: rgba(123, 44, 191, 0.3);
}

.legend-box[data-level="2"] {
  background-color: rgba(123, 44, 191, 0.55);
}

.legend-box[data-level="3"] {
  background-color: rgba(123, 44, 191, 0.8);
}

.legend-box[data-level="4"] {
  background-color: #7b2cbf;
}



.contribution-link {
  margin-top: var(--gutter-medium);
}

.contribution-link a {
  color: var(--sub);
  text-decoration: none;
  font-size: var(--text-small);
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.contribution-link a:hover {
  color: #7b2cbf;
}

/* Activity Graph Card */
.activity-graph-card,
.activity-graph-card-full {
  width: 100%;
}

.activity-graph-card-full .activity-graph-container {
  padding: var(--gutter-medium);
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  height: 350px;
}

.activity-graph-container {
  padding: var(--gutter-small);
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  height: 300px;
}

.activity-graph-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* GitHub Stats Cards Section */
.github-stats-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter-medium);
  margin-top: var(--gutter-x-large);
  margin-bottom: var(--gutter-large);
}

.stat-card-item {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-color-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--gutter-small);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.stat-card-streak {
  grid-column: 1 / -1;
  min-height: 240px;
}

.stat-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #7b2cbf 0%, #ff416c 100%);
  transition: left 0.5s var(--easing);
}

.stat-card-item:hover::before {
  left: 0;
}

.stat-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(123, 44, 191, 0.15);
  border-color: rgba(123, 44, 191, 0.3);
}

.github-stat-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

/* GitHub Trophy Section */
.github-trophy-section {
  margin-top: var(--gutter-x-large);
  margin-bottom: var(--gutter-large);
  padding: var(--gutter-medium);
  background: var(--bg-color-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}

.trophy-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--gutter-small);
  overflow-x: auto;
  overflow-y: hidden;
}

.trophy-img {
  max-width: 100%;
  height: auto;
  min-width: 600px;
}

/* Scrollbar styling for trophy container */
.trophy-container::-webkit-scrollbar {
  height: 6px;
}

.trophy-container::-webkit-scrollbar-track {
  background: rgba(123, 44, 191, 0.1);
  border-radius: 3px;
}

.trophy-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #7b2cbf, #ff416c);
  border-radius: 3px;
}

.trophy-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #9333ea, #ff416c);
}

/* Summary Stats Bar */
.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter-medium);
  padding: var(--gutter-large);
  background: rgba(123, 44, 191, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(123, 44, 191, 0.1);
  width: 100%;
  max-width: 100%;
  margin-bottom: var(--gutter-large);
}

.summary-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-value {
  font-size: var(--h4);
  font-weight: 700;
  color: var(--important);
  background: linear-gradient(90deg, #7b2cbf, #ff416c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summary-label {
  font-size: var(--text-small);
  color: var(--sub);
}

/* Repository Section */
.repos-card,
.repos-card-full {
  width: 100%;
}

.repos-card-full .repos-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--gutter-medium);
}

.toggle-repos {
  background: none;
  border: none;
  color: var(--sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-small);
  transition: color 0.3s ease;
  padding: 4px 8px;
  border-radius: 6px;
}

.toggle-repos:hover {
  color: #7b2cbf;
  background: rgba(123, 44, 191, 0.1);
}

.toggle-repos svg {
  transition: transform 0.3s ease;
}

.repos-container.expanded .toggle-repos svg {
  transform: rotate(180deg);
}

.repos-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gutter-medium);
}

/* Override for non-full-width repos */
.repos-card:not(.repos-card-full) .repos-list {
  display: flex;
  flex-direction: column;
  gap: var(--gutter-small);
}

.repo-item {
  padding: var(--gutter-medium);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s var(--easing);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.repo-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #7b2cbf, #ff416c);
  transition: left 0.3s var(--easing);
}

.repo-item:hover::before {
  left: 0;
}

.repo-item:hover {
  background: rgba(123, 44, 191, 0.05);
  border-color: rgba(123, 44, 191, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(123, 44, 191, 0.1);
}

.repo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--gutter-nano);
}

.repo-name {
  font-weight: 600;
  color: var(--important);
  font-size: var(--text-medium);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.repo-name:hover {
  color: #7b2cbf;
}

.repo-name svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.repo-meta {
  display: flex;
  gap: var(--gutter-small);
  font-size: var(--text-small);
  color: var(--sub);
}

.language-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
}

.language-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.repo-description {
  color: var(--body);
  font-size: var(--text-small);
  margin-bottom: var(--gutter-nano);
  line-height: 1.4;
}

.repo-stats {
  display: flex;
  gap: var(--gutter-medium);
  font-size: var(--text-small);
  color: var(--sub);
}

.repo-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.repo-stat svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

/* Hidden repos (show more functionality) */
.repos-list .repo-item:nth-child(n+6) {
  display: none;
}

.repos-container.expanded .repos-list .repo-item:nth-child(n+6) {
  display: block;
}

/* Recent Commits */
.commits-card {
  width: 100%;
}

.commits-list {
  display: flex;
  flex-direction: column;
  gap: var(--gutter-small);
}

.commit-item {
  padding: var(--gutter-small);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.commit-item:hover {
  background: rgba(123, 44, 191, 0.05);
  border-color: rgba(123, 44, 191, 0.3);
}

.commit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.commit-repo {
  font-weight: 600;
  color: var(--important);
  font-size: var(--text-small);
}

.commit-time {
  font-size: var(--text-small);
  color: var(--sub);
}

.commit-message {
  font-size: var(--text-small);
  color: var(--body);
  line-height: 1.4;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.commit-link {
  color: var(--body);
  text-decoration: none;
  transition: color 0.3s ease;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.commit-link:hover {
  color: #7b2cbf;
}

.commit-sha {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--sub);
  background: rgba(123, 44, 191, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.commit-repo svg,
.commit-link svg {
  flex-shrink: 0;
}

/* Charts Container */
.charts-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter-medium);
  width: 100%;
}

.github-content-grid .charts-container {
  display: flex;
  flex-direction: column;
  gap: var(--gutter-medium);
}

.chart-card {
  width: 100%;
  min-width: 0;
}

.chart-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  max-height: 250px;
  position: relative;
  overflow: hidden;
}

.chart-wrapper canvas {
  max-width: 100% !important;
  max-height: 220px !important;
  height: auto !important;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.chart-wrapper canvas:hover {
  transform: scale(1.02);
}

/* Language Bar */
.language-bar-container {
  margin-top: var(--gutter-medium);
  padding: 0 var(--gutter-medium);
}

.language-bar {
  display: flex;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #1f2937;
  margin-bottom: var(--gutter-small);
}

.language-segment {
  height: 100%;
  transition: opacity 0.3s ease;
}

.language-segment:hover {
  opacity: 0.8;
}

.language-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 12px;
}

.language-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
}

.language-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.language-name {
  font-weight: 600;
  color: #e5e7eb;
  font-size: 13px;
}

.language-percentage {
  color: #9ca3af;
  font-weight: 500;
}

/* Fallback UI */
.github-fallback {
  text-align: center;
  padding: var(--gutter-x-large);
  background: var(--bg-color-secondary);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.fallback-content h3 {
  color: var(--important);
  margin-bottom: var(--gutter-small);
}

.fallback-content p {
  color: var(--sub);
  margin-bottom: var(--gutter-large);
}

.github-profile-link {
  text-align: center;
  margin-top: var(--gutter-x-large);
}

.github-profile-link .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gutter-small);
  background: linear-gradient(90deg, #7b2cbf, #ff416c);
  border: none;
  color: white;
  padding: var(--gutter-small) var(--gutter-medium);
  border-radius: var(--gutter-large);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
}

.github-profile-link .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(123, 44, 191, 0.4);
}

.github-profile-link .btn svg {
  width: 20px;
  height: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .github-content-grid {
    grid-template-columns: 1fr;
    gap: var(--gutter-medium);
  }
  
  .charts-container {
    grid-template-columns: 1fr;
  }
  
  .github-stats-cards {
    grid-template-columns: 1fr;
  }
  
  .repos-card-full .repos-list {
    grid-template-columns: 1fr;
  }
  
  .trophy-img {
    min-width: 100%;
  }
  
  .contribution-calendar-section {
    padding: var(--gutter-small);
  }
  
  .calendar {
    max-height: 200px;
  }
}

@media (max-width: 768px) {
  .github-stats {
    grid-template-columns: 1fr;
  }
  
  .github-content-grid {
    grid-template-columns: 1fr;
  }
  
  .summary-stats {
    grid-template-columns: 1fr;
    gap: var(--gutter-small);
    padding: var(--gutter-medium);
  }
  
  .repos-card-full .repos-list {
    grid-template-columns: 1fr;
  }
  
  .repo-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .repo-meta {
    flex-wrap: wrap;
  }
  
  .chart-wrapper {
    min-height: 150px;
    max-height: 200px;
  }
  
  .calendar {
    font-size: 10px;
    max-height: 180px;
  }
  
  .activity-graph-container {
    padding: var(--gutter-nano);
    max-height: 300px;
  }
  
  .activity-graph {
    max-height: 250px;
  }
  
  .activity-graph-card-full .activity-graph-container {
    padding: var(--gutter-small);
    max-height: 350px;
  }
  
  .trophy-container {
    padding: 0;
  }
  
  .charts-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .github-card {
    padding: var(--gutter-small);
  }
  
  .repo-stats {
    flex-wrap: wrap;
    gap: var(--gutter-small);
  }
  
  .stat-card {
    padding: var(--gutter-small);
  }
  
  .commit-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  
  .github-stats-cards {
    gap: var(--gutter-small);
  }
  
  .stat-card-item {
    padding: var(--gutter-nano);
  }
}

/* --------------------------------- */
/* ----- Contact -----*/
/* --------------------------------- */

.contact-content {
  display: grid;
  grid-template-columns: minmax(245px, 35%) 1fr;
  margin-block: var(--gutter-x-large);
  border: 1px solid var(--border);
  border-radius: var(--gutter-nano);
}

@media (max-width: 1032px) {
  .contact-content {
    display: flex;
    flex-direction: column-reverse;
    max-inline-size: 845px;
    margin-inline: auto;
  }
}

.contact-textbox,
.contact-form {
  padding: var(--gutter-large) var(--gutter-small);
}

.hire-alert {
  display: inline-flex;
  align-items: center;
  gap: var(--gutter-nano);
  font-size: initial;
  padding: var(--gutter-nano) var(--gutter-micro);
  border-radius: var(--gutter-small);
  position: relative;
  z-index: 1;
  margin-block-end: var(--gutter-small);
  color: var(--important);
}

.hire-alert::before,
.hire-alert::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.hire-alert::after {
  background-image: var(--gradient-border);
  z-index: -2;
}

.hire-alert::before {
  background-color: var(--bg-color-primary);
  inset: 1px;
  z-index: -1;
}

.indicator {
  display: inline-block;
  block-size: var(--gutter-nano);
  inline-size: var(--gutter-nano);
  border-radius: 50%;
  background-color: red;
  animation: blink 550ms alternate infinite var(--easing);
}

@keyframes blink {
  100% {
    opacity: 0;
  }
}

.contact-text {
  margin-block-end: var(--gutter-small);
}

.signatures {
  inline-size: 150px;
}

body.light .signatures {
  filter: invert(1);
}

.contact-form {
  background-color: var(--bg-color-secondary);
  border-top-right-radius: var(--gutter-nano);
  border-bottom-right-radius: var(--gutter-nano);
}

.form-field label,
.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
}

.form-field label {
  color: var(--important);
}

.form-field input,
.form-field textarea {
  font-size: var(--text-small);
  color: var(--sub);
  border: none;
  outline: none;
  border-bottom: 1px solid var(--border);
  background-color: transparent;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #888;
}

.form-field input,
.form-field textarea {
  margin-block-end: var(--gutter-small);
  padding: var(--gutter-nano);
  margin-inline: var(--gutter-nano);
}

.form-field label {
  font-size: var(--text-small);
  margin-block-end: var(--gutter-nano);
  margin-inline-start: var(--gutter-nano);
}

.contact-form button[type="submit"] {
  border: none;
}

/* --------------------------------- */
/* ----- Footer -----*/
/* --------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--gutter-x-large);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 875px) {
  .footer-content {
    flex-direction: column-reverse;
    gap: var(--gutter-small);
  }
  .footer-text {
    text-align: center;
  }
}

.footer-text {
  font-size: var(--text-small);
}

.footer-text a {
  color: var(--sub);
}

.footer-links {
  display: flex;
  gap: var(--gutter-small);
  list-style-type: none;
}

@media (max-width: 1040px) {
  .footer-links {
    gap: var(--gutter-micro);
  }
}

.footer-link img {
  block-size: 32px;
  inline-size: 32px;
}

.footer-link a {
  opacity: 0.875;
  transition: 225ms ease-in opacity;
}

.footer-link a:hover {
  opacity: 1;
}

body.dark .footer-link img {
  filter: invert(1);
}

.theme-switch {
  /* Track */

  --track-size: calc(var(--thumb-size) * 2);
  --track-padding: 0.225rem;
  --track-inactive: hsl(80 0% 80%);
  --track-active: #d7aefb;

  --track-color-inactive: var(--track-inactive);
  --track-color-active: var(--track-active);

  /* Thumb */

  --thumb-position: 0%;
  --thumb-size: 1.2rem;
  --thumb: hsl(0 0% 100%);
  --thumb-highlight: hsla(0, 0%, 0%, 0.056);

  --thumb-color: var(--thumb);
  --thumb-color-highlight: var(--thumb-highlight);
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 2ch;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-switch > span,
.theme-switch > input {
  cursor: pointer;
}

.theme-switch span {
  font-size: 1rem;
  color: var(--sub);
}

.theme-switch > input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: content-box;
  inline-size: var(--track-size);
  block-size: var(--thumb-size);
  padding: var(--track-padding);
  background-color: var(--track-color-inactive);
  border-radius: var(--track-size);
}

.theme-switch > input::after {
  display: block;
  content: "";
  inline-size: var(--thumb-size);
  block-size: var(--thumb-size);
  background-color: var(--thumb-color);
  border-radius: 50%;
  transform: translateX(var(--thumb-position));
  transition: 500ms all cubic-bezier(0.45, 0.05, 0.22, 1.3);
}

input:checked {
  --thumb-position: 100%;
  background-color: var(--track-active);
}
