@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #1E1332;
    --title-color: #392B54; /* New softer violet for titles */
    --secondary-color: #052D7C; /* McKinsey-style blue */
    --accent-color: #1E1332;
    --text-color: #2B2B2B;
    --background-color: #F5F6FA;
    --light-gray: #F5F5F5;
    --border-color: #E5E5E5;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-weight: 400;
}

header {
    position: fixed;
    width: 100%;
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    height: 80px; /* Fixed height for header */
}

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

.logo {
    height: 60px;
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    padding: 5px;
    background: var(--primary-color);
    border-radius: 4px;
}

.nav-links a {
    margin-left: 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Red Hat Display', sans-serif;
}

section {
    padding: 3rem 2rem;
    max-width: 1440px;
    margin: 0 auto;
}

#hero {
    min-height: 50vh;
    padding-top: 80px;
    padding-bottom: 2rem;
    background: white;
}

.hero-wrapper {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--title-color);
    font-family: 'Red Hat Display', sans-serif;
}

.highlight {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-color);
    padding: 3rem;
    border-radius: 8px;
}

.hero-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.hero-cta {
    font-size: 1.2rem;
    padding: 1.2rem 2.4rem;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
    max-width: 1200px; /* To maintain reasonable line length */
}

.problem-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.problem-card:hover {
    background: rgba(57, 43, 84, 0.03);
    border-color: var(--title-color);
    transform: translateY(-4px);
}

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

.team-member {
    text-decoration: none;
    color: var(--text-color);
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
    display: block; /* Ensure it's a block element */
}

