/* #region ======= Global Parameters ======= */
:root {
  /* ===== COLORS ===== */

  --color-text-light: #555666;
  --color-text-error: #dc3545;
  --color-text-error-dark: #721c24;

  --color-black: #1e1e14;
  --color-page-bg: #c2cad0;
  --color-primary: #3B5B73;
  --color-primary-dark: #314d61;
  --color-white: #ffffff;

  --color-error-bg: #f87680;
  --color-error-border: #f5c6cb;
  --color-success-validation: rgb(69, 201, 80);

  /*Transparent & Shadow Colors */
  --color-shadow-light: rgba(0, 0, 0, 0.1);
  --color-shadow-dark: rgba(0, 0, 0, 0.5);
  --color-overlay-dark: rgba(0, 0, 0, 0.15);
  --color-black-transparent: rgba(30, 30, 20, 0.5);
  --color-primary-transparent: rgba(59, 91, 115, 0.5);
  --color-error-transparent: rgba(220, 53, 69, 0.5);
  --color-success-transparent: rgba(134, 245, 143, 0.5);

  /* ===== TYPOGRAPHY ===== */
  --font-primary: 'interstate-mono', monospace;
  --font-secondary: 'Nunito', sans-serif;

  /* ===== SPACING ===== */
  --gap-small: 0.5rem;
  --gap-medium: 1rem;
  --gap-large: 1.25rem;
  --gap-xl: 2rem;

  /* ===== TRANSITIONS & ANIMATIONS ===== */
  --duration-fast: 0.25s;
  --duration-medium: 0.3s;
  --duration-smooth: 0.35s;
  --duration-slow: 0.5s;
  --duration-xslow: 1s;

  --ease-default: ease;
  --ease-in-out: ease-in-out;
  --ease-out: ease-out;
  --ease-bouncy: cubic-bezier(.4, 1.1, .6, 1);
  --ease-smooth: cubic-bezier(.4, 1, .6, 1);
  --ease-aggressive: cubic-bezier(.4, 2, .6, 1);
  --ease-logo-hover: cubic-bezier(0.075, 0.82, 0.165, 1);
  --wave-delay-base: 0.25s;

  /* ===== BORDERS & RADII ===== */
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-pill: 999px;
  --border-width-medium: 2px;
  --border-width-thick: 3px;


  /* ===== SHADOWS ===== */
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 10px 20px var(--color-shadow-light);

  /* ===== Z-INDEXES ===== */
  --z-base: 1;
  --z-content: 2;
  --z-interactive: 10;
  --z-footer: 100;
  --z-nav: 1000;
  --z-overlay: 101;
  --z-sidebar: 1001;

  /* ===== TRANSFORMS ===== */
  --transform-scale-hover: scale(1.1);
  --transform-scale-hover-small: scale(1.05);
  --transform-translate-up-small: translateY(-3px);
}

/*  #endregion */

/* #region ============ BODY STYLES ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-page-bg);
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--color-page-bg);
  min-height: 100dvh;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-black);
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
  min-height: 100dvh;
}

body.fade-out {
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-in-out);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--gap-xl);
}

/*  #endregion */

/* #region ============= Base Typography ============= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  color: var(--color-black);
}

p {
  font-family: var(--font-primary);
  font-weight: lighter;
}

a {
  color: inherit;
  text-decoration: none;
}

.footer-title,
.section-title,
.project-info h3,
.gallery-info h4,
.container h1 {
  font-family: var(--font-secondary);
}

/* #endregion */

/* #region ===== NAVIGATION ===== */
nav {
  background: transparent;
  padding: clamp(0.5rem, 2vh, 1rem) 0;
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: clamp(60px, 10vh, 80px);
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  gap: var(--gap-medium);
}

.logo {
  position: absolute;
  left: clamp(0.5rem, 1vw, 2vw);
}

.logo-img {
  height: clamp(38px, 9vw, 48px);
  width: auto;
  display: block;
  transition: transform var(--duration-medium) var(--ease-logo-hover);
}

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

.nav-link {
  border: var(--border-width-medium) solid var(--color-black);
  background-color: var(--color-page-bg);
  border-radius: var(--radius-pill);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: background-color var(--duration-medium), border-color var(--duration-medium), transform var(--duration-medium);
}

.nav-link:hover {
  transform: scale(var(--transform-scale-hover-small));
}

.nav-link a {
  display: block;
  padding: 0.3em 1.2em;
  font-weight: 500;
  font-family: var(--font-secondary);
  color: var(--color-black);
  position: relative;
  z-index: var(--z-content);
  transition: color var(--duration-medium);
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  z-index: var(--z-base);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-smooth) var(--ease-smooth);
}

.nav-link:hover::before {
  transform: scaleX(1);
}

.nav-link:hover a {
  color: var(--color-black);
}

/*  #endregion */

/* #region ======= Hamburger Menu ======= */
.menu-button {
  display: none;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  height: clamp(48px, 9vw, 64px);
  width: clamp(48px, 9vw, 64px);
}

.menu-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: var(--radius-pill);
  transition: background-color var(--duration-medium) var(--ease-default);
  height: 100%;
  width: 100%;
}

.menu-button a:hover {
  background-color: var(--color-primary);
}

/*  #endregion */

