/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Password Protection Overlay */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.password-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.password-container {
    background: #fff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.password-overlay.hidden .password-container {
    transform: translateY(-20px);
}

.password-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.password-title {
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
}

.password-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.password-input {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
    outline: none;
}

.password-input:focus {
    border-color: #000;
}

.password-submit {
    padding: 1rem 2rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.password-submit:hover {
    background: #333;
}

.password-submit:active {
    transform: translateY(1px);
}

.password-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

/* Hide main content when password overlay is active */
body.password-protected .nav,
body.password-protected .hero,
body.password-protected .portfolio,
body.password-protected .work,
body.password-protected .bottom-section {
    display: none;
}

/* Hide hero text initially to prevent flash before animations start */
.hero-description h2 {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show hero text when animations are ready to start */
.hero-description h2.animation-ready {
    opacity: 1;
}

/* Mobile responsive for password overlay */
@media (max-width: 480px) {
    .password-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .password-title {
        font-size: 1.5rem;
    }
    
    .password-subtitle {
        font-size: 0.9rem;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    cursor: pointer;
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    line-height: 1;
}

.nav-brand:hover .brand-text {
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

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

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    transition: transform 5.5s cubic-bezier(0.02, 0, 0.15, 1);
    position: relative;
    z-index: 2;
    background-color: #fff;
    /* Prevent layout shifts that affect text */
    contain: layout style;
    /* Ultra-smooth text rendering */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero.portfolio-revealed {
    transform: translateY(-12.5vh) !important;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 4rem;
}

.hero-name {
    display: block;
}

.hero-subtitle {
    display: block;
    font-weight: 400;
    opacity: 0.8;
}

.hero-audience {
    margin-bottom: 4rem;
}

.hero-audience h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.audience-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.audience-list li {
    font-size: 1.1rem;
    opacity: 0.8;
}

.hero-description h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    max-width: 600px;
    /* Ultra-smooth text rendering and positioning */
    transform: translateZ(0);
    will-change: auto;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Prevent any layout shifts */
    position: relative;
    z-index: 10;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
}

/* Portfolio Grid Section */
.portfolio {
    background-color: transparent;
    padding: 2rem 0 6rem;
    transition: all 3s cubic-bezier(0.02, 0, 0.15, 1);
    position: relative;
    z-index: 1;
    transform: translateY(10vh);
    opacity: 0;
    min-height: 500px;
}

.portfolio.revealed {
    transform: translateY(-12.5vh) !important;
    opacity: 1 !important;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    background: #fff;
    border: none;
    border-radius: 8px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.12, 0, 0.39, 0);
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}

.portfolio-item.revealed {
    opacity: 1 !important;
    transform: translateY(0);
}


.portfolio-item--large {
    grid-column: span 6;
    min-height: 300px;
}

.portfolio-item--small {
    grid-column: span 3;
    min-height: 150px;
}

.portfolio-item:not(.portfolio-item--large):not(.portfolio-item--small) {
    grid-column: span 4;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fox-cover-container {
    overflow: visible;
    height: auto;
    min-height: auto;
}

.fox-cover-image {
    object-fit: contain;
    height: auto;
    width: 100%;
}

/* First row equal heights */
.first-row {
    display: flex;
    flex-direction: column;
}

.first-row .portfolio-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.first-row .fox-cover-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-cover-tile {
    background: #fafafa;
}

.dash-cover-tile .portfolio-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-cover-tile .portfolio-image img {
    width: 80%;
    height: auto;
    object-fit: contain;
}

.rmn-onboarding-tile {
    background: #fafafa;
}

.rmn-onboarding-tile .portfolio-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropbox-ai-tile {
    grid-column: span 4;
    background: #fafafa;
    padding: 0 1rem;
}

.dropbox-ai-tile .portfolio-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropbox-ai-tile .portfolio-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.kyc-tile {
    background: #fafafa;
}

.kyc-tile .portfolio-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.kyc-tile .portfolio-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.fourth-row-tile .portfolio-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fourth-row-tile .portfolio-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.indeed-tile {
    background: #fafafa;
}

.portfolio-item--text {
    background: transparent;
    border: none;
    cursor: default;
}

.portfolio-item--text:hover {
    transform: none;
    box-shadow: none;
}

.portfolio-item--text .portfolio-image img {
    filter: grayscale(100%);
    opacity: 0.7;
}

.portfolio-item.interactive:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.portfolio-item.interactive:hover .portfolio-image img {
    transform: scale(1.05);
}


.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.portfolio-item.interactive:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    color: #fff;
    text-decoration: none;
}

/* Work Section */
.work {
    background-color: #fff;
    padding: 8rem 0;
}

.work-grid {
    display: grid;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.work-item {
    padding: 0;
    border: none;
    position: relative;
}

.work-item:hover {
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.work-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.work-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.work-logo {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-top: 0.1rem;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) contrast(1.2);
    border-radius: 8px;
}

.work-info {
    flex: 1;
}

.work-company {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #000;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.work-role {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #666;
    letter-spacing: -0.01em;
}

.work-location {
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 0;
    font-weight: 400;
}

.work-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    font-weight: 400;
    max-width: 700px;
    margin-left: 2.5rem;
}




/* About Section */
.about {
    background-color: #fafafa;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-status {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.contact-email {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: opacity 0.2s ease;
}

.contact-email:hover {
    opacity: 0.7;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .hero {
        padding: 6rem 0 2rem;
        min-height: 100vh;
    }
    
    .hero.portfolio-revealed {
        padding: 5rem 0 1rem;
        min-height: 80vh;
    }
    
    .hero-title {
        margin-bottom: 2rem;
    }
    
    .hero-audience {
        margin-bottom: 2rem;
    }
    
    .audience-list {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .portfolio {
        padding: 1rem 0 4rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .work-grid {
        gap: 3rem;
    }
    
    .work-item {
        padding: 0;
    }
    
    .work-item:not(:last-child)::after {
        bottom: -1.5rem;
    }
    
    .work-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .work-logo {
        width: 28px;
        height: 28px;
        margin-top: 0.1rem;
    }
    
    .work-description {
        margin-left: 2rem;
    }
    
    
    /* Portfolio Grid Tablet */
    .portfolio-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }
    
    .portfolio-item--large {
        grid-column: span 6;
    }
    
    .portfolio-item:not(.portfolio-item--large):not(.portfolio-item--small) {
        grid-column: span 3;
    }
    
    .portfolio-item--small {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .work-company {
        font-size: 1.5rem;
    }
    
    .work-role {
        font-size: 1rem;
    }
    
    .work-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-left: 1.75rem;
    }
    
    .work-logo {
        width: 24px;
        height: 24px;
        margin-top: 0.1rem;
    }
    
    .work-header {
        gap: 0.5rem;
    }
    
    
    .contact-email {
        font-size: 1.3rem;
    }
    
    /* Portfolio Grid Responsive */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-item,
    .portfolio-item--large,
    .portfolio-item--small {
        grid-column: span 1;
        min-height: 150px;
    }
    
    .portfolio-item {
        min-height: 120px;
    }
}

/* Bottom Section */
.bottom-section {
    background-color: #fff;
    padding: 6rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.bottom-text {
    flex: 1;
}

.bottom-status {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #000;
    line-height: 1.2;
    max-width: 600px;
    /* Ultra-smooth text rendering and positioning */
    transform: translateZ(0);
    will-change: auto;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.bottom-contact {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.bottom-email,
.bottom-linkedin {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.bottom-email:hover,
.bottom-linkedin:hover {
    opacity: 0.7;
}

.bottom-stripe {
    color: #635bff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.bottom-stripe:hover {
    opacity: 0.8;
}

.bottom-image {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

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

/* Bottom Section Responsive */
@media (max-width: 768px) {
    .bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .bottom-status {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .bottom-contact {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .bottom-image {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .bottom-section {
        padding: 4rem 0;
    }
    
    .bottom-status {
        font-size: 0.9rem;
    }
    
    .bottom-contact {
        flex-direction: column;
        gap: 1rem;
    }
    
    .bottom-image {
        width: 200px;
        height: 200px;
    }
}

/* Case Study Styles */
.case-study-hero {
    padding: 8rem 0 6rem;
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.case-study-hero-content {
    max-width: 800px;
    margin-bottom: 4rem;
}

.case-study-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.case-study-category,
.case-study-timeline {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    background-color: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.case-study-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #000;
    letter-spacing: -0.02em;
}

.case-study-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 3rem;
    max-width: 600px;
}

.case-study-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

.case-study-detail h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-study-detail p {
    font-size: 1rem;
    color: #000;
    font-weight: 500;
}

/* Team Section Styles */
.team-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

.team-role {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-role h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-role .role-title {
    font-size: 1rem;
    color: #000;
    font-weight: 500;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-members h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.team-member {
    font-size: 0.95rem;
    color: #000;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-member::before {
    content: "•";
    color: #666;
    font-weight: bold;
}

.case-study-hero-image {
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.case-study-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.case-study-section {
    padding: 6rem 0;
    background-color: #fff;
}

.case-study-section--alt {
    background-color: #fafafa;
}

.case-study-content {
    max-width: 800px;
    margin: 0 auto;
}

.case-study-section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #000;
    letter-spacing: -0.02em;
}

.case-study-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.case-study-text p {
    margin-bottom: 1.5rem;
}

.case-study-list {
    list-style: none;
    padding: 0;
}

.case-study-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.case-study-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.case-study-grid-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
}

.case-study-grid-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.case-study-process {
    margin-top: 3rem;
}

.case-study-process-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.case-study-process-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.process-step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.process-step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
}

.process-step-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.case-study-solutions {
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.case-study-solutions-fullwidth {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.case-study-solution {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.solution-image {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.solution-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.solution-image img:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.solution-placeholder {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 500;
    border: 2px dashed #ccc;
}

.solution-content {
    flex: 1;
}

.solution-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
}

.solution-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.case-study-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
    padding: 3rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.case-study-metric {
    text-align: center;
}

.metric-number {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.case-study-next {
    padding: 6rem 0;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.case-study-next-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    background-color: #fafafa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.case-study-next-content:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.next-project-preview {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.next-project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.next-project-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
}

.next-project-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.next-project-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.next-project-link:hover {
    opacity: 0.7;
}

.case-study-footer {
    padding: 4rem 0;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-status {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #000;
    line-height: 1.2;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-email,
.footer-linkedin {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.footer-email:hover,
.footer-linkedin:hover {
    opacity: 0.7;
}

.footer-stripe {
    color: #635bff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.footer-stripe:hover {
    opacity: 0.8;
}

/* Case Study Responsive */
@media (max-width: 768px) {
    .case-study-hero {
        padding: 6rem 0 4rem;
    }
    
    .case-study-title {
        font-size: 2.5rem;
    }
    
    .case-study-subtitle {
        font-size: 1.1rem;
    }
    
    .case-study-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .case-study-section {
        padding: 4rem 0;
    }
    
    .case-study-section-title {
        font-size: 2rem;
    }
    
    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-study-process-step {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .case-study-solution {
        flex-direction: column !important;
        gap: 2rem;
        text-align: center;
    }
    
    .case-study-results {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 2rem;
    }
    
    .case-study-next-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .case-study-hero {
        padding: 5rem 0 3rem;
    }
    
    .case-study-title {
        font-size: 2rem;
    }
    
    .case-study-details {
        grid-template-columns: 1fr;
    }
    
    .team-section {
        grid-template-columns: 1fr;
    }
    
    .case-study-section-title {
        font-size: 1.8rem;
    }
    
    .case-study-results {
        grid-template-columns: 1fr;
    }
    
    .metric-number {
        font-size: 2.5rem;
    }
}
