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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar styles */
.sidebar {
    width: 240px;
    padding: 2rem;
    position: fixed;
    height: 100vh;
    border-right: 1px solid #eee;
    background-color: #fff;
    overflow-y: auto;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    z-index: 999;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar.hidden {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
}

/* Container for scroll indicators to ensure proper positioning */
.nav-content {
    position: relative;
}

/* Scroll indicators */
.scroll-indicator {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 2;
    left: 200px; /* Position from left edge of sidebar (240px - 40px) */
}

.scroll-indicator:hover {
    background: rgba(0, 0, 0, 0.2);
}

.scroll-indicator.visible {
    opacity: 1;
}

.scroll-up {
    top: 1rem;
}

.scroll-down {
    bottom: 1rem;
}

.scroll-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
}

.scroll-up::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.scroll-down::after {
    transform: rotate(45deg);
    margin-bottom: 4px;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #000;
    padding-top: 0;
    line-height: 1;
    height: 24px;
}

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

.logo a:hover {
    color: inherit;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section h3 {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
    padding-bottom: 4px;
    position: relative;
}

.nav-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(
        30deg,
        #ff6b6b,
        #ffa06b,
        #ffd93d,
        #6dd5b5,
        #6d9eeb,
        #b088f9
    );
}

.nav-section a {
    display: block;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

/* Style for main navigation links (About and Ideas) */
.nav-section:not(:has(h3)) {
    margin-top: 0.5rem;
    padding-top: 0.1rem;
}

.nav-section:not(:has(h3)) a {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.nav-section a:hover {
    color: #000;
}

/* Main content styles */
.content {
    margin-left: 240px;
    width: calc(100% - 240px);
    position: relative;
    min-height: 100vh;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.content.full-width {
    margin-left: 0;
    width: 100%;
}

.header {
    padding: 0;
    width: 95%;
    margin: 0 auto;
    padding-top: 2rem;
}

.greeting {
    color: #999;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1;
    height: 24px;
    margin-top: 0.1rem;
}

.rainbow-text {
    background-image: linear-gradient(
        30deg,
        #ff6b6b,
        #ffa06b,
        #ffd93d,
        #6dd5b5,
        #6d9eeb,
        #b088f9,
        #ff6b6b
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: rainbow 4s linear infinite;
    font-weight: 500;
}

@keyframes rainbow {
    to {
        background-position: 200% center;
    }
}

.intro {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.4;
    color: #666;
    max-width: 1300px;
    margin-top: 0.5rem;
    padding-top: 0.1rem;
}

/* Project cards */
.projects {
    columns: 4;
    column-gap: 3rem;
    padding: 2rem 0;
    width: 95%;
    margin: 0 auto;
}

.project-card {
    position: relative;
    break-inside: avoid;
    margin-bottom: 3rem;
    display: inline-block;
    width: 100%;
    background-color: white;
    z-index: 3;
}

.project-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f5f5f5;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    position: relative;
}

.project-card:hover .project-image {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.project-info {
    padding: 0.5rem 0;
}

/* Default vertical layout for projects without case studies */
.project-info-text {
    display: block;
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #333;
    line-height: 1.3;
}

.project-info p {
    color: #666;
    font-size: 0.8rem;
    display: inline-block;
}

.project-info .year {
    color: #999;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    display: inline-block;
}

/* Horizontal layout only for projects with case studies */
.project-info:has(.project-case-study-link) {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.project-info:has(.project-case-study-link) .project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.project-info:has(.project-case-study-link) h3 {
    margin-bottom: 0;
    flex: 1;
    padding-right: 1rem;
}

.project-info:has(.project-case-study-link) .project-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-case-study-link,
.project-learn-more {
    color: #222222;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.project-case-study-link:hover,
.project-learn-more:hover {
    color: #666666;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.4));
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 30px rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Webkit scrollbar styling */
.project-overlay::-webkit-scrollbar {
    width: 6px;
}

.project-overlay::-webkit-scrollbar-track {
    background: transparent;
}

.project-overlay::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.project-card:hover .project-overlay {
    opacity: 1;
    pointer-events: auto;
}

.project-card .overlay h3 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.project-card .overlay p {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 1em;
    line-height: 1.4;
}

.project-description {
    font-size: 1.5rem;
    line-height: 1.5;
    color: #000000;
    font-weight: 500;
    max-width: 90%;
    margin: 0;
    margin-bottom: 1.5rem;
}

/* Responsive font sizes for project description */
@media (max-width: 1600px) {
    .project-description {
        font-size: 1.4rem;
    }
}

@media (max-width: 1400px) {
    .project-description {
        font-size: 1.3rem;
    }
}

@media (max-width: 1200px) {
    .project-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 1000px) {
    .project-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .project-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .project-description {
        font-size: 0.9rem;
    }
}

.project-learn-more {
    color: #222222;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: auto;
    padding-bottom: 1rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.project-learn-more:hover {
    color: #666666;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .projects {
        columns: 3;
    }
}

@media (max-width: 1000px) {
    .projects {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        background-color: white;
    }

    .sidebar.active {
        left: 0;
    }

    .nav-content {
        padding: 20px;
    }

    .content {
        width: 100%;
        padding: 0 20px;
    }

    .logo {
        text-align: center;
    }

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

    .nav-section a {
        padding: 10px 0;
    }
    
    .case-study-section {
        padding: 0 20px;
    }
    
    .about-section {
        padding: 0 20px;
    }
    
    .workphilosophy-section {
        padding: 0 20px;
    }
    
    .projects {
        padding: 0 20px;
        columns: 1;
        column-gap: 0;
        width: 100%;
    }
    
    .project-card {
        margin-bottom: 3rem;
        break-inside: avoid;
    }
    
    .header {
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .intro {
        font-size: 1.5rem;
    }
}

.image-with-caption {
    margin: 1rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.overlay-image {
    width: 90%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-caption {
    width: 90%;
    max-width: 800px;
    font-size: 0.9rem;
    color: #222222;
    text-align: center;
    margin-top: 0.5rem;
}

.screenshot-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 1rem 0;
    gap: 1rem;
}

.screenshot {
    max-width: 48%;
    max-height: 200px;
    object-fit: contain;
}

.pdf-embed {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: white;
}

/* Specific taller PDF embed for Polyspace */
.polyspace-pdf {
    height: 600px !important;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    margin: 1rem 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pdf-link:hover {
    background-color: #e9e9e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pdf-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.tech-stack {
    width: 90%;
    max-width: 800px;
    margin-top: 1rem;
    text-align: left;
}

.tech-stack h4 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.tech-stack ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.tech-stack li {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    padding-left: 1.2rem;
    position: relative;
}

.tech-stack li:before {
    content: "•";
    color: #999;
    position: absolute;
    left: 0;
}

/* Page Content Transitions */
.page-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    width: 100%;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
    z-index: 1;
    height: 0;
    overflow: hidden;
}

.page-content.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    pointer-events: auto;
    z-index: 2;
    height: auto;
    overflow: visible;
}

/* About Page Styles */
.about-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    color: #222222;
}

.about-title {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 48px;
    color: #222222;
    line-height: 1.1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    border-bottom: 1.5px solid #e0e0e0;
    padding-bottom: 32px;
}

.title-content {
    display: flex;
    flex-direction: column;
}

.about-title .first-name {
    font-size: 72px;
    color: #222222;
}

.about-title .last-name {
    font-size: 72px;
    margin-top: -0.2em;
    color: #222222;
}

.about-content-wrapper {
    opacity: 0;
    transition: opacity 0.5s ease-out;
    will-change: opacity;
    visibility: hidden;
    color: #222222;
}

.about-content-wrapper.visible {
    opacity: 1;
    visibility: visible;
}

.about-subsection {
    margin-bottom: 120px;
}

/* Remove the old animation styles */
.about-subsection {
    opacity: 1;
    transform: none;
    will-change: auto;
}

.about-subsection h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #222222;
}

.about-subsection p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #222222;
}

/* Keyword highlight animation */
.highlight-keyword {
    background: linear-gradient(30deg, 
        #ff6b6b,
        #ffa06b,
        #ffd93d,
        #6dd5b5,
        #6d9eeb,
        #b088f9,
        #ff6b6b
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
    font-size: 1.2em;
    line-height: 1;
    color: #222222;
}

/* Responsive styles */
@media (max-width: 768px) {
    .about-section {
        padding: 40px 20px;
    }

    .about-title {
        font-size: 48px;
        margin-bottom: 80px;
    }

    .about-title .first-name,
    .about-title .last-name {
        font-size: 48px;
    }

    .about-subsection h3 {
        font-size: 20px;
    }

    .about-subsection p {
        font-size: 16px;
    }

    .about-subsection {
        margin-bottom: 80px;
    }
}

.masonry-photos {
    position: relative;
    width: 1000px;
    height: 540px;
    margin-top: 20px;
    transform-origin: top left;
    transform: scale(1);
}

.masonry-item {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    background: none;
    overflow: hidden;
    transition: transform 0.2s;
}

.masonry-item img {
    display: block;
    max-width: 300px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    background: #fff;
}

/* Base positions at full scale */
.masonry-item:nth-child(1) { top: 0px; left: 40px; z-index: 2; }
.masonry-item:nth-child(2) { top: 40px; left: 330px; z-index: 3; }
.masonry-item:nth-child(3) { top: 200px; left: 100px; z-index: 4; }
.masonry-item:nth-child(4) { top: 240px; left: 320px; z-index: 2; }
.masonry-item:nth-child(5) { top: 130px; left: 570px; z-index: 2; }

/* Responsive scaling */
@media (max-width: 1400px) {
    .masonry-photos {
        transform: scale(0.8);
        height: 432px; /* 540px * 0.8 */
    }
}

@media (max-width: 1200px) {
    .about-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .masonry-photos {
        transform: scale(0.65);
        height: 351px; /* 540px * 0.65 */
        margin: 40px auto 0;
    }
}

@media (max-width: 900px) {
    .masonry-photos {
        transform: scale(0.5);
        height: 270px; /* 540px * 0.5 */
    }
}

@media (max-width: 600px) {
    .masonry-photos {
        transform: scale(0.4);
        height: 216px; /* 540px * 0.4 */
    }
}

.masonry-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    z-index: 10;
}

.wherefrom-flex,
.journey-flex {
    border-bottom: none;
    padding-bottom: 0;
}

.wherefrom-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
    margin-bottom: 180px;
}

.wherefrom-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wherefrom-photo {
    width: 180px;
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    object-fit: cover;
}

.wherefrom-text {
    flex: 1;
    min-width: 0;
}

@media (max-width: 900px) {
    .wherefrom-flex {
        flex-direction: column;
        gap: 24px;
    }
    .wherefrom-images {
        flex-direction: row;
        gap: 12px;
        justify-content: flex-start;
    }
    .wherefrom-photo {
        width: 48vw;
        max-width: 220px;
    }
}

.journey-flex {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 180px;
}

.journey-text {
    flex: 1;
    min-width: 0;
}

.journey-image {
    display: flex;
    align-items: flex-start;
}

.journey-photo {
    width: 260px;
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    object-fit: cover;
}

@media (max-width: 900px) {
    .journey-flex {
        flex-direction: column;
        gap: 24px;
    }
    .journey-image {
        justify-content: flex-start;
    }
    .journey-photo {
        width: 80vw;
        max-width: 320px;
    }
}

.tomorrow-flex {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
    margin-bottom: 180px;
}

.tomorrow-image {
    display: flex;
    align-items: stretch;
}

.tomorrow-photo {
    width: 180px;
    height: 100%;
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    object-fit: cover;
}

.tomorrow-text {
    flex: 1;
    min-width: 0;
}

@media (max-width: 900px) {
    .tomorrow-flex {
        flex-direction: column;
        gap: 24px;
    }
    .tomorrow-image {
        justify-content: flex-start;
    }
    .tomorrow-photo {
        width: 60vw;
        max-width: 220px;
    }
}

.shapers-collage {
    position: relative;
    width: 320px;
    height: 340px;
    min-width: 260px;
    margin-right: 0;
}

.shapers-photo {
    position: absolute;
    width: 260px;
    height: 180px;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    object-fit: cover;
    transition: box-shadow 0.2s, transform 0.2s;
}

.shapers-photo-1 {
    top: 0;
    left: 0;
    z-index: 2;
}

.shapers-photo-2 {
    bottom: 0;
    right: 0;
    z-index: 3;
}

@media (max-width: 900px) {
    .wherefrom-flex {
        flex-direction: column;
        gap: 24px;
    }
    .shapers-collage {
        width: 90vw;
        height: 220px;
        min-width: 0;
        margin-bottom: 12px;
    }
    .shapers-photo {
        width: 48vw;
        max-width: 220px;
        height: 120px;
    }
}

.about-bottom-message {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0 0 40px 0;
    color: #666;
    letter-spacing: 0.01em;
}

.say-hi-link {
    text-decoration: underline;
    cursor: pointer;
    color: inherit;
    transition: color 0.2s;
    font-weight: 700;
    position: relative;
}

.say-hi-link.rainbow {
    background-image: linear-gradient(90deg, #ff6b6b, #ffa06b, #ffd93d, #6dd5b5, #6d9eeb, #b088f9, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow 2s linear infinite;
    text-decoration: none;
}

.workphilosophy-section {
    background: #fff;
    color: #666;
    font-family: inherit;
    font-weight: 400;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    box-sizing: border-box;
}

.workphilosophy-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
    color: #020202;
}

.workphilosophy-opening-flex {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
    justify-content: flex-start;
}

.workphilosophy-subheading {
    font-size: 1.25rem;
    color: #666;
    text-align: left;
    max-width: 600px;
    margin: 0 0 0 0;
    line-height: 1.7;
    font-weight: 400;
    flex: 1 1 0;
}

.workphilosophy-gif-container {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 0;
    min-height: 100px;
    flex: 0 0 auto;
}

.workphilosophy-gif {
    max-height: 400px;
    width: auto;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.workphilosophy-process {
    display: flex;
    flex-direction: row;
    gap: 64px;
    justify-content: center;
    margin-top: 32px;
}

.process-column {
    flex: 1 1 0;
    max-width: 50%;
    min-width: 320px;
    background: #fff;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.process-column h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #666;
}

.process-column p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
}

.process-roadmap-outer {
    position: relative;
    padding-left: 32px;
}

.process-roadmap-outer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
    border-radius: 2px;
    z-index: 0;
}

.roadmap-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #cccccc 0%, #b088f9 100%);
    z-index: 0;
}

.roadmap-node.with-quote {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 60px;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.process-main {
    flex: 2 1 0;
    min-width: 0;
}

.process-quote {
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 350px;
    margin-left: 40px;
    align-self: flex-start;
    margin-top: 0;
    position: relative;
    padding-left: 14px;
    background-color: #f8f8f8;
    border-radius: 4px;
    max-width: 100%;
    overflow: hidden;
}

.process-quote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #ff6b6b, #ffa06b, #ffd93d, #6dd5b5, #6d9eeb, #b088f9, #ff6b6b);
    border-radius: 0;
}

.roadmap-node:last-child {
    margin-bottom: 0;
}

.roadmap-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}

.roadmap-desc {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.5;
}

.roadmap-node::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 16px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(120deg, #ff6b6b, #ffd93d, #6dd5b5, #b088f9);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 2;
}

.roadmap-node:hover {
    background: #f7f7fa;
    box-shadow: 0 4px 16px rgba(176,136,249,0.08);
}

/* Fade-in-up animation */
.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Responsive styles */
@media (max-width: 1000px) {
    .workphilosophy-section {
        padding: 48px 8px;
    }
    .workphilosophy-title {
        font-size: 2.2rem;
    }
    .workphilosophy-gif {
        max-height: 250px;
    }
    .workphilosophy-process {
        flex-direction: column;
        gap: 40px;
    }
    .process-column {
        max-width: 100%;
        min-width: 0;
        padding: 0;
    }
    .workphilosophy-opening-flex {
        flex-direction: column;
        gap: 24px;
    }
    .workphilosophy-gif-container {
        justify-content: center;
        margin-bottom: 24px;
    }
    .workphilosophy-subheading {
        max-width: 100%;
    }
    .roadmap-node.with-quote {
        flex-direction: column;
    }
    .process-quote {
        margin-left: 0;
        margin-top: 24px;
        max-width: 100%;
        min-width: 0;
        padding-left: 14px;
    }
    .process-quote::before {
        display: none;
    }
    .process-roadmap-outer::before,
    .roadmap-line {
        display: none;
    }
}

@media (max-width: 600px) {
    .workphilosophy-title {
        font-size: 1.6rem;
    }
    .workphilosophy-subheading {
        font-size: 1rem;
    }
    .process-column h2 {
        font-size: 1.2rem;
    }
    .roadmap-title {
        font-size: 1rem;
    }
    .roadmap-desc {
        font-size: 0.95rem;
    }
}

.workphilosophy-divider {
    width: 100%;
    height: 1.5px;
    background: #e0e0e0;
    margin: 56px 0 64px 0;
    border-radius: 1px;
}

.notion-gif-flex {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
}

.notion-caption {
    font-size: 0.95rem;
    color: #999;
    font-style: italic;
    margin-bottom: 4px;
    white-space: nowrap;
}

.workphilosophy-conclusion {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    margin-bottom: 0;
    width: 100%;
}

.workphilosophy-conclusion p {
    font-size: 24px;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .workphilosophy-conclusion p {
        font-size: 20px;
    }
}

.conclusion-link {
    text-decoration: underline;
    cursor: pointer;
    transition: filter 0.2s;
}
.conclusion-link:hover {
    filter: brightness(1.2) saturate(1.2);
    text-decoration: underline;
}

/* Case Study Page Styles */
.case-study-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    color: #222222;
}