/* #region ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: 250px;
  z-index: var(--z-sidebar);
  background-color: var(--color-page-bg);
  box-shadow: -10px 0 10px var(--color-shadow-light);
  display: flex;
  flex-direction: column;
  padding: 6rem 1rem 2rem 1rem;
  gap: var(--gap-medium);
  transform: translateX(100%);
  transition: transform var(--duration-medium) var(--ease-default), visibility var(--duration-medium);
  visibility: hidden;
  justify-content: flex-start;
}

.sidebar.active {
  visibility: visible;
  display: flex;
  transform: translateX(0);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-overlay-dark);
  z-index: var(--z-overlay);
  opacity: 0;
  transition: opacity var(--duration-medium) var(--ease-default);
  pointer-events: none;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/*Sidebar Close Button */
.sidebar li:first-child {
  position: absolute;
  top: calc((clamp(60px, 10vh, 80px) - clamp(38px, 9vw, 48px)) / 2);
  right: 1rem;
  height: clamp(48px, 9vw, 64px);
  width: clamp(48px, 9vw, 64px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li:first-child a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-pill);
  transition: background-color var(--duration-medium) var(--ease-default);
  text-decoration: none;
}

.sidebar li:first-child a:hover {
  background-color: var(--color-primary);
}

/*Sidebar Links */
.sidebar li:not(:first-child) {
  width: 100%;
  list-style: none;
  border: var(--border-width-medium) solid var(--color-black);
  background-color: var(--color-page-bg);
  border-radius: var(--radius-pill);
  padding: 0.3em 1.2em;
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration-medium);
  min-height: 48px;
  flex-shrink: 0;
}

.sidebar li:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  z-index: var(--z-base);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-smooth) var(--ease-smooth);
}

.sidebar li:hover::before {
  transform: scaleX(1);
}

.sidebar a {
  width: 100%;
  padding: 0.5rem 0;
  text-decoration: none;
  color: var(--color-black);
  font-family: var(--font-primary);
  font-weight: 300;
  position: relative;
  z-index: var(--z-content);
  transition: color var(--duration-medium);
  min-height: 24px;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.sidebar li:hover a {
  color: var(--color-black);
}

/*  #endregion */

/* #region ===== TEMP SECTION ===== */
.temp-section {
  min-height: 200dvh;
  padding: var(--gap-xl) 0;
  background: var(--color-page-bg);
  text-align: center;
}

.temp-section-small {
  min-height: 100dvh;
  padding: var(--gap-xl) 0;
  background: var(--color-page-bg);
  text-align: center;
}

/*  #endregion */

/* #region ===== FOOTER ===== */
.contact-footer {
  position: sticky;
  z-index: var(--z-base);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 90dvh;
  padding-top: 4rem;
  background-color: var(--color-primary);
  border-radius: 50% / 10%;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  filter: drop-shadow(0 12px 30px var(--color-shadow-dark));
  overflow: hidden;
  z-index: var(--z-footer);
}

.footer-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  width: 100%;
  max-width: 800px;
  padding: var(--gap-xl) 1rem;
  position: relative;
  z-index: var(--z-content);
  text-align: center;
}

.footer-title {
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 1rem;
}

.footer-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-black);
  max-width: 550px;
  line-height: 1.6;
  margin: 0 auto 1.5rem;
}

.footer-cta-button {
  display: inline-block;
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-black);
  padding: 0.8em 2.5em;
  border-radius: var(--radius-pill);
  transition: transform var(--duration-fast) var(--ease-bouncy), background-color var(--duration-fast) var(--ease-default);
}

.footer-cta-button:hover {
  background-color: var(--color-white);
  color: var(--color-black);
  transform: var(--transform-scale-hover-small);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-large);
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.footer-link {
  font-weight: 500;
  color: var(--color-black);
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-black);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform var(--duration-fast) var(--ease-out);
}

.footer-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.link-separator {
  color: var(--color-black-transparent);
  user-select: none;
}

.footer-bottom-bar {
  width: 100%;
  padding: 1.5rem var(--gap-xl);
  background-color: var(--color-shadow-light);
  position: relative;
  z-index: var(--z-content);
}

.footer-bottom-bar p {
  margin: 0;
  font-size: 0.875rem;
}

/*  #endregion */

/* #region =================================== LANDING PAGE =================================== */
.landing {
  margin: 0;
  position: relative;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap-xl);
}

.job-role-container {
  position: fixed;
  z-index: var(--z-interactive);
  top: calc(45vh - 3.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--gap-small);
  white-space: nowrap;
}

/* #region ===== TYPEWRITER ANIMATION ===== */
.typewriter-animation {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 1.1rem + 3vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.106em;
  color: var(--color-black);
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 4px solid var(--color-black);
  animation: blinkingCursor 650ms steps(50) infinite normal;
  width: auto;
  opacity: 1;
  will-change: opacity, transform;
  transition: left var(--duration-xslow) var(--ease-bouncy),
    transform var(--duration-xslow) var(--ease-bouncy),
    opacity var(--duration-slow) var(--ease-out);
}

@keyframes blinkingCursor {
  from {
    border-right-color: var(--color-black);
  }

  to {
    border-right-color: transparent;
  }
}

/* ===== SCROLL TITLE ===== */
#scroll-title {
  position: absolute;
  width: 100%;
  top: calc(45vh - 7rem);
  left: 0;
  transform: none;
  color: var(--color-black);
  font-weight: 800;
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 1rem + 8vw, 8rem);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1.1;
  padding: 0.5em 1rem;
  word-break: break-word;
  opacity: 0;
  transition: transform var(--duration-medium) var(--ease-aggressive), opacity var(--duration-medium);
  will-change: transform, opacity;
}

