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

:root {
    /* Warm editorial palette - inspired by paper & ink */
    --primary-color: #1A1A1A;
    --text-dark: #1A1A1A;
    --text-gray: #5C5C5C;
    --text-light: #A3A3A3;
    --bg-light: #F3F1ED;
    --bg-white: #FAF8F5;
    --cloud-dancer: #FAF8F5;
    --border-color: #E8E4DE;
    --accent-color: #3B82F6;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.07);
    --radius-sm: 6px;
    --radius-md: 20px;
    --radius-lg: 16px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #FAFAFA;
        --text-dark: #FAFAFA;
        --text-gray: #A3A3A3;
        --text-light: #737373;
        --bg-light: #171717;
        --bg-white: #0A0A0A;
        --cloud-dancer: #0A0A0A;
        --border-color: #262626;
        --accent-color: #60A5FA;
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 15px;
    background: var(--cloud-dancer);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h4, h5, h6 {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

html {
    scroll-behavior: smooth;
}

/* Focus states */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

@media (prefers-color-scheme: dark) {
    .nav {
        background: rgba(10, 10, 10, 0.8);
    }
}

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

.nav-logo {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    background: var(--bg-white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 650px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--radius-lg);
    background: transparent;
    border: 1px solid var(--border-color);
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

.highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    border: 1px solid var(--primary-color);
}

.cta-button:hover {
    background: var(--text-dark);
    border-color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
    .cta-button {
        background: var(--bg-white);
        color: var(--text-dark);
        border-color: var(--border-color);
    }

    .cta-button:hover {
        background: var(--bg-light);
        border-color: var(--text-gray);
    }
}

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

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

/* Section Styles */
.work-section,
.about-section,
.contact-section {
    padding: 120px 0;
}

/* Project Section */
.project-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.project-section:last-of-type {
    border-bottom: none;
}

.project-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.project-section:nth-child(even) .project-container {
    direction: rtl;
}

.project-section:nth-child(even) .project-content,
.project-section:nth-child(even) .project-image {
    direction: ltr;
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.project-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image-wrapper:hover img {
    opacity: 0.85;
    transform: scale(1.03);
}

.project-content {
    max-width: 600px;
}

.project-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-badge {
    padding: 6px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.project-title {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.project-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 32px;
}

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

.project-stat {
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.project-stat:hover {
    border-color: var(--text-gray);
}

.project-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.project-stat-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

.view-project-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    border: 1px solid var(--primary-color);
}

.view-project-button:hover {
    background: var(--text-dark);
    border-color: var(--text-dark);
    transform: translateX(2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
    .view-project-button {
        background: var(--bg-white);
        color: var(--text-dark);
        border-color: var(--border-color);
    }

    .view-project-button:hover {
        background: var(--bg-light);
        border-color: var(--text-gray);
    }
}

.view-project-button .arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.view-project-button:hover .arrow {
    transform: translateX(4px);
}

/* Case Study Hero */
.case-study-hero {
    padding: 120px 0 60px 0;
    background: var(--cloud-dancer);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
}

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

.view-case-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.view-case-link:hover {
    color: var(--text-dark);
    transform: translateX(2px);
}

.case-study-content {
    padding: 80px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 60px;
    text-align: center;
}

/* Case Study Card */
.case-study-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid var(--border-color);
}

.case-study-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.case-study-header {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.case-study-icon {
    font-size: 48px;
    line-height: 1;
}

.case-study-meta {
    flex: 1;
}

.case-study-title {
    font-family: "Space Mono", monospace;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.2;
}

.case-study-role {
    font-size: 16px;
    color: var(--text-gray);
}

.case-study-summary {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Expand Button */
.expand-button {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.expand-button:hover {
    background: var(--bg-light);
    border-color: var(--text-gray);
}

.arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.expand-button.active .arrow {
    transform: rotate(180deg);
}

/* Detailed Content */
.detailed-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 40px;
}

.detailed-content.open {
    max-height: 10000px;
}

.content-section {
    margin-bottom: 60px;
}

.content-section-title {
    font-family: "Space Mono", monospace;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-dark);
    line-height: 1.2;
}

.content-card {
    background: var(--bg-light);
    padding: 28px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.content-card:hover {
    box-shadow: var(--shadow);
}

.content-card p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--text-gray);
}

.content-card p:last-child {
    margin-bottom: 0;
}

/* Challenges Grid */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.challenge-item {
    padding: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-gray);
    transition: border-color 0.2s ease;
}

.challenge-item:hover {
    border-color: var(--text-gray);
}

/* Numbered Challenge Items */
.challenge-item-numbered {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    padding: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.challenge-item-numbered:hover {
    border-color: var(--text-gray);
    box-shadow: var(--shadow);
    transform: translateX(2px);
}

.challenge-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
    min-width: 60px;
    text-align: center;
}

.challenge-content {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
}

/* Led Grid */
.led-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.led-item {
    padding: 28px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.led-item:hover {
    border-color: var(--text-gray);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.led-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.led-item h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.led-item p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Approach Items */
.approach-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
}

.approach-item:last-child {
    border-bottom: none;
}

.approach-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.approach-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
}

.approach-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.approach-content h5 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.approach-content p {
    margin-bottom: 16px;
    color: var(--text-gray);
    line-height: 1.7;
}

.highlight-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
    margin: 24px 0;
    border: 1px solid var(--border-color);
    border-left-width: 3px;
}

.metric-highlight {
    font-weight: 600;
    color: var(--primary-color);
}

/* Sub Projects */
.sub-project {
    margin: 32px 0;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: none;
}

.sub-project:hover {
}

.sub-project h6 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.sub-project p {
    color: var(--text-gray);
    margin-bottom: 16px;
}

/* Results Table */
.results-table {
    margin-top: 24px;
}

.results-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 14px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    align-items: center;
    font-size: 13px;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.results-row:hover {
    border-color: var(--text-gray);
}

.results-row span:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

.before,
.after {
    color: var(--text-gray);
}

.change {
    font-weight: 600;
}

.change.positive {
    color: #10b981;
}

/* Lists */
.features-list,
.achievements-list {
    list-style: none;
    margin: 24px 0;
}

.features-list li,
.achievements-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    color: var(--text-gray);
    line-height: 1.6;
}

.features-list li::before,
.achievements-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Impact Grid */
.impact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.impact-card {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    padding: 28px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.impact-card:hover {
    border-color: var(--text-gray);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.impact-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    text-align: center;
}

/* About Section */
.about-section {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text .lead {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
    line-height: 1.7;
}

.about-skills h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 8px 16px;
    background: var(--bg-white);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.skill-tag:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* CV Sections */
.cv-section {
    margin-bottom: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

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

.cv-section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-dark);
    text-align: center;
}

.cv-item {
    background: var(--bg-white);
    padding: 28px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cv-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
    border-color: var(--text-gray);
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 20px;
}

.cv-item-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cv-item-company {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 500;
}

.cv-item-date {
    font-size: 14px;
    color: var(--text-gray);
    white-space: nowrap;
    padding: 6px 16px;
    background: var(--bg-light);
    border-radius: 20px;
}

.cv-item-details {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cv-item-details li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--text-gray);
    line-height: 1.6;
}

.cv-item-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.skills-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.skill-category {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.skill-category:hover {
    box-shadow: var(--shadow);
    border-color: var(--text-gray);
}

.skill-category h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.recognition-item {
    display: flex;
    gap: 20px;
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    align-items: flex-start;
    transition: all 0.2s ease;
}

.recognition-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--text-gray);
}

