/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition-timing-function: ease-in-out; /* Global ease-in-out for all transitions */
}

/* Hide scrollbar for all pages */
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    padding-bottom: 20px;
}

/* Vertical padding system */
.py-4 { padding-top: 4px; padding-bottom: 4px; }
.py-8 { padding-top: 8px; padding-bottom: 8px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }
.py-16 { padding-top: 16px; padding-bottom: 16px; }
.py-20 { padding-top: 20px; padding-bottom: 20px; }
.py-24 { padding-top: 24px; padding-bottom: 24px; }
.py-32 { padding-top: 32px; padding-bottom: 32px; }
.py-40 { padding-top: 40px; padding-bottom: 40px; }

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Main container keeps flex for header only */
main .container {
    display: block;
}

/* Header */
header {
    padding: 40px 0 40px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease-in-out;
    will-change: padding, background-color;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #007AFF;
    z-index: 1001;
    transition: width 0.1s ease-in-out;
    will-change: width;
}

header.scrolled {
    padding: 8px 0 12px 0;
    background-color: #ffffff;
    backdrop-filter: blur(10px);
}

body.dark-theme header.scrolled {
    background-color: #000000;
}

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

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #000000;
    letter-spacing: -0.5px;
    transition: font-size 0.3s ease-in-out;
    text-decoration: none;
    display: inline-block;
    will-change: font-size;
}

.logo:hover {
    color: #666;
}

header.scrolled .logo {
    font-size: 1.25rem; /* 20px */
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    gap: 8px;
}

.theme-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.theme-option:hover {
    border-color: #2c3e50;
    transform: scale(1.1);
}

.theme-option.active {
    border-color: #2c3e50;
}

.theme-option.active:hover {
    border-color: #2c3e50;
}

.theme-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: background-color 0.2s ease-in-out;
}

.theme-option[data-theme="dark"] .theme-circle {
    background-color: #1a1a1a;
}

.theme-option[data-theme="light"] .theme-circle {
    background-color: #f8f9fa;
}

/* Dark theme styles */
body.dark-theme {
    background-color: #000000;
    color: #ffffff;
}

body.dark-theme .logo {
    color: #ffffff;
}

body.dark-theme .logo:hover {
    color: #cccccc;
}

body.dark-theme .theme-option:hover {
    border-color: #ffffff;
    transform: scale(1.1);
}

body.dark-theme .theme-option.active {
    border-color: #ffffff;
}

body.dark-theme .theme-option.active:hover {
    border-color: #ffffff;
}

body.dark-theme .content-card {
    background-color: #000000;
    border: 1px solid #404040;
}

body.dark-theme .content-card:hover {
    transform: scale(1.005);
    border-color: #ffffff;
}

body.dark-theme .card-title {
    color: #ffffff;
}

body.dark-theme .card-description {
    color: rgb(200, 200, 200);
}

/* Footer */
footer {
    text-align: center;
    padding: 80px 0 0 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
}

.social-link:hover {
    opacity: 0.6;
}

body.dark-theme .social-link {
    background-color: #ffffff;
    color: #000000;
}

body.dark-theme .social-link:hover {
    opacity: 0.6;
}

.footer-text {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.footer-text a {
    color: inherit;
    text-decoration: underline;
}

.footer-text a:hover {
    text-decoration: underline;
}

body.dark-theme .footer-text {
    color: #999;
}

/* Main content */
main {
    padding: 0 0 40px 0;
}

/* Content grid */
.content-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Category labels */
.category-label {
    font-size: 1.75rem;
    font-weight: 600;
    color: #000000;
    margin: 0 0 24px 0;
    line-height: 1.2;
}

.category-label:not(:first-child) {
    margin-top: 80px;
}

body.dark-theme .category-label {
    color: #ffffff;
}

/* Reflections Carousel */
.reflections-carousel-section {
    position: relative;
    margin-bottom: 40px;
}

.reflections-carousel-section .scroll-container {
    position: relative;
}

.reflection-card {
    display: flex;
    flex-direction: column;
    min-width: 280px;
    max-width: 280px;
    height: 173px;
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    scroll-snap-align: start;
}

.reflection-card:hover {
    border-color: #2c3e50;
}

body.dark-theme .reflection-card {
    background-color: #000000;
    border-color: #404040;
}

body.dark-theme .reflection-card:hover {
    border-color: #ffffff;
}

.reflection-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    justify-content: space-between;
}