/* ===== BOTTOM GIF ===== */
.bottom-gif {
  user-select: none;
  position: fixed;
  bottom: 0;
  left: 0%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  z-index: var(--z-interactive);
  opacity: 0;
  will-change: transform, opacity;
  width: 100vw;
  overflow: hidden;
  height: auto;
}

.bottom-gif img {
  user-select: none;
  margin-bottom: 0;
  mix-blend-mode: multiply;
  background: transparent;
  width: auto;
  height: clamp(250px, 40vh, 550px);
  display: block;
  margin: 0 auto;
}

/*  #endregion */

/* #region ===== SCROLL INDICATOR ===== */
.scroll-down-text {
  position: fixed;
  top: 66vh;
  right: 2vw;
  display: flex;
  align-items: center;
  font-size: clamp(0.7rem, 3vw, 1rem);
  font-family: var(--font-primary);
  font-weight: 300;
  color: var(--color-primary);
  z-index: var(--z-interactive);
  background: transparent;
  padding: clamp(0.25rem, 1vw, 0.5rem) clamp(0.5rem, 2vw, 1rem);
  border-radius: var(--radius-medium);
  pointer-events: none;
  gap: clamp(0.1rem, 0.5vw, 0.25rem);
  opacity: 0;
  will-change: opacity;
}

.arrow-icon {
  display: flex;
  align-items: center;
  margin-right: clamp(0.1rem, 0.5vw, 0.25rem);
}

.arrow-icon svg {
  width: clamp(16px, 4vw, 24px);
  height: clamp(16px, 4vw, 24px);
}

.arrow-icon path {
  stroke: var(--color-primary);
}

/*  #endregion */

/* #region ===== DRAG AND DROP NAVIGATION ===== */
.categorySelect {
  position: fixed;
  top: calc(51vh + 1rem);
  scale: 1.3;
  left: 27%;
  right: 27%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: min(95vw, 850px);
  font-size: min(1rem, 2vw);
  font-weight: 500;
  font-family: var(--font-primary);
  border: var(--border-width-thick) dashed var(--color-black);
  border-radius: var(--radius-medium);
  padding: 0.75rem 1rem;
  z-index: var(--z-interactive);
  cursor: grab;
  pointer-events: auto;
  will-change: opacity;
  opacity: 0;
  transition: opacity 0.7s var(--ease-smooth), transform var(--duration-medium);
}

.categorySelect.visible {
  opacity: 1;
}

.categorySelect.scrolled {
  animation: wave 3s ease-in-out infinite;
  opacity: 1;
  will-change: opacity;
  justify-content: center;
  top: calc(51vh + 1rem);
  left: 27%;
  right: 27%;
  scale: 1.3;
}

.categorySelect.exiting {
  opacity: 0;
  transition: none;
}

.categorySelect span[draggable="true"] {
  display: inline-block;
  padding: 0.5em 0.5em;
  margin: 0.2em;
  user-select: none;
  color: var(--color-black);
  animation: wave 2s ease-in-out infinite;
  transition: all 0.2s var(--ease-default);
}

.categorySelect span[draggable="true"]:hover {
  border: var(--border-width-medium) solid var(--color-black);
  border-radius: var(--radius-pill);
  animation: wave 2s ease-in-out infinite, shake 0.3s ease-in-out infinite;
  padding: 0.52em 1.2em;
}

.categorySelect .bracket {
  color: var(--color-primary);
  font-weight: 800;
  display: inline;
  padding: 0.2em 0.1em;
  margin: 0;
  animation: none;
  border: none;
  transition: none;
}

/*  #endregion */

/*Category Drop Zone */
#category-drop-zone {
  opacity: 0;
  border-bottom: 4px solid var(--color-primary);
  background: transparent;
  min-width: 200px;
  min-height: 60px;
  display: none;
  align-items: center;
  justify-content: flex-start;
  transition: all var(--duration-medium) var(--ease-smooth), opacity 0.7s var(--ease-in-out);
}

#category-drop-zone.scrolled {
  display: inline-flex;
  opacity: 1;
  transition: all var(--duration-medium) var(--ease-smooth), opacity 0.7s var(--ease-in-out);
}

#category-drop-zone.drag-over {
  background: var(--color-primary-transparent);
  border-color: var(--color-primary);
  transform: translateX(-50%) var(--transform-scale-hover-small);
}

.placeholder-text {
  color: var(--color-black);
  font-style: italic;
  font-size: clamp(1rem, 1.1rem + 3vw, 4rem);
  font-weight: 300;
  text-align: left;
  opacity: 0.5;
}

#category-drop-zone span[draggable="true"] {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 1.1rem + 3vw, 4rem);
  text-align: left;
  font-weight: 300;
  cursor: grab;
  color: var(--color-black);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-medium);
}

/*  #endregion */

/* #region =================================== PROJECTS PAGE =================================== */
.page-header {
  text-align: center;
  padding: 4rem var(--gap-xl);
}

.page-header h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-black);
  max-width: 600px;
  margin: 0 auto;
}

.project-section {
  cursor: pointer;
  padding: 4rem;
  border-top: var(--border-width-medium) solid var(--color-black);
}

.section-title {
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--color-black);
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;

}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-xl);
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-card {
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--color-white);
  border: var(--border-width-thick) solid var(--color-black);
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-medium) var(--ease-default),
    box-shadow var(--duration-medium) var(--ease-default);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: var(--transform-scale-hover-small);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary);
}

