/* ===========================================
   PORTFOLIO STYLES - Claudia Luna
   Consolidated & Cleaned CSS
   =========================================== */

/* Google Fonts are loaded in HTML head */

/* ===========================================
   CSS VARIABLES
   =========================================== */
:root {
    --bg-primary: #F6F7F2;
    --bg-secondary: #EFEDE8;
    --text-primary: #000000;
    --text-secondary: #000000;
    --text-muted: #525252; /* darkened from #666666 for better contrast */
    --text-label: #000000;
    --border: #E5E3DE;
    --border-light: #ECEAE5;
    --card-bg: #FFFFFF;
    --tag-bg-gray: #E6E6E6;
    --tag-bg-gray-hover: #D6D6D6;
    --tag-bg-green: #D4F7DA;
    --tag-bg-green-hover: #B8E8C0;
    --tag-bg-blue: #B1E4FE;
    --tag-bg-blue-hover: #8DD4F8;
    --tag-bg-pink: #F9D2F2;
    --tag-bg-pink-hover: #F0B8E6;
    --accent-cyan: #00D4D4;
    --btn-dark: #1A1A1A;
    --accent-blue: #4169E1;
    --accent-purple: #8B5CF6;
    --accent-pink: #F06292;
    --accent-green: #10B981;
    --accent-yellow: #FDB71A;
    --accent-red: #EF4444;
    --focus-outline: #4169E1;
}

/* ===========================================
   RESET & BASE STYLES
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ===========================================
   ACCESSIBILITY - SKIP LINK
   =========================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--btn-dark);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
    font-family: "DM Mono", monospace;
    font-size: 14px;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ===========================================
   ACCESSIBILITY - FOCUS STATES
   =========================================== */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.project-item:focus-visible,
