/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Performance optimizations */
* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Optimize video loading */
video {
	will-change: transform;
	transform: translateZ(0);
	backface-visibility: hidden;
	perspective: 1000px;
}

/* Critical performance optimizations */
* {
	-webkit-tap-highlight-color: transparent;
}

/* Optimize images */
img {
	max-width: 100%;
	height: auto;
	will-change: transform;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
	* {
	    animation-duration: 0.01ms !important;
	    animation-iteration-count: 1 !important;
	    transition-duration: 0.01ms !important;
	}
}

/* General link styles */
a {
	text-decoration: none;
	transition: opacity 0.2s ease;
}

a:hover {
	opacity: 0.7;
	text-decoration: none;
	outline: none;
}

:root {
	/* Layout Variables */
	--container-padding: 2rem; /* 32px */
	--nav-font-size: 0.875rem; /* 14px */
	--nav-line-height: 1.125rem; /* 18px */
	--nav-spacing: 2rem; /* 32px */
	--hero-font-size: 1.5rem; /* 24px */
	--hero-line-height: 2rem; /* 32px */
	--status-spacing: 0.5rem; /* 8px */
	--pill-padding-y: 0.25rem; /* 6px */
	--pill-padding-x: 0.75rem; /* 12px */
	--dot-size: 0.5rem; /* 8px */
	--text-spacing: 1.5rem; /* 24px */
	--chevron-size: 1.5rem; /* 24px */
	--circle-size: 2rem; /* 32px */
	
	/* Border radius variables */
	--radius-sm: 0.25rem; /* 4px */
	--radius-md: 0.5rem; /* 8px */
	--radius-lg: 0.75rem; /* 12px */
	--radius-xl: 1rem; /* 16px */
	--radius-2xl: 1.5rem; /* 24px */
	--radius-full: 50%;
	
	/* Gap variables */
	--gap-xs: 0.25rem; /* 4px */
	--gap-sm: 0.5rem; /* 8px */
	--gap-md: 1rem; /* 16px */
	--gap-lg: 1.5rem; /* 24px */
	--gap-xl: 2rem; /* 32px */
	--gap-2xl: 3rem; /* 48px */
	--section-spacing: 148px; /* 0px - no spacing between sections */
	
	/* Typography Variables */
  --text-xs: 0.75rem; /* 12px */
	--text-sm: 0.875rem; /* 14px */
	--text-base: 1rem; /* 16px */
	--text-lg: 1.25rem; /* 20px */
	--text-xl: 1.5rem; /* 24px */
	--text-2xl: 2rem; /* 32px */
	--text-3xl: 2.5rem; /* 40px */
	
  --leading-xxs: 1rem;
  --leading-xs: 1.125rem;
	--leading-tight: 1.25rem; /* 20px */
	--leading-normal: 1.5rem; /* 24px */
	--leading-relaxed: 1.75rem; /* 28px */
	--leading-loose: 2rem; /* 32px */
	--leading-xl: 2.5rem; /* 40px */
	--leading-2xl: 3rem; /* 48px */
	
	/* Color Variables - Light Mode */
	--text-primary: rgba(18, 18, 18, 1); /* Headers */
	--text-secondary: rgba(18, 18, 18, 0.72); /* Paragraphs */
	--text-tertiary: rgba(18, 18, 18, 0.48); /* Small text */
	--text-muted: rgba(18, 18, 18, 0.12); /* HR */
	--bg-primary: rgba(255, 255, 255, 1); /* Main background */
	--bg-secondary: rgba(18, 18, 18, 0.032); /* Light gray backgrounds */
	--bg-overlay: rgba(255, 255, 255, 0); /* Transparent overlays */
	--hover-color: rgba(18, 18, 18, 0.032); /* Hover backgrounds */
	--accent-color: rgba(18, 18, 18, 1); /* Dark accent */
	--indicator-color: rgba(18, 18, 18, 1); /* Dark indicator */

  --musinsa: #77B5FE;
  --gu: #D2E5FE;
  --china: #D7C9FA;
  --taiwan: #FB95D5;
  --pride: #FC7A6D;

  --before: #F92F60;
  --after: #14A085;
  
  /* Text Selection */
  --selection-color: #FFB2FF;
}

/* Text Selection */
::selection {
	background-color: var(--selection-color);
	color: var(--text-primary);
}

::-moz-selection {
	background-color: var(--selection-color);
	color: var(--text-primary);
}

/* Dark Mode */
[data-theme="dark"] {
	--text-primary: rgba(255, 255, 255, 1); /* Headers */
	--text-secondary: rgba(255, 255, 255, 0.72); /* Paragraphs */
	--text-tertiary: rgba(255, 255, 255, 0.48); /* Small text */
	--text-muted: rgba(255, 255, 255, 0.12); /* HR */
	--bg-primary: rgba(18, 18, 18, 1); /* Main background */
	--bg-secondary: rgba(255, 255, 255, 0.08); /* Light gray backgrounds */
	--bg-overlay: rgba(18, 18, 18, 0); /* Transparent overlays */
	--hover-color: rgba(255, 255, 255, 0.12); /* Hover backgrounds */
	--accent-color: rgba(255, 255, 255, 1); /* White accent */
	--indicator-color: rgba(255, 255, 255, 1); /* White indicator */
}

/* Typography System */
.cursive {
	font-family: 'Homemade Apple', cursive;
  line-height: inherit;
  font-weight: 400;
  /* display: inline; */
}

/* Semantic HTML Typography */
h1 {
	font-size: var(--text-3xl); /* 40px */
	line-height: var(--leading-2xl); /* 48px */
	font-weight: 600;
	color: var(--text-primary);
	margin: 0;
}

h2 {
	font-size: var(--text-2xl); /* 32px */
	line-height: var(--leading-xl); /* 40px */
	font-weight: 600;
	color: var(--text-primary);
	margin: 0;
}

h3 {
	font-size: var(--text-xl); /* 24px */
	line-height: var(--leading-loose); /* 32px */
	font-weight: 600;
	color: var(--text-primary);
	margin: 0;
}

h4 {
	font-size: var(--text-lg); /* 20px */
	line-height: var(--leading-relaxed); /* 28px */
	font-weight: 600;
	color: var(--text-primary);
	margin: 0;
}

h5 {
	font-size: var(--text-base); /* 16px */
	line-height: var(--leading-normal); /* 24px */
	font-weight: 600;
	color: var(--text-primary);
	margin: 0;
}

h6 {
	font-size: var(--text-sm); /* 14px */
	line-height: var(--leading-tight); /* 20px */
	font-weight: 500;
	color: var(--text-primary);
	margin: 0;
}

p {
	font-size: var(--text-base); /* 16px */
	line-height: var(--leading-normal); /* 24px */
	color: var(--text-secondary);
	margin: 0;
}

/* Utility classes for specific combinations */
.text-small {
	font-size: var(--text-sm); /* 14px */
	line-height: var(--leading-tight); /* 20px */
	color: var(--text-tertiary);
}

.text-large {
	font-size: var(--text-lg); /* 20px */
	line-height: var(--leading-relaxed); /* 28px */
	color: var(--text-secondary);
}

.text-display {
	font-size: var(--text-xl); /* 24px */
	line-height: var(--leading-loose); /* 32px */
	color: var(--text-primary);
}

.text-hero {
	font-size: var(--text-3xl); /* 40px */
	line-height: var(--leading-2xl); /* 48px */
	color: var(--text-primary);
}

/* Subheader class for 14px text */
.subheader {
	font-size: var(--text-sm); /* 14px */
	line-height: var(--leading-tight); /* 20px */
	color: var(--text-tertiary);
}

/* HR styling */
hr {
	border: none;
	height: 1px;
	background-color: var(--text-muted);
	margin: 0;
}

/* Dark mode toggle */
.theme-toggle {
	background: none;
	border: 1px solid var(--text-muted);
	border-radius: 50%;
	width: 2rem;
	height: 2rem;
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	color: var(--text-primary);
}

.theme-toggle:hover {
	background-color: var(--hover-color);
	border-color: var(--text-secondary);
}

body {
	font-family: 'Figtree', sans-serif;
	line-height: 1.6;
	color: var(--text-secondary);
	background-color: var(--bg-primary);
}

/* Container system - 32px all around */
.container {
	padding: 0 var(--container-padding);
  width: 100%;
	margin: 0 auto;
}

.container .nav-links .main-nav-item {
  transition: color 0.3s ease, transform 0.2s ease;
}

/* Typography using your Google Fonts */
/* h1, h2, h3, h4, h5, h6 {
	font-family: 'Figtree', sans-serif;
	font-weight: 600;
	line-height: 1.2;
} */

::selection {
  background: #FFB2FF;
}

/* .homemade-apple {
	font-family: 'Homemade Apple', cursive;
  line-height: inherit;
} */

/* Navigation */
header {
	background: var(--bg-overlay);
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	height: 88px;
}

header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	mask: linear-gradient(to bottom, 
	    rgba(18, 18, 18, 1) 0%, 
	    rgba(18, 18, 18, 1) 60%, 
	    rgba(18, 18, 18, 0.8) 80%, 
	    rgba(18, 18, 18, 0.4) 90%, 
	    rgba(18, 18, 18, 0) 100%
	);
	-webkit-mask: linear-gradient(to bottom, 
	    rgba(18, 18, 18, 1) 0%, 
	    rgba(18, 18, 18, 1) 60%, 
	    rgba(18, 18, 18, 0.8) 80%, 
	    rgba(18, 18, 18, 0.4) 90%, 
	    rgba(18, 18, 18, 0) 100%
	);
	pointer-events: none;
	z-index: -1;
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--container-padding) 0;
	height: 100%;
	position: relative;
	z-index: 1;
}

.logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.logo:hover {
	opacity: 0.7;
}

.logo svg {
	width: 1.5rem; /* 24px */
	height: 1.5rem; /* 24px */
	color: var(--text-primary);
}

.nav-links {
	display: flex;
	list-style: none;
	gap: var(--nav-spacing);
	position: relative;
}

