/* Font faces */
@font-face {
  font-family: "PP Mori";
  src: url("../assets/fonts/PPMori-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Mori";
  src: url("../assets/fonts/PPMori-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Mori";
  src: url("../assets/fonts/PPMori-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-weight: 700;
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Design tokens */
:root {
  --floral-white: #f8f3e9;
  --dark-grey: #1a1a1a;
  --dark-pitch: #111211;
  --white: #ffffff;
  --red: #ff3333;
  --red-hover: #e02828;
  --text-muted: rgba(26, 26, 26, 0.68);
  --text-dim: rgba(26, 26, 26, 0.38);
  --border-subtle: rgba(26, 26, 26, 0.08);

  --radius-tab: 24px;
  --radius-card: 24px;
  --radius-pill: 9999px;
  --radius-tile: 16px;
  --container-wide: 1240px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Lenis smooth scroll */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  font-family:
    "PP Mori",
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background-color: var(--floral-white);
  color: var(--dark-grey);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  transition:
    background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.5s ease;
}

/* Scroll-triggered background themes */
body.theme-dark {
  background-color: var(--dark-pitch) !important;
  color: #ffffff;
}

body.theme-white {
  background-color: #ffffff !important;
  color: var(--dark-grey);
}

/* Custom scrollbar */
::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: transparent;
  -webkit-border-radius: 0px !important;
  border-radius: 0px !important;
}

::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: #ff3333 !important;
  -webkit-border-radius: 0px !important;
  border-radius: 0px !important;
  border: none !important;
}

::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: #e02828 !important;
}

::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
  background: transparent;
}

/* Selection */
::selection {
  background-color: var(--red);
  color: #ffffff;
}

/* Containers */
.container.is__full {
  width: 100%;
  max-width: none;
  padding-left: clamp(1.5rem, 2.5vw, 2.4rem);
  padding-right: clamp(1.5rem, 2.5vw, 2.4rem);
}

.container.is__full.is__header {
  padding-right: 0 !important;
  height: 100%;
}

.container.is__wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
}

/* Navigation */
.page-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: auto;
  background-color: transparent;
  border-bottom: none;
  padding: clamp(1.6rem, 3.2vh, 2.5rem) 0 1rem;
  transition: all 0.4s ease;
}

body.mode-gallery .page-nav {
  display: none !important;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-div {
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.nav-div.is__right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* Brand area */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
}

.nav-emblem {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  background-color: transparent;
}

.nav-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.18);
}

.nav-brand:hover .nav-emblem {
  transform: scale(1.06) rotate(-2deg);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.12;
  gap: 2px;
}