.persona-header:focus-visible,
.tag:focus-visible {
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Remove default outline since we're using focus-visible */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* ===========================================
   ACCESSIBILITY - VISUALLY HIDDEN
   =========================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
.external-link-icon {
    width: 16px;
    margin-left: 4px;
}

.mt-32 {
    margin-top: 32px;
}

.mt-16 {
    margin-top: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.italic {
    font-style: italic;
}

body {
    font-family: "TikTok Sans", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.7;
}

/* Make all images responsive by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================================
   LAYOUT - CONTAINERS
   =========================================== */
.page-container {
    padding: 0 70px;
}

.main-content {
    padding: 70px 0 80px;
}

/* Two Column Layout (index page) */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 280px;
}

/* ===========================================
   HEADER (index page)
   =========================================== */
header {
    padding: 28px 0;
    border-bottom: 1px solid var(--border-light);
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0s both;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-icon:hover {
    color: var(--text-primary);
    scale: 1.05;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "DM Mono", monospace;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    transition: all 0.2s ease;
    cursor: pointer;
}

.header-btn:hover {
    border-color: var(--text-muted);
    background: var(--bg-secondary);
    scale: 1.05;
}

.header-btn svg {
    width: 16px;
    height: 16px;
}

/* ===========================================
   PROFILE SECTION (index page)
   =========================================== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #C9FF79;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.profile-info h1 {
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 2.4rem;
    color: var(--text-primary);
    letter-spacing: 0rem;
}

.profile-title {
    font-family: "DM Mono", monospace;
    font-weight: 300;
    font-size: 14px;
    color: #4E4E4E;
}

/* ===========================================
   CONTENT SECTIONS
   =========================================== */
.content-section {
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.content-section:nth-child(1) { animation-delay: 0.2s; }
.content-section:nth-child(2) { animation-delay: 0.3s; }
.content-section:nth-child(3) { animation-delay: 0.4s; }
.content-section:nth-child(4) { animation-delay: 0.5s; }

.section-label {
    font-family: "DM Mono", monospace;
    font-size: 14px;
    color: #4E4E4E;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 300;
    margin-bottom: 0px;
}

.section-text {
    color: var(--text-primary);
    line-height: 2em;
    font-family: "TikTok Sans", sans-serif;
    font-weight: 300;
}

.highlight-text {
    font-family: "TikTok Sans", sans-serif;
    font-weight: 500;
}

/* ===========================================
   LINKS & INLINE ELEMENTS
   =========================================== */
.inline-link {
    color: var(--text-primary);
    text-underline-offset: 3px;
    text-decoration-color: var(--text-primary);
    transition: opacity 0.2s ease;
}

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

/* ===========================================
   TAGS / PILLS
   =========================================== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0px 10px;
    background: transparent;
    border-radius: 50px;
    font-family: "TikTok Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6em;
    color: black;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.tag:hover {
    transform: translateY(-2px);
}

.tag-gray {
    border: 1.5px solid black;
}

.tag-gray:hover {
    border: 1.5px solid #F1B92D;
    background: #F1B92D;
}

.tag-green {
    border: 1.5px solid black;
}

.tag-green:hover {
    border: 1.5px solid #46C7FF;
    background: #46C7FF;
}

.tag-blue {
    border: 1.5px solid black;
}

.tag-blue:hover {
    border: 1.5px solid #FF8255;
    background: #FF8255;
}

.tag-pink {
    border: 1.5px solid black;
}

.tag-pink:hover {
    border: 1.5px solid #94FF63;
    background: #94FF63;
}

/* ===========================================
   INLINE ITEMS (company tag)
   =========================================== */
.inline-item {
    height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #FFFFFF;
    background-color: #574FF4;
}

.inline-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* ===========================================
   FLAG & EMOJI ICONS
   =========================================== */
.flag-icon {
    width: 24px;
    height: 16px;
    border-radius: 6px;
    object-fit: cover;
    vertical-align: middle;
    margin: 0px;
    display: inline-block;
}

.emoji-icon {
    display: inline;
    font-size: 15px;
    vertical-align: middle;
    margin: 0 2px;
}

.flag {
    font-size: 15px;
    vertical-align: middle;
}

/* ===========================================
   BUTTONS
   =========================================== */
.bottom-buttons {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--btn-dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: "DM Mono", monospace;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
    scale: 1.05;
}

.btn-primary svg,
.btn-primary img {
    width: 18px;
    height: 18px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: "DM Mono", monospace;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: var(--bg-secondary);
    scale: 1.05;
}

.btn-secondary svg,
.btn-secondary img {
    width: 18px;
    height: 18px;
}

/* ===========================================
   SIDEBAR - PROJECTS (index page)
   =========================================== */
.sidebar {
    padding-top: 0;
}

.projects-section {
    position: sticky;
    top: 32px;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.projects-label {
    font-family: "TikTok Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.project-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.project-item:nth-child(1) { animation-delay: 0.5s; }
.project-item:nth-child(2) { animation-delay: 0.6s; }
.project-item:nth-child(3) { animation-delay: 0.7s; }

.project-item:hover {
    opacity: 0.7;
}

.project-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--accent-cyan);
    flex-shrink: 0;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item:hover .project-thumb img {
    transform: scale(1.05);
}

.project-content {
    flex: 1;
    min-width: 0;
}

.project-title {
    font-family: "DM Mono", monospace;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.project-meta {
    font-family: "DM Mono", monospace;
    font-size: 12px;
    font-weight: 300;
    color: #7E7E7E;
}

.see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: "DM Mono", monospace;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.see-all-btn:hover {
    border-color: var(--text-muted);
    background: var(--bg-secondary);
    scale: 1.05;
}

.see-all-btn svg {
    width: 16px;
    height: 16px;
}

/* ===========================================
   CASE STUDY PAGES - FIXED SIDEBAR
   =========================================== */
.fixed-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 340px;
    height: 100vh;
    background: #FEFFFB;
    padding: 48px 40px;
    overflow-y: auto;
    border-right: 1px solid var(--border);
    z-index: 100;
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0s both;
}

.back-section {
    margin-bottom: 32px;
}

.sidebar-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.sidebar-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-label {
    font-family: "DM Mono", monospace;
    font-weight: 300;
    color: #3D3D3D; /* darkened from #4E4E4E for better contrast */
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.sidebar-value {
    font-family: "TikTok Sans", sans-serif;
    font-size: 13px;
    font-weight: 300;
    margin-bottom: 8px;
}

.sidebar-link {
    color: var(--accent-blue);
    text-decoration: underline;
    text-decoration-color: rgba(65, 105, 225, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    text-decoration-color: var(--accent-blue);
}

/* Mobile metadata - hidden on desktop */
.mobile-metadata {
    display: none;
}

/* ===========================================
   CASE STUDY PAGES - MAIN WRAPPER
   =========================================== */
.main-wrapper {
    margin-left: 340px;
    width: calc(100% - 340px);
    min-height: 100vh;
}

.main-wrapper .page-container {
    padding: 0 80px;
    max-width: 1200px;
}

.main-wrapper .main-content {
    padding: 50px 0 80px;
}

/* ===========================================
   CASE STUDY PAGES - PAGE TITLE
   =========================================== */
.page-title-section {
    margin-bottom: 24px;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.page-title {
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

/* ===========================================
   CASE STUDY PAGES - HERO
   =========================================== */
.hero-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.hero-title {
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "DM Mono", monospace;
    font-size: 13px;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    background: var(--btn-dark);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn:hover {
    transform: scale(1.05);
}

.hero-btn svg {
    width: 16px;
    height: 16px;
}

.hero-image {
    width: 100%;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 60px;
    animation: scaleIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* ===========================================
   CASE STUDY PAGES - CONTENT BLOCKS
   =========================================== */
.content-block {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.section-title {
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0px;
    letter-spacing: -0.01em;
}

.section-subtitle:first-child {
    margin-top: 0;
}

.content-text {
    color: var(--text-primary);
    line-height: 2em;
    font-family: "TikTok Sans", sans-serif;
    font-weight: 300;
}

.content-text strong {
    font-weight: 500;
}

.content-text a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.content-text a:hover {
    opacity: 0.7;
}

/* ===========================================
   CASE STUDY PAGES - IMAGES
   =========================================== */
.images-box {
    justify-content: center;
    margin-top: 16px;
    display: flex;
}

.images-screen {
    margin-bottom: 16px;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    width: 100%;
}

video.images-screen {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.video-caption {
    font-family: "DM Mono", monospace;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    display: block;
    width: 100%;
}

.images-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-figure {
    width: 100%;
    margin: 0;
}

.video-caption {
    font-family: "DM Mono", monospace;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

.testimonial-box {
    justify-content: center;
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.testimonial-screen {
    margin-bottom: 16px;
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.testimonial-screen img {
    max-width: 100%;
    height: auto;
}

/* ===========================================
   CASE STUDY PAGES - COLOR SWATCHES
   =========================================== */
.color-palette-section {
    margin: 32px 0;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 32px;
}

.color-palette-title {
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.color-category-label {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    color: #4E4E4E;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 24px 0 8px 0;
}

.color-category-label:first-of-type {
    margin-top: 0;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.color-grid:last-child {
    margin-bottom: 0;
}

.color-swatch {
    border-radius: 8px;
    padding: 16px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.color-swatch-name {
    font-size: 13px;
    font-family: 'Google Sans Flex', sans-serif;
    font-weight: 500;
    margin-bottom: 2px;
}

.color-swatch-hex {
    font-size: 11px;
    font-family: "DM Mono", monospace;
    opacity: 0.8;
}

/* Light text for dark backgrounds */
.color-swatch.light-text .color-swatch-name,
.color-swatch.light-text .color-swatch-hex {
    color: #FFFFFF;
}

.color-swatch.light-text .color-swatch-hex {
    color: rgba(255, 255, 255, 0.7);
}

/* Dark text for light backgrounds */
.color-swatch.dark-text .color-swatch-name,
.color-swatch.dark-text .color-swatch-hex {
    color: #1A1A1A;
}

.color-swatch.dark-text .color-swatch-hex {
    color: rgba(0, 0, 0, 0.6);
}

/* White swatches need a gray stroke */
.color-swatch.color-swatch-white {
    border: 1px solid #E5E3DE;
}

/* ===========================================
   SECTION TITLE WITH ICON (inline)
   =========================================== */
.section-title-with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.section-title-with-icon img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.section-title-with-icon .section-title {
    margin-bottom: 0;
}

/* ===========================================
   CASE STUDY PAGES - PROCESS STEPS
   =========================================== */
.process-steps {
    display: flex;
    gap: 32px;
    margin: 16px 0;
    flex-wrap: wrap;
    padding: 8px 0;
    justify-content: center;
}

.process-step {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.9);
}

.process-step.visible {
    opacity: 1;
    transform: scale(1);
}

.process-step:nth-child(1) { transition-delay: 0.1s; }
.process-step:nth-child(2) { transition-delay: 0.2s; }
.process-step:nth-child(3) { transition-delay: 0.3s; }
.process-step:nth-child(4) { transition-delay: 0.4s; }
.process-step:nth-child(5) { transition-delay: 0.5s; }

.process-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* ===========================================
   CASE STUDY PAGES - LISTS
   =========================================== */
.token-list {
    margin: 16px 0;
    padding-left: 24px;
}

.token-list li {
    margin-bottom: 8px;
    line-height: 1.8;
}

code {
    font-family: "DM Mono", monospace;
    font-size: 13px;
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

/* ===========================================
   CASE STUDY PAGES - HIGHLIGHT BOX
   =========================================== */
.highlight-box {
    background: white;
    padding: 24px;
    border-radius: 8px;
    margin: 16px 0;
    font-style: italic;
}

/* ===========================================
   CASE STUDY PAGES - FEATURE LIST
   =========================================== */
.feature-list {
    margin: 16px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
}

.feature-item svg,
.feature-item img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===========================================
   CASE STUDY PAGES - NUMBERED LIST
   =========================================== */
.numbered-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.number-badge {
    width: 32px;
    height: 32px;
    background: rgba(65, 105, 225, 0.12);
    border: 1px solid var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "DM Mono", monospace;
    font-size: 14px;
    flex-shrink: 0;
    color: var(--accent-blue);
    font-weight: 500;
}

.numbered-content h3 {
    font-family: "TikTok Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* ===========================================
   CASE STUDY PAGES - PERSONA ACCORDION
   =========================================== */
.persona-accordion {
    margin: 16px 0;
}

.persona-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.persona-item:hover {
    border-color: var(--text-muted);
}

.persona-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    background: var(--card-bg);
    transition: background 0.3s ease;
    user-select: none;
}

.persona-header:hover {
    background: var(--bg-secondary);
}

.persona-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.persona-number {
    width: 36px;
    height: 36px;
    background: rgba(65, 105, 225, 0.12);
    border: 1px solid var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "DM Mono", monospace;
    font-size: 14px;
    flex-shrink: 0;
    color: var(--accent-blue);
    font-weight: 500;
}

.persona-header h3 {
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.persona-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.persona-item.active .persona-icon {
    transform: rotate(180deg);
}

.persona-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "TikTok Sans", sans-serif;
}

.persona-item.active .persona-content {
    max-height: 1000px;
}

.persona-inner {
    padding: 24px;
}

.persona-inner p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
    font-family: "TikTok Sans", sans-serif;
}

.persona-inner p:last-child {
    margin-bottom: 0;
}

/* ===========================================
   CASE STUDY PAGES - PROTOTYPE SECTION
   =========================================== */
.prototype-section {
    background: #DAEEF3;
    border-radius: 12px;
    text-align: center;
    margin: 48px 0;
    padding: 32px;
}

.prototype-title {
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
}

.figma-embed {
    width: 100%;
    height: 600px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    max-width: 100%;
}

/* ===========================================
   CASE STUDY PAGES - BACK TO TOP
   =========================================== */
.back-to-top {
    text-align: center;
    padding: 40px 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "DM Mono", monospace;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn:hover {
    border-color: var(--text-muted);
    background: var(--bg-secondary);
    transform: scale(1.05);
}

.back-btn svg,
.back-btn img {
    width: 16px;
    height: 16px;
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================================
   RESPONSIVE - TABLET (1200px)
   =========================================== */
@media (max-width: 1200px) {
    .fixed-sidebar {
        width: 300px;
    }

    .main-wrapper {
        margin-left: 300px;
        width: calc(100% - 300px);
    }

    .main-wrapper .page-container {
        padding: 0 50px;
    }
}

/* ===========================================
   RESPONSIVE - TABLET (1024px)
   =========================================== */
@media (max-width: 1024px) {
    .page-container {
        padding: 0 32px;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .sidebar {
        border-top: 1px solid var(--border-light);
        padding-top: 40px;
    }

    .projects-section {
        position: static;
    }

    .projects-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ===========================================
   RESPONSIVE - TABLET (968px)
   =========================================== */
@media (max-width: 968px) {
    body.case-study {
        flex-direction: column;
    }

    .fixed-sidebar {
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        background: var(--bg-primary);
        z-index: 100;
    }

    .fixed-sidebar .back-section {
        margin-bottom: 0;
    }

    .fixed-sidebar .sidebar-section {
        display: none;
    }

    /* Mobile metadata section - shown below hero */
    .mobile-metadata {
        display: block;
        margin-bottom: 40px;
        padding: 24px;
        background: #FFFFFF;
        border-radius: 12px;
    }

    .mobile-metadata .sidebar-section {
        display: block;
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .main-wrapper .page-container {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .figma-embed {
        height: 400px;
    }
}

/* ===========================================
   RESPONSIVE - MOBILE (640px)
   =========================================== */
@media (max-width: 640px) {
    .page-container {
        padding: 0 20px;
    }

    header {
        padding: 20px 0;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 16px;
    }

    .header-btn span {
        display: none;
    }

    .header-btn {
        padding: 10px 14px;
    }

    .two-column-layout {
        gap: 40px;
    }

    .profile-header {
        margin-bottom: 28px;
    }

    .profile-info h1 {
        font-size: 24px;
    }

    .profile-title {
        font-size: 11px;
    }

    .content-section {
        margin-bottom: 28px;
    }

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

    .bottom-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .prototype-section {
        padding: 32px 24px;
    }

    .testimonial-box {
        flex-direction: column;
    }

    .process-steps {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .process-step {
        width: 100%;
        text-align: center;
    }

    .process-step:not(:last-child)::after {
        content: '↓';
        position: absolute;
        right: auto;
        left: 50%;
        top: auto;
        bottom: -20px;
        transform: translateX(-50%);
        color: var(--text-muted);
    }

    .process-step:not(:last-child) {
        margin-bottom: 28px;
    }

    /* Color swatches - compact grid on mobile */
    .color-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .color-swatch {
        min-height: 60px;
        padding: 8px;
        border-radius: 6px;
    }

    .color-swatch-name {
        font-size: 8px;
        word-break: break-word;
        hyphens: auto;
    }

    .color-swatch-hex {
        font-size: 7px;
    }

    .color-palette-section {
        padding: 16px;
        margin: 16px 0;
    }

    .color-palette-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    /* Section title with icon - hide icon on mobile */
    .section-title-with-icon img {
        display: none;
    }
}

/* ===========================================
   RESPONSIVE - EXTRA SMALL (400px)
   =========================================== */
@media (max-width: 400px) {
    /* Color swatches - horizontal scroll on very small screens */
    .color-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        gap: 8px;
    }

    .color-swatch {
        flex: 0 0 80px;
        min-height: 70px;
        scroll-snap-align: start;
    }

    .color-swatch-name {
        font-size: 9px;
    }

    .color-swatch-hex {
        font-size: 8px;
    }
}