.main-nav-indicator {
	position: absolute;
	left: var(--main-indicator-left, 0);
	top: calc(50% + 12px); /* Move down 12px from center */
	width: 16px;
	height: 2px;
	background: var(--indicator-color, #121212);
	border-radius: 1px;
	transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 100;
	opacity: 1;
	display: block;
	visibility: visible;
}

.main-nav-item {
	position: relative;
	padding-bottom: 8px;
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 0.875rem; /* 14px */
	line-height: 1.25rem; /* 20px */
	/* transition: transform 0.3s ease; */
	cursor: pointer;
	background: transparent;
	display: flex;
	align-items: center;
	min-height: 2rem;
	z-index: 2;
}

.main-nav-item:hover {
	color: var(--text-primary);
	transform: translateY(-4px);
}

.main-nav-item.active {
	color: var(--text-primary);
}

.main-nav-item.transitioning {
	color: var(--text-primary);
	transform: translateY(-4px);
}

.nav-links a {
	text-decoration: none;
	color: var(--text-primary);
	/* font-weight: 500; */
	font-size: var(--nav-font-size);
	line-height: var(--nav-line-height);
	transition: color 0.3s ease;
}

.nav-links a {
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.nav-links a:hover {
	opacity: 0.7;
	text-decoration: none;
	outline: none;
}

/* Arrow animations */
/* .carousel-btn.prev .material-icons-round {
	animation: moveLeft 2.5s ease-in-out infinite;
}

.carousel-btn.next .material-icons-round {
	animation: moveRight 2.5s ease-in-out infinite;
}

@keyframes moveLeft {
	0%, 100% {
	    transform: translateX(0);
	}
	50% {
	    transform: translateX(-6px);
	}
}

@keyframes moveRight {
	0%, 100% {
	    transform: translateX(0);
	}
	50% {
	    transform: translateX(6px);
	}
} */

/* Hero Section Container - 50vw width */
.hero .hero-text {
	width: 50vw;
	margin: 0 auto;
	text-align: center;
	padding: var(--section-spacing) 0;
}

/* Hero Section Spacing - 32px between h3 and p */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.hero .hero-text h3 {
	text-align: center;
	font-weight: 400; /* Regular font weight */
}

.hero .hero-text p {
	text-align: center;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.25em;
}

/* Pill group containers to prevent line breaks */
.hero .hero-text p .pill-group {
	display: inline-block;
	white-space: nowrap;
}

/* Ensure time pill group maintains fixed width */
.hero .hero-text p .pill-group:has(#time-pill) {
	width: 77px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
}

.hero .hero-text p span {
	color: var(--text-primary);
	vertical-align: middle;
}

.hero-title {
	font-family: 'Figtree', sans-serif;
	font-weight: 400;
	color: var(--text-primary);
	margin: 0;
}

.hero-status {
	display: flex;
	flex-direction: column;
	gap: var(--status-spacing);
}

.status-line {
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--status-spacing);
	font-size: 1rem;
	line-height: 1.5rem;
}

.status-line span {
	font-size: 1rem;
	line-height: 1.5rem;
}

.available-pill {
	display: flex;
	align-items: center;
	gap: var(--status-spacing);
	background: var(--bg-primary);
	/* border: 1px solid var(--text-muted); */
	border-radius: 1.5rem;
	padding: var(--pill-padding-y) var(--pill-padding-x);
	font-size: 0.5rem;
	/* line-height: 1.25rem; */
	font-weight: 500;
}

/* Hero Section Pills - Inline with text, large border radius, text-tertiary outline */
.hero .pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 8px;
	border: 1px solid var(--text-tertiary);
	border-radius: var(--radius-xl); /* Second largest border radius variable */
	background: var(--bg-primary);
	font-size: var(--text-sm); /* Small text size */
	line-height: var(--leading-tight); /* Tight line height for small text */
	font-weight: inherit;
	color: inherit;
	cursor: grab;
	user-select: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 100;
}

.hero .pill:hover {
	transform: translateY(-2px);
	box-shadow: 0px 2px 0 var(--text-tertiary);
}

.hero .pill:active {
	cursor: grabbing;
}

.hero .pill.placeholder {
    background: var(--bg-secondary) !important;
    border: 1px dashed var(--text-muted) !important;
    color: var(--text-muted) !important;
    pointer-events: none;    /* Prevent interaction */
    opacity: 0.5;            /* Make it subtle but visible */
}

/* Make the pulse dot static and muted in placeholders */
.hero .pill.placeholder .pulse-dot {
    background: var(--text-muted) !important;
    animation: none !important;
    box-shadow: none !important;
}

/* Ensure time pill placeholder also has fixed width - target by pill-group containing time pill */
.hero .pill-group:has(#time-pill) .pill.placeholder {
    width: 77px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
}
/* Fix available for work pill content alignment */
.hero .pill .pulse-dot {
	display: inline-block;
	margin: 0;
	vertical-align: middle;
}

/* TIME pill with fixed width and centered text */
.hero .pill#time-pill {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 77px;
}

/* External link pills styling */
.hero .pill.external-link {
	text-decoration: none;
	color: inherit;
}

.hero .pill.external-link:hover {
	text-decoration: none;
	color: inherit;
}

.hero .pill .material-icons-round {
	font-size: 14px;
	margin-left: 6px;
	vertical-align: middle;
}

.pulse-dot {
	width: var(--dot-size);
	height: var(--dot-size);
	aspect-ratio: 1;
	background: rgba(0, 210, 106, 1);
	border-radius: 50%;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
	    box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.7);
	}
	70% {
	    box-shadow: 0 0 0 10px rgba(0, 210, 106, 0);
	}
	100% {
	    box-shadow: 0 0 0 0 rgba(0, 210, 106, 0);
	}
}

.status-line a {
	color: var(--text-primary);
	text-decoration: none;
	font-weight: 600;
}

.status-line a {
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.status-line a:hover {
	opacity: 0.7;
	text-decoration: none;
	outline: none;
}

/* Work Section */
.work {
	padding: 0 0 3rem;
}

.work h2 {
	font-size: 2.5rem;
	margin-bottom: 3rem;
	text-align: center;
}

/* Projects Grid */
#projects {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: var(--gap-xl); /* 32px */
  row-gap: var(--gap-2xl); /* 32px */
	/* margin-top: 2rem; */
}

/* Project cards */
.project {
	display: flex;
	flex-direction: column;
	gap: var(--gap-md); /* 16px */
	border-radius: 0.75rem;
	transition: transform 0.2s ease;
}

.project .project-content {
	display: flex;
	flex-direction: column;
	gap: var(--gap-sm); /* 8px */
}

.project .image-container {
	width: 100%;
	aspect-ratio: 5/3;
	border-radius: 0.75rem;
  /* object-fit: fill; */
	overflow: hidden;
	position: relative;
	cursor: pointer;
	border: 1px solid var(--text-muted);
}

.project .image-container .hover-overlay {
	display: none;
}

/* View circle and icon */
.project .image-container .view-circle {
	width: 4.5rem; /* 72px */
	height: 4.5rem; /* 72px */
	/* background: var(--text-muted); */
	border-radius: 50%;
	/* Can use .flex-column-center utility class */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--gap-xs); /* 4px */
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, background 0.2s ease;
	position: absolute;
	pointer-events: none;
	z-index: 20;
	opacity: 0;
	left: 0;
	top: 0;
	transform: scale(0);
	will-change: transform;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.project .image-container .view-circle svg {
	width: 2rem; /* 32px */
	height: 2rem; /* 32px */
	animation: spin 2s linear infinite;
}

@keyframes spin {
	from {
	    transform: rotate(0deg);
	}
	to {
	    transform: rotate(360deg);
	}
}

.project .image-container .view-text {
	/* color: black; */
	font-size: 0.75rem; /* 12px */
	line-height: 1rem; /* 16px */
	font-weight: 400;
	font-family: 'Figtree', sans-serif;
	transition: color 0.2s ease;
}

/* Clicked state */
.project .image-container.clicked .view-text {
	color: white !important;
}

.project .image-container.clicked .view-circle {
	transform: scale(1.2) !important;
	background: var(--text-secondary) !important;
	transition: transform 0.1s ease, background 0.1s ease !important;
}

.project .image-container.clicked .view-circle svg {
	animation: none !important;
}

/* Scale animation on hover */
.project .image-container:hover .view-circle {
	transform: scale(1);
	background: var(--text-secondary);
}

.project .image-container:hover .view-text {
	color: #ffffff;
}

/* Enhanced hover state */
.project .image-container:hover .view-circle svg {
	transform: scale(1.05);
	transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	color: #ffffff;
}

.project .image-container:hover .view-circle svg path {
	fill: #ffffff !important;
}

.project img,
.project video {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: calc(0.75rem - 1px);
	will-change: auto;
	transition: transform 0.25s ease;
  overflow: hidden;
}

/* Scale effect on hover for video/image */
.project:hover img,
.project:hover video {
	transform: scale(1.06);
}

.project .project-header {
	/* Can use .flex-center-between utility class */
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.project .project-header h3 {
	display: flex;
	align-items: center;
	gap: var(--gap-sm); /* 8px */
	font-weight: 600;
}

.project .project-header .material-icons-round {
	font-size: 1rem;
	color: var(--text-tertiary);
	opacity: 1;
	width: 28px;
	height: 28px;
	border: 1px solid var(--text-muted);
	border-radius: 50%;
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
}

.project .project-header .shipped-pill {
	background: transparent;
	color: var(--text-tertiary);
	padding: 0.375rem 0.5rem;
	border: 1px solid var(--text-muted);
	border-radius: 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	vertical-align: middle;
	white-space: nowrap;
}

.project .project-title-section {
	display: flex;
	align-items: center;
	gap: var(--gap-sm); /* 8px */
}

/* Project h3 styling with fixed height for hover stability */
.project h3 {
	font-family: 'Figtree', sans-serif;
	font-weight: 600;
	font-size: 1.25rem; /* 20px */
	line-height: 1.5rem; /* 24px */
	color: var(--text-primary);
	margin: 0 0 0.25rem 0; /* 4px spacing below title */
	height: 1.5rem; /* Fixed height to prevent movement */
	display: flex;
	align-items: center;
}

/* 4px spacing between h3 and p */
.project h3 + p {
	margin-top: 0.25rem; /* 4px */
}

/* Icon styling for h3 elements */
.h3-with-icon {
	display: flex;
	align-items: center;
	gap: var(--gap-sm); /* 8px */ /* 8px spacing between icon and text */
}

.h3-icon {
	width: 2rem; /* 32px */
	height: 2rem; /* 32px */
	flex-shrink: 0;
}

.brand-illustration {
  width: 3rem !important; 
  height: 3rem;
  background: #FFF0BB;
  border-radius: var(--radius-md);
}

/* Grid view specific centering */
#projects.grid .project .project-header {
	justify-content: space-between;
	flex-direction: row;
	gap: var(--gap-sm); /* 8px */
}

#projects.grid .project .project-title-section {
	justify-content: center;
	width: auto;
}