.reflection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin: 0;
    line-height: 1.3;
}

body.dark-theme .reflection-title {
    color: #ffffff;
}

/* Reflection page header */
.reflection-header {
    margin: 0 64px 64px 64px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Reflection page title (larger) */
.reflection-header .reflection-title {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
}

.reflection-date {
    font-size: 0.9rem;
    color: rgb(55, 55, 55);
    margin: 0;
    line-height: 1.5;
}

body.dark-theme .reflection-date {
    color: rgb(200, 200, 200);
}

/* Reflection page date (larger, matches project-subtitle) */
.reflection-header .reflection-date {
    font-size: 1.25rem;
    line-height: 1.4;
}

/* Content cards */
.content-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease-in-out;
    padding: 24px 24px 32px 24px;
}

.content-card:hover {
    transform: scale(1.005);
    border-color: #2c3e50;
}

/* Card image */
.card-image {
    width: 100%;
    aspect-ratio: 1.618 / 1;
    padding: 0px;
    margin: 0px 0px 32px 0px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 16px;
}

/* SVG theme switching */
.card-image img,
.project-image img {
    filter: none;
}

.gradient-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.gradient-1 {
    background: linear-gradient(135deg, #87CEEB 0%, #FFB6C1 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #B0E0E6 0%, #FFC0CB 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #ADD8E6 0%, #F8BBD9 100%);
}

.gradient-4 {
    background: linear-gradient(135deg, #87CEFA 0%, #FFB6C1 100%);
}

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

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

/* Card content */
.card-content {
    padding: 0px;
    margin: 0px;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0px 0px 12px 0px;
    padding: 0px;
    color: #000000;
}

.card-description {
    font-size: 1rem;
    color: rgb(55, 55, 55);
    line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
    .content-grid {
        gap: 32px;
    }
    
    .category-label {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .category-label:not(:first-child) {
        margin-top: 64px;
    }
    
    header {
        padding: 16px 0 16px 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    main {
        padding: 32px 0;
    }
    
    .content-card {
        height: auto;
        padding: 16px;
    }
    
    .card-image {
        width: 100%;
        aspect-ratio: 1.618 / 1;
        padding: 0px;
        margin: 0px 0px 16px 0px;
        box-sizing: border-box;
    }
    
    .card-content {
        height: auto;
        padding: 0px;
        margin: 0px;
    }
    
    .content-card .card-title {
        font-size: 1.25rem;
        margin: 0px 0px 8px 0px !important;
        padding: 0px;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
    
    .reflection-header {
        margin: 0 0 48px 0 !important;
    }
    
    .container > .reflection-content {
        margin: 0 !important;
    }
    
    .reflection-section h2 {
        margin: 48px 0 16px 0 !important;
    }
}

@media (max-width: 480px) {
    .content-grid {
        gap: 32px;
    }
    
    .card-content {
        padding: 0px;
        margin: 0px;
    }
    
    .content-card .card-title {
        font-size: 1.1rem;
        margin: 0px 0px 8px 0px !important;
        padding: 0px;
    }
    
    .reflection-card .reflection-title {
        font-size: 1.1rem;
    }
    
    .reflection-header {
        margin: 0 0 48px 0 !important;
    }
    
    .container > .reflection-content {
        margin: 0 !important;
    }
    
    .reflection-section h2 {
        margin: 48px 0 16px 0 !important;
    }
}

/* Project Page Styles */
/* Project Color Themes */
/* Chronicle - Light mode uses darker green for accessibility */
body[data-project="chronicle"] .project-title,
body[data-project="chronicle"] .project-section h2,
body[data-project="chronicle"] .project-metrics .text-muted-foreground,
body[data-project="chronicle"] .project-section .text-muted-foreground {
    color: #2d9e6b;
}

body[data-project="chronicle"] .progress-bar {
    background-color: #2d9e6b;
}

/* Chronicle - Dark mode uses original bright green */
body.dark-theme[data-project="chronicle"] .project-title,
body.dark-theme[data-project="chronicle"] .project-section h2,
body.dark-theme[data-project="chronicle"] .project-metrics .text-muted-foreground,
body.dark-theme[data-project="chronicle"] .project-section .text-muted-foreground {
    color: #48d597;
}

body.dark-theme[data-project="chronicle"] .progress-bar {
    background-color: #48d597;
}

/* Geni - Uses same colors as Chronicle */
body[data-project="geni"] .project-title,
body[data-project="geni"] .project-section h2,
body[data-project="geni"] .project-metrics .text-muted-foreground,
body[data-project="geni"] .project-section .text-muted-foreground {
    color: #2d9e6b;
}

body[data-project="geni"] .progress-bar {
    background-color: #2d9e6b;
}

body.dark-theme[data-project="geni"] .project-title,
body.dark-theme[data-project="geni"] .project-section h2,
body.dark-theme[data-project="geni"] .project-metrics .text-muted-foreground,
body.dark-theme[data-project="geni"] .project-section .text-muted-foreground {
    color: #48d597;
}

body.dark-theme[data-project="geni"] .progress-bar {
    background-color: #48d597;
}

/* Design Critique - Light mode uses brighter yellow */
body[data-project="design-critique"] .project-title,
body[data-project="design-critique"] .project-section h2,
body[data-project="design-critique"] .project-metrics .text-muted-foreground,
body[data-project="design-critique"] .project-section .text-muted-foreground {
    color: #e6a82d;
}

body[data-project="design-critique"] .progress-bar {
    background-color: #e6a82d;
}

/* Design Critique - Dark mode uses original bright yellow */
body.dark-theme[data-project="design-critique"] .project-title,
body.dark-theme[data-project="design-critique"] .project-section h2,
body.dark-theme[data-project="design-critique"] .project-metrics .text-muted-foreground,
body.dark-theme[data-project="design-critique"] .project-section .text-muted-foreground {
    color: #f5b944;
}

body.dark-theme[data-project="design-critique"] .progress-bar {
    background-color: #f5b944;
}

/* Clarity - Light mode uses darker blue for accessibility */
body[data-project="clarity"] .project-title,
body[data-project="clarity"] .project-section h2,
body[data-project="clarity"] .project-metrics .text-muted-foreground,
body[data-project="clarity"] .project-section .text-muted-foreground {
    color: #4a7bdb;
}

body[data-project="clarity"] .progress-bar {
    background-color: #4a7bdb;
}

/* Clarity - Dark mode uses original bright blue */
body.dark-theme[data-project="clarity"] .project-title,
body.dark-theme[data-project="clarity"] .project-section h2,
body.dark-theme[data-project="clarity"] .project-metrics .text-muted-foreground,
body.dark-theme[data-project="clarity"] .project-section .text-muted-foreground {
    color: #6b9aff;
}

body.dark-theme[data-project="clarity"] .progress-bar {
    background-color: #6b9aff;
}

/* UX Brief Creator - Light mode uses darker purple for accessibility */
body[data-project="ux-brief-creator"] .project-title,
body[data-project="ux-brief-creator"] .project-section h2,
body[data-project="ux-brief-creator"] .project-metrics .text-muted-foreground,
body[data-project="ux-brief-creator"] .project-section .text-muted-foreground {
    color: #8e6bb8;
}

body[data-project="ux-brief-creator"] .progress-bar {
    background-color: #8e6bb8;
}

/* UX Brief Creator - Dark mode uses original bright purple */
body.dark-theme[data-project="ux-brief-creator"] .project-title,
body.dark-theme[data-project="ux-brief-creator"] .project-section h2,
body.dark-theme[data-project="ux-brief-creator"] .project-metrics .text-muted-foreground,
body.dark-theme[data-project="ux-brief-creator"] .project-section .text-muted-foreground {
    color: #be95eb;
}

body.dark-theme[data-project="ux-brief-creator"] .progress-bar {
    background-color: #be95eb;
}

/* Reflection - Uses default black/white (no custom colors) */
body[data-project="reflection"] .reflection-title,
body[data-project="reflection"] .reflection-section h2 {
    color: #000000;
}

body[data-project="reflection"] .progress-bar {
    background-color: #000000;
}

body.dark-theme[data-project="reflection"] .reflection-title,
body.dark-theme[data-project="reflection"] .reflection-section h2 {
    color: #ffffff;
}

body.dark-theme[data-project="reflection"] .progress-bar {
    background-color: #ffffff;
}

/* Reflection content text matches project page body text */
.container > .reflection-content {
    margin: 0 64px;
}

.reflection-section p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgb(55, 55, 55);
    margin: 0 0 16px 0;
}

.reflection-section p:last-child {
    margin-bottom: 0;
}

.reflection-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 64px 0 16px 0;
    color: #000000;
}

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

.reflection-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 32px 0 16px 0;
    color: #000000;
}

body.dark-theme .reflection-section h2 {
    color: #ffffff;
}

body.dark-theme .reflection-section h3 {
    color: #ffffff;
}

body.dark-theme .reflection-section p {
    color: rgb(200, 200, 200);
}

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

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease-in-out;
}

.back-link:hover {
    color: #2c3e50;
}

body.dark-theme .back-link {
    color: #999;
}

body.dark-theme .back-link:hover {
    color: #ffffff;
}

/* Project Hero Section */
.project-hero {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-bottom: 64px;
}

.project-image {
    width: 100%;
    aspect-ratio: 1.618 / 1;
    border-radius: 16px;
    overflow: hidden;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 64px;
    max-width: 824px;
    margin: 0 auto 64px auto;
}

.project-title {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    color: #000000;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.25rem;
    color: rgb(55, 55, 55);
    margin: 0;
    line-height: 1.4;
}

.project-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.project-meta span {
    padding: 8px 16px;
    background-color: #f8f9fa;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #666;
    border: 1px solid #e1e8ed;
}

/* Dark theme project styles */
body.dark-theme .project-title {
    color: #ffffff;
}

body.dark-theme .project-subtitle {
    color: rgb(200, 200, 200);
}

body.dark-theme .project-meta span {
    background-color: #1a1a1a;
    color: #cccccc;
    border-color: #404040;
}

/* Project Content */
.project-content {
    max-width: 824px;
    margin: 0 auto 64px auto;
}

/* Content Image */
.content-image-container {
    margin-bottom: 64px;
}

.content-image {
    width: 100%;
    aspect-ratio: 1.618 / 1;
    border-radius: 16px;
    overflow: hidden;
}

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

.project-section {
    margin-bottom: 64px;
}

.project-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #000000;
}

