/* Reset and Base Styles */

/* User Journey Flowchart Styles */
.user-journey-flowchart {
    margin: 3rem 0;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}


.user-journey-flowchart .mermaid-container {
    border-radius: 8px;
    padding: 1rem;
    overflow: hidden;
    min-height: 300px;
    position: relative;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-journey-flowchart .mermaid-container:active {
    cursor: grabbing;
}

.user-journey-flowchart .mermaid {
    background: transparent;
    border-radius: 0;
    padding: 0;
    overflow: visible;
    min-height: auto;
    transform-origin: center;
}

.zoom-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.zoom-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    color: var(--dark-text);
    transition: var(--transition);
}

.zoom-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.zoom-btn:active {
    transform: translateY(1px);
}

@media (max-width: 768px) {
    .user-journey-flowchart {
        padding: 1rem;
        margin: 2rem 0;
    }
    
    .user-journey-flowchart h4 {
        font-size: 1.25rem;
    }
    
    .user-journey-flowchart .mermaid {
        font-size: 0.8rem;
    }
    
    .zoom-controls {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .zoom-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body    {
background-color: white;
background-image: radial-gradient(var(--secondary-color-deemphasize) 0.5px, white 0.5px);
background-size: 10px 10px;
color: var(--dark-text);
}

:root {
    --primary-color: #fde74c;
    --secondary-color: #4051bf;
    --secondary-color-deemphasize: #ced5ff;
    --light-bg: #f9f9f9;
    --dark-text: #26293e;
    --dark-text-deemphasize: #8e90a1;
    --border-color: #ededed;
    --white: #ffffff;
    --transition: all 0.2s ease-in-out;
    --traube-bg: #f7f5ff;
    --imagine-bg: #FFE6EF;
    --zzv-bg: #E3F2FD;
    --schneeberger-bg: #F7F8FA;
}

.traube-bg {
    background: var(--traube-bg);
}

.imagine-bg {
    background: var(--imagine-bg);
}

.zzv-bg {
    background: var(--zzv-bg);
}

.schneeberger-bg {
    background: var(--schneeberger-bg);
}

body {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

.container {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.error-background {
border: 1px solid #ffd6d6;
    background: rgb(255 247 247);    
    padding: 32px 32px;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.align-items-center {
    display: flex;
    align-items: center;
}

.headline-s {
    max-width: 768px;
    margin: 0 auto;
    margin-bottom: 64px;
}

.textcenter {
    text-align: center;
}

.has-border {
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
}

.icon {
    width: 48px;
    display: block;
    margin-bottom: 16px;
}
.icon svg {
    width: 100%;
        max-height: 32px;

  fill: var(--secondary-color);
}

.medium-zoom-image--opened.has-border {
    border:none;
    padding:none;
}

figcaption {
    font-size: 0.9rem;
    color: var(--dark-text-deemphasize);
    text-align: center;
    margin-top: 0.5rem;
}

figure + figure {
    margin-top: 2rem;
}

ul + .btn { margin-top: 32px; }

/* Typography */
h1 {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
      font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 32px;
}

h2 {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
      font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
      font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

h4 {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
      font-size: clamp(1rem, 1.5vw, 1rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: inherit;
}

.link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}
.link:hover {
    color: var(--dark-text);
    text-decoration: none;
    transition: var(--transition);
}

.link svg {
    transform: translateY(1px);
}

.result-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 48px 48px;
    background: linear-gradient(135deg, #131520 0%, #1e2147 100%);
    color: white;
    margin-bottom: 48px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.result-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.result-container h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    font-size: 2rem;
}

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

.result-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

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

.result-card h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.result-metric {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.result-metric .from {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b7a;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.result-metric .to {
    background: rgba(40, 167, 69, 0.2);
    color: #4ade80;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.result-metric .arrow {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.result-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0;
    font-style: italic;
}

li.emoji-list {
    position:relative;
    list-style:none;
    padding-left: 1em;
}

.emoji-list .emoji {
    position: absolute;
    left: -1em;
    top: 0;
}

/* Mobile responsive for results */
@media (max-width: 768px) {
    .result-container {
        padding: 32px 24px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .result-metric {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .result-metric .arrow {
        transform: rotate(90deg);
    }
}

/* Rough annotation animation */
@keyframes rough-notation-dash {
    0% {
        stroke-dashoffset: var(--path-length);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rough-annotation path {
    --path-length: 0;
    stroke-linecap: round;
    stroke-linejoin: round;
}

main ul { padding-left: 1em; }
main ul li + li { margin-top: 1rem;}
main ul + * { margin-top: 1em;}


.key-takeaways-lis, .checklist {
    padding-left: 0;
}

.key-takeaways-list li, .checklist li {
    padding-left: 1.75em;
    list-style:none;
    position: relative;
}
/* More specific approach - add a class to the key takeaways sections */
.key-takeaways-list li::before, .checklist li:before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' width='16' height='16' fill='%234051bf'%3E%3Cpath d='M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z'/%3E%3C/svg%3E");
    position: absolute;
    top: 2px;
    left:0;
}

/* Custom list with red X icons for problems */
.problem-list {
    list-style: none;
    padding-left: 0;
}

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

.no-padding {
    padding: 0 !important;
}

.problem-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 1.2rem;
    height: 1.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc3545'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

h1 .deemphasize {
    color: var(--dark-text-deemphasize);
}

.deemphasize {
    color: var(--dark-text-deemphasize);
}


.textcenter {
    text-align: center;
}


.has-border-bottom { border-bottom: 1px solid var(--border-color);}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-visible {
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-text);
}

.btn-primary:hover {
    background: #f5d93b;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--dark-text);
    color: var(--dark-text);
}

.btn-secondary:hover {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-tertiary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    margin-top: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

h1 {
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
}

h1 + * { margin-top: 2em; }


.sub-headline {
    max-width: 768px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.pre-headline {
    color: var(--secondary-color);
    font-weight: 600;
}

.pill {
    display: inline-block;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    color: var(--dark-text);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.hero .highlight {
    color: var(--secondary-color);
    position: relative;
}

.hero .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-color);
    z-index: -1;
    transform: skew(-12deg);
}

.hero-buttons,
.buttons-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-buttons {
        justify-content: center;

}

/* Portfolio Teaser Section */
.portfolio-teaser {
    padding: 0;
    margin-top:64px;
  
}

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

.teaser-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 24px 24px 0 24px;
    border-radius: 20px;
    transition: var(--transition);
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.teaser-card:hover {
    transform: translateY(-5px);
}

.teaser-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.teaser-content h2 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.teaser-content p {
    color: #666;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.teaser-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
}

.teaser-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

.skewed {

    transition: var(--transition);
}

.skewed:nth-child(1) {
    transform: rotate(1deg);
}

.skewed:nth-child(2) {
    transform: rotate(-1deg);
}

.skewed:nth-child(3) {
    transform: rotate(2deg);
}

.skewed:nth-child(4) {
    transform: rotate(-2deg);
}

.skewed:nth-child(5) {
    transform: rotate(1.5deg);
}

.skewed:nth-child(6) {
    transform: rotate(-1.5deg);
}

.skewed:nth-child(7) {
    transform: rotate(2.5deg);
}

.skewed:nth-child(8) {
    transform: rotate(-2.5deg);
}

.skewed:hover {
    transform: rotate(0deg) translateY(-5px);
}

.teaser-button {
    text-align: center;
}

/* Work Page Styles */
.work-header {
    padding: 120px 0 60px;
    text-align: center;
    background: var(--light-bg);
}

.work-header h1 {
    margin-bottom: 1rem;
}

.work-header p {
    font-size: 1.3rem;
    color: #666;
}

.work-grid {
    padding: 80px 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-content {
    padding: 2rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.project-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* About Page Styles */
.about-header {
    padding: 120px 0 60px;
    text-align: center;
    background: var(--light-bg);
}

/* Photo Canvas Styles */
.photo-canvas {
    position: relative;
    width: 100%;
    max-width: 1024px;
    height: 400px;
    margin: 0 auto;
    display: block;
    padding: 20px;
}

.draggable-photo {
    position: absolute;
    cursor: grab;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    user-select: none;
}

.draggable-photo:active {
    cursor: grabbing;
}

.draggable-photo img {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius:12px;
}

/* Individual photo positioning and sizes to match template - stacked/overlapping */
.draggable-photo[data-photo="1"] {
    width: 280px;
    height: auto;
    top: 70px;
    left: 320px;
    transform: rotate(-8deg);
    z-index: 6;
}

.draggable-photo[data-photo="2"] {
    width: 120px;
    height: auto;
    top: 0;
    left: 550px;
    transform: rotate(12deg);
    z-index: 4;
}

.draggable-photo[data-photo="3"] {
    width: 250px;
    height: auto;
    top: 250px;
    left: 553px;
    transform: rotate(-3deg);
    z-index: 3;
}

.draggable-photo[data-photo="4"] {
    width: 190px;
    height: auto;
    top: 200px;
    left: 200px;
    transform: rotate(15deg);
    z-index: 7;
}

.draggable-photo[data-photo="5"] {
    width: 185px;
    height: auto;
    top: 90px;
    left: 665px;
    transform: rotate(-12deg);
    z-index: 2;
}

.draggable-photo[data-photo="6"] {
    width: 200px;
    height: auto;
    top: 0;
    left: 60px;
    transform: rotate(6deg);
    z-index: 1;
}

/* Hover effects */
.draggable-photo:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Resize handle */
.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 2px solid var(--white);
    border-radius: 50%;
    cursor: nw-resize;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    transform: translate(50%, 50%);
}

.draggable-photo:hover .resize-handle {
    opacity: 1;
}

.resize-handle:hover {
    background: var(--secondary-color);
    transform: translate(50%, 50%) scale(1.2);
}

/* Drag states */
.photo-dragging {
    z-index: 25 !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    opacity: 0.9;
}

.photo-resizing {
    z-index: 25 !important;
}

.photo-resizing .resize-handle {
    opacity: 1;
    background: var(--secondary-color);
    transform: translate(50%, 50%) scale(1.3);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .photo-canvas {
        max-width: 350px;
        height: 300px;
        padding: 15px;
    }
    
    .draggable-photo[data-photo="1"] {
        width: 100px;
        height: auto;
        top: 15px;
        left: 20px;
    }
    
    .draggable-photo[data-photo="2"] {
        width: 90px;
        height: auto;
        top: 130px;
        left: 60px;
    }
    
    .draggable-photo[data-photo="3"] {
        width: 120px;
        height: auto;
        top: 0px;
        left: 144.7px;
    }
    
    .draggable-photo[data-photo="4"] {
        width: 95px;
        height: auto;
        top: 65.0199px;
        left: 133.196px;
    }
    
    .draggable-photo[data-photo="5"] {
        width: 80px;
        height: auto;
        top: 180px;
        left: 150px;
    }
    
    .draggable-photo[data-photo="6"] {
        width: 110px;
        height: auto;
        top: 80.9818px;
        left: 225.827px;
    }
}

.about-content {
    padding: 80px 0;
    margin-top: 96px;
}

.about-content h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.about-text {
    max-width: 768px;
    margin: 0 auto;
}

.about-text p {
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* About Page Sections */

.about-section {
    padding: 64px 0;
}

.about-image-section {
    padding: 32px 0 64px 0;
}


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

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

.experience-item,
.skill-category,
.personal-item {
    padding: 24px;
    border-radius: 15px;
    transition: var(--transition);
}

.experience-item:hover,
.skill-category:hover,
.personal-item:hover {
    transform: translateY(-5px);
}

.experience-item h3,
.skill-category h3,
.personal-item h3 {
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.experience-item .period {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}




.skill-category ul li:last-child {
    border-bottom: none;
}

.philosophy-content,
.articles-content,
.availability-content {
    max-width: 768px;
    margin: 0 auto;
}

.philosophy-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.philosophy-content ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.philosophy-content ul li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0.5rem;
}

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

.publication {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.publication:hover {
    transform: translateY(-5px);
}

.publication h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

.fact {
    padding: 24px;
    border-radius: 15px;
    transition: var(--transition);
}

.fact:hover {
    transform: translateY(-5px);
}

.fact h3 {
    margin-bottom: 1rem;
}

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

.availability-content ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.availability-content ul li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-weight: bold;
}

/* Mobile responsive for about page */
@media (max-width: 768px) {
    .experience-grid,
    .skills-grid,
    .personal-grid,
    .publications,
    .fun-facts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .experience-item,
    .skill-category,
    .personal-item,
    .publication,
    .fact {
        padding: 1.5rem;
    }
    
    .experience-section,
    .skills-section,
    .philosophy-section,
    .articles-section,
    .personal-section,
    .fun-facts-section,
    .availability-section {
        padding: 60px 0;
    }
}

.writing-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.writing-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.writing-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    color: var(--dark-text);
    transition: var(--transition);
    display: block;
    text-align: center;
}

.writing-card:hover {
    transform: rotate(0deg) translateY(-5px);
    color: var(--secondary-color);
}

.writing-card h3 {
    font-family: 'Sora', cursive;
    margin: 0;
    font-size: 1.1rem;
}

.social-proof {
    padding: 80px 0;
}

.social-proof h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    transition: var(--transition);
    text-align: center;
}

.testimonial-card:hover {
    transform: rotate(0deg);
}

.testimonial-card:first-child {
    transform: rotate(30deg)
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #666;
}

.testimonial-card cite {
    font-weight: 600;
    color: var(--secondary-color);
    font-style: normal;
}

/* Work Detail Page */
.work-detail {
    padding-top: 120px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 42px;
    margin: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 12px;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.5s ease-out;
}

.timeline.animate::before {
    transform: scaleY(1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    z-index: 1;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.timeline-item.animate::before {
    opacity: 1;
    transform: scale(1);
}

.timeline-content {
    padding-left: 1rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-size: 1.2rem;
}

.timeline-content p {
    margin-bottom: 0;
    color: var(--dark-text);
    line-height: 1.6;
}

/* Mobile responsive for timeline */
@media (max-width: 768px) {
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item::before {
        left: -25px;
        width: 10px;
        height: 10px;
    }
    
    .timeline-content {
        padding-left: 0.5rem;
    }
}

.work-detail section {
    width: 100%;
    padding: 64px 0;
}

.work-detail .container {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 20px;
}

.work-detail-header {
    text-align: center;
}

.work-summary {
    color: var(--dark-text);
    max-width: 768px;
    padding: 32px;
    border: 12px solid #f4f6ff;
    text-align:left;
    border-radius: 20px;
    margin: 64px auto;
}

.summary-label {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.85rem;
    text-transform:uppercase;
    margin-bottom: 1rem;
}

/* Global Flexbox Utilities */
.flex-50-50 {
    display: flex;
    gap: 2rem;
}

.flex-50-50 > * {
    flex: 1;
}

@media (max-width: 768px) {
    .flex-50-50 {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.work-introduction h2,
.work-process h2,
.work-results h2 {
    margin-bottom: 2rem;
}

section.work-image {
    text-align: center;
}

.work-image img {
    width: 100%;
    max-width: 1280px;
    display:block;
    margin: 0 auto;
    height: auto;
    border-radius: 20px;
}

.sticky-note {
    position: relative;
    padding: 16px 24px;
    background: rgb(255, 255, 186);
    border-radius: 12px;
    max-width: 350px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.sticky-note p {
    margin-bottom:0;
}

/* Solution Grid */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.solution-box {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.solution-box:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-color-deemphasize);
}

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

.solution-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.solution-box p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--dark-text-deemphasize);
    margin-bottom: 0;
}

/* Responsive for solution grid */
@media (max-width: 768px) {
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .solution-box {
        padding: 1.5rem;
        min-height: 150px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.work-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Section fade in animation */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer p a {
    color: var(--dark-text-deemphasize)
}

.footer {
    margin-top: 96px;
    padding: 40px 0 40px;
}

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

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

.footer-links a {
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer p {
    color: #ccc;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {

    .error-background {

    padding: 24px 24px;

}


    .nav-links {
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .teaser-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .writing-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .work-navigation {
        flex-direction: column;
        gap: 1rem;
        align-items:center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        padding: 0 10px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .skewed {
        transform: rotate(0deg);
    }
    
    .skewed:nth-child(even) {
        transform: rotate(0deg);
    }
}