.project h3 {
	font-family: 'Figtree', sans-serif;
	font-weight: 600;
	font-size: 1.25rem; /* 20px */
	line-height: 1.5rem; /* 24px */
	color: var(--text-primary);
	margin: 0 0 0.25rem 0; /* 4px spacing below title */
}

.project .icon-wrapper {
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	border: 1px solid var(--text-muted);
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.project .icon-wrapper .material-icons-round {
	font-size: 1rem; /* 16px */
	color: var(--text-primary);
}


.project .project-header .project-meta {
	font-size: var(--text-sm);
	line-height: var(--leading-tight);
	color: var(--text-tertiary);
	text-align: end;
}

/* Grid view specific centering for meta */
#projects.grid .project .project-meta {
	justify-content: center;
	width: auto;
}

/* List view specific spacing */

/* Labels - only show in list view */
.labels {
	display: none;
	flex-wrap: wrap;
	gap: var(--gap-sm); /* 8px */
}

/* Show labels only in list view */
#projects.list .labels {
	display: flex;
}

.label {
	background: var(--bg-secondary);
	color: var(--text-primary);
	padding: 0.25rem 0.5rem;
	border-radius: 0.5rem;
	border: 1px solid var(--text-muted);
	box-shadow: 1px 1px var(--text-muted);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: grab;
	user-select: none;
}

.label.dragging {
	cursor: grabbing;
}

/* Homepage Footer */
.homepage .footer {
  background-color: var(--text-primary);
	padding: 0;
	position: relative;
	overflow: hidden;
	min-height: 100vh;
	/* Can use .flex-column-center utility class */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.homepage .footer-note {
  color: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.12);
  /* background: rgba(255, 255, 255, 0.12); */
}

.homepage .footer .footer-container .footer-card .footer-logo-text-group .footer-text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.homepage .footer .footer-container .footer-card .footer-logo-text-group .footer-text h4 {
  font-weight: 500;
  color: rgba(255, 255, 255, 1);
}

.homepage .footer .footer-container .footer-card .footer-logo-text-group .footer-text p{
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.homepage .footer .footer-container .footer-card .footer-contact a {
 color: white;
}

.footer-container {
	width: 50vw;
	margin: 0 auto;
	position: relative;
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
}

.footer-card {
	background: rgba(255, 255, 255, 0.12);
	border-radius: var(--radius-lg);
	padding: var(--gap-xl); /* 32px */
	width: 100%;
	aspect-ratio: 720 / 400; /* width:height ratio */
	/* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); */
	/* Can use .flex-column-center utility class */
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--gap-2xl); /* 48px between logo and text */
	justify-content: center;
	position: relative;
	
	/* Hanging note effect */
	transform-origin: top left;
	transform: rotate(3deg);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-card:hover {
	transform: rotate(0deg);
}

/* Tape element to make it look like the card is hanging */
/* .footer-card::before {
	content: '';
	position: absolute;
	top: 0px;
	left: -40px;
	transform: rotate(-32deg);
	width: 148px;
	height: 40px;
	background: rgba(255, 255, 255, 0.32);
	z-index: 1;
} */

.footer-logo-text-group {
	/* Can use .flex-column-center utility class */
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gap-md); /* 16px */ /* 16px between logo and text */
}

.footer-logo {
	width: 56px;
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-text {
	display: flex;
	gap: var(--gap-sm);
}

.footer-text p {
	font-size: var(--text-base);
	color: var(--text-secondary);
	margin: 0;
}

.footer-contact {
	display: flex;
	flex-direction: column;
	gap: var(--gap-sm); /* 8px */
	align-items: center;
}

.email-container-wrapper {
	position: relative;
	display: inline-block;
}

.email-container-background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--text-muted);
	border-radius: 2rem;
	transition: transform 0.2s ease;
	transform: translate(0, 0);
}

.email-container {
	position: relative;
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 0.5rem 0.5rem 0.5rem 1rem;
	border-radius: 2rem;
	border: 1px solid var(--text-muted);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	transform: translate(0, 0);
}

.email-container-wrapper:hover .email-container-background {
	transform: translate(0px, 3px);
}

.email-container:hover {
	transform: translate(0px, -3px);
}

.email-label {
	font-size: var(--text-base);
	color: var(--text-tertiary);
}

.email-spacer {
	width: 0.25rem; /* 4px */
}

.email-address {
	font-size: var(--text-base);
	color: var(--text-primary);
	/* font-weight: 600; */
	margin-right: 0.5rem; /* 8px between email and copy button */
}

.copy-button {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--bg-secondary);
	border: none;
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
}

.copy-button:hover {
	background: var(--text-muted);
}

.copy-button.copied {
	background: rgba(0, 210, 106, 1);
}

.copy-icon {
	font-size: 1rem;
	color: var(--text-secondary);
	transition: all 0.2s ease;
}

.copy-button.copied .copy-icon {
	transform: scale(0);
}