.project-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-bottom: var(--border-width-medium) solid var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 1.5rem;
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--color-text-light);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.project-link {
  display: inline-block;
  text-align: center;
  padding: 0.6em 1.2em;
  border: var(--border-width-medium) solid var(--color-black);
  border-radius: var(--radius-pill);
  color: var(--color-black);
  font-weight: 500;
  text-decoration: none;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  z-index: var(--z-base);
  transition: color var(--duration-medium);
}

.project-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-smooth) var(--ease-smooth);
}

.project-link:hover::before {
  transform: scaleX(1);
}

/* #endregion */

/* #region ========== Developper Timeline ========== */
.developper-timeline {
  position: relative;
  max-width: 48rem;
  margin: 0 auto var(--gap-xl);
  padding: 0 0 0 3rem;
  list-style: none;
}

.developper-timeline::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  width: var(--border-width-thick);
  border-radius: var(--radius-pill);
  background: var(--color-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--gap-xl);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  top: 1.25rem;
  left: -2.75rem;
  width: 1rem;
  height: 1rem;
  border: var(--border-width-medium) solid var(--color-primary);
  border-radius: 50%;
  background: var(--color-page-bg);
}

.timeline-content {
  padding: 1.5rem;
  border: var(--border-width-medium) solid var(--color-black);
  border-radius: var(--radius-medium);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.timeline-date {
  margin-bottom: var(--gap-small);
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin-bottom: var(--gap-small);
  font-family: var(--font-secondary);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--color-black);
}

.timeline-content p:last-child {
  margin: 0;
  color: var(--color-text-light);
}

/* #endregion */

/* #region ========== Travel Photography Gallery Styles ==========*/
#traveller-page .container,
#foodie-page .container {
  max-width: 100%;
  padding-left: min(5rem, 5vh);
  padding-right: min(5rem, 5vh);
}

.gallery-description {
  max-width: 48rem;
  margin: 0 auto var(--gap-xl);
  text-align: center;
  color: var(--color-primary);
}

.travel-map {
  max-width: 1180px;
  margin: 0 auto clamp(2.5rem, 7vw, 5rem);
  padding: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  border: var(--border-width-thick) solid var(--color-black);
  border-radius: clamp(1rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-card-hover);
}

.travel-map-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap-xl);
  margin-bottom: var(--gap-large);
}

.travel-map-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.travel-map-heading>p {
  max-width: 28rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.travel-map-eyebrow {
  margin-bottom: 0.25rem;
  color: var(--color-primary);
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.travel-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.75fr);
  gap: var(--gap-large);
  align-items: stretch;
}

.travel-map-canvas {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, #466b84, #263f52);
  border: var(--border-width-medium) solid var(--color-black);
  border-radius: var(--radius-medium);
  aspect-ratio: 1000 / 560;
}

.travel-map-art,
.travel-map-pins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.travel-map-art {
  z-index: 0;
}

.travel-map-grid path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.travel-map-land {
  fill: url(#map-land-gradient);
}

.travel-map-border {
  fill: none;
  stroke: rgba(30, 30, 20, 0.3);
  stroke-width: 3;
  stroke-dasharray: 8 8;
}

.travel-map-coast {
  fill: none;
  stroke: var(--color-black);
  stroke-width: 5;
  stroke-linecap: round;
}

.travel-map-route {
  fill: none;
  stroke: #fff4d4;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 5 15;
  animation: travel-route-dash 18s linear infinite;
}

.travel-map-labels {
  fill: rgba(30, 30, 20, 0.52);
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.travel-map-labels text:last-child {
  fill: rgba(255, 255, 255, 0.48);
  font-size: 14px;
}

@keyframes travel-route-dash {
  to {
    stroke-dashoffset: -200;
  }
}

.travel-map-pins {
  z-index: var(--z-content);
  pointer-events: none;
}

.travel-map-pin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--color-black);
  background: none;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform var(--duration-medium) var(--ease-bouncy);
}

.travel-map-pin:hover,
.travel-map-pin:focus-visible,
.travel-map-pin.is-selected {
  z-index: var(--z-interactive);
  transform: translate(-50%, -50%) scale(1.08);
}

.travel-map-pin:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 0.35rem;
  border-radius: var(--radius-small);
}

.travel-map-pin-dot {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--color-white);
  border: var(--border-width-medium) solid var(--color-black);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 4px 10px var(--color-shadow-dark);
  transform: rotate(-45deg);
}

.travel-map-pin-dot::after {
  content: '';
  position: absolute;
  inset: 0.25rem;
  background: var(--color-primary);
  border-radius: 50%;
}

.travel-map-pin.is-selected .travel-map-pin-dot {
  background: #fff4d4;
  animation: travel-pin-pulse 1.6s ease-out infinite;
}

@keyframes travel-pin-pulse {
  50% {
    box-shadow: 0 0 0 9px rgba(255, 244, 212, 0.2), 0 5px 12px var(--color-shadow-dark);
  }
}

.travel-map-pin-label {
  position: absolute;
  top: calc(100% - 0.2rem);
  left: 50%;
  padding: 0.25rem 0.5rem;
  color: var(--color-white);
  background: rgba(30, 30, 20, 0.86);
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: clamp(0.58rem, 1.2vw, 0.72rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.travel-map-caption {
  position: absolute;
  left: 1rem;
  bottom: 0.75rem;
  z-index: var(--z-content);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
}

.travel-destination-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  background: var(--color-white);
  border: var(--border-width-medium) solid var(--color-black);
  border-radius: var(--radius-medium);
  flex-direction: column;
}

.travel-destination-media {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.travel-destination-media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: block;
  object-fit: cover;
  transition: opacity var(--duration-medium) var(--ease-default), transform var(--duration-slow) var(--ease-default);
}

.travel-destination-card:hover .travel-destination-media img {
  transform: scale(1.035);
}

.travel-destination-count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.65rem;
  color: var(--color-white);
  background: rgba(30, 30, 20, 0.82);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
}