.team-member:hover {
    background: rgba(57, 43, 84, 0.03);
    border-color: var(--title-color);
    transform: translateY(-4px);
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.timeline-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.timeline-phase {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.timeline-phase:hover {
    background: rgba(57, 43, 84, 0.02);
    border-top: 1px solid rgba(57, 43, 84, 0.1);
    border-bottom: 1px solid rgba(57, 43, 84, 0.1);
    transform: translateY(-4px);
}

.timeline-phase h3 {
    color: var(--title-color);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.timeline-phase ul {
    list-style-type: none;
}

.timeline-phase li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-phase li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.practical-details {
    background: var(--primary-color);
    color: white;
    padding: 2.5rem;
    border-radius: 8px;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.practical-details h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.practical-details ul {
    list-style: none;
}

.practical-details li {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    line-height: 1.4;
}

.practical-details li:last-child {
    border-bottom: none;
}

.target-list {
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 2rem 0;
    padding-left: 1.5rem;
    max-width: none;
    list-style: none;
}

.target-list li {
    margin-bottom: 1.5rem;
    padding-left: 0;
    border: none;
}

.target-list li:last-child {
    margin-bottom: 2rem;
}

.industries-line {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .target-list {
        font-size: 1.2rem;
    }
    
    .industries-line {
        font-size: 1.2rem;
    }
}

.target-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.target-item:hover {
    background: rgba(57, 43, 84, 0.03);
    border-color: var(--title-color);
    transform: translateY(-4px);
}

.target-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    background: rgba(57, 43, 84, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(57, 43, 84, 0.2);
    min-width: 48px;
    text-align: center;
}

.target-item p {
    font-size: 1.25rem;
    line-height: 1.5;
    margin: 0;
    padding-top: 0.5rem;
}

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

.checklist-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.checklist-item:hover {
    background: rgba(57, 43, 84, 0.03);
    border-color: var(--title-color);
    transform: translateY(-4px);
}

.checklist-item h3 {
    color: var(--title-color);
    margin-bottom: 1rem;
}

.contact-content {
    max-width: 600px;
    margin-top: 1.5rem;
}

.contact-content p {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 2.5rem;
    border-radius: 0; /* McKinsey uses square buttons */
    text-decoration: none;
    margin-top: 2rem;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background: #130c22;
}

@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        padding-top: 120px; /* Increased padding to account for header + menu */
    }

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

    .hero-logo {
        max-width: 300px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .timeline {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        display: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        margin: 1rem 0;
        padding: 0.5rem 0;
        text-align: center;
    }

    section {
        padding: 1.5rem 1rem;
    }

    .target-item {
        padding: 1.5rem;
    }
    
    .target-item p {
        font-size: 1.1rem;
    }

    /* Team cards adjustments */
    .team-member {
        padding: 1rem;
    }

    .team-member img {
        width: 150px;
        height: 150px;
    }

    /* Profile page adjustments */
    .team-profile {
        padding-top: 80px; /* Add space for fixed header */
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .profile-header {
        padding: 1.5rem;
    }

    .profile-intro img {
        width: 200px;
        height: 200px;
    }

    .profile-section {
        padding: 1.5rem;
    }

    /* Solution box adjustments */
    .solution-box {
        padding: 1.5rem;
    }

    /* Timeline adjustments */
    .timeline-container {
        gap: 1rem;
    }

    .practical-details {
        padding: 1.5rem;
    }

    /* Target items adjustments */
    .target-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .target-number {
        align-self: flex-start;
    }

    .profile-top-sections {
        flex-direction: column;
        gap: 2rem;
    }
    
    .profile-left-column,
    .profile-section.process {
        width: 100%;
    }
}

/* Add styles for smaller phones */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .profile-intro img {
        width: 150px;
        height: 150px;
    }

    .profile-title h1 {
        font-size: 2rem;
    }

    .solution-main {
        font-size: 1.5rem;
    }

    .problem-card,
    .checklist-item {
        padding: 1rem;
    }
}

/* Add more styles as needed */
h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.markets-list {
    list-style: none;
    margin-top: 1rem;
}

.markets-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.markets-list li:last-child {
    border-bottom: none;
}

.hero-image svg {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
    transform: translateY(-20px);
}

@media (max-width: 768px) {
    .hero-image svg {
        transform: translateY(0);
        max-width: 80%;
    }
}

.readiness-list {
    list-style: none;
    margin-top: 0.5rem;
}

.readiness-list li {
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.readiness-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .timeline-container {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        grid-template-columns: 1fr;
    }
}

.problem-content {
    max-width: none;
    margin: 0;
    padding: 0 2rem;
}

.problem-intro {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: none;  /* Remove max-width to match solution section */
}

.problem-conclusion {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    max-width: none;  /* Remove max-width to match solution section */
}

@media (max-width: 768px) {
    .problem-intro,
    .problem-conclusion {
        font-size: 1.2rem;
    }
}

.solution-content {
    max-width: none;
    margin: 0;
    padding: 0 2rem;
}

.solution-content h2 {
    font-size: 2.5rem;
    color: var(--title-color);
    margin-bottom: 1rem;
}

.solution-intro {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: none;  /* Remove max-width constraint to match grid width */
}

.solution-content h3 {
    font-size: 1.75rem;
    color: var(--title-color);
    margin: 2rem 0 1.5rem;
}

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

/* Remove any margin-right: auto that might cause centering */
.delivery-item, .benefit-item {
    text-align: left;
    margin: 0;
}

.delivery-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.delivery-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.delivery-item:hover {
    transform: translateY(-4px);
    background: rgba(57, 43, 84, 0.03);
    border-color: var(--title-color);
}

.delivery-item h4 {
    font-size: 1.4rem;
    color: var(--title-color);
    margin-bottom: 1rem;
}

.delivery-item p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-color);
}

.benefit-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.benefit-item:hover {
    transform: translateY(-4px);
    background: rgba(57, 43, 84, 0.03);
    border-color: var(--title-color);
}

.benefit-item h4 {
    font-size: 1.3rem;
    color: var(--title-color);
    margin-bottom: 0.75rem;
}

.benefit-item p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .solution-content h2 {
        font-size: 2rem;
    }
    
    .solution-intro {
        font-size: 1.2rem;
    }
    
    .delivery-item, .benefit-item {
        text-align: left;  /* Keep left alignment on mobile */
    }
    
    .delivery-icon {
        text-align: left;  /* Keep icons left-aligned on mobile */
    }
}

.solution-box {
    background: var(--primary-color);
    color: white;
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 900px;
}