.copy-button.copied::after {
	content: 'check';
	font-family: 'Material Icons Round';
	font-size: 1rem;
	color: var(--bg-primary);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.footer-contact p {
	font-size: var(--text-base);
	color: var(--text-secondary);
	margin: 0;
}

.tertiary {
  color: var(--text-tertiary);
}

.semibold {
	font-weight: 600;
	color: var(--text-primary);
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.semibold:hover {
	opacity: 0.7;
	text-decoration: none;
	outline: none;
}

/* ========================================
   ROW & COLUMN SYSTEM
   ======================================== */

/* Base row class - flexbox with 32px gap */
.row {
	display: flex;
	gap: var(--gap-xl); /* 32px */ /* 32px */
	/* align-items: flex-start; */
}

/* Row variations */
.row-center {
	display: flex;
	gap: var(--gap-xl); /* 32px */
	align-items: center;
}

.row-end {
	display: flex;
	gap: var(--gap-xl); /* 32px */
	align-items: flex-end;
}

.row-stretch {
	display: flex;
	gap: var(--gap-xl); /* 32px */
	align-items: stretch;
}

/* Column classes for different flex ratios */
.col {
	flex: 1;
  display: flex;
  flex-direction: column;
}

.col img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* Working row classes that actually work */
.row-flex {
	display: flex !important;
	flex-direction: row !important;
	gap: var(--gap-xl) !important; /* 32px */
	align-items: center !important;
	width: 100% !important;
}

.row-flex .col {
	flex: 1 !important;
	min-width: 0 !important;
}

/* Override any parent container issues */
.content-container .row-flex {
	display: flex !important;
	flex-direction: row !important;
}

/* Alternative table-based row for when flexbox fails */
.row-table {
	display: table !important;
	width: 100% !important;
	border-collapse: collapse !important;
}

.row-table .col {
	display: table-cell !important;
	width: 50% !important;
	vertical-align: top !important;
	padding: 0 1rem !important;
}

.row-table .col:first-child {
	padding-right: 1rem !important;
	padding-left: 0 !important;
}

.row-table .col:last-child {
	padding-left: 1rem !important;
	padding-right: 0 !important;
}

/* 1:2 ratio (1/3 and 2/3) - total of 3 parts */
.col-1-2 {
	flex: 1;
}

.col-2-1 {
	flex: 2;
}

/* 1:3 ratio (1/4 and 3/4) - total of 4 parts */
.col-1-3 {
	flex: 1;
}

.col-3-1 {
	flex: 3;
}

/* 1:4 ratio (1/5 and 4/5) - total of 5 parts */
.col-1-4 {
	flex: 1;
}

.col-4-1 {
	flex: 4;
}

/* Alternative ratios that might look better visually */
.col-narrow {
	flex: 0 0 200px; /* Fixed width for narrow columns */
	min-width: 0;
}

.col-wide {
	flex: 1;
	min-width: 0;
}

/* More balanced ratios */
.col-2-3 {
	flex: 2;
}

.col-3-2 {
	flex: 3;
}

/* Very narrow left column for short content like numbers/titles */
.col-1-5 {
	flex: 1;
}

.col-5-1 {
	flex: 5;
}

/* Equal columns */
.col-1-1 {
	flex: 1;
}

.col-2-2 {
	flex: 1;
}

.col-3-3 {
	flex: 1;
}

.col-4-4 {
	flex: 1;
}

/* Specific column counts */
.col-1 {
	flex: 0 0 calc(100% / 1);
}

.col-2 {
	flex: 0 0 calc(100% / 2);
}

.col-3 {
	flex: 0 0 calc(100% / 3);
}

.col-4 {
	flex: 0 0 calc(100% / 4);
}

.col-5 {
	flex: 0 0 calc(100% / 5);
}

.col-6 {
	flex: 0 0 calc(100% / 6);
}

.mobile-back-button {
  display: none;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Font utilities */
/* .font-figtree {
	font-family: 'Figtree', sans-serif;
}

.font-homemade {
	font-family: 'Homemade Apple', cursive;
} */

/* Icon utilities */
.icon-general {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.icon-general.myfreelance {
	color: #826D5A;
}

/* MyFreelance specific spacing for annotation containers */
.annotation-content-wrapper {
	display: flex;
	flex-direction: column;
	gap: var(--gap-md); /* 16px between icon and h4 */
}

.annotation-text-wrapper {
	display: flex;
	flex-direction: column;
	gap: var(--gap-xs); /* 4px between h4 and p */
}


.font-light {
	font-weight: 300;
}

.font-normal {
	font-weight: 400;
}

.font-medium {
	font-weight: 500;
}

.font-semibold {
	font-weight: 600;
}

.font-bold {
	font-weight: 700;
}

.font-extrabold {
	font-weight: 800;
}

.font-black {
	font-weight: 900;
}

/* Spacing utilities - Using CSS variables */
.gap-4 { gap: var(--gap-xs); } /* 4px */
.gap-8 { gap: var(--gap-sm); } /* 8px */
.gap-12 { gap: 0.75rem; } /* 12px - no variable, keeping hardcoded */
.gap-16 { gap: var(--gap-md); } /* 16px */
.gap-20 { gap: 1.25rem; } /* 20px - no variable, keeping hardcoded */
.gap-24 { gap: var(--gap-lg); } /* 24px */
.gap-32 { gap: var(--gap-xl); } /* 32px */
.gap-40 { gap: 2.5rem; } /* 40px - no variable, keeping hardcoded */
.gap-48 { gap: var(--gap-2xl); } /* 48px */

/* Padding utilities - Using CSS variables where available */
.padding-4 { padding: var(--gap-xs); } /* 4px */
.padding-8 { padding: var(--gap-sm); } /* 8px */
.padding-12 { padding: 0.75rem; } /* 12px - no variable, keeping hardcoded */
.padding-16 { padding: var(--gap-md); } /* 16px */
.padding-20 { padding: 1.25rem; } /* 20px - no variable, keeping hardcoded */
.padding-24 { padding: var(--gap-lg); } /* 24px */
.padding-32 { padding: var(--gap-xl); } /* 32px */
.padding-40 { padding: 2.5rem; } /* 40px - no variable, keeping hardcoded */
.padding-48 { padding: var(--gap-2xl); } /* 48px */

/* Padding utilities - Horizontal only */
.padding-horizontal-4 { padding-left: var(--gap-xs); padding-right: var(--gap-xs); }
.padding-horizontal-8 { padding-left: var(--gap-sm); padding-right: var(--gap-sm); }
.padding-horizontal-12 { padding-left: 0.75rem; padding-right: 0.75rem; }
.padding-horizontal-16 { padding-left: var(--gap-md); padding-right: var(--gap-md); }
.padding-horizontal-20 { padding-left: 1.25rem; padding-right: 1.25rem; }
.padding-horizontal-24 { padding-left: var(--gap-lg); padding-right: var(--gap-lg); }
.padding-horizontal-32 { padding-left: var(--gap-xl); padding-right: var(--gap-xl); }
.padding-horizontal-40 { padding-left: 2.5rem; padding-right: 2.5rem; }
.padding-horizontal-48 { padding-left: var(--gap-2xl); padding-right: var(--gap-2xl); }

/* Padding utilities - Vertical only */
.padding-vertical-4 { padding-top: var(--gap-xs); padding-bottom: var(--gap-xs); }
.padding-vertical-8 { padding-top: var(--gap-sm); padding-bottom: var(--gap-sm); }
.padding-vertical-12 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.padding-vertical-16 { padding-top: var(--gap-md); padding-bottom: var(--gap-md); }
.padding-vertical-20 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.padding-vertical-24 { padding-top: var(--gap-lg); padding-bottom: var(--gap-lg); }
.padding-vertical-32 { padding-top: var(--gap-xl); padding-bottom: var(--gap-xl); }
.padding-vertical-40 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.padding-vertical-48 { padding-top: var(--gap-2xl); padding-bottom: var(--gap-2xl); }

/* Flex utilities - Comprehensive set */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

/* Flex alignment utilities */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-start { display: flex; align-items: flex-start; }
.flex-end { display: flex; align-items: flex-end; }

/* Flex justify utilities */
.flex-between { display: flex; justify-content: space-between; }

/* Common flex combinations */
.flex-center-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column-center { display: flex; flex-direction: column; align-items: center; }

/* Margin utilities - Using CSS variables where available */
.margin-4 { margin: var(--gap-xs); } /* 4px */
.margin-8 { margin: var(--gap-sm); } /* 8px */
.margin-12 { margin: 0.75rem; } /* 12px - no variable, keeping hardcoded */
.margin-16 { margin: var(--gap-md); } /* 16px */
.margin-20 { margin: 1.25rem; } /* 20px - no variable, keeping hardcoded */
.margin-24 { margin: var(--gap-lg); } /* 24px */
.margin-32 { margin: var(--gap-xl); } /* 32px */
.margin-40 { margin: 2.5rem; } /* 40px - no variable, keeping hardcoded */
.margin-48 { margin: var(--gap-2xl); } /* 48px */

/* Margin X (horizontal) utilities */
.margin-horizontal-4 { margin-left: var(--gap-xs); margin-right: var(--gap-xs); }
.margin-horizontal-8 { margin-left: var(--gap-sm); margin-right: var(--gap-sm); }
.margin-horizontal-12 { margin-left: 0.75rem; margin-right: 0.75rem; }
.margin-horizontal-16 { margin-left: var(--gap-md); margin-right: var(--gap-md); }
.margin-horizontal-20 { margin-left: 1.25rem; margin-right: 1.25rem; }
.margin-horizontal-24 { margin-left: var(--gap-lg); margin-right: var(--gap-lg); }
.margin-horizontal-32 { margin-left: var(--gap-xl); margin-right: var(--gap-xl); }
.margin-horizontal-40 { margin-left: 2.5rem; margin-right: 2.5rem; }
.margin-horizontal-48 { margin-left: var(--gap-2xl); margin-right: var(--gap-2xl); }

/* Margin Y (vertical) utilities */
.margin-vertical-4 { margin-top: var(--gap-xs); margin-bottom: var(--gap-xs); }
.margin-vertical-8 { margin-top: var(--gap-sm); margin-bottom: var(--gap-sm); }
.margin-vertical-12 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.margin-vertical-16 { margin-top: var(--gap-md); margin-bottom: var(--gap-md); }
.margin-vertical-20 { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.margin-vertical-24 { margin-top: var(--gap-lg); margin-bottom: var(--gap-lg); }
.margin-vertical-32 { margin-top: var(--gap-xl); margin-bottom: var(--gap-xl); }
.margin-vertical-40 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.margin-vertical-48 { margin-top: var(--gap-2xl); margin-bottom: var(--gap-2xl); }

/* Border radius utilities - Using CSS variables */
.radius-sm { border-radius: var(--radius-sm); } /* 4px */
.radius-md { border-radius: var(--radius-md); } /* 8px */
.radius-lg { border-radius: var(--radius-lg); } /* 12px */
.radius-xl { border-radius: var(--radius-xl); } /* 16px */
.radius-2xl { border-radius: var(--radius-2xl); } /* 24px */
.radius-full { border-radius: var(--radius-full); } /* 50% */

/* Grain overlay */
.grain-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
	    url('/images/texture.png'),
	    url('/images/texture.png');
	background-size: 300px 300px, 300px 300px;
	background-position: 0 0, 250px 250px;
	background-repeat: repeat;
	opacity: 0.3;
	pointer-events: none;
	z-index: 9999;
	filter: blur(0.4px);	mix-blend-mode: soft-light;
}


/* Case Study Layout */
.case-study {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

/* Case Study Top Navigation */
.case-study-top-nav {
	position: fixed;
	top: 0;
	right: 0;
	width: 80%; /* 4/5 of screen width to match content area */
	height: 88px;
	background: var(--bg-overlay);
	z-index: 1001; /* Higher than case-study-blur */
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 0 var(--container-padding);
}

.case-study-top-nav::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	mask: linear-gradient(to bottom, 
	    rgba(18, 18, 18, 1) 0%, 
	    rgba(18, 18, 18, 1) 60%, 
	    rgba(18, 18, 18, 0.8) 80%, 
	    rgba(18, 18, 18, 0.4) 90%, 
	    rgba(18, 18, 18, 0) 100%
	);
	-webkit-mask: linear-gradient(to bottom, 
	    rgba(18, 18, 18, 1) 0%, 
	    rgba(18, 18, 18, 1) 60%, 
	    rgba(18, 18, 18, 0.8) 80%, 
	    rgba(18, 18, 18, 0.4) 90%, 
	    rgba(18, 18, 18, 0) 100%
	);
	pointer-events: none;
	z-index: -1;
}

.case-study-top-nav .nav-links {
	display: flex;
	list-style: none;
	gap: var(--nav-spacing);
	position: relative;
}

.case-study-top-nav .main-nav-indicator {
	display: none;
}

.case-study-top-nav .main-nav-item {
	position: relative;
	padding-bottom: 18px;
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 0.875rem;
	line-height: 1.25rem;
	transition: color 0.3s ease, transform 0.2s ease;
	cursor: pointer;
	background: transparent;
	display: flex;
	align-items: center;
	min-height: 2rem;
	z-index: 2;
}

.case-study-top-nav .main-nav-item:hover {
	color: var(--text-primary);
	transform: translateY(-4px);
}

.case-study-top-nav .main-nav-item.active {
	color: var(--text-primary);
}

.case-study-top-nav .main-nav-item.transitioning {
	color: var(--text-primary);
	transform: translateY(-4px);
}

/* Case Study Footer */
.case-study .footer {
	background: rgba(18, 18, 18, 0.9);
	color: var(--bg-primary);
  width: 100%;
}

.footer-main {
  padding: 2rem;
	display: flex;
	justify-content: space-between; /* Space between columns */
	width: 100%;
	align-items: flex-end;
}

.footer-note {
	padding: 1rem 2rem;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.48);
}

.footer-main .right {
	display: flex;
	flex-direction: column;
	gap: var(--gap-md); /* 12px between text and email pill - custom spacing */
}

.footer-main .right p {
  color: var(--bg-primary);
}

.footer-main .leftt {
	display: flex;
	flex-direction: column;
}


.footer-email-container-wrapper {
	position: relative;
	display: inline-block;
	width: fit-content;
}

.footer-email-container-background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--text-tertiary);
	border-radius: 2rem;
	transition: transform 0.2s ease;
	transform: translate(0, 0);
}

.footer-email-container {
	position: relative;
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 0.5rem 0.5rem 0.5rem 1rem;
	border-radius: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	transform: translate(0, 0);
	width: fit-content;
}

.footer-email-container-wrapper:hover .footer-email-container-background {
	transform: translate(0px, 4px);
}

.footer-email-container:hover {
	transform: translate(0px, -4px);
}

.footer-email-label {
	font-size: var(--text-base);
	color: rgba(255, 255, 255, 0.64);
}

.footer-email-spacer {
	width: 0.25rem; /* 4px */
}

.footer-email-address {
	font-size: var(--text-base);
	color: var(--bg-primary);
	font-weight: 600;
	margin-right: 0.5rem; /* 8px between email and copy button */
}

.footer-copy-button {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--text-tertiary);
	border: none;
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
}

.footer-copy-button:hover {
	background: var(--text-secondary);
}

.footer-copy-button.copied {
	background: #4CAF50;
}

.footer-copy-icon {
	font-size: 1rem;
	color: var(--bg-primary);
	transition: all 0.2s ease;
}

.footer-copy-button.copied .footer-copy-icon {
	transform: scale(0);
}