.case-study-hero {
    text-align: center;
    margin-bottom: 80px;
}

.case-study-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.case-study-hero h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 40px;
    color: #666;
}

.hero-image-container {
    max-width: 90%;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.case-study-section-content {
    margin-bottom: 80px;
}

.case-study-section-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #222222;
}

.case-study-section-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #444;
}

.project-details {
    list-style: none;
    padding: 0;
    margin: 32px 0;
}

.project-details li {
    font-size: 16px;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.project-details li:before {
    content: "•";
    color: #666;
    position: absolute;
    left: 0;
}

.process-roadmap {
    position: relative;
    padding: 40px 0;
}

.process-roadmap:before {
    display: none;
}

.roadmap-node {
    position: relative;
    margin-bottom: 60px;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.roadmap-node:before {
    display: none;
}

.roadmap-node:hover {
    transform: scale(1.02);
}

.roadmap-node h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #222222;
}

.roadmap-node p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #666;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .case-study-hero h1 {
        font-size: 36px;
    }

    .case-study-hero h3 {
        font-size: 20px;
    }

    .case-study-section-content h2 {
        font-size: 28px;
    }

    .process-roadmap:before {
        left: 20px;
    }

    .roadmap-node {
        margin-left: 40px;
    }

    .roadmap-node:before {
        left: -30px;
    }
}