.solution-main {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.solution-details {
    font-size: 1.4rem;
    line-height: 1.6;
}

.solution-details p {
    margin-bottom: 1rem;
}

.solution-details ul {
    list-style: none;
}

.solution-details li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.solution-details li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .solution-main {
        font-size: 1.75rem;
    }
    
    .solution-details {
        font-size: 1.2rem;
    }
}

.problem-list {
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 2rem 0;
    padding-left: 1.5rem;
    max-width: none;  /* Remove max-width to match solution section */
}

.problem-list li {
    margin-bottom: 1rem;
    padding-left: 1rem;
}

@media (max-width: 768px) {
    .problem-list {
        font-size: 1.2rem;
    }
}

.solution-headline {
    margin-bottom: 3rem;
    max-width: 900px;
}

.solution-headline h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.highlight-text {
    color: var(--secondary-color);
    font-size: 3.5rem !important;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0.2);
    transform-origin: left;
    animation: expandLine 1s ease-out forwards;
}

@keyframes expandLine {
    to {
        transform: scaleX(1);
    }
}

@media (max-width: 768px) {
    .solution-headline h2 {
        font-size: 2rem;
    }
    
    .highlight-text {
        font-size: 1.2rem;  /* Keep smaller on mobile for readability */
    }
}

/* Team member profile styles */
.team-profile {
    padding-top: 100px;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.profile-header {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.profile-intro {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.profile-intro img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;  /* Prevent image from shrinking */
}

.profile-title h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--title-color);
}

.profile-title .role {
    margin-bottom: 0.5rem;
}

.role {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px; /* Increase max-width to match header */
    margin: 0 auto;
}

.profile-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.profile-section.background {
    padding-bottom: 0;
}

.profile-section.background ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile-section.background li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-section.background li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.profile-section.process {
    flex: 1.18; /* Makes right column ~55% */
    height: fit-content;
}

.profile-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--title-color);
}

.profile-section ul {
    list-style: none;
}