.project-section p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgb(55, 55, 55);
    margin: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgb(55, 55, 55);
    margin-bottom: 4px;
    padding-left: 16px;
    position: relative;
}

.feature-list li::before {
    content: "•";
    color: rgb(55, 55, 55);
    font-size: 1.125rem;
    position: absolute;
    left: 0;
    top: 0;
}

/* Dark theme content */
body.dark-theme .project-section h2 {
    color: #ffffff;
}

body.dark-theme .project-section p,
body.dark-theme .feature-list li {
    color: rgb(200, 200, 200);
}

body.dark-theme .feature-list li::before {
    color: rgb(200, 200, 200);
}

/* Project Navigation */
.project-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 80px 0 0 0;
    margin: 0;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.prev-project,
.next-project,
.home-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000000;
}

.prev-project svg,
.next-project svg,
.home-link svg {
    width: 16px;
    height: 16px;
    color: inherit;
    display: block;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.nav-link:active {
    transform: scale(0.95);
}

.nav-link.disabled {
    opacity: 0;
    cursor: not-allowed;
    pointer-events: none;
}

body.dark-theme .nav-link {
    color: #ffffff;
}

body.dark-theme .prev-project,
body.dark-theme .next-project,
body.dark-theme .home-link {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Project Metrics */
.project-metrics {
    margin-top: 12px;
    margin-bottom: 0;
}

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

@media (min-width: 768px) {
    .project-metrics .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Grid styles for project sections (Use Cases, etc.) */
.project-section .grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .project-section .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Support for 3-column grid */
.project-section .grid.grid-cols-2.md\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .project-section .grid.grid-cols-2.md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-section .bg-muted {
    background-color: #F0F0F0;
}

body.dark-theme .project-section .bg-muted {
    background-color: #141414;
}

.project-section .rounded-12 {
    border-radius: 12px;
}

.project-section .p-4 {
    padding: 24px;
}

.project-section .text-center {
    text-align: center;
}

.project-section .text-sm {
    font-size: 0.875rem;
}

.project-section .text-muted-foreground {
    color: rgb(55, 55, 55);
}

body.dark-theme .project-section .text-muted-foreground {
    color: rgb(200, 200, 200);
}

.project-section .uppercase {
    text-transform: uppercase;
}

.project-section .tracking-wide {
    letter-spacing: 0.05em;
}

.project-section .mb-2 {
    margin-bottom: 8px;
}

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

/* Set standard body text size for project section cards */
.project-section .bg-muted > div {
    font-size: 1rem;
    line-height: 1.7;
}

.project-metrics .bg-muted {
    background-color: #F0F0F0;
}

body.dark-theme .project-metrics .bg-muted {
    background-color: #141414;
}

.project-metrics .rounded-12 {
    border-radius: 16px;
}

.project-metrics .p-4 {
    padding: 24px;
}

.project-metrics .text-center {
    text-align: center;
}

.project-metrics .text-sm {
    font-size: 0.875rem;
}

.project-metrics .text-muted-foreground {
    color: #666;
}

body.dark-theme .project-metrics .text-muted-foreground {
    color: #999;
}

.project-metrics .uppercase {
    text-transform: uppercase;
}

.project-metrics .tracking-wide {
    letter-spacing: 0.025em;
}

.project-metrics .mb-2 {
    margin-bottom: 8px;
}

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

/* Set standard body text size for metrics cards */
.project-metrics .bg-muted > div {
    font-size: 1rem;
    line-height: 1.7;
}

.project-metrics .mb-2 {
    margin-bottom: 4px;
}

/* Responsive Design for Project Pages */
@media (max-width: 768px) {
    .project-hero {
        gap: 32px;
        margin-bottom: 48px;
    }
    
    .project-info {
        margin: 0;
    }
    
    .project-title {
        font-size: 2.25rem;
    }
    
    .reflection-header .reflection-title {
        font-size: 2.25rem;
    }
    
    .project-subtitle {
        font-size: 1.125rem;
    }
    
    .reflection-header .reflection-date {
        font-size: 1.125rem;
    }
    
    .project-meta {
        gap: 12px;
    }
    
    .project-meta span {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .project-info {
        margin: 0 auto 48px auto;
    }
    
    .project-content {
        margin-bottom: 48px;
    }
    
    .content-image-container {
        margin-bottom: 48px;
    }
    
    .project-section {
        margin-bottom: 48px;
    }
    
    .project-section h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .reflection-section h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .project-section p,
    .feature-list li {
        font-size: 1rem;
    }
    
    .reflection-section p {
        font-size: 1rem;
    }
    
    .project-metrics .grid {
        gap: 12px;
    }
    
    .prev-project,
    .next-project,
    .home-link {
        width: 44px !important;
        height: 44px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .prev-project svg,
    .next-project svg,
    .home-link svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 2rem;
    }
    
    .reflection-header .reflection-title {
        font-size: 2rem;
    }
    
    .back-nav {
        margin-bottom: 24px;
    }
    
    /* Mobile text sizing for cards */
    .project-metrics .bg-muted > div,
    .project-section .bg-muted > div {
        font-size: 0.875rem;
    }
}

/* Feature Carousel Section - Inside project-section */
.feature-carousel-section {
    padding-top: 8px;
    width: 100%;
    position: relative;
}

.scroll-container {
    position: relative;
    display: block;
}

/* Carousel Controls - Side Positioned */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

/* Feature carousel specific positioning - align to image middle */
.feature-carousel-section .carousel-controls {
    top: 185px;
    transform: none;
}

/* Paddle Navigation Buttons */
.paddlenav {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    pointer-events: auto;
}

.paddlenav-prev {
    margin-left: -24px;
}

.paddlenav-next {
    margin-right: -24px;
}

.paddlenav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.paddlenav:active {
    transform: scale(0.95);
}

.paddlenav:disabled {
    opacity: 0;
    cursor: not-allowed;
    pointer-events: none;
}

.paddlenav svg {
    width: 24px;
    height: 24px;
}

/* Light Mode Paddle Buttons */
body:not(.dark-theme) .paddlenav {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark-theme) .paddlenav:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Scroll Wrapper */
.scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0;
}

.scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* Scroll Track */
.scroll-track {
    display: flex;
    gap: 24px;
    padding: 0 0 0 0;
    min-width: min-content;
}

/* Scroll Items - Apple Card Style */
.scroll-item {
    flex: 0 0 600px;
    width: 600px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    background: transparent;
    border-radius: 0;
    border: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Image Section - Full Width, Rounded */
.scroll-item-image {
    width: 100%;
    aspect-ratio: 1.618 / 1;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
}

.scroll-item-image .gradient-placeholder {
    width: 100%;
    height: 100%;
}

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

/* Content Section - Compact, Below Image */
.scroll-item-content {
    padding: 24px 16px 0 16px;
    text-align: left;
}

.scroll-item-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #ffffff;
    line-height: 1.3;
}

body[data-project="chronicle"] .scroll-item-content h3 {
    color: #48d597;
}

body[data-project="design-critique"] .scroll-item-content h3 {
    color: #f5b944;
}

body[data-project="clarity"] .scroll-item-content h3 {
    color: #6b9aff;
}

body[data-project="ux-brief-creator"] .scroll-item-content h3 {
    color: #be95eb;
}

body[data-project="geni"] .scroll-item-content h3 {
    color: #48d597;
}

body:not(.dark-theme) .scroll-item-content h3 {
    color: #1a1a1a;
}

body:not(.dark-theme)[data-project="chronicle"] .scroll-item-content h3 {
    color: #2d9e6b;
}

body:not(.dark-theme)[data-project="geni"] .scroll-item-content h3 {
    color: #2d9e6b;
}

body:not(.dark-theme)[data-project="design-critique"] .scroll-item-content h3 {
    color: #e6a82d;
}

body:not(.dark-theme)[data-project="clarity"] .scroll-item-content h3 {
    color: #4a7bdb;
}

body:not(.dark-theme)[data-project="ux-brief-creator"] .scroll-item-content h3 {
    color: #8e6bb8;
}

.scroll-item-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgb(200, 200, 200);
    margin: 0;
}

body:not(.dark-theme) .scroll-item-content p {
    color: rgb(80, 80, 80);
}

/* Nav Dots - Removed */
.scroll-item-nav {
    display: none;
}

.nav-dot {
    display: none;
}

/* Light Mode Adjustments */
body:not(.dark-theme) .scroll-item-image {
    background: rgba(255, 255, 255, 0.8);
    border: none;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .scroll-track {
        padding: 0 0 0 0;
    }

    .scroll-item {
        flex: 0 0 360px;
        width: 360px;
    }
}

@media (max-width: 768px) {
    .feature-carousel-section {
        padding-top: 8px;
    }

    .scroll-track {
        padding: 0 0 0 0;
        gap: 16px;
    }

    .scroll-item {
        flex: 0 0 450px;
        width: 450px;
    }

    .scroll-item-image {
        border-radius: 16px;
    }

    .scroll-item-content {
        padding: 20px 16px 0 16px;
    }

    .scroll-item-content h3 {
        font-size: 1.125rem;
        margin-bottom: 12px;
    }

    .scroll-item-content p {
        font-size: 1rem;
    }
    
    .carousel-controls {
        display: none;
    }
    
    .reflection-card {
        min-width: 220px;
        max-width: 220px;
        height: 136px;
        padding: 16px;
    }

    .paddlenav {
        width: 40px;
        height: 40px;
    }

    .paddlenav svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-track {
        padding: 0 0 0 0;
    }

    .scroll-item {
        flex: 0 0 320px;
        width: 320px;
    }

    .scroll-item-image {
        border-radius: 14px;
    }

    .carousel-controls {
        margin-top: 20px;
    }
}


/* Image Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-close svg {
    display: block;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Image Zoom Wrapper */
.image-zoom-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.image-zoom-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.image-zoom-wrapper:hover .image-zoom-icon {
    opacity: 1;
}

.image-zoom-icon svg {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Always show zoom icon on mobile/touch devices */
@media (max-width: 768px) {
    .image-zoom-icon {
        opacity: 1;
    }
}
