/* ========== ABOUT PAGE STYLES ========== */

/* About Hero Section */
.about-hero {
    min-height: 90vh;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-hero-content {
    position: relative;
}

.about-back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.about-back-button:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    transform: translateX(-5px);
}

.about-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    opacity: 0;
    animation: slideUpFade 1s ease 0.3s forwards;
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    opacity: 0;
    animation: slideUpFade 1s ease 0.6s forwards;
}

.about-hero-image {
    position: relative;
    opacity: 0;
    animation: slideUpFade 1s ease 0.9s forwards;
}

.image-reveal {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.image-reveal:hover {
    transform: translateY(-10px);
}

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

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

/* Story Section */
.about-story {
    padding: 8rem 2rem;
    background: var(--bg-primary);
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
}

.story-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6rem;
    align-items: start;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.story-block {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.story-block.reveal {
    opacity: 1;
    transform: translateY(0);
}

.story-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.story-text.large {
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 500;
}

.story-text em {
    color: var(--accent);
    font-style: italic;
    font-weight: 600;
}

.story-highlight {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
    border: 1px solid rgba(79, 70, 229, 0.3);
    padding: 2.5rem;
    border-radius: 16px;
    margin-top: 1rem;
}

.story-highlight h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.story-highlight p {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Interactive Timeline - Surprise Element */
.timeline-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.timeline-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(79, 70, 229, 0.3));
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    opacity: 0.6;
    transition: all 0.5s ease;
    cursor: pointer;
}

.timeline-item:hover,
.timeline-item.active {
    opacity: 1;
    transform: translateX(10px);
}

.timeline-item.active .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
    transform: scale(1.3);
}