.travel-destination-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.travel-destination-copy h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.travel-destination-copy>p:not(.travel-map-eyebrow) {
  margin-bottom: 1.25rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.55;
}

.travel-map-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: auto;
  padding: 0.7rem 1rem;
  color: var(--color-white);
  background: var(--color-primary);
  border: var(--border-width-medium) solid var(--color-black);
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--duration-medium) var(--ease-bouncy), background-color var(--duration-medium);
}

.travel-map-action:hover,
.travel-map-action:focus-visible {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.travel-map-action:focus-visible,
.travel-map-location:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.travel-map-locations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap-small);
  margin-top: var(--gap-large);
}

.travel-map-location {
  padding: 0.5rem 0.85rem;
  color: var(--color-black);
  background: transparent;
  border: var(--border-width-medium) solid var(--color-black);
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  cursor: pointer;
  transition: color var(--duration-medium), background-color var(--duration-medium), transform var(--duration-medium);
}

.travel-map-location:hover,
.travel-map-location.is-selected {
  color: var(--color-white);
  background: var(--color-primary);
  transform: translateY(-2px);
}

.gallery-item.is-map-highlighted {
  outline: 5px solid #fff4d4;
  outline-offset: 6px;
  box-shadow: 0 0 0 10px var(--color-primary-transparent), var(--shadow-card-hover);
  animation: travel-gallery-highlight 0.7s var(--ease-bouncy) 2 alternate;
}

@keyframes travel-gallery-highlight {
  to {
    transform: scale(1.035);
  }
}

.travel-world-map-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(145deg, #466b84, #263f52);
  border: var(--border-width-medium) solid var(--color-black);
  border-radius: var(--radius-medium);
  box-shadow: inset 0 0 50px rgba(30, 30, 20, 0.18);
  aspect-ratio: 2048 / 1038.75;
}

.travel-world-map-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 10px 14px rgba(30, 30, 20, 0.22));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.travel-country-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.travel-country-pin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--color-black);
  background: transparent;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform var(--duration-medium) var(--ease-bouncy);
}

.travel-country-pin:hover,
.travel-country-pin:focus-visible {
  z-index: var(--z-interactive);
  transform: translate(-50%, -50%) scale(1.16);
}

.travel-country-pin:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 2px;
  border-radius: 50%;
}

.travel-country-pin-marker {
  position: relative;
  width: 1.45rem;
  height: 1.45rem;
  background: #d92d2d;
  border: var(--border-width-medium) solid var(--color-black);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 5px 12px var(--color-shadow-dark);
  transform: rotate(-45deg);
  animation: country-pin-bob 1.8s ease-in-out infinite;
}

.travel-country-pin-marker::after {
  content: '';
  position: absolute;
  inset: 0.32rem;
  background: var(--color-white);
  border-radius: 50%;
}

.travel-country-pin-label {
  position: absolute;
  left: 50%;
  padding: 0.28rem 0.55rem;
  color: var(--color-white);
  background: rgba(30, 30, 20, 0.9);
  border-radius: var(--radius-pill);
  font-size: clamp(0.62rem, 1.3vw, 0.78rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.travel-country-pin.label-above .travel-country-pin-label {
  bottom: calc(100% - 0.15rem);
}

.travel-country-pin.label-below .travel-country-pin-label {
  top: calc(100% - 0.15rem);
}

@keyframes country-pin-bob {
  50% {
    transform: rotate(-45deg) translate(3px, -3px);
  }
}

.travel-map-legend {
  position: absolute;
  left: clamp(0.5rem, 2vw, 1rem);
  bottom: clamp(0.5rem, 2vw, 1rem);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  color: var(--color-white);
  background: rgba(30, 30, 20, 0.82);
  border-radius: var(--radius-pill);
  font-size: clamp(0.58rem, 1.4vw, 0.75rem);
}

.travel-map-legend span {
  width: 0.65rem;
  height: 0.65rem;
  background: #d92d2d;
  border: 1px solid var(--color-white);
  border-radius: 50%;
}

body.travel-dialog-open {
  overflow: hidden;
}

.travel-country-dialog {
  width: min(1100px, 94vw);
  max-width: none;
  height: min(88dvh, 900px);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  background: var(--color-page-bg);
  border: var(--border-width-thick) solid var(--color-black);
  border-radius: clamp(0.75rem, 2vw, 1.5rem);
  box-shadow: 0 24px 70px rgba(30, 30, 20, 0.42);
}

.travel-country-dialog::backdrop {
  background: rgba(30, 30, 20, 0.72);
  backdrop-filter: blur(5px);
}

.travel-country-dialog-content {
  position: relative;
  height: 100%;
  padding: clamp(1rem, 3vw, 2rem);
  overflow-y: auto;
}

.travel-country-close {
  position: sticky;
  top: 0;
  z-index: var(--z-interactive);
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  margin-bottom: -2.75rem;
  padding: 0;
  place-items: center;
  color: var(--color-white);
  background: var(--color-black);
  border: var(--border-width-medium) solid var(--color-black);
  border-radius: 50%;
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--duration-medium), background-color var(--duration-medium), transform var(--duration-medium);
}

.travel-country-close:hover,
.travel-country-close:focus-visible {
  color: var(--color-black);
  background: var(--color-white);
  transform: rotate(8deg) scale(1.05);
}

.travel-country-close:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.travel-country-header {
  margin-bottom: var(--gap-xl);
  padding-right: 3.5rem;
}

.travel-country-header h2 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
}