.recognition-icon {
    font-size: 32px;
    line-height: 1;
}

.recognition-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.recognition-item p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-text {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.contact-button {
    padding: 12px 32px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    border: 1px solid var(--primary-color);
}

.contact-button:hover {
    background: var(--text-dark);
    border-color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

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

.contact-button.secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-gray);
    color: var(--text-dark);
}

@media (prefers-color-scheme: dark) {
    .contact-button {
        background: var(--bg-white);
        color: var(--text-dark);
        border-color: var(--border-color);
    }

    .contact-button:hover {
        background: var(--bg-light);
        border-color: var(--text-gray);
    }

    .contact-button.secondary {
        background: transparent;
        color: var(--text-light);
        border-color: var(--border-color);
    }

    .contact-button.secondary:hover {
        background: var(--bg-white);
        border-color: var(--text-gray);
        color: var(--text-dark);
    }
}

/* Footer */
.footer {
    padding: 80px 0 40px 0;
    background: #1A1A1A;
    color: #FAF8F5;
    font-size: 14px;
    border-top: none;
}

.footer a {
    color: #999999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #FFFFFF;
}

/* Work Cards */
.work-card {
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover {
    transform: translateY(-4px);
}

.work-card-inner {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.work-card:hover .work-card-inner {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #D4CFC8;
}

/* Responsive Design */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .nav-container {
        padding: 16px 24px;
    }

    .nav-logo img {
        height: 28px !important;
    }

    .nav-logo span {
        font-size: 16px;
    }

    .nav-menu {
        gap: 24px;
    }

    /* Hero Section - Override inline styles */
    .hero {
        padding: 80px 0 60px 0 !important;
        min-height: auto !important;
    }

    .hero .container {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .hero .container > div:first-child {
        order: 2;
    }

    .hero .container > div:last-child {
        order: 1;
        text-align: center !important;
    }

    .hero h1 {
        font-size: 36px !important;
        margin-bottom: 24px !important;
    }

    .hero p {
        font-size: 17px !important;
    }

    .hero img {
        width: 160px !important;
        height: 160px !important;
    }

    /* Featured Work Section Title */
    .hero + div + div h2 {
        font-size: 36px !important;
        padding: 60px 24px 32px 24px !important;
    }

    /* Featured Work Container - Side by Side */
    #work .container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        padding: 0 24px !important;
    }

    /* Featured Work Sections - Override inline styles */
    .project-section {
        margin: 0 !important;
    }

    .project-section > div {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }

    .project-section h2 {
        font-size: 32px !important;
    }

    .project-section h3 {
        font-size: 18px !important;
    }

    .project-section p {
        font-size: 14px !important;
        max-width: 100% !important;
    }

    .project-section a {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }

    .project-section > div > div {
        padding: 32px 20px !important;
    }

    .project-section .project-section > div > div:first-child {
        order: 1;
    }

    .project-section > div > div:last-child {
        order: 2;
    }

    .project-section img {
        width: 80px !important;
    }

    .project-section > div {
        display: flex !important;
        flex-direction: column !important;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 280px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .project-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 24px;
    }

    .project-section:nth-child(even) .project-container {
        direction: ltr;
    }

    .project-image-wrapper img {
        height: 300px;
    }

    .project-title {
        font-size: 28px;
    }

    .project-description {
        font-size: 16px;
    }

    .project-stats {
        grid-template-columns: 1fr 1fr;
    }

    .case-study-card {
        padding: 32px 24px;
    }

    .case-study-title {
        font-size: 24px;
    }

    .case-study-hero {
        padding: 100px 0 40px 0;
    }

    .content-section-title {
        font-size: 24px;
    }

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

    .stat-value {
        font-size: 28px;
    }

    .approach-item {
        gap: 16px;
    }

    .approach-number {
        font-size: 24px;
    }

    .approach-header h3 {
        font-size: 20px;
    }

    .approach-content h5 {
        font-size: 20px;
    }

    .challenge-item-numbered {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .challenge-number {
        min-width: auto;
        font-size: 28px;
    }

    .led-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .led-item {
        padding: 24px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cv-item-header {
        flex-direction: column;
        gap: 12px;
    }

    .cv-item-date {
        align-self: flex-start;
    }

    .skills-grid-large {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-button {
        width: 100%;
        max-width: 300px;
    }

    .results-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Small phones (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 14px 20px;
    }

    .nav-logo img {
        height: 24px !important;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-link {
        font-size: 14px;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0 40px 0 !important;
    }

    .hero h1 {
        font-size: 28px !important;
        margin-bottom: 20px !important;
    }

    .hero p {
        font-size: 15px !important;
        margin-bottom: 20px !important;
    }

    .hero img {
        width: 140px !important;
        height: 140px !important;
    }

    /* Featured Work Section Title */
    .hero + div {
        padding: 0 20px !important;
    }

    .hero + div + div {
        padding: 48px 20px 24px 20px !important;
    }

    .hero + div + div h2 {
        font-size: 28px !important;
    }

    /* Featured Work Container - Stack on very small screens */
    #work .container {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        padding: 0 20px !important;
    }

    /* Featured Work Sections */
    .project-section {
        margin: 0 !important;
    }

    .project-section h2 {
        font-size: 36px !important;
        margin-bottom: 12px !important;
    }

    .project-section h3 {
        font-size: 20px !important;
        margin-bottom: 24px !important;
    }

    .project-section p {
        font-size: 15px !important;
        margin-bottom: 32px !important;
    }

    .project-section a {
        padding: 12px 28px !important;
        font-size: 14px !important;
    }

    .project-section > div > div {
        padding: 32px 24px !important;
    }

    .project-section > div > div:first-child {
        order: 2;
    }

    .project-section > div > div:last-child {
        order: 1;
        padding: 32px 24px 24px 24px !important;
    }

    .project-section img {
        width: 100px !important;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .case-study-hero {
        padding: 90px 0 32px 0;
    }

    .case-study-summary {
        font-size: 17px !important;
    }

    .content-section-title {
        font-size: 22px;
    }

    .content-card {
        padding: 24px;
    }

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

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 13px;
    }

    .project-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .project-stat {
        padding: 12px;
    }

    .project-stat-value {
        font-size: 24px;
    }

    .project-stat-label {
        font-size: 12px;
    }

    .approach-number {
        font-size: 22px;
    }

    .approach-header h3 {
        font-size: 18px;
    }

    .approach-content h5 {
        font-size: 18px;
    }

    .challenge-number {
        font-size: 24px;
    }

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

    .led-item {
        padding: 20px;
    }

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

    .impact-grid {
        flex-direction: column;
        align-items: center;
    }

    .impact-card {
        max-width: 100%;
        width: 100%;
    }

    .sub-project {
        padding: 20px;
    }

    .sub-project h4,
    .sub-project h6 {
        font-size: 18px;
    }
}

/* Modular King Case Components */
.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 16px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin-bottom: 48px;
    max-width: 800px;
}

.context-card, .achievements-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 28px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.context-card:hover, .achievements-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--text-gray);
}

.card-heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 24px;
}

.meta-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.meta-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #999999;
}

.meta-value {
    font-size: 15px;
    line-height: 1.6;
    color: #000000;
}

.context-description {
    font-size: 15px;
    line-height: 1.7;
    color: #333333;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E5E5E5;
}

.achievement-item {
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
}

.achievement-item:before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #000000;
}

.achievement-lead {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 4px;
}

.achievement-detail {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
}

.impact-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 48px;
}

.impact-table th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #999999;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #E5E5E5;
}

.impact-table td {
    font-size: 15px;
    color: #000000;
    padding: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.impact-table .metric-change {
    font-weight: 600;
    color: #000000;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Landscape phones (small height) */
@media (max-height: 600px) and (orientation: landscape) {
    .hero,
    .project-section > div {
        min-height: auto !important;
    }

    .hero {
        padding: 100px 0 60px 0 !important;
    }
}