.nav-name-first,
.nav-name-last {
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif;
  font-size: clamp(1.38rem, 1.8vw, 1.72rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dark-grey, #1a1a1a);
  display: block;
}

body.theme-dark .nav-name-first,
body.theme-dark .nav-name-last {
  color: #ffffff;
}

/* Navigation Clock */
.nav-clock {
  background: transparent !important;
  color: var(--dark-grey, #1a1a1a) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  text-decoration: none !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  user-select: none;
  white-space: nowrap;
}

body.theme-dark .nav-clock {
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}

.nav-contact-btn {
  background-color: #ffffff !important;
  color: var(--dark-grey, #1a1a1a) !important;
  border: 1px solid rgba(26, 26, 26, 0.16) !important;
  border-radius: 999px !important;
  padding: 10px 24px !important;
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  text-decoration: none !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  user-select: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.theme-dark .nav-contact-btn {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Red Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button.is__header {
  background-color: var(--red);
  color: #ffffff;
  padding: 8px 18px;
  font-size: 0.88rem;
  margin-left: 6px;
}

.button.is__header:hover {
  background-color: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(255, 51, 51, 0.35);
}

.button.is__primary {
  background-color: var(--red);
  color: #ffffff;
  padding: 12px 28px;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px -4px rgba(255, 51, 51, 0.35);
}

.button.is__primary:hover {
  background-color: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(255, 51, 51, 0.45);
}

.button.is__outline {
  background-color: var(--white);
  color: var(--dark-grey);
  border: 1px solid var(--border-subtle);
  padding: 12px 26px;
  font-size: 0.95rem;
}

.button.is__outline:hover {
  background-color: #fcfcfc;
  border-color: rgba(26, 26, 26, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* Hero header */
.page-header {
  position: relative;
  z-index: 5;
  background-color: var(--floral-white);
  min-height: 100vh;
  padding-top: clamp(8.8rem, 16vh, 12rem);
  box-sizing: border-box;
}

.page-header_inner {
  width: 100%;
  display: flex;
  align-items: flex-start;
  position: relative;
}

.page-header_content {
  position: relative;
  z-index: 5;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: clamp(3rem, 6vh, 5rem);
}

.page-header_title {
  font-family:
    "PP Mori",
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif;
  font-size: clamp(3.1rem, 6.8vw, 7.2rem);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
  width: clamp(56vw, 62vw, 66vw);
  max-width: 66vw;
  position: relative;
  z-index: 5;
}

.text-heading {
  display: block;
}

.text-heading.is__header {
  position: relative;
  overflow: visible;
  padding-bottom: 0.04em;
}

.text-heading.is__static {
  color: var(--dark-grey);
  font-weight: 300;
  white-space: nowrap;
}

body.theme-dark .text-heading.is__static {
  color: #ffffff;
}

.text-heading.is__dim {
  color: var(--dark-grey);
  opacity: 0.95;
  margin-top: 0;
}

/* Cycling animated punchlines */
.page-header_anime-wrapper {
  position: relative;
  width: clamp(56vw, 62vw, 66vw);
  max-width: 66vw;
  min-height: clamp(12rem, 24vw, 28rem);
  height: auto;
  margin-top: 4px;
  overflow: visible;
  z-index: 5;
}

.text-heading.is__anime {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  font-family:
    "PP Mori",
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif;
  font-size: clamp(3.1rem, 6.8vw, 7.2rem);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: visible;
}

.text-heading.is__anime.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Letter and word masking */
.page-header_title .letter,
.page-header_anime-wrapper .letter {
  display: inline-flex;
  transform: translateY(125%);
  will-change: transform;
}

.word {
  display: inline-flex;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.24em;
  padding-bottom: 0.04em;
  white-space: nowrap;
}

.layout-grid.is__header {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(340px, 38vw, 540px);
  height: clamp(500px, 78vh, 680px);
  object-position: 50% 100%;
  background-image: url("../assets/images/pfp.jpeg");
  background-position: 40% 20%;
  background-repeat: no-repeat;
  background-size: cover;
  clip-path: url(#hero-avatar-clip);
  -webkit-clip-path: url(#hero-avatar-clip);
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.12));
  display: block;
  z-index: 2;
  margin: -0.25px;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform, clip-path;
  transition: filter 0.3s ease;
}

.layout-grid.is__header:hover {
  filter: drop-shadow(0 32px 60px rgba(0, 0, 0, 0.18));
}

.avatar-shield {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
  pointer-events: auto;
}

/* About me and folder deck */
.content-home_introduction {
  position: relative;
  padding-top: clamp(4rem, 8vh, 7rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
  overflow-x: clip;
}

.content-home_introduction .container.is__wide {
  width: 100%;
  max-width: none;
  padding-left: clamp(1.5rem, 2.5vw, 2.4rem);
  padding-right: clamp(1.5rem, 2.5vw, 2.4rem);
}

.feature-introduction {
  display: grid;
  grid-template-columns: minmax(360px, 44vw) 1fr;
  gap: clamp(2.5rem, 4vw, 5rem);
  align-items: start;
  position: relative;
}

/* Left Column: Cards (non-sticky container) */
.feature-introduction_col {
  position: relative;
  width: 100%;
}

/* Sticky heading column */
.feature-introduction_col.is__sticky {
  position: sticky;
  top: clamp(3.5rem, 6.5vh, 5rem);
  align-self: start;
  width: 100%;
}

.feature-introduction_title {
  width: 100%;
}

.section-heading.is__intro {
  font-family:
    "PP Mori",
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif;
  font-size: clamp(2.4rem, 4.3vw, 5.2rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--dark-grey);
  margin: 0;
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: 0;
  display: block;
  width: 100%;
}

.section-heading.is__intro .text-heading {
  display: block;
  font-weight: 300;
  line-height: 0.98;
  width: 100%;
  letter-spacing: -0.03em;
  will-change: transform, opacity;
}

.section-heading.is__intro .text-heading.is__left {
  text-align: left;
}

.section-heading.is__intro .text-heading.is__middle {
  text-align: center;
}

.section-heading.is__intro .text-heading.is__right {
  text-align: right;
}

body.theme-dark .section-heading.is__intro {
  color: #ffffff;
}

/* Card stack */
.feature-introduction_list {
  display: flex;
  flex-direction: column;
  gap: clamp(14rem, 28vh, 22rem);
  position: relative;
  padding-bottom: clamp(12rem, 24vh, 20rem);
}

.feature-introduction_item {
  position: sticky;
  top: clamp(3.5rem, 6.5vh, 5rem);
  will-change: transform;
  width: 100%;
}

#card-about {
  z-index: 10;
}

#card-experience {
  z-index: 20;
}

#card-tech {
  z-index: 30;
}

#contact-card {
  z-index: 40;
  width: 100%;
}

/* Folder cards */

/* Section Label Text */
.text-section {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark-grey);
  display: inline-block;
}

.text-section.is__white {
  color: #ffffff;
}

/* Card type 1: tab on left */
.layout-grid.is__introduction.is__1 {
  display: grid;
  grid-template-columns: auto 24px 1fr;
  grid-template-rows: auto 1fr;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.08));
}

.layout-grid.is__introduction.is__1 > .layout-grid_block.border-tr.border-tl {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  width: fit-content;
  background-color: #ffffff;
}

.layout-grid.is__introduction.is__1 > .layout-grid_inner.is__large.is__bl {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  width: 24px;
  height: 24px;
  align-self: end;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom left;
  z-index: 2;
  margin-bottom: -0.2px;
  background-image: url("../assets/curves/curve-w_bl.svg") !important;
}

.layout-grid.is__introduction.is__1
  > .layout-grid_block.border-bl.border-br.border-tr {
  grid-column: 1 / -1;
  grid-row: 2 / 3;
  border-radius: 0 24px 24px 24px;
  padding: clamp(2.2rem, 3.5vw, 3rem) 28px;
  z-index: 1;
  background-color: #ffffff;
  min-height: clamp(340px, 46vh, 480px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Card type 2: tab on right */
.layout-grid.is__introduction.is__2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px auto;
  grid-template-rows: auto 1fr;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  filter: drop-shadow(0 -6px 20px rgba(0, 0, 0, 0.28))
    drop-shadow(0 18px 36px rgba(0, 0, 0, 0.25));
}

.layout-grid.is__introduction.is__2 > .layout-grid_inner.is__large.is__br {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  width: 24px;
  height: 24px;
  align-self: end;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom right;
  z-index: 2;
  margin-bottom: -0.2px;
  background-image: url("../assets/curves/curve-blk_br.svg") !important;
}

.layout-grid.is__introduction.is__2 > .layout-grid_block.border-tl.border-tr {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  width: fit-content;
  background-color: var(--dark-grey);
}

.layout-grid.is__introduction.is__2
  > .layout-grid_block.border-tr.border-bl.border-br.border-tl {
  grid-column: 1 / -1;
  grid-row: 2 / 3;
  border-radius: 24px 0 24px 24px;
  padding: clamp(2.2rem, 3.5vw, 3rem) 28px;
  z-index: 1;
  background-color: var(--dark-grey);
  color: #ffffff;
  min-height: clamp(340px, 46vh, 480px);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Card content layout */
.layout-grid.is__introduction .layout-grid_content.is__body.is__intro {
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: unset;
}

#contact-card .layout-grid_content.is__body.is__intro {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: unset;
  padding: 0;
}

/* Dark Card Styling */
.layout-grid.is__introduction .is__dark {
  background-color: var(--dark-grey) !important;
  color: #ffffff;
}

.layout-grid.is__introduction.is__2
  .layout-grid_inner.is__large.is__br.is__blk {
  background-image: url("../assets/curves/curve-blk_br.svg") !important;
}

.layout-grid.is__introduction.is__2
  .layout-grid_inner.is__large.is__bl.is__blk {
  display: none;
}

/* Tech Stack card — left tab but dark: override curve to dark variant */
.layout-grid.is__introduction.is__1.is__tech
  > .layout-grid_inner.is__large.is__bl {
  background-image: url("../assets/curves/curve-blk_bl.svg") !important;
}

/* Left dark tab background override */
.layout-grid.is__introduction.is__1.is__tech
  > .layout-grid_block.border-tr.border-tl {
  background-color: var(--dark-grey) !important;
}

.layout-grid.is__introduction.is__1.is__tech
  > .layout-grid_block.border-bl.border-br.border-tr {
  background-color: var(--dark-grey) !important;
}

/* Card Body Content — Calum Editorial Prose Typography */
.text-size_large {
  font-family:
    "PP Mori",
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif;
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: -0.015em;
  color: var(--dark-grey, #1a1a1a);
  margin-bottom: 1.4rem;
  max-width: 95%;
}

.text-size_large:last-child {
  margin-bottom: 0;
}

.layout-grid.is__introduction.is__2 .text-size_large {
  color: rgba(255, 255, 255, 0.94);
}

/* Work Experience — layout_wrap */
.layout-grid_wrap {
  width: 100%;
}

.layout-grid_wrap.is__experience {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Work Experience Card Items */
.experience-card-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.8rem 0;
}

.experience-card-item:first-child {
  padding-top: 0;
}

.experience-card-item:last-child {
  padding-bottom: 0;
}

.experience-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.experience-card-role {
  font-family: "PP Mori", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.experience-card-year {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-editorial-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Dark card text override */
.text-size_large.is__card-dark {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

/* Contact With Me — title */
.contact-card-title {
  font-family: "PP Mori", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 1.4rem;
}

/* Legacy experience list classes (kept for safety) */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.experience-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.experience-period {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.experience-detail {
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.section-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

/* Tech Stack & Tools Container */
.tech-groups-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.tech-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.tech-group-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.tech-group-divider {
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-tile {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-tile);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tech-tile:hover {
  transform: translateY(-3px) scale(1.08);
  background-color: rgba(255, 255, 255, 0.14);
  border-color: var(--red);
  box-shadow: 0 10px 22px -6px rgba(255, 51, 51, 0.45);
}

.tech-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-tooltip,
.tech-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: #ffffff;
  color: var(--dark-grey, #111111);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 100;
}

.tech-tile:hover .tech-tooltip,
.calum-social-pill:hover .social-tooltip,
.calum-social-pill.is__icon:hover .social-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Connect With Me Card */
.contact-header {
  margin-bottom: 2rem;
}

.contact-headline {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.contact-card-title {
  font-family: "PP Mori", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 0.8rem;
}

/* Connect Card Stretched Sticker Image */
.contact-sticker-wrap {
  width: 100%;
  display: block;
  margin: 0 0 1.2rem;
  border-radius: 18px;
  overflow: hidden;
  box-sizing: border-box;
}

.contact-sticker-img {
  width: 100%;
  height: clamp(180px, 25vh, 250px);
  object-fit: fill;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  user-select: none;
  -webkit-user-drag: none;
}

.social-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 5;
}

.social-pills-wrap.is__icons-only {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 0.25rem;
  position: relative;
  z-index: 5;
}

.calum-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 6;
  transition: all 0.2s ease;
}

.calum-social-pill.is__icon {
  width: 48px;
  height: 48px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.calum-social-pill:hover,
.calum-social-pill.is__icon:hover {
  background-color: #ffffff !important;
  color: #111111 !important;
  border-color: #ffffff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.social-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
  object-fit: contain;
}

img.social-icon {
  filter: brightness(0) invert(1);
  transition: filter 0.22s ease;
}

.calum-social-pill:hover img.social-icon,
.calum-social-pill.is__icon:hover img.social-icon {
  filter: brightness(0);
}

.social-arrow {
  width: 14px;
  height: 14px;
  color: var(--red);
  flex-shrink: 0;
  transition:
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.2s ease;
}

.calum-social-pill:hover .social-arrow {
  transform: translate(2px, -2px);
}

/* Projects and GitHub showcase */
.content-home_work {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(5rem, 8vw, 8rem);
  padding-bottom: clamp(6rem, 12vh, 10rem);
  background-color: var(--dark-pitch);
}

.work-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

.section-badge-pill {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background-color: rgba(255, 51, 51, 0.12);
  border: 1px solid rgba(255, 51, 51, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section-badge-pill.is__light-theme {
  color: var(--red);
  background-color: rgba(255, 51, 51, 0.08);
  border-color: rgba(255, 51, 51, 0.2);
}

.work-section-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
}

.work-section-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.work-section-sub strong {
  color: #ffffff;
}

/* GitHub Projects Grid (Side-by-Side Multi-Column Layout) */
.github-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* GitHub Card Styling matching reference */
.gh-card {
  display: flex;
  flex-direction: column;
  background-color: #0e1116;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.5rem;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.gh-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 51, 51, 0.45);
  box-shadow:
    0 16px 36px -8px rgba(0, 0, 0, 0.5),
    0 0 24px -4px rgba(255, 51, 51, 0.2);
}

.gh-card:hover .gh-code-icon {
  color: var(--red);
  transform: scale(1.1);
}

/* Header: Code Icon + Title & Stats */
.gh-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.85rem;
}

.gh-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.gh-code-icon {
  width: 20px;
  height: 20px;
  color: #ff4444;
  flex-shrink: 0;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.gh-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Star & Fork Counters */
.gh-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.gh-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.gh-stat.gh-stars {
  color: #f1f5f9;
}

.gh-stat.gh-forks {
  color: #f1f5f9;
}

.gh-stat-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.gh-stat-icon.star-icon {
  color: #eab308;
}

.gh-stat-icon.fork-icon {
  color: #38bdf8;
}

.stat-count {
  line-height: 1;
}

/* Description */
.gh-card-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7rem;
}

/* Language indicator */
.gh-card-meta {
  margin-bottom: 0.85rem;
}

.gh-lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.gh-lang-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Tags/Topics Pills */
.gh-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.gh-tag {
  font-size: 0.72rem;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #94a3b8;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 9px;
  border-radius: 9999px;
  line-height: 1.3;
  transition: all 0.2s ease;
}

.gh-tag:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f1f5f9;
}

/* Card Footer: Date + Code Button (No Demo) */
.gh-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gh-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
}

.gh-date span {
  display: inline-block;
  line-height: 1;
}

.gh-cal-icon {
  width: 14px;
  height: 14px;
  color: #64748b;
  flex-shrink: 0;
  position: relative;
  top: 1.5px;
}

.gh-card:hover .gh-date,
.gh-card:hover .gh-cal-icon {
  color: #94a3b8;
}

/* Source Code Button (Only Code, No Demo) */
.gh-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #1a1e26;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.gh-code-btn:hover {
  background-color: #272d38;
  color: #ffffff;
  border-color: rgba(255, 51, 51, 0.55);
  box-shadow: 0 4px 14px -2px rgba(255, 51, 51, 0.25);
  transform: translateY(-1px);
}

.gh-btn-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Gallery */
.content-home_gallery {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
  z-index: 10;
  background-color: var(--floral-white);
  color: var(--dark-grey);
  overflow: hidden;
}

/* Loading Line Reveal Overlay (Motion.dev inspired via anime.js) */
.gallery-reveal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  pointer-events: none;
  overflow: hidden;
  visibility: hidden;
}

.gallery-reveal-overlay.is-active {
  visibility: visible;
  pointer-events: auto;
}

.reveal-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5vw;
  height: 100vh;
  background-color: #ffffff !important;
  z-index: 2;
  will-change: transform;
  transition: none !important;
}

.reveal-curtain-left {
  left: 0;
  transform: translateX(-101%);
}

.reveal-curtain-right {
  right: 0;
  transform: translateX(101%);
}

.gallery-section-header {
  text-align: left;
  max-width: 720px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.gallery-section-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--dark-grey);
  margin-bottom: 0.75rem;
}

/* Horizontal gallery and lego puzzle shapes */

.horizontal-gallery_height {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.horizontal-gallery_sticky {
  position: relative;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: var(--floral-white);
  box-sizing: border-box;
}

/* Horizontal Scrolling Track */
.horizontal-gallery_track {
  display: flex;
  height: 86vh;
  max-height: 860px;
  width: max-content;
  gap: 24px;
  padding: 0 clamp(2.5rem, 6vw, 7rem);
  will-change: transform;
  align-items: stretch;
  position: relative;
  z-index: 3;
}

/* Interlocking Lego-like Column Clusters (Expansive & Wider Proportions) */
.lego-cluster {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
  justify-content: flex-start;
  position: relative;
}

.lego-cluster.is__intro {
  width: clamp(300px, 24vw, 380px);
}

.lego-cluster.is__cluster-1 {
  width: clamp(420px, 38vw, 580px);
}

.lego-cluster.is__cluster-2 {
  width: clamp(380px, 34vw, 520px);
}

.lego-cluster.is__cluster-3 {
  width: clamp(480px, 44vw, 640px);
}

.lego-cluster.is__cluster-4 {
  width: clamp(400px, 36vw, 540px);
}

.lego-cluster.is__cluster-5 {
  width: clamp(440px, 38vw, 580px);
}

.lego-cluster.is__cluster-6 {
  width: clamp(420px, 36vw, 560px);
}

/* Lego Shape Cards with Cream/Beige Architectural Border Frames */
.lego-card {
  position: relative;
  overflow: visible;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.08));
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

.lego-card:hover {
  transform: translateY(-4px) scale(1.015);
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.16));
  z-index: 10;
}

/* Interlocking Lego Jigsaw Shape Cuts */
.lego-card.is__shape-tab-left,
.lego-card.is__shape-tab-left .lego-frame {
  -webkit-clip-path: url(#lego-tab-left);
  clip-path: url(#lego-tab-left);
}
.lego-card.is__shape-tab-left {
  height: 53%;
}

.lego-card.is__shape-notch-left,
.lego-card.is__shape-notch-left .lego-frame {
  -webkit-clip-path: url(#lego-notch-left);
  clip-path: url(#lego-notch-left);
}
.lego-card.is__shape-notch-left {
  height: 51%;
  margin-top: -42px;
}

.lego-card.is__shape-tab-right,
.lego-card.is__shape-tab-right .lego-frame {
  -webkit-clip-path: url(#lego-tab-right);
  clip-path: url(#lego-tab-right);
}
.lego-card.is__shape-tab-right {
  height: 55%;
}

.lego-card.is__shape-notch-right,
.lego-card.is__shape-notch-right .lego-frame {
  -webkit-clip-path: url(#lego-notch-right);
  clip-path: url(#lego-notch-right);
}
.lego-card.is__shape-notch-right {
  height: 49%;
  margin-top: -42px;
}

.lego-card.is__shape-tab-right-tall,
.lego-card.is__shape-tab-right-tall .lego-frame {
  -webkit-clip-path: url(#lego-tab-right-tall);
  clip-path: url(#lego-tab-right-tall);
}
.lego-card.is__shape-tab-right-tall {
  height: 59%;
}

.lego-card.is__shape-notch-right-tall,
.lego-card.is__shape-notch-right-tall .lego-frame {
  -webkit-clip-path: url(#lego-notch-right-tall);
  clip-path: url(#lego-notch-right-tall);
}
.lego-card.is__shape-notch-right-tall {
  height: 45%;
  margin-top: -58px;
}

.lego-card.is__shape-tab-left-wide,
.lego-card.is__shape-tab-left-wide .lego-frame {
  -webkit-clip-path: url(#lego-tab-left-wide);
  clip-path: url(#lego-tab-left-wide);
}
.lego-card.is__shape-tab-left-wide {
  height: 51%;
}

.lego-card.is__shape-notch-left-wide,
.lego-card.is__shape-notch-left-wide .lego-frame {
  -webkit-clip-path: url(#lego-notch-left-wide);
  clip-path: url(#lego-notch-left-wide);
}
.lego-card.is__shape-notch-left-wide {
  height: 53%;
  margin-top: -46px;
}

/* Intro Card Block */
.lego-card.is__intro-card {
  height: 100% !important;
  background-color: #ffffff;
  border-radius: 28px;
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.8rem, 2.5vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.lego-intro-title {
  font-family:
    "PP Mori",
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--dark-grey);
  margin-top: 1.4rem;
  text-transform: uppercase;
}

.lego-intro-desc {
  font-family:
    "PP Mori",
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 1.2rem;
}

.lego-scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 2rem;
}

.lego-scroll-hint .hint-arrow {
  display: inline-block;
  font-size: 1.1rem;
  animation: hintArrowBounce 1.5s infinite ease-in-out;
}

@keyframes hintArrowBounce {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

/* Inside Frame & Image */
.lego-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #eee9dc;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.gallery-shield {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: transparent;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.lego-card:hover .gallery-img {
  transform: scale(1.05);
}

/* Footer */
.page-footer {
  border-top: 1px solid rgba(26, 26, 26, 0.1);
  padding: clamp(6rem, 12vh, 10rem) 0 clamp(2.5rem, 4.5vh, 3.5rem);
  margin-top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  background-color: transparent;
  transition: border-color 0.4s ease, opacity 0.4s ease;
  position: relative;
  z-index: 5;
}

body.mode-gallery .page-footer {
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.mode-gallery .page-footer.is-visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

body.theme-white .page-footer {
  border-top-color: rgba(26, 26, 26, 0.1);
}

body.theme-dark .page-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.container.is__full.is__footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  width: 100%;
  padding-left: clamp(2.5rem, 6vw, 7rem) !important;
  padding-right: clamp(2.5rem, 6vw, 7rem) !important;
  box-sizing: border-box;
}

/* Footer Contact Block (Calum "Are we a Good fit?" Block) */
.footer-contact-block {
  margin-top: auto;
  margin-bottom: clamp(3rem, 6vh, 5.5rem);
  padding-bottom: clamp(3rem, 5vh, 4.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
}

body.theme-white .footer-contact-block {
  border-bottom-color: rgba(26, 26, 26, 0.12);
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 460px);
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
  justify-content: space-between;
  width: 100%;
}

.footer-contact-header {
  max-width: 100%;
  width: 100%;
}

.footer-contact-form-wrap {
  width: 100%;
  max-width: 480px;
  justify-self: end;
}

.section-heading.is__footer {
  font-family:
    "PP Mori",
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif;
  font-size: clamp(2.4rem, 4.4vw, 4.6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22em;
  width: 100%;
}

.section-heading.is__footer .text-heading {
  display: inline-block;
  font-weight: 300;
  line-height: 1;
  width: fit-content;
  letter-spacing: -0.035em;
  text-align: left;
  background-color: var(--red, #FF3333);
  color: #ffffff !important;
  padding: 0.08em 0.32em 0.05em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  white-space: nowrap;
}

.section-heading.is__footer .text-heading.is__middle {
  margin-left: clamp(1.8rem, 3.8vw, 3.8rem);
  text-align: left;
  padding-left: 0.32em;
  white-space: nowrap;
}

.footer-contact-desc {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  max-width: 520px;
}

body.theme-white .footer-contact-desc {
  color: var(--text-muted, #737373);
}

/* Contact Form Styling */
.calum-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif;
}

body.theme-white .form-label {
  color: var(--dark-grey, #1a1a1a);
}

.form-label-hint {
  font-size: 0.74rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.4);
}

body.theme-white .form-label-hint {
  color: var(--text-muted, #737373);
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.form-input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  transition: color 0.2s ease;
}

body.theme-white .form-input-icon {
  color: rgba(0, 0, 0, 0.4);
}

.form-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: 12px;
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif;
  font-size: 0.95rem;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  transition: all 0.25s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-input:focus {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 51, 51, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.15);
}

.form-input-wrap:focus-within .form-input-icon {
  color: var(--red);
}

body.theme-white .form-input {
  color: var(--dark-grey, #1a1a1a);
  background-color: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
}

body.theme-white .form-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

body.theme-white .form-input:focus {
  background-color: #ffffff;
  border-color: rgba(255, 51, 51, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.12);
}

.form-textarea-wrap {
  width: 100%;
}

.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: all 0.25s ease;
}

.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-textarea:focus {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 51, 51, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.15);
}

body.theme-white .form-textarea {
  color: var(--dark-grey, #1a1a1a);
  background-color: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
}

body.theme-white .form-textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

body.theme-white .form-textarea:focus {
  background-color: #ffffff;
  border-color: rgba(255, 51, 51, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.12);
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 0.25rem;
}

.calum-send-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  min-height: 48px;
  min-width: 140px;
  border-radius: var(--radius-pill, 9999px);
  background-color: #111111;
  color: #ffffff;
  border: 1px solid #111111;
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
}

body.theme-white .calum-send-btn {
  background-color: var(--dark-grey, #111111);
  color: #ffffff;
  border-color: var(--dark-grey, #111111);
}

.calum-send-btn:hover:not(:disabled):not(.is__loading):not(.is__success) {
  background-color: var(--red);
  color: #ffffff;
  border-color: var(--red);
  transform: none;
  box-shadow: none;
}

.calum-send-btn.is__loading {
  min-width: 48px !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  cursor: wait;
  background-color: #111111 !important;
  border-color: #111111 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.calum-send-btn.is__success {
  min-width: 48px !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  cursor: default;
}

/* Spinner SVG animation */
.btn-spinner {
  animation: btnRotate 1s linear infinite;
  width: 22px;
  height: 22px;
  display: block;
}

.btn-spinner .spinner-path {
  stroke: #ffffff;
  stroke-linecap: round;
  animation: btnDash 1.4s ease-in-out infinite;
}

@keyframes btnRotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes btnDash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Success Checkmark SVG Animation */
.btn-check-svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.btn-check-svg .check-path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: btnCheckDraw 0.4s cubic-bezier(0.65, 0, 0.45, 1) forwards 0.05s;
}

@keyframes btnCheckDraw {
  100% {
    stroke-dashoffset: 0;
  }
}

.btn-arrow {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.form-status {
  display: none !important;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-muted, #737373);
}

body.theme-dark .footer-copy {
  color: rgba(255, 255, 255, 0.6);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-wib {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim, #888888);
}

.footer-back-to-top {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-back-to-top:hover {
  transform: translateY(-3px);
}

/* Toast notifications */
.portfolio-toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100vw - 48px);
}

.portfolio-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background-color: #1a1a1a;
  color: #ffffff;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-toast.is-show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.portfolio-toast.is-error {
  border-left: 4px solid #ef4444;
}

.portfolio-toast.is-success {
  border-left: 4px solid #10b981;
}

.portfolio-toast.is-info {
  border-left: 4px solid var(--red);
}

.portfolio-toast-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.portfolio-toast-svg {
  display: block;
}

.portfolio-toast.is-error .portfolio-toast-icon {
  color: #ef4444;
}

.portfolio-toast.is-success .portfolio-toast-icon {
  color: #10b981;
}

.portfolio-toast.is-info .portfolio-toast-icon {
  color: var(--red);
}

.portfolio-toast-body {
  flex: 1;
}

.portfolio-toast-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 2px;
  color: #ffffff;
}

.portfolio-toast-msg {
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
}

.portfolio-toast-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.portfolio-toast-close:hover {
  color: #ffffff;
  transform: scale(1.1);
}