.profile-section li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.profile-section.background {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.background-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.background-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.background-content li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.background-content li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-section.process {
    flex: 1.18; /* Makes right column ~55% */
    height: fit-content;
}

@media (max-width: 768px) {
    .profile-intro {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-title h1 {
        font-size: 2.5rem;
    }

    .profile-top-sections {
        flex-direction: column;
        gap: 1rem;
    }

    .profile-section.background,
    .profile-section.process {
        width: 100%;
    }
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        display: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        margin: 1rem 0;
        padding: 0.5rem 0;
        text-align: center;
    }
}

/* Update all titles to use the new color */
h1, h2, h3, h4, h5, h6,
.role,
.nav-links a {
    color: var(--title-color);
}

/* Keep white text for elements with dark backgrounds */
.practical-details h3,
.solution-box h3 {
    color: white;
}

/* Add violet links */
.nav-links a:hover {
    color: var(--title-color);
}

/* Add violet selection color */
::selection {
    background: rgba(57, 43, 84, 0.2);
    color: var(--title-color);
}

/* Add violet focus outlines */
a:focus, button:focus {
    outline: 2px solid rgba(57, 43, 84, 0.5);
    outline-offset: 2px;
}

/* Add violet scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(57, 43, 84, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(57, 43, 84, 0.3);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(57, 43, 84, 0.5);
}

.flip-horizontal {
    transform: scaleX(-1);
}

/* Clean slate - remove all quote styles first */
blockquote::before,
blockquote::after {
    display: none;
}

/* Remove all other quote-related styles and keep only this */
.quote {
    position: relative;
    padding: 1.5rem 3rem;
    margin: 1rem 0;
    background: rgba(57, 43, 84, 0.02);
    border-radius: 8px;
    border-left: 4px solid var(--title-color);
}

.quote::before {
    content: "'";  /* Single quote with proper escaping */
    position: absolute;
    left: -4px;    
    top: -5px;
    font-size: 2rem;  
    color: #663399;
    font-family: Georgia, serif;
}

.quote::after {
    content: "'";  /* Single quote with proper escaping */
    position: absolute;
    left: -4px;    
    bottom: -15px;
    font-size: 2rem;  
    color: #663399;
    font-family: Georgia, serif;
}

.quote-divider {
    margin: 0.5rem auto;  /* Reduced margin */
}

/* Process steps styling */
.process-step {
    margin-bottom: 2rem;
}

.process-step h3 {
    color: var(--title-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.process-step:last-child {
    margin-bottom: 0;
}

/* Philosophy quotes styling for Ilya's page */
.philosophy-quotes h3 {
    color: var(--title-color);
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(57, 43, 84, 0.1);
}

.philosophy-quotes h3:first-child {
    margin-top: 0;
}

.philosophy-quotes blockquote {
    position: relative;
    padding: 1.5rem 3rem;  /* Added padding for quote marks */
    margin: 1rem 0;
    background: rgba(57, 43, 84, 0.02);
    border-radius: 8px;
}

.philosophy-quotes blockquote::before,
.philosophy-quotes blockquote::after {
    display: none;  /* This hides Ilya's quote marks */
}

/* First two sections in a grid */
.profile-section.background,
.profile-section.process {
    display: inline-block;
    width: calc(50% - 1rem);
    vertical-align: top;
}

.profile-section.background {
    padding: 2rem;
    padding-bottom: 0; /* Remove bottom padding */
}

.profile-section.background ul {
    margin-bottom: 0; /* Remove bottom margin from the list */
}

/* Remove all the middle line and dots styling */
.philosophy-quotes::before,
.philosophy-quotes blockquote::after {
    display: none;
}

/* Remove left/right quote specific styling */
.philosophy-quotes .quote-left,
.philosophy-quotes .quote-right {
    margin: 0;
    border: none;
    border-left: 4px solid var(--title-color);
    text-align: left;
}

@media (max-width: 768px) {
    .philosophy-quotes blockquote::before,
    .philosophy-quotes blockquote::after {
        font-size: 2rem;
    }
}

/* Create a wrapper for the first two sections */
.profile-top-sections {
    display: flex;
    gap: 2rem;
}

/* Update the width styles for background and process sections */
.profile-section.background,
.profile-section.process {
    flex: 1; /* Make both sections take equal width */
    width: 50%;
    margin: 0; /* Remove the margin-right */
}

@media (max-width: 768px) {
    .profile-top-sections {
        flex-direction: column;
        gap: 1rem;
    }

    .profile-section.background,
    .profile-section.process {
        width: 100%;
    }
}

/* Add styles for quote divider */
.mt-4 {
    margin-top: 2.5rem;
}

/* Value propositions styling */
.value-props {
    margin-top: 1rem;
}

.value-prop {
    margin-bottom: 1.5rem;
}

.value-prop:last-child {
    margin-bottom: 0;
}

.value-prop h3 {
    font-size: 1.1rem;
    color: var(--title-color);
    margin-bottom: 0.75rem;
}

.value-prop ul {
    margin-left: 1rem;
}

.value-prop li {
    border: none;
    padding: 0.4rem 0;
    font-size: 1rem;
    position: relative;
}

.value-prop li::before {
    content: "•";
    position: absolute;
    left: -1rem;
    color: var(--title-color);
}

/* Profile layout adjustments */
.profile-left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;  /* Restores spacing between sections */
}

.profile-left-column .profile-section {
    flex: 0 0 auto;
    width: 100%;  /* Make sections full width */
}

.profile-section.process {
    flex: 1.18; /* Makes right column ~55% */
    height: fit-content;
}

/* Philosophy section headers */
.philosophy-quotes h3 {
    color: var(--title-color);
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
}

.philosophy-quotes h3:first-child {
    margin-top: 0;
}

/* Philosophy lists */
.philosophy-quotes ul,
.philosophy-quotes ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.philosophy-quotes li {
    margin: 0.5rem 0;
    border: none;
    padding: 0;
}

.philosophy-quotes strong {
    color: var(--title-color);
}

/* Philosophy section styling - standardized text sizes */
.philosophy-quotes {
    padding: 2rem 0;
}

.philosophy-quotes h3 {
    color: var(--title-color);
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(57, 43, 84, 0.1);
}

/* Make ALL text elements in philosophy section consistent */
.philosophy-quotes blockquote,
.philosophy-quotes p,
.philosophy-quotes ul,
.philosophy-quotes ol,
.philosophy-quotes li,
.philosophy-quotes strong {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
}

.philosophy-quotes blockquote {
    padding: 1.5rem;
    margin: 1rem 0;
    background: rgba(57, 43, 84, 0.02);
    border-radius: 8px;
    border-left: 4px solid var(--title-color);
}

/* Consistent list styling */
.philosophy-quotes ul,
.philosophy-quotes ol {
    margin: 0.75rem 0;
    padding-left: 2rem;
}

.philosophy-quotes li {
    margin: 0.5rem 0;
    padding: 0;
    border: none;
}

/* Remove any nested size overrides */
.philosophy-quotes blockquote * {
    font-size: inherit;
    line-height: inherit;
}

/* Background section styling */
.background-section {
    margin-bottom: 2rem;
}

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

.background-section h3 {
    color: var(--title-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(57, 43, 84, 0.1);
}

.background-section ul {
    margin-left: 0;
}

.background-section li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* Cases section styling */
.profile-section.cases a {
    color: var(--title-color);
    text-decoration: none;
}

.profile-section.cases a:hover {
    text-decoration: underline;
}

.profile-section.cases li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.profile-section.cases li::after {
    content: "→";
    margin-left: auto;
    color: var(--title-color);
    opacity: 1;
    transition: transform 0.2s ease;
}

.profile-section.cases li:hover::after {
    transform: translateX(5px);
}

.profile-section.process {
    flex: 1;
    height: fit-content; /* This ensures it only takes the space it needs */
}

/* Tatiana's quotes styling */
.quote-left,
.quote-right {
    position: relative;
    padding: 2rem 4rem;
    margin: 1rem 0;
    background: rgba(57, 43, 84, 0.02);
    border-radius: 8px;
    border-left: 4px solid var(--title-color);
}

.quote-left::before,
.quote-right::before {
    content: '"';
    font-size: 3rem;
    color: var(--title-color);
    position: absolute;
    left: 1rem;
    top: 0.5rem;
}

.quote-left::after,
.quote-right::after {
    content: '"';
    font-size: 3rem;
    color: var(--title-color);
    position: absolute;
    right: 1rem;
    bottom: 0;
}

/* Show quote dividers */
.quote-divider {
    display: block;
    height: 1px;
    background: rgba(57, 43, 84, 0.1);
    margin: 1rem auto;
    width: 50%;
}

.decorative-quote {
    position: relative;
    padding: 2rem 3rem;
    margin: 2rem 0;
}

.decorative-quote::before,
.decorative-quote::after {
    position: absolute;
    font-size: 6rem;
    color: #663399; /* Dark violet color */
    font-family: Georgia, serif;
    line-height: 1;
}

.decorative-quote::before {
    content: '"';
    left: -0.5rem;
    top: -1rem;
}

.decorative-quote::after {
    content: '"';
    right: -0.5rem;
    bottom: -2rem;
}

.profile-quote {
    margin-top: 1rem;
    color: var(--title-color);
    font-size: 1.2rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

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

.profile-quote p {
    margin: 0;
    font-style: italic;
}

/* Adjust title spacing */
.profile-title h1 {
    margin-bottom: 0.5rem;  /* Reduce space between name and role */
}

.profile-title .role {
    margin-bottom: 0.5rem;  /* Reduce space between role and quote */
}

/* Update width for Natalia's page only */
.team-profile .profile-section.process {
    width: 100%;  /* Make process section full width */
    margin-right: 0;
}

.team-profile .profile-section.background {
    width: 100%;  /* Make background section full width */
    margin-right: 0;
}

/* Keep the original profile-top-sections layout */
.profile-top-sections {
    display: flex;
    gap: 2rem;
}

.cases-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.cases-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.case-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: translateX(10px);
    border-color: var(--title-color);
}

.case-item h3 {
    color: var(--title-color);
    font-size: 1.5rem;
    margin: 0;
}

.case-arrow {
    color: var(--title-color);
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.case-item:hover .case-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .case-item h3 {
        font-size: 1.2rem;
    }
}

.two-column-layout {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.left-column {
    flex: 0.45; /* 45% width */
}

.right-column {
    flex: 0.55; /* 55% width */
}

.profile-section.about {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.profile-section.about p {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--title-color);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

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

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

/* Make all major section gaps consistent */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;  /* This controls spacing between Consulting Process and Work Philosophy */
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;  /* This matches the gap between sections. */
}

/* Case study specific styles */
.case-study {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 120px 2rem 0;
}

.case-content {
    background: white;
    padding: 3rem;
    line-height: 1.6;
}

.case-content h1 {
    font-size: 2.5rem;
    color: var(--title-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.case-section {
    margin-bottom: 4rem;  /* Increased from 0.75rem */
}

.case-section h2 {
    font-size: 1.8rem;
    color: var(--title-color);
    margin: 2rem 0 1rem;  /* Increased top and bottom margins */
}

.case-section h3 {
    margin: 1.5rem 0 1rem;  /* Added explicit margins for h3 */
    color: var(--title-color);
}

.case-section p {
    margin-bottom: 1rem;  /* Increased from 0.4rem */
    font-size: 1.1rem;
}

.case-section ul, 
.case-section ol {
    margin: 1rem 0 1.5rem;  /* Added more vertical spacing around lists */
    padding-left: 1.5rem;
}

/* Add extra space before the conclusion section */
.case-section.conclusion {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.case-section li {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.case-section li strong {
    color: var(--title-color);
}

@media (max-width: 768px) {
    .case-study {
        padding-top: 100px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .case-content {
        padding: 1.5rem;
    }
    
    .case-content h1 {
        font-size: 2rem;
    }
}

/* Case Gallery Styling */
.case-gallery {
    position: relative;
    padding: 4rem 0;
    background: var(--background-color);
    overflow: hidden;
}

.case-slider {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    padding-bottom: 2.5rem; /* Add space for scrollbar */
    overflow-x: scroll; /* Changed from hidden to scroll */
    scroll-behavior: smooth;
    /* Show scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--title-color) #eee;
}

/* Styling the scrollbar for WebKit browsers (Chrome, Safari) */
.case-slider::-webkit-scrollbar {
    height: 8px;
}

.case-slider::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 4px;
}

.case-slider::-webkit-scrollbar-thumb {
    background-color: var(--title-color);
    border-radius: 4px;
}

.case-card {
    flex: 0 0 calc(50% - 2rem);  /* Make cards take up half the width */
    max-width: 800px;
    min-height: 200px;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-card:hover {
    transform: translateY(-4px);
    border-color: var(--title-color);
    box-shadow: 0 4px 12px rgba(57, 43, 84, 0.1);
}

.case-card h3 {
    color: var(--title-color);
    font-size: 1.75rem;  /* Back to original size */
    line-height: 1.3;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.case-card .subtitle {
    color: var(--text-color);
    font-size: 1.2rem;  /* Back to original size */
    line-height: 1.4;
    margin-bottom: 2rem;
    font-weight: 400;
}

.case-link {
    color: white;
    background-color: var(--title-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.25rem;
    padding: 1rem 2rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    transition: all 0.3s ease;
    border: 2px solid var(--title-color);
}

.case-link:hover {
    background-color: white;
    color: var(--title-color);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(57, 43, 84, 0.15);
}

/* Navigation buttons */
.case-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.nav-prev,
.nav-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--title-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.nav-prev:disabled,
.nav-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-prev:not(:disabled):hover,
.nav-next:not(:disabled):hover {
    background: var(--title-color);
    color: white;
    border-color: var(--title-color);
}

/* Table styling for case studies */
.case-study table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
}

.case-study table td {
    border: 1px solid var(--border-color);
    padding: 1rem;
    vertical-align: top;
}

.case-study table tr:first-child {
    background: rgba(57, 43, 84, 0.02);
    border-bottom: 2px solid var(--title-color);
}

.case-study table tr:first-child td {
    font-weight: 500;
    color: var(--title-color);
}

.case-study table tr:hover {
    background: rgba(57, 43, 84, 0.02);
}

/* Main page case card styling */
.case-link::after {
    content: "→";
    margin-left: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.case-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Ilya's profile case links styling */
.profile-section.cases li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.profile-section.cases li::after {
    content: "→";
    margin-left: auto;
    color: var(--title-color);
    opacity: 1;
    transition: transform 0.2s ease;
}

.profile-section.cases li:hover::after {
    transform: translateX(5px);
}

.case-section h2.subtitle {
    font-size: 1.4rem;
    color: var(--title-color);
    margin: 0.5rem 0 2rem;
    font-weight: 400;
}

.last-thought {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: var(--text-color);
}

.no-bottom-space {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Smooth scrolling and offset for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* This ensures the scroll stops at the title */
}

.solution-box h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.solution-item {
    text-align: left;
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.solution-item h4 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.solution-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.5;
}

.solution-benefits {
    margin-top: 2rem;
}

.solution-benefits h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.solution-benefits ul {
    list-style: none;
    padding: 0;
}

.solution-benefits li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 0;
}

.solution-benefits li strong {
    color: white;
    font-weight: 600;
}

@media (max-width: 768px) {
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .solution-box h2 {
        font-size: 2rem;
    }
    
    .solution-item {
        text-align: center;
    }
}

.target-content {
    max-width: none;
    margin: 0;
    padding: 0 2rem;
}

.target-intro {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: none;
}

.target-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 0;
}

.target-requirements {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.target-list li {
    padding: 1rem 0;
    font-size: 1.2rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--border-color);
    list-style: none;
}

.industries-line {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .industries-line {
        font-size: 1.1rem;
    }
}

.process-content {
    max-width: none;
    margin: 0;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.phase {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.phase:hover {
    transform: translateY(-4px);
    background: rgba(57, 43, 84, 0.03);
    border-color: var(--title-color);
}

.phase h3 {
    font-size: 1.75rem;
    color: var(--title-color);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.6;
}

.process-list li {
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.process-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .process-content {
        grid-template-columns: 1fr;
    }
    
    .process-list {
        font-size: 1.2rem;
    }
    
    .phase h3 {
        font-size: 1.5rem;
    }
}

.not-fit-content {
    max-width: none;
    margin: 0;
    padding: 0 2rem;
}

.not-fit-intro {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.industries-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-start;  /* Align items to the start */
}

.industry-tag {
    display: inline-block;  /* Ensure block behavior */
    background-color: #ffffff;  /* Explicit white background */
    padding: 0.75rem 1.5rem;  /* Slightly larger padding to match screenshot */
    border-radius: 8px;  /* Increased border radius to match screenshot */
    border: 1px solid var(--border-color);
    font-size: 1.2rem;  /* Slightly larger font */
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);  /* Subtle shadow */
}

.industry-tag:hover {
    background: rgba(57, 43, 84, 0.03);
    border-color: var(--title-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .industries-grid {
        gap: 0.75rem;
    }
    
    .industry-tag {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

/* Base mobile-friendly adjustments */
@media (max-width: 768px) {
    /* Header/Navigation */
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        display: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    /* Hero section */
    .hero-wrapper {
        padding: 2rem 1rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-content .highlight {
        font-size: 1.2rem;
    }

    /* Problem section */
    .problem-content, 
    .solution-content,
    .target-content,
    .not-fit-content {
        padding: 2rem 1rem;
    }

    /* Grids */
    .delivery-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Process section */
    .process-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    /* Team grid */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .team-member img {
        width: 150px;
        height: 150px;
    }

    /* Case gallery */
    .case-card {
        padding: 1.5rem;
    }

    .case-card h3 {
        font-size: 1.3rem;
    }

    /* Contact section */
    .contact-content {
        padding: 2rem 1rem;
    }

    /* Font size adjustments */
    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .problem-intro,
    .solution-intro,
    .target-intro {
        font-size: 1.2rem;
    }

    /* Industry tags */
    .industries-grid {
        justify-content: center;
    }
}

/* Additional breakpoint for very small screens */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }
}

.cta-wrapper {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-wrapper {
        flex-direction: row;
        align-items: center;
        padding: 4rem 2rem;
    }

    .hero-content {
        flex: 1;
    }

    .hero-image {
        flex: 1;
    }

    .cta-wrapper {
        margin-bottom: 0;
    }
}

.contact-details {
    margin: 2rem 0;
    font-size: 1.2rem;
    line-height: 1.8;
}

.contact-details a {
    color: var(--title-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}