.travel-country-header>p:last-child {
  color: var(--color-text-light);
}

.travel-country-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-large);
  align-items: start;
}

.travel-country-moment {
  overflow: hidden;
  background: var(--color-white);
  border: var(--border-width-medium) solid var(--color-black);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
}

.travel-country-moment img,
.travel-country-moment video {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  background: var(--color-black);
  object-fit: cover;
}

.travel-country-moment figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 1rem;
}

.travel-country-moment strong {
  font-family: var(--font-secondary);
}

.travel-country-moment span {
  color: var(--color-text-light);
  font-size: 0.75rem;
}

.gallery-section {
  margin-bottom: var(--gap-xl);
}

.gallery-grid {
  column-count: 1;
  column-gap: var(--gap-xl);
}

.gallery-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 var(--gap-xl);
  break-inside: avoid;
  overflow: hidden;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-medium) var(--ease-default),
    box-shadow var(--duration-medium) var(--ease-default);

}

.gallery-item:hover {
  transform: var(--transform-scale-hover-small);
  box-shadow: var(--shadow-card-hover);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item video {
  background: var(--color-black);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-shadow-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-medium) var(--ease-default);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-within .gallery-overlay {
  opacity: 1;
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  color: var(--color-white);
}

.gallery-info h4 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--color-white);
}

.gallery-info p {
  margin: 0;
  font-size: 0.875rem;
}

.video-item .gallery-info {
  top: 0;
  bottom: auto;
}

/* #endregion */

/* #region ========== 3d Models and Design Styles ==========*/
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-overlay-dark);
  z-index: var(--z-nav);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-medium) var(--ease-in-out);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card-hover);
  position: relative;
  width: 90vw;
  height: 85vh;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 0.1rem;
  right: 0.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-text-light);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--duration-fast);
}

.modal-close:hover {
  color: var(--color-black);
}

#model-canvas-container {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#model-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.modal-instructions {
  text-align: center;
  color: var(--color-text-light);
  margin-top: 1rem;
  font-style: italic;
}

/* #endregion */

/* #region =================================== CONTACT PAGE =================================== */
.container h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 1rem;
}

.form-messages {
  margin-bottom: var(--gap-xl);
  padding: 1rem;
  border-radius: var(--radius-medium);
  display: none;
  animation: slideIn var(--duration-medium) var(--ease-out);
}

.form-messages.success {
  background-color: var(--color-primary);
  color: var(--color-white);
  display: block;
}

.form-messages.error {
  background-color: var(--color-error-bg);
  color: var(--color-text-error-dark);
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group.message-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/*Labels */
form label {
  display: block;
  font-family: var(--font-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-black);
}

.required {
  color: var(--color-text-error);
  font-weight: bold;
  margin-left: 0.25rem;
}

.optional {
  color: var(--color-text-light);
  font-weight: normal;
  font-style: italic;
  font-size: 0.9em;
  margin-left: 0.25rem;
}


/*Input Fields */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
  width: 100%;
  max-width: none;
  padding: 0.75rem;
  border: var(--border-width-medium) solid var(--color-black);
  border-radius: var(--radius-medium);
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: border-color var(--duration-medium) var(--ease-default),
    box-shadow var(--duration-medium) var(--ease-default);
  background-color: var(--color-white);
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus-primary);
}

form input.error-field,
form textarea.error-field {
  border-color: var(--color-text-error);
  box-shadow: 0 0 0 3px var(--color-error-transparent);
}

form input.success-field,
form textarea.success-field {
  border-color: var(--color-success-validation);
  box-shadow: 0 0 0 3px var(--color-success-transparent);
}

form textarea {
  resize: none;
  overflow-y: auto;
  min-height: calc(30vh - 100px);
  max-height: calc(40vh - 100px);
  height: calc(35vh - 100px);
  line-height: 1.5;
}

.message-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.field-hint {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

.character-counter {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.character-counter.warning {
  color: var(--color-primary);
}

.character-counter.valid {
  color: var(--color-success-validation);
}

.error-message {
  color: var(--color-text-error);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
  min-height: 1.2em;
  line-height: 1.2;
  animation: errorSlide var(--duration-medium) var(--ease-out);
}

.error-message:empty {
  display: none;
}

@keyframes errorSlide {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.submit-button {
  width: 100%;
  padding: 1rem var(--gap-xl);
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-black) 100%);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-medium);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-medium) var(--ease-aggressive);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-button:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  transform: var(--transform-scale-hover-small);
  box-shadow: var(--shadow-card-hover);
}

.submit-button:active:not(:disabled) {
  transform: translateY(0);
}