/* Rainbow Text Effect */
.rainbow-text {
    background: linear-gradient(
        30deg,
        #ff6b6b,
        #ffa06b,
        #ffd93d,
        #6dd5b5,
        #6d9eeb,
        #b088f9
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow 8s linear infinite;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ensure navigation is always on top */
nav {
    position: relative;
    z-index: 4;
}

.research-gallery {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px; /* Add padding for scrollbar */
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.research-gallery::-webkit-scrollbar {
    display: none;
}

.research-image {
    flex: 0 0 auto;
    width: 200px; /* Fixed base width */
    min-width: 0; /* Allow shrinking below min-width */
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.research-image:hover {
    transform: scale(1.05);
}

.research-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.research-image .image-caption {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
}

.research-image .document-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #444;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    aspect-ratio: 16/9;
    margin-bottom: 8px;
}

.research-image .document-button:hover {
    background-color: #f5f5f5;
    border-color: #999;
    color: #222;
}

/* Make container for document button match image containers */
.research-image:has(.document-button) {
    margin-bottom: 0; /* Remove extra margin since button has its own */
}

@media (max-width: 1200px) {
    .research-image {
        width: 180px;
    }
}

@media (max-width: 900px) {
    .research-image {
        width: 160px;
    }
}

@media (max-width: 600px) {
    .research-image {
        width: 140px;
    }
    
    .research-image .image-caption {
        font-size: 12px;
    }
}

/* Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    position: relative;
    margin: auto;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.image-modal.active .modal-content img {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s ease;
}

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

.process-quote {
    margin-top: 24px;
    padding: 16px 24px;
    background-color: #f8f8f8;
    border-left: 4px solid linear-gradient(30deg, #ff6b6b, #ffa06b, #ffd93d, #6dd5b5, #6d9eeb, #b088f9, #ff6b6b);
    border-radius: 2px;
    max-width: 100%;
}

.process-quote blockquote {
    margin: 0;
    padding: 0;
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.5;
}

.process-quote p {
    margin: 0;
}

@media (max-width: 900px) {
    .process-quote {
        margin-top: 16px;
        padding: 12px 16px;
    }
    
    .process-quote blockquote {
        font-size: 1rem;
    }
}

.solution-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    margin-top: 16px;
}

.solution-text {
    flex: 2 1 0;
    min-width: 0;
}

.solution-image {
    flex: 1 1 240px;
    min-width: 180px;
    max-width: 320px;
    display: flex;
    justify-content: flex-end;
}

.solution-image img {
    width: 100%;
    max-width: 320px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    object-fit: contain;
}

@media (max-width: 900px) {
    .solution-flex {
        flex-direction: column;
        gap: 24px;
    }
    .solution-image {
        max-width: 100%;
        min-width: 0;
        justify-content: center;
    }
    .solution-image img {
        max-width: 100%;
    }
}

.back-to-projects-link {
    display: inline-block;
    margin: 32px 0 0 0;
    font-size: 1.1rem;
    color: #6d9eeb;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 6px;
    background: #f5f7fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.back-to-projects-link:hover {
    background: #e9f0fb;
    color: #333;
    box-shadow: 0 4px 16px rgba(109,158,235,0.10);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-nav-button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-nav-button.active .hamburger {
    background: transparent;
}

.mobile-nav-button.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-nav-button.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 4rem;
    }

    .sidebar.active {
        left: 0;
    }

    .nav-content {
        padding: 1rem;
    }

    .content {
        margin-left: 0;
        width: 100%;
        padding-top: 4rem;
    }

    .logo {
        text-align: center;
        margin-bottom: 2rem;
    }

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

    .nav-section a {
        padding: 0.5rem 0;
    }
}

.nav-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    padding: 0;
}

.nav-toggle:hover {
    transform: scale(1.1);
}

.nav-toggle.visible {
    opacity: 1;
    visibility: visible;
}

.nav-toggle-icon {
    width: 24px;
    height: 2px;
    background: #222;
    position: relative;
    transition: all 0.3s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #222;
    transition: all 0.3s ease;
}

.nav-toggle-icon::before {
    top: -7px;
}

.nav-toggle-icon::after {
    bottom: -7px;
} 