.footer-copy-button.copied::after {
	content: 'check';
	font-family: 'Material Icons Round';
	font-size: 1rem;
	color: var(--bg-primary);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.footer-link {
	display: flex;
	align-items: center;
	gap: var(--gap-sm); /* 8px */ /* 8px between text and icon */
	color: var(--bg-primary);
	text-decoration: none;
	font-size: var(--text-base);
	transition: opacity 0.2s ease;
}

.footer-link:hover {
	opacity: 0.7;
}

.footer-link-icon {
	font-size: 1rem; /* 16px */
	color: var(--bg-primary);
}

.footer-timestamp {
	font-size: var(--text-base);
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

/* Case Study Right Side Blur */
.case-study-blur {
	position: fixed;
	top: 0;
	right: 0;
	width: 80%; /* 4/5 of screen width */
	height: 5.5rem; /* 88px */
	background: rgba(255, 255, 255, 0.02);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	mask: linear-gradient(to bottom, 
	    rgba(18, 18, 18, 1) 0%, 
	    rgba(18, 18, 18, 1) 60%, 
	    rgba(18, 18, 18, 0.8) 80%, 
	    rgba(18, 18, 18, 0.4) 90%, 
	    rgba(18, 18, 18, 0) 100%
	);
	-webkit-mask: linear-gradient(to bottom, 
	    rgba(18, 18, 18, 1) 0%, 
	    rgba(18, 18, 18, 1) 60%, 
	    rgba(18, 18, 18, 0.8) 80%, 
	    rgba(18, 18, 18, 0.4) 90%, 
	    rgba(18, 18, 18, 0) 100%
	);
	z-index: 1000;
	pointer-events: none;
}

.case-study-layout {
	display: flex;
	min-height: 100vh;
	width: 100%;
	position: relative;
}

/* Left Navigation */
.case-study-nav {
	width: 20%; /* 1/5 of screen width */
	background: var(--bg-primary);
	border-right: 1px solid var(--text-muted);
	position: sticky;
	top: 0;
	z-index: 100;
	/* padding: 32p; */
	/* height: fit-content; */
	height: 100vh;
}

.nav-content {
	padding: var(--gap-xl); /* 32px */ /* 32px */
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	flex: 1;
}

.back-button {
	background: none;
	border: 1px solid var(--text-muted);
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 50%;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	position: fixed;
	top: 32px;
	left: 32px;
	z-index: 1000;
}

.back-button:hover, .button-pill:hover {
	background: var(--hover-color);
}

.back-button .material-icons-round {
	font-size: 1.5rem;
	color: var(--text-primary);
}

.button-pill {
	display: flex;
  width: fit-content;
	align-items: center;
  gap: var(--gap-xs);
  background: none;
	border: 1px solid var(--text-muted);
	cursor: pointer;
	padding: 4px 12px 4px 4px;
	border-radius: var(--radius-2xl);
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.nav-items {
	display: flex;
	flex-direction: column;
	gap: 0;
	position: relative;
}

.nav-indicator {
	position: absolute;
	left: var(--indicator-left, 0);
	top: var(--indicator-top, 0);
	width: var(--indicator-width, 2px);
	height: var(--indicator-height, 14px);
	background: var(--indicator-color, #121212);
	border-radius: var(--indicator-radius, 1px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 100;
	opacity: 1;
	display: block;
	visibility: visible;
}

/* Position indicator on first nav item as fallback */
.nav-item:first-child.active ~ .nav-indicator {
	top: 0;
}

/* Show indicator on active nav item */
.nav-item.active + .nav-indicator,
.nav-indicator {
	display: block;
}

/* Position indicator on first active item as fallback */
.nav-item:first-child.active ~ .nav-indicator {
	top: 0;
}

.nav-item {
	color: var(--text-tertiary);
	text-decoration: none;
	font-size: 0.875rem; /* 14px */
	line-height: 1.25rem; /* 20px */
	padding: 0 0 0 0.75rem; /* 8px gap: 2px line + 8px gap = 10px total */
	transition: color 0.3s ease;
	cursor: pointer;
	background: transparent;
	position: relative;
	display: flex;
	align-items: center;
	min-height: 2rem;
	z-index: 2;
}

.nav-item:hover:not(.locked) {
	color: var(--text-primary);
}

.nav-item.active {
	color: var(--text-primary);
	font-weight: 500;
}

.nav-item.locked {
	color: var(--text-muted);
	cursor: not-allowed;
	opacity: 0.5;
}

/* Right Content */
.case-study-content {
	width: 80%; /* 4/5 of screen width */
	flex: 1;
	min-height: 100vh;
	background: var(--bg-primary);
	display: flex;
	flex-direction: column;
	align-items: flex-start !important; /* Align content to the left */
	justify-content: flex-start !important; /* Prevent vertical centering */
	gap: var(--section-spacing); /* Custom spacing for specific layout */ /* 148px gap between all containers - custom spacing */
	padding: 0 0 var(--section-spacing) 0; /* No padding at all */
}

.content-container {
	display: flex;
	flex-direction: column;
	gap: var(--gap-xl); /* 32px gap between content in sections */
	margin: 0;
	padding: 0;
	width: 100%;
}

/* Content Container Types */
.content-container {
	width: 100%;
}

.media-container {
  padding: var(--gap-md);
  background: var(--bg-secondary);
}

/* MyFreelance Password Page */
/* General password protected page styles */
.password-page {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: var(--bg-primary);
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.myfreelance-password-page {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: var(--bg-primary);
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1002;
}

.myfreelance-password-page .back-button {
	position: absolute;
	top: 32px;
	left: 32px;
	width: 2rem; /* match case study nav button size */
	height: 2rem; /* match case study nav button size */
	background: none;
	border: 1px solid var(--text-muted);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1001;
}

.myfreelance-password-page .back-button:hover {
	background: var(--hover-color);
}

.myfreelance-password-page .back-button .material-icons-round {
	font-size: 1.5rem;
	color: var(--text-primary);
}

/* General password container styles */
.password-container {
	/* Can use .flex-column-center utility class */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	max-width: 400px;
	width: 100%;
	padding: var(--gap-xl); /* 32px */
}

.myfreelance-password-container {
	/* Can use .flex-column-center utility class */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	max-width: 400px;
	width: 100%;
	padding: var(--gap-xl); /* 32px */
}

/* MyFreelance password input styling - no background */
.myfreelance-password-page .zocdoc-password-input-container {
	background-color: transparent;
}

/* MyFreelance password container styles */
.myfreelance-password-container {
	/* Can use .flex-column-center utility class */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	max-width: 400px;
	width: 100%;
	padding: var(--gap-xl); /* 32px */
}

.myfreelance-password-page .password-input-container {
	background-color: transparent;
}

.myfreelance-password-page .error-message {
  font-size: var(--text-base);
	position: fixed;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	color: var(--text-tertiary);
	z-index: 1003;
	font-family: 'Figtree', sans-serif;
}

/* Ensure MyFreelance case study layout works properly */
/* MyFreelance specific layout - use standard case study classes */
#myfreelanceContent.case-study-layout {
	display: none; /* Hidden by default, shown after password */
	min-height: 100vh;
	width: 100%;
}

/* MyFreelance nav uses standard sticky positioning */

#myfreelanceContent .case-study-content {
	flex: 1 !important;
}

.content-container.centered {
	padding: 0 16%; /* Left/right padding is 4/5 of nav width (16% each side) */
}

/* Locked sections are hidden by default */
.locked {
	display: none !important;
}

/* Ensure locked sections are hidden with high specificity - but not nav items */
body .locked:not(.nav-item) {
	display: none !important;
}

/* Specific rules for content sections */
#modify-flow.locked,
#custom-messaging.locked {
	display: none !important;
}

.content-container.padded.large {
  width: 100%;
  padding: var(--section-spacing) 16%; /* 148px top/bottom, 16% left/right */
}

.content-container.padded {
	/* width: calc(100% - 4rem); */
  display: flex;
	/* margin: 0 auto; */
	padding: 3rem 16%;
	background: var(--bg-secondary);
  width: 100%;
}

.content-container.spacing {
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--bg-secondary);
}

/* Force case study content to align to the left - nuclear option */
.case-study-layout .case-study-content {
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.case-study-layout .case-study-content > * {
  align-self: flex-start !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.content-container.zocdoc {
  background: #FDFAEE;
}

.content-container.focus {
  background: #E5E6FF;
}

.content-container.myfreelance {
  background: #F6F4F1;
}

/* Invert class for content-container.padded - toggles theme appearance */
.content-container.padded.invert {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.content-container.padded.invert * {
  color: inherit;
}

/* Override specific background colors when inverted */
.content-container.padded.invert.zocdoc {
  background: var(--text-primary);
}

.content-container.padded.invert.focus {
  background: var(--text-primary);
}

.content-container.padded.invert.myfreelance {
  background: var(--text-primary);
}

.annotation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-lg);
}

/* .annotation-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 1rem;
} */

.annotation-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Project Content Styles */
.thumbnail-container {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.project-thumbnail {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.project-header {
	display: flex;
	flex-direction: column;
	gap: var(--gap-xl); /* 32px between all items */
}

.project-title-section {
	display: flex;
	flex-direction: column;
	gap: var(--gap-sm); /* 8px */ /* 8px between title and description */
}

.project-meta {
	display: flex;
	flex-direction: column;
	gap: var(--gap-sm); /* 8px */ /* 8px between period and description */
}

.project-period {
	font-size: 2rem; /* 32px */
	line-height: 2.5rem; /* 40px */
	color: var(--text-color);
	font-weight: 500;
}

.project-content {
	display: flex;
	flex-direction: column;
	gap: var(--gap-md); /* 16px */ /* 16px between paragraphs */
}

/* Zocdoc Password Section Styles */
.zocdoc-password-section {
	display: flex; /* Visible by default */
	align-items: center;
	justify-content: center;
	min-height: 400px;
	padding: 2rem 2rem; /* 32px top and bottom */
	background-color: #FDFAEE;
	font-family: 'Figtree', sans-serif !important;
}

.zocdoc-password-section.hidden {
	display: none !important; /* Hidden after unlocking */
}

/* Hide the entire wrapper when password section is hidden */
.content-container.hidden {
	display: none !important;
}

.zocdoc-password-section h2 {
	background: none;
	padding: 0;
	margin: 0;
}

/* Progressive disclosure for unlocked sections */
.nav-item.unlocked {
	color: var(--text-color) !important;
	cursor: pointer;
}

.nav-item.unlocked:hover {
	color: var(--accent-color) !important;
}

.zocdoc-section.active {
	display: block;
}

/* Force Figtree font on all Zocdoc content, except Material Icons */
.zocdoc-page *:not(.material-icons-round):not(.material-icons) {
	font-family: 'Figtree', sans-serif !important;
}

/* Ensure Material Icons use their proper font */
.zocdoc-page .material-icons-round,
.zocdoc-page .material-icons {
	font-family: 'Material Icons Round', 'Material Icons' !important;
}


.zocdoc-password-container {
	width: 300px;
	/* Can use .flex-column-center utility class */
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transform: translateY(-1rem);
}

.password-logo {
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	color: var(--text-primary);
}

/* General password title and subtitle styles */
.password-title {
	font-size: 24px;
	line-height: 32px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 4px;
}

.password-subtitle {
	font-size: 16px;
	line-height: 20px;
	color: var(--text-secondary);
	margin-bottom: 24px;
}

.zocdoc-title {
	font-size: 24px;
	line-height: 32px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 4px;
}

.zocdoc-subtitle {
	font-size: 16px;
	line-height: 20px;
	color: var(--text-secondary);
	margin-bottom: 24px;
}

/* General password form styles */
.password-form {
	width: 100%;
	position: relative;
}

.zocdoc-password-form {
	width: 100%;
	position: relative;
}

/* General password input container styles */
.password-input-container {
	width: 100%;
	background-color: var(--bg-primary);
	border: 1px solid var(--text-muted);
	border-radius: 50px;
	padding: 8px 8px 8px 16px;
	/* Can use .flex-center-between utility class */
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: background 0.2s ease-out;
}

.password-input-container:hover {
	background-color: var(--bg-secondary);
}

.password-input-container:focus-within {
	border-color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.password-input-container:focus-within .password-input {
	color: var(--text-primary);
	opacity: 1;
}

.zocdoc-password-input-container {
	width: 100%;
	background-color: var(--bg-primary);
	border: 1px solid var(--text-muted);
	border-radius: 50px;
	padding: 8px 8px 8px 16px;
	/* Can use .flex-center-between utility class */
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: background 0.2s ease-out;
}

.zocdoc-password-input-container:hover {
	background-color: var(--bg-secondary);
}

.zocdoc-password-input-container:focus-within {
	border-color: var(--text-primary);
}

.zocdoc-password-input-container:focus-within .zocdoc-password-input {
	color: var(--text-primary);
	opacity: 1;
}

/* General password input styles */
.password-input {
	border: none;
	outline: none;
	font-size: 16px;
	color: var(--text-primary);
	opacity: 0.7;
	flex: 1;
	font-family: 'Figtree', sans-serif;
	background: transparent;
}

/* Ensure all Zocdoc text elements use Figtree font */
.zocdoc-title,
.zocdoc-subtitle,
.zocdoc-password-input,
.zocdoc-password-input::placeholder,
.zocdoc-error-message,
.zocdoc-page,
.zocdoc-page * {
	font-family: 'Figtree', sans-serif !important;
}

.zocdoc-password-input::placeholder {
	color: var(--text-tertiary);
}

.zocdoc-submit-button {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: transparent;
	border: none;
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease;
}

.zocdoc-submit-button:hover {
	background-color: var(--bg-secondary);
}

.zocdoc-submit-button .material-icons-round {
	font-size: 24px;
	color: var(--text-tertiary);
	transition: color 0.2s ease;
}

.zocdoc-submit-button:hover .material-icons-round {
	color: var(--bg-color);
}

.zocdoc-error-message {
	position: absolute;
	bottom: -30px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 16px;
	color: var(--text-primary);
}

/* Keep Zocdoc password section in light mode colors even in dark mode */
[data-theme="dark"] .zocdoc-password-section {
	background-color: #FDFAEE !important;
}

[data-theme="dark"] .zocdoc-password-container {
	color: #000000 !important;
}

[data-theme="dark"] .zocdoc-title {
	color: #000000 !important;
}

[data-theme="dark"] .zocdoc-subtitle {
	color: rgba(18, 18, 18, 0.72) !important;
}

[data-theme="dark"] .zocdoc-password-input-container {
	background-color: #ffffff !important;
	border: 1px solid rgba(18, 18, 18, 0.12) !important;
}

[data-theme="dark"] .zocdoc-password-input {
	color: #000000 !important;
}

[data-theme="dark"] .zocdoc-password-input::placeholder {
	color: #000000 !important;
	opacity: 0.7;
}

[data-theme="dark"] .zocdoc-submit-button {
	border: 1px solid rgba(18, 18, 18, 0.48) !important;
}

[data-theme="dark"] .zocdoc-submit-button .material-icons-round {
	color: rgba(18, 18, 18, 0.48) !important;
}

[data-theme="dark"] .zocdoc-submit-button:hover {
	background-color: rgba(18, 18, 18, 0.48) !important;
}

[data-theme="dark"] .zocdoc-submit-button:hover .material-icons-round {
	color: #ffffff !important;
}

[data-theme="dark"] .zocdoc-error-message {
	color: #000000 !important;
}

[data-theme="dark"] .zocdoc-flower-icon {
	color: #000000 !important;
}

[data-theme="dark"] .zocdoc-flower-icon svg {
	fill: #000000 !important;
}

[data-theme="dark"] .zocdoc-flower-icon svg path {
	fill: #000000 !important;
}

hr {
	height: 1px;
	background: var(--text-muted);
	border-radius: 1px;
	border: none;
	width: 100%;
}

/* Polaroid Controls */
.polaroid-controls {
	position: absolute;
	bottom: 0.5rem;
	right: 0.5rem;
	z-index: 10;
}

.organize-btn {
	display: flex;
	align-items: center;
	gap: var(--gap-sm); /* 8px */
	padding: 0.5rem 1rem;
	background: var(--bg-secondary);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--text-muted);
	border-radius: 0.75rem;
	color: var(--text-primary);
	font-family: 'Figtree', sans-serif;
	font-size: var(--text-base);
	line-height: var(--leading-normal);
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.organize-btn:hover {
	background: var(--text-muted);
	border-color: var(--text-muted);
}

.organize-btn .material-icons-round {
	font-size: 1.25rem;
}

/* Polaroid Container */
#highlights .polaroid-container {
	background: var(--bg-secondary);
	border-radius: 1rem;
	min-height: 500px;
	position: relative;
	overflow: hidden;
	width: 100%;
  /* overflow: none; */
}

.about-main .content-container .polaroid-container {
  position: relative;
	width: 100vw;
  overflow-x: none;
	margin-left: calc(-50vw + 50%);
	border-radius: 0;
	background: none;
  min-height: 500px;
}

.highlights-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.polaroid {
	position: absolute;
	width: 200px;
	height: 238px;
	background: white;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 20px 12px 0px 12px;
	box-shadow: 0 5px 15px rgba(18, 18, 18, 0.08);
	cursor: grab;
	user-select: none;
	display: flex;
	flex-direction: column;
	gap: 10px; /* Custom spacing for specific layout */
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.polaroid:hover {
	box-shadow: 0 8px 20px rgba(18, 18, 18, 0.12);
}

.polaroid:active {
	cursor: grabbing;
}

.polaroid-content {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-secondary);
	border-radius: 2px;
	min-height: 0;
	overflow: hidden;
}

.polaroid-content img {
	width: 176px;
	height: 173px;
	/* aspect-ratio: 1 / 1.30614285714; */
	object-fit: cover;
	object-position: center;
	border-radius: 2px;
}

.polaroid-content img.crop-bottom {
	object-position: bottom;
}

.polaroid-text {
	font-family: 'Homemade Apple', cursive;
	font-size: 12px;
	line-height: 15px;
	color: var(--text-color);
	text-align: center;
	/* overflow: hidden; */
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	max-height: 30px;
	margin: 0;
	flex-shrink: 0;
  width: 176px;
}

p.text-small.caption {
  /* text-align: center; */
  display: flex;
  gap: var(--gap-sm);
  color: var(--text-secondary);
  /* justify-content: center; */
  line-height: var(--leading-xs);
}

.media-pill {
  font-size: var(--text-xs);
  line-height: var(--leading-xxs);
  color: var(--text-tertiary);
  padding: 0 var(--gap-xs);
  border: 1px solid var(--text-muted);
  border-radius: var(--radius-xl);
  display: inline-block;
  white-space: nowrap;
  height: fit-content;
  align-self: flex-start;
}

/* .highlight-container, .highlight {
  position: relative;
}

.highlight-container {
  display: inline-block;
  z-index: 1;
}
.highlight-container:before {
  content: " ";
  display: block;
  height: 90%;
  width: 100%;
  margin-left: -3px;
  margin-right: -3px;
  position: absolute;
  background: #F8CC30;
  filter: blur(4px);
  z-index: -1;
} */

/* Dark mode polaroids */
[data-theme="dark"] .polaroid {
	background: #1a1a1a;
	border: 1px solid #333;
}

[data-theme="dark"] .polaroid:hover {
	box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

/* Thank You Section - Updated to use new row system */
.row-1-3 {
	display: flex;
	gap: var(--gap-xl); /* 32px */ /* 32px spacing between columns */
}

.meta-item {
	display: flex;
	flex-direction: column;
	gap: var(--gap-xs); /* 4px */
}

.meta-label {
	font-size: var(--text-sm);
	color: var(--text-tertiary);
	font-weight: 500;
}

.meta-value {
	font-size: var(--text-sm);
	color: var(--text-color);
}

.hero-media {
	flex: 1;
	max-width: 500px;
} */

.hero-video {
	width: 100%;
	height: auto;
	border-radius: 0.75rem;
	box-shadow: 0 20px 40px rgba(18, 18, 18, 0.1);
}

.number-content-spacing {
	display: flex;
	gap: var(--gap-md); /* 16px */
	align-items: center;
}

.number-content-spacing h3 {
  width: 1.5rem;
}

.number-content-spacing p.cursive {
  width: 1rem;
}

.number-content-spacing img {
  width: 4.125rem;
}

.padded-container {
	display: flex;
	flex-direction: column;
	gap: var(--gap-xl); /* 32px */
	background: var(--bg-secondary);
	padding: var(--gap-xl); /* 32px all around */
	border-radius: var(--radius-lg);
}

/* .padded-container.quote {
  gap: var(--gap-md);
  padding: var(--gap-2xl) var(--gap-2xl);
  text-align: center;
} */

/* .quote {
  display: flex;
}

.quote-content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm)
}

.indentation {
  width: 2px;
  background-color: var(--text-muted);
  margin-right: var(--gap-md);
  flex-shrink: 0;
  border-radius: 1px;
}

.indentation.zocdoc {
  background-color: #F8CC30;
} */

/* Project goals specific styling */

.annotation-grid .padded-container img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.annotation-grid .padded-container p {
	font-size: 1rem; /* Normal paragraph size */
	line-height: 1.5;
	color: var(--text-color);
}

/* Mentor Note Section */
.mentor-note-card {
	background: var(--bg-primary);
	border-radius: var(--radius-md);
	border: 1px solid var(--text-muted);
	padding: 3.5rem 4rem;
	/* box-shadow: 0 4px 12px rgba(18, 18, 18, 0.1); */
	position: relative;
	width: 100%;
}

.sticky-note {
	position: absolute;
	top: -8px;
	left: -16px;
	background: rgba(253, 231, 33, 0.8);
	padding: 8px 24px;
	/* border-radius: 0.25rem; */
	font-family: 'Homemade Apple', cursive;
	font-size: 0.875rem;
	transform: rotate(-5deg);
	/* box-shadow: 0 2px 4px rgba(18, 18, 18, 0.1); */
	z-index: 10;
}

.mentor-profile {
	/* Can use .flex-column-center utility class */
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 24px;
}

.profile-picture {
	position: relative;
	margin-bottom: 8px;
	width: 80px;
	height: 80px;
}

.profile-picture img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
}

.profile-picture .overlay-svg {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 108px; /* Match the SVG width */
	height: 47px; /* Match the SVG height */
	z-index: 10;
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
}

.star-icon {
	position: absolute;
	color: var(--text-primary);
	font-size: 1.25rem;
	font-weight: bold;
}

.star-left {
	top: -5px;
	left: -10px;
	transform: rotate(-15deg);
}

.star-right {
	top: -5px;
	right: -10px;
	transform: rotate(15deg);
}

.mentor-info h4, .mentor-info p{
	text-align: center;
}

/* Mentor info now uses h4 and h6 semantic elements */

.mentor-testimonial {
	display: flex;
	flex-direction: column;
	gap: var(--gap-md); /* 16px */
}

.mentor-testimonial p:last-child {
	margin-bottom: 0;
}

.mentor-testimonial strong {
	font-weight: 600;
	color: var(--accent-color);
}

/* Dark mode mentor note */
[data-theme="dark"] .mentor-note-card {
	background: #1a1a1a;
	border: 1px solid #333;
}

[data-theme="dark"] .mentor-testimonial strong {
	color: var(--accent-color);
}

/* Loading Screen Styles - Optimized */
.loading-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: var(--bg-primary);
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	will-change: opacity, visibility;
	overflow: hidden;
}

.loading-screen.fade-out {
	opacity: 0;
	visibility: hidden;
}

.loading-content {
	text-align: center;
	/* Can use .flex-column-center utility class */
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gap-md); /* 16px */ /* 16px */
}

.loading-logo {
	color: var(--accent-color);
}

.loading-logo svg {
	width: 48px;
	height: 48px;
	animation: logoRotate 3s linear infinite;
}

/* Remove blur effects - no longer needed */

/* Ensure loading screen content is sharp */
.loading-screen {
	filter: none !important;
}

.loading-screen * {
	filter: none !important;
}

/* Loading animations */
@keyframes logoRotate {
	0% {
	    transform: rotate(0deg);
	}
	100% {
	    transform: rotate(360deg);
	}
}

/* Gradient effect for loading screen when sliding up */
.loading-screen.fade-out::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100px;
	background: linear-gradient(to bottom, transparent, var(--bg-primary));
	pointer-events: none;
}

/* External link view circle styling */
.project .image-container .view-circle.external-link {
	/* background: var(--text-primary); */
	color: var(--bg-primary);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.project .image-container .view-circle.external-link .material-icons-round {
	font-size: 2rem; /* 32px to match logo SVG size */
	color: var(--bg-primary);
	filter: none;
	animation: none;
}

.project .image-container:hover .view-circle.external-link .material-icons-round {
	transform: scale(1.05);
	transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* External project link styling */
a.project.external-project {
	text-decoration: none;
	color: inherit;
	display: block;
}

a.project.external-project:hover {
	text-decoration: none;
	color: inherit;
}

/* Ensure external projects inherit all project styling */
a.project.external-project {
	display: flex;
	flex-direction: column;
	gap: var(--gap-md); /* 16px */
	border-radius: 0.75rem;
	transition: transform 0.2s ease;
}

a.project.external-project .project-content {
	display: flex;
	flex-direction: column;
	gap: var(--gap-md); /* 16px */
}

a.project.external-project .project-header {
	/* Can use .flex-center-between utility class */
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Comparison section styling */
.comparison-container {
	display: flex;
	flex-direction: row;
	gap: var(--gap-xl); /* 32px space between before/after */
	margin: 0;
	padding: 0;
}

.comparison-section img,
.comparison-section video {
	object-fit: contain;
}

.comparison-section.after {
	border-bottom-color: #14A085; /* Green for after */
}

.comparison-header {
	margin-top: 1.5rem; /* 24px space between gray container and text */
	display: flex;
	flex-direction: row;
	gap: var(--gap-xl); /* 32px */ /* 32px space between before/after text */
}

.comparison-content {
	flex: 1;
}

.comparison-item {
	display: flex;
	align-items: flex-start;
	gap: var(--gap-sm); /* 8px */ /* 8px spacing between icon and text */
	margin-bottom: 1rem; /* 16px spacing between items */
}

.icon-circle {
	width: 20px;
	height: 20px;
	border-radius: 6px;
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin: 2px 0; /* 2px top/bottom spacing */
}

.icon-circle.before {
	background: var(--before);
	color: var(--bg-primary);
}

.icon-circle.after {
	background: var(--after);
	color: var(--bg-primary);
}

.icon-circle .material-icons-round {
	font-size: 14px;
}

.comparison-item p {
	font-size: 1rem; /* Regular paragraph size */
	margin: 0;
	line-height: 1.5;
}

/* Image container for images without padding */
.image-container {
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Solution videos styling - Mobile project specific */
.case-study .solution-video {
	width: 33.333%; /* 1/3 of available space */
	border-radius: calc(100% / 7) / calc((100% * 375/812) / 7);
	border: 8px solid rgba(255, 255, 255, 0.5);
	display: block;
	margin: 0 auto;
}

/* Default desktop video styling */
video, img {
	width: 100%;
	height: auto;
	display: block;
}

/* Desktop video styling with border radius */
.desktop-video {
	border-radius: 12px;
	/* border: 1px solid var(--bg-secondary); */
}

/* Mobile-specific video styling */
.mobile-video {
	border-radius: calc(100% / 8) / calc((100% * 375/812) / 8);
}

/* Mobile project specific video styling */
.case-study .comparison-section .mobile-video {
	width: 70%;
	height: auto;
	display: block;
}

/* Media row and text row for before/after sections */
.media-row {
	display: flex;
	flex-direction: row;
	gap: var(--gap-xl); /* 32px */
	margin-bottom: 1.5rem;
}

.text-row {
	display: flex;
	flex-direction: row;
	gap: var(--gap-xl);
	/* margin-top: var(--gap-lg); */
}

.text-column {
	flex: 1;
}

.text-column h4 {
	margin: 0 0 1rem 0;
}

.text-column:first-child h4 {
	color: var(--before) !important; /* Red for before */
}

.text-column:last-child h4 {
	color: var(--after) !important; /* Green for after */
}

/* Text spacing for content sections */
.text-spacing {
	display: flex;
	flex-direction: column;
	gap: var(--gap-md); /* 16px */ /* 16px between elements */
}

.text-spacing-small {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 4px spacing between p.cursive and h2/h3 */

/* Remove cursive from p.text-small subheadings */


/* H3 subheading styling below title */
.project-title-section h3 {
	font-family: 'Figtree', sans-serif;
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--text-tertiary);
}

/* Mobile video border radius calculations */
.case-study .mobile-video {
	border-radius: calc(100% / 8) / calc((100% * 375/812) / 8);
}

.case-study .solution-video {
	border-radius: calc(100% / 7) / calc((100% * 375/812) / 7);
}

/* Before/after video sizing with proper container padding */
.comparison-section {
	flex: 1;
	background: var(--bg-secondary);
	padding: 2rem 1.5rem; /* 32px top/bottom, 24px left/right */
	height: auto;
	min-height: 300px;
	/* Can use .flex-center utility class */
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 0; /* No border radius */
}

.comparison-section.before {
	border-bottom: 4px solid var(--before) !important; /* Red for before */
}

.comparison-section.after {
	border-bottom: 4px solid var(--after) !important; /* Green for after */
}

/* More specific targeting */
div.comparison-section.before {
	border-bottom: 4px solid var(--before)  !important;
}

div.comparison-section.after {
	border-bottom: 4px solid var(--after)  !important;
}

.comparison-section .mobile-video,
.comparison-section video,
.comparison-section img {
	width: 70%;
	height: auto;
	object-fit: contain;
}

/* Design refinement sections - all videos should be 70% width */
.design-refinement .comparison-section .mobile-video,
.design-refinement .comparison-section video,
.design-refinement .comparison-section img {
	width: 70%;
	height: auto;
	object-fit: contain;
}

.content-container.padded .iteration-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--gap-md); /* 16px */
}

.text-content {
	display: flex;
	flex-direction: column;
	gap: var(--gap-xs); /* 4px */ /* 4px between text group and p text */
}

.text-group {
	display: flex;
	align-items: center;
	gap: var(--gap-sm); /* 8px */ /* 8px between circle and h5 */
}

.status-indicator {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* About Page Styles */
.about-main {
	width: 50vw;
	margin: 0 auto;
	padding: 148px 0;
	display: flex;
	flex-direction: column;
	gap: 148px; /* Custom spacing for specific layout */
}

.speech-bubble-container {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--gap-md); /* 16px */
}

.headshot {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.speech-bubble {
	position: relative;
	background: var(--bg-secondary);
	border-radius: 100px;
	padding: 1rem 1.5rem;
	opacity: 0;
	transform: translateX(-20px);
	transition: all 0.3s ease;
	min-width: auto;
}

.speech-bubble.show {
	opacity: 1;
	transform: translateX(0);
}

.speech-bubble-content {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.speech-bubble-content.show {
	opacity: 1;
}

.typing-dots {
	display: flex;
	gap: var(--gap-sm); /* 8px */
	align-items: center;
	height: var(--text-line-height, 24px);
}

.dot {
	width: 8px;
	height: 8px;
	background-color: var(--text-muted);
	border-radius: 50%;
	animation: typing 1.4s infinite ease-in-out;
}

.dot:nth-child(1) {
	animation-delay: -0.32s;
}

.dot:nth-child(2) {
	animation-delay: -0.16s;
}

.dot:nth-child(3) {
	animation-delay: 0s;
}

.message-text {
	color: var(--text-primary);
	font-size: var(--text-base);
	margin: 0;
	opacity: 0;
	animation: fadeInMessage 0.3s ease forwards;
	transition: opacity 0.3s ease;
	height: var(--text-line-height, 24px);
	display: flex;
	align-items: center;
}

@keyframes fadeInMessage {
	from {
	    opacity: 0;
	    transform: translateY(5px);
	}
	to {
	    opacity: 1;
	    transform: translateY(0);
	}
}

@keyframes typing {
	0%, 60%, 100% {
	    transform: translateY(0);
	}
	30% {
	    transform: translateY(-4px);
	}
}

.recent-work-item {
	display: flex;
	align-items: center;
	gap: 1.5rem; /* Can use .gap-24 */
}

.logo-image {
	width: 48px;
	flex-shrink: 0;
}

.recent-work-content h4 {
	margin: 0 0 0.25rem 0;
}

.recent-work-content p {
	margin: 0;
	color: var(--text-secondary);
}

.project-image {
	width: 100%;
	height: auto;
	display: block;
}

.video-container {
	margin-top: 2rem;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.project-video {
	width: 100%;
	height: auto;
	display: block;
}

/* About page footer - black background like case studies */
.about-page .footer {
	background: rgba(18, 18, 18, 0.9);
	color: var(--bg-primary);
	/* width: 100%; */
}

.about-page .footer .content-container.padded {
	padding: 0 2rem;
	/* width: 100%; */
}

/* Static navigation indicator for about page - no movement on hover/click */
.about-page .main-nav-indicator {
	position: absolute;
	left: calc(100% - 120px); /* Position under "About" */
	transition: none !important;
	transform: none !important;
}

.status-indicator.filled {
	background: #FD3B31;
}

.status-indicator.dashed {
	background: transparent;
	border: 1px dashed #FD3B31;
	border-radius: 50%;
}

@media (max-width: 1440px) {
  h1 {
    font-size: clamp(2rem, 1.375rem + 1.25vw, 2.5rem);
    line-height: clamp(2.5rem, 1.875rem + 1.25vw, 3rem);
  }

  h2 {
    font-size: clamp(1.5rem, 0.875rem + 1.25vw, 2rem);
    line-height: clamp(2rem, 1.375rem + 1.25vw, 2.5rem);
  }

  h4 {
    font-size: clamp(1rem, 0.6875rem + 0.625vw, 1.25rem);
    line-height: clamp(1.5rem, 1.1875rem + 0.625vw, 1.75rem);
  }
  .content-container.centered {
    padding: 0 clamp(3rem, -8.3701rem + 22.0779vw, 11.5rem);
  }

  .content-container.padded.large {
    width: 100%;
    padding: var(--section-spacing) clamp(3rem, -8.3701rem + 22.0779vw, 11.5rem);
  }

  .content-container.padded {
    /* width: calc(100% - 4rem); */
    display: flex;
    /* margin: 0 auto; */
    padding: 3rem clamp(3rem, -8.3701rem + 22.0779vw, 11.5rem);
    background: var(--bg-secondary);
    width: 100%;
  }

  .about-main, .hero .hero-text {
    width: 100%;
    padding: var(--section-spacing) clamp(3rem, -23.7532rem + 51.9481vw, 23rem);
  }

  .about-main .content-container {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  #projects {
    /* display: grid; */
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-xl); /* 32px */
    margin-top: 2rem;
  }
}

@media (max-width: 824px) {
  .about-main, .hero .hero-text {
    /* width: 100vw; */
    /* width: 100%; */
    padding: var(--section-spacing) clamp(1rem, -0.6704rem + 7.1269vw, 3rem);
  }
  
  .case-study-blur {
    width: 100%; /* 4/5 of screen width */
    /* height: 5.5rem; */
  }

  .case-study-top-nav::before {
    display: none;
    /* content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; */
  }
  .padded-container {
    padding: clamp(1rem, 0.1648rem + 3.5635vw, 2rem);
  }

  p.text-small {
    font-size: clamp(0.75rem, 0.6397rem + 0.4706vw, 0.875rem);
    line-height: clamp(1.125rem, 1.0147rem + 0.4706vw, 1.25rem);
  }

  #projects {
    /* display: grid; */
    grid-template-columns: repeat(1, 1fr);
    gap: var(--gap-xl); /* 32px */
    margin-top: 2rem;
  }

  .case-study-nav {
    display: none;
  }

  .content-container.centered {
    padding: 0 clamp(1rem, -0.6704rem + 7.1269vw, 3rem);
  }

  .content-container.padded.large {
    width: 100%;
    padding: var(--section-spacing) clamp(1rem, -0.6704rem + 7.1269vw, 3rem);
  }

  .content-container.padded {
    /* width: calc(100% - 4rem); */
    display: flex;
    /* margin: 0 auto; */
    padding: 3rem clamp(1rem, -0.6704rem + 7.1269vw, 3rem);
    background: var(--bg-secondary);
    width: 100%;
  }
  /* .case-study .footer {
    width: 100vw;
	    padding: 32px 5%;
	    justify-content: center;
	} */
	
	.footer-content {
	    width: 100%; /* Full width on mobile */
	}
	
	/* .footer-main {
	    flex-direction: column;
	    gap: 1.5rem;
	} */
	
	.footer-text {
	    font-size: var(--text-lg);
	}
	
	.footer-email-container {
	    width: 100%;
	    justify-content: center;
	}

	/* .nav-links {
	    flex-direction: column;
	    gap: var(--gap-md);
	} */
	
	.note {
	    padding: 15px;
	}
	
	.note-content h3 {
	    font-size: 1.125rem;
	}
	
	.carousel-container,
	.hero-text {
	    width: 100%;
	}
	
	.carousel-wrapper {
	    height: 50vh;
	} */
	
	.hero-title {
	    font-size: 1.25rem; /* 20px */
	    line-height: 1.5rem; /* 24px */
	}
	
	.status-line {
	    flex-direction: column;
	    align-items: flex-start;
	    gap: var(--gap-sm); /* 8px */
	}
	
	#projects {
	    grid-template-columns: 1fr;
	    gap: 1.5rem; /* Can use .gap-24 */
	}
	
	#projects.list .project {
	    flex-direction: column;
	    align-items: flex-start;
	    gap: var(--gap-md); /* 16px */
	}
	
	#projects.list .project .image-container {
	    flex: none;
	    width: 100%;
	}
	 
  header, .case-study-top-nav {
    height: clamp(4rem, 2.7472rem + 5.3452vw, 5.5rem);
  }
	.container {
	    padding: 0 clamp(1rem, 0.1648rem + 3.5635vw, 2rem);
	}
	
	.footer-container {
	    width: 90vw;
	    max-width: 500px;
	}
	
	.footer-card {
	    padding: var(--gap-xl); /* 32px */
	    gap: var(--gap-xl); /* 32px */
	}
	
	.footer-text h3 {
	    font-size: var(--text-lg);
	}
	
	.email-container {
	    flex-wrap: wrap;
	    justify-content: center;
	    gap: var(--gap-xs); /* 4px */
	}

	/* .hero-content {
	    flex-direction: column;
	    gap: var(--gap-xl); /* 32px 
	}*/
	
	.hero-meta {
	    grid-template-columns: 1fr;
	    gap: var(--gap-md); /* 16px */
	}
	
	.hero-media {
	    max-width: 100%;
	} */

	.loading-logo svg {
	    width: 40px;
	    height: 40px;
	}
	
	.loading-text {
	    font-size: 1rem;
	}

  .footer-main {
    padding: clamp(1rem, 0.1648rem + 3.5635vw, 2rem);
  }

  .footer-note {
    padding: clamp(0.5rem, 0.0824rem + 1.7817vw, 1rem) clamp(1rem, 0.1648rem + 3.5635vw, 2rem);
  }
}  

/* 1400, 1200, 992, 768, 576 */
/* Toggle Component */
.toggle-container {
  display: flex;
  /* background: var(--bg-secondary); */
  border: 1px solid var(--text-muted);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin: 0 auto;
  width: fit-content;
  gap: 4px;
}

.toggle-option {
  padding: 4px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  /* transition: all 0.2s ease; */
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
}

.toggle-option:hover:not(.active) {
  background-color: var(--bg-secondary);
}

.toggle-option.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
}

.toggle-option[data-toggle="before"].active {
  background: var(--before);
  color: var(--bg-primary);
}

.toggle-option[data-toggle="after"].active {
  background: var(--after);
  color: var(--bg-primary);
}

.toggle-option:hover:not(.active) {
  color: var(--text-primary);
}

.toggle-content {
  width: 100%;
}

.toggle-content img {
  width: 100%;
  height: auto;
  display: block;
}

/* Carousel Component */
.carousel-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-dots-container {
  display: flex;
  /* background: var(--bg-primary); */
  border: 1px solid var(--text-muted);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin: 0 auto var(--gap-xl) auto;
  width: fit-content;
  gap: 4px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--gap-md);
}