.submit-button:disabled {
  background: var(--color-text-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid var(--color-white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

.submit-button.loading .button-spinner {
  display: block;
}

.submit-button.loading .button-text {
  margin-right: 0.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* #endregion */

/* #region =================================== ABOUT PAGE =================================== */

.about-page-main {
  height: 150dvh;
}

.about-page-main.container {
  max-width: 1200px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.scroll-animation-container {
  position: sticky;
  top: 25%;
  height: 100vh;
  display: flex;
  align-items: center top;
  justify-content: center;
  padding: 2rem 1rem;
}

.sticky-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  width: 100%;
  max-width: 1100px;
  height: auto;
}

.text-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  padding-right: 2rem;
}

/* Photo Coin Styles */
.about-image-stack {
  perspective: 1200px;
  width: 30vh;
  height: 30vh;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

.headshot {
  --coin-depth: 12px;
  top: 5vh;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  cursor: grab;
  touch-action: pan-y;
  transform: rotateY(var(--coin-rotation, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
  display: grid;
  place-items: center;
}

.headshot.is-dragging {
  cursor: grabbing;
}

.headshot.is-key-spinning {
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.headshot:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 0.4rem;
  border-radius: 50%;
}

.headshot::before,
.headshot::after {
  content: '';
  position: absolute;
  inset: 0;
  border: var(--border-width-thick) solid var(--color-black);
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
  box-sizing: border-box;
}

.headshot::before {
  transform: translateZ(calc(var(--coin-depth) + 1px));
}

.headshot::after {
  transform: rotateY(180deg) translateZ(calc(var(--coin-depth) + 1px));
}

.coin-depth-layer {
  position: absolute;
  inset: 1px;
  border: 2px solid var(--color-black);
  border-radius: 50%;
  background: var(--color-primary);
  box-sizing: border-box;
  pointer-events: none;
  transform: translateZ(var(--layer-depth));
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.coin-depth-layer:nth-child(even) {
  background: color-mix(in srgb, var(--color-primary) 72%, var(--color-black));
}

.headshot-face {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-position: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 50%;
  pointer-events: none;
  -webkit-user-drag: none;
}

.doodle-image {
  transform: translateZ(var(--coin-depth));
}

.real-photo {
  transform: rotateY(180deg) translateZ(var(--coin-depth));
}

/* Text Stack Styles */
.about-text-stack {
  position: relative;
  flex: 1;
  height: auto;
}

.text-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  padding-right: 2rem;
}

.text-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.text-block h1 {
  text-align: left;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 1rem;
  font-family: var(--font-secondary);
}

.block-text {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-family: var(--font-primary);
  letter-spacing: 0.01em;
}


.resume-btn {
  display: inline-block;
  font-weight: 600;
  font-family: var(--font-primary);
  text-align: center;
  color: var(--color-black);
  background-color: transparent;
  border: var(--border-width-medium) solid var(--color-black);
  padding: 0.75em 1.25em;
  border-radius: var(--radius-pill);
  transition: transform var(--duration-medium) var(--ease-aggressive),
    background-color var(--duration-medium) var(--ease-default);
  margin-top: var(--gap-large);
}

.resume-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-black);
  transform: scale(1.05);
}

@media (max-width: 1200px) {
  .sticky-wrapper {
    gap: 4rem;
    max-width: 1100px;
  }
}

@media (max-width: 768px) {
  .scroll-animation-container {
    padding: 1rem;
    align-items: flex-start;
    padding-top: 3rem;
  }

  .sticky-wrapper {
    display: block;
    text-align: left;
    max-width: none;
  }

  .about-image-stack {
    width: 28vh;
    height: 28vh;
    margin: 0 auto 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about-text-stack {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
  }

  .text-block {
    padding-right: 0;
    position: absolute;
    top: 0vh;
    left: 0;
    transform: translateY(0);
    margin-bottom: 0;
    width: 100%;
  }

  .headshot {
    top: 0vh;
  }
}

@media (max-width: 480px) {
  .scroll-animation-container {
    padding-top: 1rem;
  }

  .sticky-wrapper {
    gap: 1.5rem;
  }

  .about-image-stack {
    width: 25vh;
    height: 25vh;
  }

  .about-text-stack {
    margin-top: 0;
  }

  .text-block h1 {
    text-align: center;
    font-size: 1.8rem;
  }

  .block-text {
    font-size: 0.9rem;
  }
}

/* #endregion */

/* #region ===== CURSOR EFFECTS ===== */
.cursor-effects {
  opacity: 0;
  transform: scale(0);
  transition: opacity var(--duration-medium) var(--ease-default),
    transform var(--duration-medium) var(--ease-default);
  position: absolute;
  z-index: var(--z-base);
  width: 9vh;
  height: 9vh;
  border-radius: 50%;
  background-color: var(--color-white);
  pointer-events: none;
}

/*  #endregion */

/* #region ===== ANIMATIONS ===== */
@keyframes wave {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.33rem);
  }
}

@keyframes shake {
  0% {
    transform: rotate(3deg);
  }

  50% {
    transform: rotate(-3deg);
  }

  100% {
    transform: rotate(3deg);
  }
}


/*Wave Text Animation */
.wave-text span {
  display: inline-block;
  font-size: 1.5rem;
  animation: wave 2s ease-in-out infinite;
}

/* #region Character delays for wave text */
.wave-text span:nth-child(2) {
  animation-delay: 0s;
}

.wave-text span:nth-child(3) {
  animation-delay: 0.07s;
}

.wave-text span:nth-child(4) {
  animation-delay: 0.14s;
}

.wave-text span:nth-child(5) {
  animation-delay: 0.21s;
}

.wave-text span:nth-child(6) {
  animation-delay: 0.28s;
}

.wave-text span:nth-child(8) {
  animation-delay: 0.35s;
}

.wave-text span:nth-child(9) {
  animation-delay: 0.42s;
}

.wave-text span:nth-child(10) {
  animation-delay: 0.49s;
}

.wave-text span:nth-child(11) {
  animation-delay: 0.56s;
}

.wave-text span:nth-child(12) {
  animation-delay: 0.63s;
}

/*  #endregion */

/* #region Category select wave delays */
.categorySelect span:nth-child(1) {
  animation-delay: 0s, 0s;
}

.categorySelect span:nth-child(2) {
  animation-delay: calc(var(--wave-delay-base) * 1), 0s;
}

.categorySelect span:nth-child(3) {
  animation-delay: calc(var(--wave-delay-base) * 2), 0s;
}

.categorySelect span:nth-child(4) {
  animation-delay: calc(var(--wave-delay-base) * 3), 0s;
}

/*  #endregion */
/*  #endregion */

/* #region =================================== MEDIA QUERIES =================================== */

/*Desktop Navigation */
@media (min-width: 769px) {
  .hideOnMobile {
    display: list-item !important;
  }
}

/* #region Mobile Navigation */
@media (max-width: 768px) {
  .menu-button {
    display: flex !important;
  }

  .hideOnMobile {
    display: none !important;
  }

  .contact-footer {
    padding-top: var(--gap-xl);
    min-height: auto;
  }

  .footer-links {
    flex-direction: column;
  }

  .link-separator {
    display: none;
  }

  .container {
    padding: 1rem;
  }

  form textarea {
    min-height: calc(25vh - 80px);
    max-height: calc(35vh - 80px);
    height: calc(30vh - 80px);
  }

  .field-hint {
    font-size: 0.8rem;
    flex: 1;
    margin-right: 0.5rem;
  }

  .character-counter {
    font-size: 0.8rem;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .about-container {
    flex-direction: column;
  }

  .scroll-down-text {
    position: fixed;
    top: calc(50vh + 4rem);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
    width: auto;
    justify-content: center;
  }

  .categorySelect,
  .categorySelect.scrolled {
    left: 0;
    right: 0;
    width: calc(100vw - 2rem);
    max-width: 24rem;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.75rem;
    box-sizing: border-box;
    scale: 1;
    transform: none;
  }

  .categorySelect span[draggable="true"] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 2.75rem;
    margin: 0;
    padding: 0.5rem 0.25rem;
    font-size: clamp(0.75rem, 3.5vw, 1rem);
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
  }

  .categorySelect span[draggable="true"]:active {
    border: var(--border-width-medium) solid var(--color-black);
    border-radius: var(--radius-pill);
  }

  .gallery-overlay {
    background: linear-gradient(to top, var(--color-shadow-dark), transparent 45%);
    opacity: 1;
  }

  .video-item .gallery-overlay {
    background: linear-gradient(to bottom, var(--color-shadow-dark), transparent 45%);
  }
}

/*Small Mobile Sidebar */
@media (max-width: 400px) {
  .sidebar {
    width: 100%;
  }
}

/*Small Devices */
@media (max-width: 480px) {
  .bottom-gif img {
    height: clamp(200px, 27vh, 350px);
  }

  .scroll-down-text {
    top: 60vh;
    font-size: clamp(0.6rem, 2.5vw, 0.8rem);
    padding: clamp(0.2rem, 0.8vw, 0.4rem) clamp(0.4rem, 1.5vw, 0.8rem);
    gap: clamp(0.05rem, 0.3vw, 0.15rem);
    right: clamp(0.5rem, 1vw, 2vw);
  }
}

@media (max-width: 460px) {
  .job-role-container {
    flex-direction: column;
    align-items: center;
    gap: var(--gap-small);
  }

  #category-drop-zone {
    margin-left: 0;
    justify-content: center;
    min-height: 50px;
  }
}

@media (max-width: 850px) {
  .travel-map-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--gap-small);
  }

  .travel-map-layout {
    grid-template-columns: 1fr;
  }

  .travel-destination-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) 1fr;
  }

  .travel-country-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .travel-map {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding: 0.75rem;
  }

  .travel-map-canvas {
    aspect-ratio: 1000 / 560;
  }

  .travel-map-pin-label {
    display: none;
  }

  .travel-map-pin.is-selected .travel-map-pin-label {
    display: block;
  }

  .travel-map-caption {
    max-width: 65%;
  }

  .travel-destination-card {
    display: flex;
  }

  .travel-destination-media,
  .travel-destination-media img {
    min-height: 210px;
  }

  .travel-map-location {
    flex: 1 1 calc(50% - var(--gap-small));
  }

  .travel-country-dialog {
    width: 96vw;
    height: 92dvh;
  }

  .travel-country-gallery {
    grid-template-columns: 1fr;
  }

  .travel-map-legend {
    max-width: 55%;
  }
}

@media (min-width: 600px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    column-count: 3;
  }
}

/*Accessibility */
@media (prefers-contrast: high) {

  form input,
  form textarea {
    border-width: var(--border-width-thick);
  }

  .error-message {
    font-weight: bold;
  }
}

@media (prefers-reduced-motion: reduce) {

  .form-messages,
  .error-message,
  .submit-button {
    animation: none;
    transition: none;
  }

  .wave-text span,
  .categorySelect span[draggable="true"] {
    animation: none;
    border: none;
  }

  .travel-map-route,
  .travel-map-pin.is-selected .travel-map-pin-dot,
  .travel-country-pin-marker,
  .gallery-item.is-map-highlighted {
    animation: none;
  }

  .travel-map-pin,
  .travel-map-location,
  .travel-map-action,
  .travel-country-pin,
  .travel-country-close,
  .travel-destination-media img {
    transition: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.not-found-page {
  min-height: calc(100dvh - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.not-found-page h1,
.not-found-page p {
  margin: 0;
}

.not-found-code {
  font-family: var(--font-secondary);
  font-size: clamp(5rem, 20vw, 12rem);
  font-weight: 800;
  line-height: 0.8;
  color: var(--color-primary);
}

/* #endregion */