.timeline-dot {
    position: absolute;
    left: -23px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-content {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Approach Section */
.about-approach {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
}

.approach-container {
    max-width: 1200px;
    margin: 0 auto;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.approach-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.approach-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.approach-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.approach-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.approach-card:hover .approach-icon {
    transform: scale(1.1) rotate(5deg);
}

.approach-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.approach-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.approach-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Personal Section */
.about-personal {
    padding: 8rem 2rem;
    background: var(--bg-primary);
}

.personal-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.personal-content h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.personal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.personal-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.personal-item.reveal {
    opacity: 1;
    transform: translateY(0);
}

.personal-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.personal-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.personal-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.about-cta {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

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

.cta-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.cta-content.reveal {
    opacity: 1;
    transform: translateY(0);
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: 2px solid var(--accent);
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.cta-button.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* Animation Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-on-scroll.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design for About Page */
@media (max-width: 1024px) {
    .about-hero-container,
    .story-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .timeline-section {
        position: static;
        margin-top: 4rem;
    }
    
    .approach-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 6rem 1.5rem 3rem;
        min-height: 80vh;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .story-content {
        gap: 2rem;
    }
    
    .story-text {
        font-size: 1.1rem;
    }
    
    .story-text.large {
        font-size: 1.2rem;
    }
    
    .approach-card,
    .personal-item {
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .personal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 4rem 1rem 2rem;
    }
    
    .about-story,
    .about-approach,
    .about-personal,
    .about-cta {
        padding: 4rem 1rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-dot {
        left: -19px;
    }
}

/* Custom Fonts */
@font-face {
    font-family: 'N27';
    src: url('../webfonts/N27-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'N27';
    src: url('../webfonts/N27-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'N27';
    src: url('../webfonts/N27-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-hero: #1a1a1a;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #4757E6;
    --accent-hover: #5b52f0;
    --border: #2a2a2a;
    --white: #ffffff;
    --black: #000000;
    --less-bright-white: #cecece;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Headings use N27 font */
h1, h2, h3, h4, h5, h6,
.hero-content h1,
.project-title,
.section-title,
.case-title,
.step-text h3,
.feature-content h3,
.comparison-item h3,
.phase-card h4,
.overview-text h2,
.key-insight h3,
.key-learning-card h3,
.impact-title,
.learning-title,
.case-hero-title,
.section-heading,
.step-title,
.feature-title {
    font-family: 'N27', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.logo {
    font-family: 'N27', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-italic{
    font-family: 'N27', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

/* Desktop navigation container */
.nav-menu-container {
    display: block;
}

@media (min-width: 769px) {
    .mobile-menu-button {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center;
}

.hamburger-line:nth-child(1) {
    top: 8px;
}

.hamburger-line:nth-child(2) {
    top: 15px;
}

.hamburger-line:nth-child(3) {
    top: 22px;
}

/* Hamburger to X animation */
.mobile-menu-button.active .hamburger-line:nth-child(1) {
    top: 15px;
    transform: translateX(-50%) rotate(45deg);
}

.mobile-menu-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}

.mobile-menu-button.active .hamburger-line:nth-child(3) {
    top: 15px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: flex;
        position: relative;
        z-index: 1002;
    }
    
    .nav-menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        border-left: 1px solid var(--border);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu-container.active {
        right: 0;
    }
    
    .nav-menu {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        padding: 6rem 0 2rem;
        margin: 0;
        list-style: none;
        width: 100%;
        height: auto;
    }
    
    .nav-menu li {
        margin: 0;
        padding: 0;
        width: 100%;
        display: block;
    }
    
    .nav-link {
        font-size: 1.2rem;
        font-weight: 500;
        padding: 1.5rem 2rem;
        display: block !important;
        color: var(--text-primary) !important;
        text-decoration: none;
        border-bottom: 1px solid var(--border);
        transition: all 0.3s ease;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-link:hover {
        color: var(--accent) !important;
        background: var(--black);
    }
    
    .nav-link::after {
        display: none !important;
    }
    
    /* Show nav menu container on mobile, but position off-screen */
    .nav-menu-container {
        display: block;
    }
    
    /* Prevent scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Main Content */
.main {
    margin-top: 80px;
}

/* Hero Section with Text Mask Effect */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 4rem 2rem;
    background: #0a0a0a; /* Force dark background */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(0, 134, 105, 0.15) 0%, transparent 50%), radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 30%); */
    background: #0a2933;
background: radial-gradient(circle, rgba(10, 41, 51, 1) 0%, rgba(10, 10, 10, 1) 50%);
    pointer-events: none;
}

/* Hero Content with Mask Effect */
.hero-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin-top: -100px;
    opacity: 0;
    animation: slideUpFade 1.2s ease 0.5s forwards;
}

/* Text mask effect with Ken Burns effect */
.hero-text-stack {
    position: relative;
    margin-bottom: 2rem;
    
    /* Set the background image */
    background-image: url('../images/jochem-background-6.webp');
    background-size: 110%; /* Start larger for zoom effect */
    background-position: center;
    background-repeat: no-repeat;
    
    /* Apply the mask effect */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Ensure proper stacking context */
    z-index: 1;
    
    /* Smooth transitions for background changes only */
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                background-image 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Fallback for browsers that don't support background-clip: text */
@supports not (background-clip: text) and not (-webkit-background-clip: text) {
    .hero-text-stack {
        background: none;
        background-image: none;
        -webkit-text-fill-color: #ffffff;
        color: #ffffff;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    }
}


.hero-line {
    font-family: 'N27', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    /* Remove the opacity and transform that might interfere */
}

.hero-line-small {
    font-size: clamp(1.5rem, 4vw, 4rem);
    font-weight: 400;
}

.hero-line-main {
    font-size: clamp(4rem, 20vw, 16rem);
    margin: -0.5rem 0;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 1;
    /* animation: slideUpFade 1s ease 0.8s forwards; */
    background: transparent;
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem 1.5rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border: 1px solid var(--less-bright-white);
    border-radius: 12px;
    font-weight: 500;
    transition: background-color 0.5s ease, border-color 0.5s ease, transform 0.3s ease;
    opacity: 1;
    margin: 0 auto;
    width: fit-content;
    position: relative;
    overflow: hidden;
    /* animation: slideUpFade 1s ease 1s forwards; */
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-hover);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.hero-cta:hover::before {
    opacity: 1;
}

.hero-cta:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Cases Section */
.cases-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: default;
    color: inherit;
    position: relative;
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
}

.case-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    border-radius: 16px 16px 0 0; /* Top corners rounded to match parent */
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 16px 16px 0 0; /* Match parent container radius */
    display: block; /* Fix baseline gap issue */
}

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

.case-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.case-card:hover .case-image::after {
    opacity: 1;
}

.case-content {
    padding: 2rem;
}

.case-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.case-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.case-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

/* Case study button */
.case-study-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    width: fit-content;
    border: 1px solid #e0e0e0;
}

.case-study-btn:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.case-study-btn i {
    font-size: 0.8rem;
}

/* Card overlay link for full clickability */
.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
}

/* Ensure the button stays clickable above the card link */
.case-study-btn {
    position: relative;
    z-index: 2;
}

/* Side Projects Section */
.projects-section {
    background: var(--bg-secondary);
    padding: 6rem 2rem;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

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

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

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 1.5rem 1rem;
}

.project-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 1.5rem 1.5rem;
}

/* Project Card Slideshow */
.project-slideshow {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slideshow-slide.active {
    opacity: 1;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .slideshow-slide img {
    transform: scale(1.05);
}

/* Slideshow indicators */
.slideshow-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    z-index: 10;
    max-width: 90%;
    justify-content: center;
    flex-wrap: wrap;
}

.slideshow-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slideshow-dot.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.5);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* For slideshows with many slides, hide individual dots and show progress bar */
.slideshow-indicators:has(.slideshow-dot:nth-child(10)) {
    gap: 2px;
}

.slideshow-indicators:has(.slideshow-dot:nth-child(15)) .slideshow-dot {
    width: 3px;
    height: 3px;
}

/* Pause on hover */
.project-slideshow:hover .slideshow-slide {
    animation-play-state: paused;
}

/* Responsive breakpoints for side projects */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .projects-section {
        padding: 4rem 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-card h3 {
        font-size: 1.2rem;
        margin: 1.25rem 1.25rem 0.75rem;
    }
    
    .project-card p {
        font-size: 0.95rem;
        margin: 0 1.25rem 1.25rem;
    }
    
    /* Slideshow mobile adjustments */
    .project-slideshow {
        height: 180px;
    }
    
    .slideshow-indicators {
        bottom: 8px;
        gap: 4px;
    }
    
    .slideshow-dot {
        width: 8px;
        height: 8px;
    }
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--text-primary);
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.footer-link i,
.footer-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer mobile responsiveness */
@media (max-width: 600px) {
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-links {
        gap: 1rem;
        justify-content: center;
    }
    
    .footer-link {
        justify-content: center;
        min-width: 120px;
    }
}

@media (max-width: 400px) {
    .footer-links {
        gap: 0.75rem;
    }
    
    .footer-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Case Study Pages */
.project-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Two Column Hero Layout */
.project-hero.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 100%;
    padding: 0;
    background: var(--bg-primary);
}

.hero-text-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 4rem 4rem 8rem;
    background: var(--bg-hero);
    height: 100%;
}

.hero-text-column div{
    max-width: 760px;
    margin: 0 auto;
}

.hero-image-column {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: auto;
    padding: 0;
    background: var(--bg-hero);
    height: 100%;
}

.hero-image-scaled {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

/* Legacy single image hero styles */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(79, 70, 229, 0.4));
    z-index: 2;
}

.hero-content-overlay {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    margin-top: -200px;
}

.project-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: slideUpFade 1s ease 0.3s forwards;
    max-width: 760px;
}

.project-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: slideUpFade 1s ease 0.6s forwards;
    max-width: 740px;
}

.back-button {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Project Overview */
.project-overview {
    padding: 6rem 2rem;
    background: var(--bg-primary);
}

.overview-container {
    max-width: 1200px;
    margin: 0 auto;
}

.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.overview-text h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.overview-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.key-insight {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
    border: 1px solid rgba(79, 70, 229, 0.3);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
}

.key-insight h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.key-insight p {
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

.meta-grid {
    display: grid;
    gap: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Process Section */
.process-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.process-step {
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.step-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.step-content.reverse {
    direction: ltr;
}

.step-content.reverse > * {
    direction: ltr;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 1;
    margin-bottom: 1rem;
}

.step-text h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-text h4 {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.step-text ul {
    list-style: none;
    padding: 0;
}

.step-text li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.step-text li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.step-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.step-visual:hover {
    transform: translateY(-10px);
}

.step-visual img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.step-visual:hover img {
    transform: scale(1.05);
}

/* Video support in step visuals */
.step-visual video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 16px;
}

.step-visual:hover video {
    transform: scale(1.02); /* Slightly less scale for video to avoid distraction */
}

/* Autoplay video shorts styling */
.step-visual video[data-short],
.step-visual video[data-autoplay] {
    cursor: pointer; /* Indicate clickability */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.step-visual video[data-short]:hover,
.step-visual video[data-autoplay]:hover {
    transform: scale(1.01); /* Subtle hover for autoplay videos */
    opacity: 0.9;
}

/* Remove webkit video controls completely for shorts */
.step-visual video[data-short]::-webkit-media-controls,
.step-visual video[data-autoplay]::-webkit-media-controls {
    display: none !important;
}

.step-visual video[data-short]::-webkit-media-controls-enclosure,
.step-visual video[data-autoplay]::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Video controls styling */
.step-visual video::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.step-visual video::-webkit-media-controls-play-button,
.step-visual video::-webkit-media-controls-timeline,
.step-visual video::-webkit-media-controls-volume-slider {
    filter: invert(1);
}

/* Video loading spinner */
.video-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Video play overlay for autoplay videos */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.play-button {
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.insight-highlight {
    background: rgba(79, 70, 229, 0.1);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Solution Section */
.solution-section {
    padding: 6rem 2rem;
    background: var(--bg-primary);
}

.solution-container {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.feature-content h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.feature-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.feature-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Video support in feature showcase */
.feature-image video {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.phases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.risp .phases-grid{
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.phase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.phase-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
}

.phase-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.phase-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.phase-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Comparison Section */
.comparison-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.comparison-container {
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.comparison-item h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.comparison-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.comparison-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.comparison-list {
    list-style: none;
    padding: 0;
}

.comparison-list li {
    position: relative;
    padding-left: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.comparison-list.positive li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

.comparison-list.negative li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Impact Section */
.impact-section {
    padding: 6rem 2rem;
    background: var(--bg-primary);
}

.impact-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.impact-container > div:nth-child(2) {
  border: 1px solid var(--accent);
}


.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.key-learning-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto 20px;
}

.key-learning-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.key-learning-card p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

/* Improved list styling for key-learning-card */
.key-learning-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.key-learning-card li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.key-learning-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Alternative styling for ordered lists */
.key-learning-card ol {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    counter-reset: learning-counter;
}

.key-learning-card ol li {
    position: relative;
    padding-left: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    counter-increment: learning-counter;
}

.key-learning-card ol li::before {
    content: counter(learning-counter);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: bold;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Better typography for emphasized text in key-learning-card */
.key-learning-card strong,
.key-learning-card b {
    color: var(--text-primary);
    font-weight: 600;
}

.key-learning-card em,
.key-learning-card i {
    color: var(--accent);
    font-style: italic;
}

/* Project Navigation */
.project-navigation {
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

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

/* Animations */
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

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

/* Ken Burns effect animations - all matched to foto 4 speed */
@keyframes kenBurnsZoomIn {
    0% {
        background-size: 120%;
        background-position: center center;
    }
    100% {
        background-size: 140%;
        background-position: center center;
    }
}

@keyframes kenBurnsZoomOut {
    0% {
        background-size: 140%;
        background-position: center center;
    }
    100% {
        background-size: 120%;
        background-position: center center;
    }
}

@keyframes kenBurnsPanLeft {
    0% {
        background-size: 120%;
        background-position: 60% center;
    }
    100% {
        background-size: 140%;
        background-position: 40% center;
    }
}

@keyframes kenBurnsPanRight {
    0% {
        background-size: 120%;
        background-position: 40% center;
    }
    100% {
        background-size: 140%;
        background-position: 60% center;
    }
}


/* Mobile Responsiveness for Enhanced Layout */
@media (max-width: 768px) {
    .project-hero {
        height: 60vh;
    }

    .project-hero.two-column {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 80vh;
    }

    .hero-text-column {
        padding: 3rem 2rem;
        text-align: center;
    }

    .hero-image-column {
        padding: 1rem 2rem 2rem;
    }

    .hero-content-overlay {
        padding: 1rem;
    }
    
    .back-button {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step-content,
    .step-content.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
    
    .feature-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-navigation .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-button {
        width: 100%;
        justify-content: center;
    }
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.case-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.5;
}

.case-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.meta-item {
    color: var(--text-secondary);
    line-height: 1.6;
}

.meta-item strong {
    color: var(--text-primary);
}

.case-content {
    padding: 4rem 2rem;
}

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

.content-section {
    margin-bottom: 4rem;
}

.section-heading {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.content-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.highlight-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight-box p {
    color: var(--text-primary);
    margin: 0;
}

.process-step {
    margin-bottom: 3rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.step-list {
    list-style: none;
    padding: 0;
}

.step-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.step-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.insight-box {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.insight-box p {
    color: var(--text-primary);
    margin: 0;
}

.solution-feature {
    margin-bottom: 2.5rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.phase-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.8rem;
}

.phase-list li {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.phase-list li:hover {
    border-color: var(--accent);
    background: rgba(79, 70, 229, 0.05);
}

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

.impact-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
}

.impact-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.impact-list {
    list-style: none;
    padding: 0;
}

.impact-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.impact-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.key-learning {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.learning-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.learning-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
}

.case-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-button.primary {
    background: var(--accent);
    color: white;
}

.nav-button.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.nav-button.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.nav-button.secondary:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 70vh;
        padding: 2rem 1rem;
    }
    
    .hero-content {
        margin-top: 0;
    }
    
    .hero-line-main {
        font-size: clamp(3rem, 20vw, 8rem);
        margin-bottom: 5px;
    }
    
    .hero-line-small {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: 13px;
    }
    
    .hero-text-stack::before {
        border-radius: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .case-meta {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

    .case-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .case-image{
        height: 120px;
    }
    
    .case-content {
        padding: 2rem 1rem;
    }

    .nav-button {
        width: 100%;
        justify-content: center;
    }

    .risp .phases-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }

    .phase-card {
        padding: 1rem;
    }
    .nav-container{
        height: auto;
    }

    .step-content.reverse .step-text{
        order: 1;
    }

    .step-content.reverse .step-visual{
        order: 2
    }
}

@media (min-width: 1600px) {
    .hero-text-column {
        padding: 0rem 4rem 4rem 6rem;
        height: 100%;
    }
}

@media (max-width: 1599px) {
    .hero-text-column {
        padding: 0rem 2rem 4rem 2rem;
        height: 100%;
    }
}

@media (max-width: 1200px){
    .risp .phases-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    .hero-text-column {
        padding: 2rem 2rem 4rem 2rem;
        height: 100%;
    }
}