.carousel-dot {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  /* transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-family: "Figtree", sans-serif;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
}

.carousel-dot:hover {
  background: var(--hover-color);
  color: var(--text-primary);
}

.carousel-dot.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.carousel-slide {
  display: none;
  width: 100%;
}

.carousel-slide.active {
  display: block;
}

.carousel-content {
  display: flex;
  gap: var(--gap-xl);
  align-items: center;
}

/* .carousel-text {
  flex: 1;
  display: flex;
  align-items: center;
} */

.carousel-bullet {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

.carousel-bullet p {
  margin: 0;
  font-size: 1rem;
}

.carousel-image {
  flex: 1;
}

.carousel-image img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  image-rendering: auto;
}

/* Case Study Footer Responsive */
@media (max-width: 532px) {
  .comparison-container {
    flex-direction: column;
    gap: var(--gap-xl);
  }

  .text-row {
    flex-direction: column;
  }

  .annotation-grid {
    grid-template-columns: repeat(1, 1fr); 
    gap: clamp(1rem, -0.1943rem + 5.0955vw, 1.5rem);
  }

  .footer-main .right {
    width: 100%;
  }

  .footer-main .left {
    width: 100%;
  }
  
  .footer-main {
    flex-direction: column;
    gap: var(--gap-xl);
  }
  /* .annotation-grid .padded-container img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .annotation-grid .padded-container p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
  } */

	.row {
	    flex-direction: column;
	    gap: var(--gap-md); /* 16px */ /* 16px on mobile */
	}
	
  .row-center {
    flex-direction: column;
	  gap: var(--gap-md); /* 16px */ /* 16px on mobile */
  }

	.row-mobile-stack {
	    flex-direction: column;
	    gap: var(--gap-md); /* 16px */
	}
	
	.row-mobile-horizontal {
	    flex-direction: row;
	    gap: var(--gap-md); /* 16px */
	}
}