/*
  STYLE.CSS
  This file contains all the styling for your portfolio.
*/

/* 1. FONT IMPORT & ROOT VARIABLES
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

:root {
    /* Colors */
    --bg-color-light: #f7f7f7;
    --text-color-light: #101010;
    --highlight-color: #4f46e5;
    --secondary-text-color: #6b7280;
    --card-bg-light: #ffffff;
    --card-border-light: #e5e7eb;
    --icon-bg-light: #101010;
    --icon-text-light: #f7f7f7;

    /* Dark Mode Colors */
    --bg-color-dark: #111827;
    --text-color-dark: #f7f7f7;
    --card-bg-dark: #1f2937;
    --card-border-dark: #374151;
    --secondary-text-dark: #9ca3af;
    --icon-bg-dark: #f7f7f7;
    --icon-text-dark: #101010;

	/* Project Tag Colors */
	--tag-html-bg: #e34c26;
	--tag-css-bg: #264de4;
	--tag-js-bg: #f1e05a;
	--tag-react-bg: #61dafb;
	--tag-python-bg: #3776ab;
	--tag-ai-bg: #ff6b35;
	--tag-webpage-bg: #36486b;
	--tag-seo-bg: #f4e1d2;
	--tag-e-shop-bg: #d64161;
	--tag-prestashop-bg: #a4dbe8;
	--tag-integrations-bg: #c1946a;
	--tag-wordpress-bg: #6b5b95;
	
	
    /* Font */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 2. GLOBAL & TYPOGRAPHY STYLES (Applies to all pages)
-------------------------------------------------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem; /* Offset for sticky nav */
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
    line-height: 1.7;
    transition: background-color 0.3s, color 0.3s;
}

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

main {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    transition: opacity 0.3s ease-in-out;
}

main.lang-transition {
    opacity: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a.underline {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

a.underline:hover {
    color: var(--highlight-color);
}

h1 {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    font-size: 1.125rem;
    max-width: 65ch;
}

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

/* 3. MAIN PAGE STYLES (for index.html)
-------------------------------------------------- */

/* --- Navigation (Common for index.html & 404.html) --- */
nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-color-light);
    border-bottom: 1px solid var(--card-border-light);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.nav-content a {
    font-size: 1.875rem;
    font-weight: 700;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* --- Theme & Language Toggle Buttons --- */
#theme-toggle, #lang-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 0.25rem;
    background-color: var(--icon-bg-light);
    color: var(--icon-text-light);
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 1rem;
}

#theme-toggle:hover, #lang-toggle:hover {
    transform: scale(1.1);
    background-color: var(--highlight-color);
    color: #fff;
}

#theme-toggle svg {
    width: 24px;
    height: 24px;
}

.sun-icon { display: block; }
.moon-icon { display: none; }


/* --- About Section --- */
#about {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 5rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-text p .about-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    color: #fff;
    margin: 0 0.2rem;
    line-height: 1.5;
    vertical-align: middle;
    white-space: nowrap;
}

.about-text p .html-tag { background-color: var(--tag-html-bg); color: black; }
.about-text p .css-tag { background-color: var(--tag-css-bg); }
.about-text p .js-tag { background-color: var(--tag-js-bg); color: black; }
.about-text p .python-tag { background-color: var(--tag-python-bg); }
.about-text p .ai-tag { background-color: var(--tag-ai-bg); color: black; }


.profile-photo-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    display: block;
    border-radius: 50%;
    background-image: url('pic/Marius.webp');
    background-size: cover;
    background-position: top;
    overflow: hidden;
    transition: border-radius 0.4s ease-in-out;
    cursor: pointer;
}

.profile-photo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('pic/Marius2.webp');
    background-size: cover;
    background-position: top;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

@media (min-width: 992.02px) {
    .about-image:hover .profile-photo-container {
        border-radius: 35%;
    }
    .about-image:hover .profile-photo-container::before {
        opacity: 0;
    }
}

.profile-photo-container.is-swapped {
    border-radius: 35%;
}
.profile-photo-container.is-swapped::before {
    opacity: 0;
}


/* --- Projects Section --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.project-card {
    background-color: var(--card-bg-light);
    border: 1px solid var(--card-border-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.project-card .project-title {
    margin-bottom: 0.5rem;
}

.project-card .project-description {
    color: var(--secondary-text-color);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* --- Custom styles for the newproject card --- */
#newproject-card {
    background-color: #eef2ff; /* A light, inviting indigo background */
    border-color: #4f46e5;     /* Use the main highlight color for the border */
    border-style: dashed;
    border-width: 2px;
}

#newproject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.2); /* A shadow matching the highlight color */
}

/* --- Dark mode style for the newproject card --- */
body.dark-mode #newproject-card {
    background-color: #282a41; /* A darker, muted indigo for dark mode */
    border-color: #6366f1;     /* A slightly lighter highlight color for visibility */
}

/* --- END Custom styles for the newproject card --- */

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.project-tags span {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    color: #fff;
}

.project-tags .tag-html { background-color: var(--tag-html-bg); }
.project-tags .tag-css { background-color: var(--tag-css-bg); }
.project-tags .tag-js { background-color: var(--tag-js-bg); color: black; }
.project-tags .tag-react { background-color: var(--tag-react-bg); color: black; }
.project-tags .tag-python { background-color: var(--tag-python-bg); }
.project-tags .tag-ai { background-color: var(--tag-ai-bg); color: black; }
.project-tags .tag-webpage { background-color: var(--tag-webpage-bg); }
.project-tags .tag-seo { background-color: var(--tag-seo-bg); color: black; }
.project-tags .tag-e-shop { background-color: var(--tag-e-shop-bg); color: black; }
.project-tags .tag-prestashop { background-color: var(--tag-prestashop-bg); color: black; }
.project-tags .tag-integrations { background-color: var(--tag-integrations-bg); color: black; }
.project-tags .tag-wordpress { background-color: var(--tag-wordpress-bg); }
.project-tags .tag-general {
    background-color: var(--secondary-text-color);
    color: #fff;
}

#sub-projects-list, #kraso-preview, #tdp-preview {
    margin-bottom: 0;
}

.sub-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--card-border-light);
}

.sub-project-tags a {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: var(--secondary-text-color);
    color: #fff;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sub-project-tags a:hover {
    background-color: var(--highlight-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
    color: #fff;
}

.project-preview {
    padding-top: 0.5rem;
    border-top: 1px solid var(--card-border-light);
    margin-bottom: 0; /* Add this to align with existing cards */
}

.preview-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: block;
}

.preview-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Contact Section --- */
#contact .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

#contact .contact-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--secondary-text-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--icon-bg-light);
    color: var(--icon-text-light);
    border-radius: 0.25rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-links a:hover {
    transform: scale(1.1);
    background-color: var(--highlight-color);
    color: #fff;
}

.social-links svg {
    width: 28px;
    height: 28px;
}

/* 4. DARK MODE STYLES (for index.html & global elements)
-------------------------------------------------- */
body.dark-mode nav {
    background-color: var(--bg-color-dark);
    border-bottom: 1px solid var(--card-border-dark);
}
body.dark-mode {
    background-color: var(--bg-color-dark);
    color: var(--text-color-dark);
}
body.dark-mode .project-card {
    background-color: var(--card-bg-dark);
    border: 1px solid var(--card-border-dark);
}
body.dark-mode .project-card .project-description { color: var(--secondary-text-dark); }
body.dark-mode .project-tags .tag-general { background-color: var(--secondary-text-dark); }
body.dark-mode .project-tags .tag-js { color: black; }
body.dark-mode .project-tags .tag-react { color: black; }

body.dark-mode #theme-toggle, body.dark-mode #lang-toggle {
    background-color: var(--icon-bg-dark);
    color: var(--icon-text-dark);
}
body.dark-mode #theme-toggle:hover, body.dark-mode #lang-toggle:hover {
    background-color: var(--highlight-color);
    color: #fff;
}
body.dark-mode .sun-icon { display: block; }
body.dark-mode .moon-icon { display: none; }

body.dark-mode .social-links a {
    background-color: var(--icon-bg-dark);
    color: var(--icon-text-dark);
}
body.dark-mode .social-links a:hover {
    background-color: var(--highlight-color);
    color: #fff;
}
body.dark-mode #contact .contact-item svg { color: var(--secondary-text-dark); }
body.dark-mode .sub-project-tags { border-top: 1px solid var(--card-border-dark); }
body.dark-mode .sub-project-tags a {
    background-color: var(--secondary-text-dark);
    color: #fff;
}
body.dark-mode .sub-project-tags a:hover {
    background-color: var(--highlight-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}
body.dark-mode .project-preview { border-top: 1px solid var(--card-border-dark); }
body.dark-mode .preview--image:hover { box-shadow: 0 4px 15px rgba(255,255,255,0.1); }
body.dark-mode .about-text p .js-tag { color: black; }

/* Automation focused portfolio refresh */
:root {
    --highlight-color: #087f70;
    --bg-color-light: #f4f7f5;
    --card-border-light: #dce5df;
}
nav { backdrop-filter: blur(14px); background-color: rgba(244, 247, 245, .94); }
.nav-content { gap: 1.5rem; }
.primary-nav-links { display: flex; gap: 1.5rem; margin-left: auto; margin-right: 1rem; }
.primary-nav-links a { font-size: .95rem; font-weight: 600; }
.primary-nav-links a:hover { color: var(--highlight-color); }
.container { max-width: 1120px; }
main { gap: 6rem; }
#about { min-height: 590px; padding: 4rem 3rem; margin: 2rem 0 0; border: 1px solid #dce9e2; border-radius: 30px; background: radial-gradient(ellipse at 88% 16%, rgba(8,127,112,.14), transparent 37%), linear-gradient(140deg,#fff 0%,#f0f6f2 100%); }
#about h1 { max-width: 14ch; font-size: clamp(3rem, 5vw, 4.7rem); letter-spacing: -.055em; }
#about .about-text { gap: 1.2rem; }
#about .about-text p { max-width: 58ch; color: #46564e; }
.hero-cta { display: inline-flex; align-items: center; gap: .8rem; width: fit-content; margin-top: .5rem; padding: .9rem 1.25rem; color: #fff; background: #087f70; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 28px rgba(8,127,112,.2); }
.hero-cta:hover { background: #06695d; transform: translateY(-2px); }
.hero-cta span { font-size: 1.25rem; }
.profile-photo-container { box-shadow: 0 20px 50px rgba(15,50,38,.16); border: 8px solid rgba(255,255,255,.85); }
.section-eyebrow { color: var(--highlight-color); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .7rem; }
.section-intro { color: var(--secondary-text-color); margin: -.7rem 0 2rem; }
.service-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }
.service-card { min-height: 235px; padding: 1.5rem; border: 1px solid var(--card-border-light); border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(27,57,42,.04); }
.service-number { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: #e1f1eb; color: #087f70; font-size: .8rem; font-weight: 800; margin-bottom: 1.2rem; }
.service-card h3 { line-height: 1.35; margin-bottom: .7rem; }
.service-card p { font-size: .98rem; line-height: 1.6; color: var(--secondary-text-color); }
#faq { max-width: 900px; width: 100%; margin: auto; }
.faq-list { border-top: 1px solid var(--card-border-light); }
.faq-list details { padding: 1.2rem .2rem; border-bottom: 1px solid var(--card-border-light); }
.faq-list summary { cursor: pointer; font-size: 1.12rem; font-weight: 700; }
.faq-list summary::marker { color: var(--highlight-color); }
.faq-list details p { padding-top: .8rem; color: var(--secondary-text-color); font-size: 1rem; }
#contact { padding: 3rem; border-radius: 24px; background: #eaf3ee; }
body.dark-mode nav { background-color: rgba(17,24,39,.94); }
body.dark-mode #about { background: radial-gradient(ellipse at 88% 16%, rgba(42,176,150,.19), transparent 37%), linear-gradient(140deg,#1f2937 0%,#172821 100%); border-color: #344b40; }
body.dark-mode #about .about-text p { color: #d1ddd6; }
body.dark-mode .service-card { background: var(--card-bg-dark); border-color: var(--card-border-dark); }
body.dark-mode .service-card p, body.dark-mode .section-intro, body.dark-mode .faq-list details p { color: var(--secondary-text-dark); }
body.dark-mode .service-number { background: #203f38; color: #8be0c6; }
body.dark-mode #contact { background: #1b332d; }
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } #about { min-height: 0; padding: 3rem 2rem; } }
@media (max-width: 650px) { .primary-nav-links { display: none; } main { gap: 4rem; } #about { padding: 2rem 1.4rem; border-radius: 22px; } #about h1 { font-size: 2.7rem; } .service-grid { grid-template-columns: 1fr; } .service-card { min-height: 0; } #contact { padding: 2rem 1.4rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* Scroll story: a small progress cue, staged reveals, and a custom process graphic */
nav { position: sticky; }
nav::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; background: linear-gradient(90deg,#25b99b,#d1ec73); transform: scaleX(var(--page-progress,0)); transform-origin: left; }
#about { position: relative; overflow: hidden; }
#about::after { content: ""; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(8,127,112,.12); border-radius: 42% 58% 61% 39% / 44% 40% 60% 56%; right: -92px; bottom: -96px; animation: orbit-drift 13s ease-in-out infinite alternate; pointer-events: none; }
.hero-cta { animation: cta-arrive .7s .2s both cubic-bezier(.2,.8,.2,1); }
.hero-cta span { display: inline-block; transition: transform .2s ease; }
.hero-cta:hover span { transform: translateX(5px); }
.service-card { position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.service-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -54px; top: -54px; border-radius: 50%; background: rgba(8,127,112,.08); transition: transform .4s ease; }
.service-card:hover { transform: translateY(-8px) rotate(-.5deg); border-color: rgba(8,127,112,.45); box-shadow: 0 22px 44px rgba(27,57,42,.11); }
.service-card:hover::after { transform: scale(1.7); }
.service-card:nth-child(even):hover { transform: translateY(-8px) rotate(.5deg); }
.workflow-section { position: relative; overflow: hidden; padding: clamp(2rem,5vw,4rem); border: 1px solid #dce9e2; border-radius: 30px; background: radial-gradient(ellipse at 5% 95%,rgba(188,229,122,.19),transparent 33%),linear-gradient(135deg,#f8fbf7,#eaf4ee 68%,#f7faf4); }
.workflow-heading { max-width: 700px; position: relative; z-index: 1; }
.workflow-heading h2 { max-width: 18ch; letter-spacing: -.04em; }
.workflow-heading .section-intro { margin-top: 0; }
.workflow-track { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2.4rem; padding-top: 2rem; }
.workflow-line { position: absolute; left: 13%; right: 13%; top: 4.5rem; height: 2px; overflow: hidden; background: repeating-linear-gradient(90deg,#a9c9b5 0 8px,transparent 8px 16px); }
.workflow-line span { display: block; width: 30%; height: 100%; background: linear-gradient(90deg,transparent,#0b9c80,transparent); animation: line-travel 4s linear infinite; }
.workflow-step { position: relative; z-index: 1; padding: 0 .5rem; }
.workflow-icon { width: 5rem; height: 5rem; display: grid; place-items: center; margin-bottom: 1rem; border: 6px solid #f1f7f2; border-radius: 24px; color: #fff; font-size: 1.9rem; font-weight: 800; box-shadow: 0 12px 25px rgba(29,75,55,.14); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.workflow-step:hover .workflow-icon { transform: translateY(-7px) rotate(-7deg) scale(1.05); }
.icon-problem { background: linear-gradient(140deg,#ee9c54,#d86a48); }
.icon-build { background: linear-gradient(140deg,#53bea7,#087f70); animation: icon-breathe 3.8s ease-in-out infinite; }
.icon-result { background: linear-gradient(140deg,#9acb56,#57985a); }
.workflow-label { display: inline-block; margin: .15rem 0 .4rem; color: #087f70; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.workflow-step h3 { margin-bottom: .5rem; }
.workflow-step p { color: #596a60; font-size: .98rem; }
.workflow-note { display: flex; align-items: center; gap: .75rem; width: fit-content; max-width: 100%; margin: 2.5rem auto 0; padding: .9rem 1.2rem; border-radius: 14px; color: #335748; background: rgba(255,255,255,.72); font-size: .95rem; font-weight: 600; }
.note-spark { color: #e7a947; font-size: 1.4rem; animation: spark-turn 7s linear infinite; }
body.dark-mode .workflow-section { background: radial-gradient(ellipse at 5% 95%,rgba(95,139,60,.14),transparent 33%),linear-gradient(135deg,#1f2937,#1b332d 68%,#242b26); border-color: #344b40; }
body.dark-mode .workflow-line { background: repeating-linear-gradient(90deg,#526f5d 0 8px,transparent 8px 16px); }
body.dark-mode .workflow-icon { border-color: #1f2937; }
body.dark-mode .workflow-step p { color: #b7c7bd; }
body.dark-mode .workflow-note { color: #cfdfd4; background: rgba(17,24,39,.6); }
body.dark-mode .workflow-label { color: #8be0c6; }
.motion-ready .scroll-reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1); }
.motion-ready .scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }
.service-card:nth-child(2),.workflow-step:nth-of-type(2),.project-card:nth-child(2) { transition-delay: .08s; }
.service-card:nth-child(3),.workflow-step:nth-of-type(3),.project-card:nth-child(3) { transition-delay: .16s; }
.service-card:nth-child(4),.project-card:nth-child(4) { transition-delay: .24s; }
@keyframes line-travel { from { transform: translateX(-120%); } to { transform: translateX(360%); } }
@keyframes icon-breathe { 0%,100% { box-shadow: 0 12px 25px rgba(29,75,55,.14),0 0 0 0 rgba(8,127,112,.13); } 50% { box-shadow: 0 12px 25px rgba(29,75,55,.14),0 0 0 12px rgba(8,127,112,0); } }
@keyframes orbit-drift { from { transform: rotate(-12deg) translateY(0); } to { transform: rotate(22deg) translateY(-18px); } }
@keyframes spark-turn { to { transform: rotate(360deg); } }
@keyframes cta-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) { .workflow-section { padding: 2rem 1.35rem; border-radius: 23px; } .workflow-track { grid-template-columns: 1fr; gap: 1.5rem; padding: 1rem 0 0 .3rem; } .workflow-line { top: 2rem; bottom: 2rem; left: 2.65rem; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg,#a9c9b5 0 8px,transparent 8px 16px); } .workflow-line span { width: 100%; height: 30%; background: linear-gradient(180deg,transparent,#0b9c80,transparent); animation: line-travel-vertical 4s linear infinite; } .workflow-step { display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 1rem; padding: 0; } .workflow-icon { grid-row: span 3; align-self: start; width: 4.2rem; height: 4.2rem; border-width: 5px; border-radius: 20px; font-size: 1.6rem; } .workflow-label { align-self: end; margin: .2rem 0; } .workflow-step h3,.workflow-step p { grid-column: 2; } .workflow-step p { margin-top: -.3rem; } .workflow-note { margin-top: 1.8rem; } }
@keyframes line-travel-vertical { from { transform: translateY(-120%); } to { transform: translateY(360%); } }
@media (prefers-reduced-motion: reduce) { .hero-cta,.workflow-line span,.icon-build,.note-spark,#about::after { animation: none !important; } .motion-ready .scroll-reveal { opacity: 1; transform: none; } }

/* Portfolio cards now share the same soft green surfaces and rounded geometry */
#projects > h2 { max-width: 22ch; letter-spacing: -.04em; }
#projects > .section-intro { margin-top: -.7rem; margin-bottom: 2rem; }
.project-grid { gap: 1.35rem; }
.project-card { position: relative; overflow: hidden; padding: 1.2rem; border: 1px solid #dce9e2; border-radius: 22px; background: linear-gradient(155deg,#fff 0%,#f8fbf8 100%); box-shadow: 0 12px 30px rgba(27,57,42,.045); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.project-card:hover { transform: translateY(-7px); border-color: rgba(8,127,112,.4); box-shadow: 0 22px 44px rgba(27,57,42,.11); }
.project-card .project-title { margin: .15rem 0 .1rem; font-size: 1.35rem; letter-spacing: -.025em; }
.project-kicker { display: block; margin-bottom: .65rem; color: #087f70; font-size: .83rem; font-weight: 700; }
.project-kicker a { display: inline-flex; align-items: center; gap: .25rem; }
.project-kicker a span { transition: transform .2s ease; }
.project-kicker a:hover span { transform: translate(2px,-2px); }
.project-card .project-description { margin-bottom: 1rem; font-size: .98rem; line-height: 1.6; }
.project-card > #kraso-preview,.project-card > #tdp-preview,.project-card > .project-preview { order: -1; margin: -1.2rem -1.2rem 1rem; }
#kraso-preview .project-preview,#tdp-preview .project-preview,.project-card > .project-preview { padding: 0; border: 0; }
.project-card .preview-image { height: 190px; max-height: none; object-fit: cover; border-radius: 0; transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s; }
.project-card:hover .preview-image { transform: scale(1.035); filter: saturate(1.06); }
.project-card .project-tags { gap: .45rem; padding-top: 1.05rem; }
.project-card .project-tags span { padding: .27rem .7rem; border: 1px solid #d5e9dd; background: #e8f3ec; color: #31644c; font-size: .76rem; font-weight: 700; }
.project-card .sub-project-tags { gap: .45rem; border-color: #dce9e2; }
.project-card .sub-project-tags a { padding: .35rem .72rem; border: 1px solid #d5e9dd; border-radius: 999px; background: #e8f3ec; color: #31644c; font-size: .8rem; }
.project-card .sub-project-tags a:hover { transform: translateY(-2px); border-color: #087f70; background: #087f70; color: #fff; box-shadow: 0 8px 18px rgba(8,127,112,.18); }
#newproject-card { border: 1px solid #cfe3d5; border-style: solid; background: linear-gradient(145deg,#edf6ef,#fff 80%); }
#newproject-card:hover { border-color: #087f70; box-shadow: 0 22px 44px rgba(27,57,42,.11); }
body.dark-mode .project-card { border-color: #344b40; background: linear-gradient(155deg,#1f2937 0%,#1a2b23 100%); }
body.dark-mode .project-card:hover { border-color: rgba(139,224,198,.55); }
body.dark-mode .project-kicker { color: #8be0c6; }
body.dark-mode .project-card .project-tags span,body.dark-mode .project-card .sub-project-tags a { border-color: #385547; background: #263d32; color: #c9e5d3; }
body.dark-mode .project-card .sub-project-tags { border-color: #344b40; }
body.dark-mode #newproject-card { border-color: #45664e; background: linear-gradient(145deg,#203b30,#1f2937 80%); }
body.dark-mode #newproject-card:hover { border-color: #8be0c6; }
@media (max-width: 768px) { .project-grid { gap: 1rem; } .project-card { border-radius: 19px; padding: 1rem; } .project-card > #kraso-preview,.project-card > #tdp-preview,.project-card > .project-preview { margin: -1rem -1rem .9rem; } .project-card .preview-image { height: 175px; } }

/* QR generator modal */
.readme-modal-overlay:has(.qr-modal) { background: rgba(13,29,22,.58); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.readme-modal.qr-modal { width: min(94vw, 820px); max-width: 820px; height: min(88vh, 860px); max-height: 860px; border: 1px solid rgba(218,234,223,.9); border-radius: 28px; background: #f3f7f3; box-shadow: 0 32px 100px rgba(10,35,23,.32); }
.readme-modal.qr-modal .readme-modal-content { display: flex; min-height: 0; overflow: hidden; }
.readme-modal.qr-modal .readme-modal-close { top: 20px; right: 20px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #dce9e2; border-radius: 50%; background: rgba(255,255,255,.9); color: #456056; font-size: 1.7rem; line-height: 1; }
.readme-modal.qr-modal .readme-modal-close:hover { color: #fff; border-color: #087f70; background: #087f70; }
.qr-modal-shell { display: flex; flex: 1; min-width: 0; min-height: 0; flex-direction: column; gap: 1rem; padding: 1.4rem; background: radial-gradient(ellipse at 6% 0%,rgba(185,224,194,.3),transparent 35%),#f3f7f3; }
.qr-modal-header { display: flex; align-items: center; gap: 1rem; min-height: 82px; padding: .25rem 4rem .25rem .2rem; }
.qr-modal-mark { display: grid; flex: 0 0 54px; place-items: center; width: 54px; height: 54px; border-radius: 17px; color: #fff; background: linear-gradient(145deg,#20a783,#087f70); box-shadow: 0 10px 22px rgba(8,127,112,.2); }
.qr-modal-mark svg { width: 29px; height: 29px; }
.qr-modal-heading { min-width: 0; }
.qr-modal-eyebrow { color: #087f70; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.qr-modal-heading h2 { margin: .1rem 0 .12rem; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.035em; }
.qr-modal-heading p { color: #627268; font-size: .88rem; line-height: 1.4; }
.qr-modal-open-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .4rem; margin-left: auto; padding: .65rem .9rem; border: 1px solid #d4e4d9; border-radius: 999px; color: #31644c; background: rgba(255,255,255,.75); font-size: .83rem; font-weight: 700; transition: .2s ease; }
.qr-modal-open-link:hover { transform: translateY(-2px); border-color: #087f70; color: #087f70; }
.qr-modal-frame-wrap { position: relative; flex: 1; min-height: 0; overflow: hidden; border: 1px solid #dce9e2; border-radius: 19px; background: #fff; box-shadow: 0 12px 34px rgba(30,65,44,.08); }
.qr-modal-frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.qr-modal-footer { display: flex; align-items: center; gap: .55rem; min-height: 20px; padding-left: .2rem; color: #708077; font-size: .77rem; }
.qr-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #24a77a; box-shadow: 0 0 0 4px rgba(36,167,122,.13); }
body.dark-mode .readme-modal.qr-modal { border-color: #344b40; background: #17251e; }
body.dark-mode .qr-modal-shell { background: radial-gradient(ellipse at 6% 0%,rgba(54,104,75,.28),transparent 35%),#17251e; }
body.dark-mode .qr-modal-heading h2 { color: #f4faf5; }
body.dark-mode .qr-modal-heading p,body.dark-mode .qr-modal-footer { color: #b2c2b8; }
body.dark-mode .qr-modal-open-link { border-color: #405a49; color: #c9e5d3; background: #22332a; }
body.dark-mode .qr-modal-frame-wrap { border-color: #405a49; }
body.dark-mode .readme-modal.qr-modal .readme-modal-close { border-color: #405a49; color: #d6e5db; background: #22332a; }
@media (max-width: 768px) {
    .readme-modal.qr-modal { align-self: center; width: calc(100% - 24px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); padding-top: 0; border-radius: 23px; box-shadow: 0 18px 60px rgba(10,35,23,.3); }
    .qr-modal-shell { gap: .65rem; padding: .85rem; }
    .qr-modal-header { min-height: 78px; gap: .7rem; padding: .2rem 3.4rem .2rem .1rem; }
    .qr-modal-mark { flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px; }
    .qr-modal-mark svg { width: 25px; height: 25px; }
    .qr-modal-heading h2 { font-size: 1.1rem; }
    .qr-modal-heading p { font-size: .76rem; }
    .qr-modal-eyebrow { font-size: .61rem; }
    .qr-modal-open-link { position: absolute; right: 3.4rem; top: 1.12rem; padding: .48rem .65rem; font-size: .72rem; }
    .readme-modal.qr-modal .readme-modal-close { top: 12px; right: 12px; width: 38px; height: 38px; }
    .qr-modal-frame-wrap { border-radius: 15px; }
    .qr-modal-footer { font-size: .68rem; }
}

/* Comic tool opens as a framed mini-site, with its own standalone-page fallback. */
.readme-modal.chuck-modal { width: min(95vw, 1080px); max-width: 1080px; height: min(92vh, 940px); max-height: 940px; border: 1px solid #dce9e2; border-radius: 24px; background: #f3eee4; box-shadow: 0 30px 100px rgba(10,35,23,.34); }
.readme-modal.chuck-modal .readme-modal-content { display: flex; min-height: 0; overflow: hidden; }
.readme-modal.chuck-modal .readme-modal-close { top: 10px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #dce9e2; border-radius: 50%; background: #fffdf8; color: #456056; font-size: 1.55rem; line-height: 1; }
.readme-modal.chuck-modal .readme-modal-close:hover { border-color: #087f70; background: #087f70; color: #fff; }
.chuck-modal-shell { display: flex; flex: 1; min-width: 0; min-height: 0; flex-direction: column; background: #f3eee4; }
.chuck-modal-bar { display: flex; flex: 0 0 auto; align-items: center; gap: .7rem; min-height: 56px; padding: .45rem 4rem .45rem 1rem; border-bottom: 1px solid #dce9e2; background: rgba(255,253,248,.95); }
.chuck-modal-dot { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid #19363b; border-radius: 50%; background: #ffd85e; color: #19363b; }
.chuck-modal-bar div { display: flex; flex-direction: column; line-height: 1.25; }
.chuck-modal-bar strong { color: #19363b; font-size: .82rem; }
.chuck-modal-bar div span { color: #687873; font-size: .72rem; }
.chuck-modal-bar > a { margin-left: auto; padding: .45rem .7rem; border: 1px solid #d5e9dd; border-radius: 999px; background: #e8f3ec; color: #31644c; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.chuck-modal-bar > a:hover { background: #087f70; border-color: #087f70; color: white; }
.chuck-modal-shell iframe { display: block; flex: 1; width: 100%; min-height: 0; border: 0; background: #f3eee4; }
body.dark-mode .readme-modal.chuck-modal,.dark-mode .chuck-modal-shell,.dark-mode .chuck-modal-shell iframe { background: #17251e; }
body.dark-mode .chuck-modal-bar { border-color: #344b40; background: #1f2937; }
body.dark-mode .chuck-modal-bar strong { color: #f4faf5; }
body.dark-mode .chuck-modal-bar div span { color: #b2c2b8; }
body.dark-mode .chuck-modal-bar > a { border-color: #405a49; background: #263d32; color: #c9e5d3; }
body.dark-mode .readme-modal.chuck-modal .readme-modal-close { border-color: #405a49; background: #22332a; color: #d6e5db; }
@media (max-width: 768px) {
    .readme-modal.chuck-modal { align-self: center; width: calc(100% - 20px); height: calc(100dvh - 20px); max-height: calc(100dvh - 20px); padding-top: 0; border-radius: 20px; box-shadow: 0 18px 60px rgba(10,35,23,.3); }
    .chuck-modal-bar { min-height: 52px; padding: .4rem 3.4rem .4rem .7rem; }
    .chuck-modal-bar strong { font-size: .76rem; }
    .chuck-modal-bar div span { font-size: .65rem; }
    .chuck-modal-bar > a { padding: .4rem .55rem; font-size: .68rem; }
    .readme-modal.chuck-modal .readme-modal-close { top: 8px; right: 8px; width: 34px; height: 34px; }
}


/* 5. RESPONSIVE STYLES (for index.html)
-------------------------------------------------- */
@media (max-width: 992px) {
    #about {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-image {
        order: -1;
        margin-bottom: 1rem;
    }
    .profile-photo-container { max-width: 280px; }
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 5rem;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .container { padding: 1.5rem; }
    .nav-content { padding: 0.5rem 1.5rem; }
    .preview-image { max-height: 150px; }
    .about-text p .about-tag { margin: 0 0.15rem; }
}


/* 6. MODAL & README CONTENT STYLES (for index.html modal and loaded readme.html)
-------------------------------------------------- */
body.modal-open {
    overflow: hidden;
}

.readme-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0s 0.3s linear;
}

.readme-modal-overlay.active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.readme-modal {
    position: relative;
    background-color: #f9f9f9;
    width: 95%;
    max-width: 750px;
    height: 90vh;
    max-height: 800px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
    overflow: hidden; /* This is crucial to clip scrolling content to the rounded corners */
}

.readme-modal.qr-modal {
    max-width: 390px;
    height: 750px;
    max-height: 85vh;
}

.readme-modal-overlay.active .readme-modal {
    transform: scale(1);
}

.readme-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    z-index: 10;
    transition: color 0.2s ease;
}

.readme-modal-close:hover {
    color: #333;
}

.readme-modal-content {
    padding: 0;
    flex-grow: 1;
    overflow-y: auto; /* This makes the content area scrollable */
}

/* --- Styles for README content inside the modal --- */
.readme-modal-content .readme-page {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  text-align: left;
  padding: 20px 30px; /* This padding creates the internal frame for the text */
}
.readme-modal-content p {
  text-align: left;
  margin-block-start: 1em;
  margin-block-end: 1em;
  font-size: 1rem;
  color: #333;
  max-width: 100%;
}
.readme-modal-content p a { font-weight: normal; text-decoration: underline; color: #007bff; }
.readme-modal-content p a:hover { color: #0056b3; }
.readme-modal-content .header-section { text-align: center; margin-bottom: 30px; padding-top: 20px; }
.readme-modal-content .extension-logo { width: 100px; height: 100px; margin: 0 auto 15px auto; display: block; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.readme-modal-content h1 { font-size: 2em; color: #4285f4; text-align: center; margin: 0; padding-bottom: 0; border-bottom: none; line-height: 1.2; font-weight: 700; }
.readme-modal-content h2 { font-size: 1.5em; color: #34a853; margin-top: 30px; margin-bottom: 15px; border-bottom: 2px solid #eee; padding-bottom: 5px; font-weight: 600; }
.readme-modal-content .screenshot-section { text-align: center; margin: 30px 0; padding: 25px 20px; background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%); border-radius: 12px; border: 1px solid #e1e8ff; }
.readme-modal-content .screenshot-section h3 { color: #4285f4; margin: 0 0 20px 0; font-size: 1.3em; font-weight: 600; }
.readme-modal-content .extension-screenshot { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); border: 1px solid rgba(255,255,255,0.2); }
.readme-modal-content .screenshot-caption p { color: #666; font-style: italic; font-size: 0.9em; margin-top: 15px; line-height: 1.4; }
.readme-modal-content .feature { background-color: white; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.readme-modal-content .feature-icon { font-size: 24px; margin-right: 12px; vertical-align: middle; }
.readme-modal-content .highlight { font-family: "Courier New", Courier, monospace; font-style: italic; color: #666; padding: 0; border-radius: 0; border: none; background-color: transparent; }
.readme-modal-content .ui-element { font-family: "Courier New", Courier, monospace; font-weight: bold; padding: 0; border-radius: 0; border: none; background-color: transparent; color: inherit; }
.readme-modal-content .button.readme-button { background-color: #4285f4; color: white !important; border: none; padding: 12px 18px; border-radius: 5px; cursor: pointer; text-decoration: none; display: inline-block; margin-top: 15px; font-size: 1rem; transition: background-color 0.2s ease; }
.readme-modal-content .button.readme-button:hover { background-color: #3367d6; }
.readme-modal-content .footer.readme-footer { text-align: center; margin-top: 40px; padding: 20px 0; border-top: 1px solid #ddd; color: #666; font-size: 0.9rem; }
.readme-modal-content .footer.readme-footer p { text-align: center; }
.readme-modal-content .footer.readme-footer a { color: #4285f4; text-decoration: none; }
.readme-modal-content .footer.readme-footer a:hover { text-decoration: underline; }
.readme-modal-content ol { padding-left: 30px; margin-bottom: 20px; }
.readme-modal-content ol li { margin-bottom: 12px; line-height: 1.7; }
.readme-modal-content ol ul { margin-top: 8px; padding-left: 25px; }
.readme-modal-content ol ul li { margin-bottom: 8px; }

/* --- Styles for IFRAME content inside the modal --- */
.readme-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Modal Responsive Styles */
@media (max-width: 768px) {
    .readme-modal-overlay {
        /* Align modal to the top, preventing it from being centered and cut off. */
        align-items: flex-start;
    }

    .readme-modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        box-shadow: none;
        
        /* Add padding at the top to account for browser UI (status bar).
           This pushes the modal's content down, making it fully visible. */
        padding-top: 40px;
    }

    .readme-modal-close {
        /* Positioned within the modal's top padding area for visibility.
           Making it larger for better touch interaction. */
        top: 5px;
        right: 5px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .readme-modal-content .readme-page {
        padding: 20px;
    }
    
    .readme-modal-content {
        border-radius: 0;
    }
}

/* --- FULL-SCREEN CONSENT BANNER CSS --- */

/* The full-screen overlay container */
#clarity-consent-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent background */
    backdrop-filter: blur(4px); /* The Blur Effect */
    -webkit-backdrop-filter: blur(4px); /* Safari support */
    z-index: 10000;
    display: none; /* Will be shown by JS if no consent is found */
    /* Use flex-start to allow the content box to be positioned absolutely */
    justify-content: flex-start;
    align-items: flex-start;
    transition: opacity 0.3s;
}

/* The content box positioned in the bottom right */
#consent-content {
    position: absolute;
    bottom: 20px;
    right: 20px;
    max-width: 380px;
    background-color: var(--card-bg-light); /* White/light background for the box */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

#consent-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    /* Ensure text color is correct inside the box */
    color: var(--text-color-light); 
}

#consent-content button {
    background-color: #0078d4; /* Microsoft's blue */
    color: white;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.2s;
    align-self: flex-start; /* Aligns the button to the left within the box */
}

#consent-content button:hover {
    background-color: #005a9e;
}

/* Dark Mode Adjustments */
.dark-mode #consent-content {
    background-color: var(--card-bg-dark);
    box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}
.dark-mode #consent-content p {
    color: var(--text-color-dark);
}

/* Remove the body padding adjustment as it's an overlay now */
body {
    padding-bottom: 0; 
}

/* Responsive adjustment for small screens */
@media (max-width: 480px) {
    #consent-content {
        bottom: 10px;
        right: 10px;
        max-width: 95%;
    }
}

/* Styling for the container of the two buttons */
.consent-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px; /* Separate buttons slightly from text */
}

/* Styling for the language switch button */
#consent-lang-toggle {
    /* Inherit base button style, but make it look secondary */
    background-color: var(--secondary-text-color) !important; 
    color: white !important;
    padding: 8px 12px !important;
    font-weight: normal !important;
    font-size: 0.9rem;
    line-height: 1;
    align-self: center !important; /* Vertically align with the main button */
}

#consent-lang-toggle:hover {
    background-color: #555 !important;
}

/* Dark mode adjustment for the toggle button */
.dark-mode #consent-lang-toggle {
    background-color: var(--secondary-text-dark) !important;
}
.dark-mode #consent-lang-toggle:hover {
    background-color: #888 !important;
}

/* QR generator sizing must override the original narrow modal preset. */
.readme-modal.qr-modal { width: min(94vw, 820px); max-width: 820px; height: min(88vh, 860px); max-height: 860px; border: 1px solid rgba(218,234,223,.9); border-radius: 28px; background: #f3f7f3; box-shadow: 0 32px 100px rgba(10,35,23,.32); }
.readme-modal.qr-modal .readme-modal-content { display: flex; min-height: 0; overflow: hidden; }
.readme-modal.qr-modal .qr-modal-heading h2 { margin: .1rem 0 .12rem; padding: 0; border: 0; color: #172d31; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.035em; text-align: left; }
.readme-modal.qr-modal .qr-modal-heading p { max-width: 100%; margin: 0; color: #627268; font-size: .88rem; line-height: 1.4; text-align: left; }
body.dark-mode .readme-modal.qr-modal .qr-modal-heading h2 { color: #f4faf5; }
@media (max-width: 768px) {
    .readme-modal.qr-modal { align-self: center; width: calc(100% - 24px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); padding-top: 0; border-radius: 23px; }
    .readme-modal.qr-modal .qr-modal-heading h2 { font-size: 1.1rem; }
    .readme-modal.qr-modal .qr-modal-heading p { font-size: .76rem; }
}

/* ContactScout uses the same product-window treatment as the QR tool. */
.readme-modal.contact-scout-modal { width: min(94vw, 980px); max-width: 980px; height: min(90vh, 900px); max-height: 900px; border: 1px solid #dce9e2; border-radius: 26px; background: #f3f7f3; box-shadow: 0 32px 100px rgba(10,35,23,.32); }
.readme-modal.contact-scout-modal .readme-modal-content { display: flex; min-height: 0; overflow: hidden; background: radial-gradient(ellipse at 6% 0%,rgba(185,224,194,.25),transparent 35%),#f3f7f3; }
.readme-modal.contact-scout-modal .readme-modal-close { top: 10px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #dce9e2; border-radius: 50%; background: rgba(255,255,255,.9); color: #456056; font-size: 1.6rem; line-height: 1; }
.readme-modal.contact-scout-modal .readme-modal-close:hover { color: #fff; border-color: #087f70; background: #087f70; }
.contact-scout-shell { display: flex; flex: 1; min-width: 0; min-height: 0; flex-direction: column; }
.contact-scout-bar { position: relative; z-index: 1; display: flex; flex: 0 0 auto; align-items: center; gap: .8rem; min-height: 66px; padding: .55rem 4rem .55rem 1.2rem; border-bottom: 1px solid #dce9e2; background: rgba(255,255,255,.82); }
.contact-scout-mark { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 13px; background: linear-gradient(145deg,#20a783,#087f70); color: white; box-shadow: 0 8px 17px rgba(8,127,112,.18); font-size: .72rem; font-weight: 900; }
.contact-scout-bar-copy { display: flex; flex-direction: column; gap: .1rem; line-height: 1.2; }
.contact-scout-bar-copy strong { color: #193b32; font-size: .88rem; }
.contact-scout-bar-copy span { color: #708077; font-size: .73rem; }
.contact-scout-download { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; padding: .55rem .85rem; border: 1px solid #cfe3d5; border-radius: 999px; background: #e8f3ec; color: #31644c; font-size: .78rem; font-weight: 750; transition: .2s ease; }
.contact-scout-download:hover { transform: translateY(-2px); border-color: #087f70; background: #087f70; color: #fff; }
.contact-scout-version-count { margin-left:auto; padding:.45rem .75rem; border:1px solid #cfe3d5; border-radius:999px; background:#e8f3ec; color:#31644c; font-size:.74rem; font-weight:800; white-space:nowrap; }
.readme-modal.contact-scout-modal .readme-modal-content .readme-page { flex: 1; min-height: 0; width: 100%; max-width: 900px; margin: 0 auto; overflow-y: auto; padding: 1.75rem clamp(1.25rem,4vw,3rem) 3rem; background: transparent; color: #263c35; font-family: var(--font-family); line-height: 1.65; }
.readme-modal.contact-scout-modal .header-section { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 auto 1.15rem; padding: .4rem 0 .9rem; border-bottom: 1px solid #dce9e2; text-align: left; }
.readme-modal.contact-scout-modal .extension-logo { width: 68px; height: 68px; flex: 0 0 68px; margin: 0; border-radius: 19px; box-shadow: 0 8px 22px rgba(27,57,42,.12); }
.readme-modal.contact-scout-modal .readme-modal-content h1 { margin: 0; padding: 0; border: 0; color: #193b32; font-size: clamp(1.6rem,4vw,2.35rem); line-height: 1.12; letter-spacing: -.045em; text-align: left; }
.readme-modal.contact-scout-modal .readme-modal-content h2 { margin: 2rem 0 .9rem; padding: 0 0 .6rem; border: 0; border-bottom: 1px solid #dce9e2; color: #087f70; font-size: 1.35rem; line-height: 1.25; letter-spacing: -.025em; }
.readme-modal.contact-scout-modal .readme-modal-content p { max-width: 100%; margin: .55rem 0; color: #52635b; font-size: .96rem; line-height: 1.7; text-align: left; }
.readme-modal.contact-scout-modal .screenshot-section { margin: 1.4rem 0; padding: 1.2rem; border: 1px solid #dce9e2; border-radius: 21px; background: linear-gradient(145deg,#e8f3ec,#fff 82%); }
.readme-modal.contact-scout-modal .screenshot-section h3 { margin: 0 0 .85rem; color: #193b32; font-size: 1.05rem; }
.readme-modal.contact-scout-modal .extension-screenshot { width: min(100%,680px); max-height: 440px; object-fit: contain; border: 1px solid rgba(220,233,226,.85); border-radius: 15px; box-shadow: 0 14px 35px rgba(27,57,42,.1); }
.readme-modal.contact-scout-modal .feature { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: .25rem .75rem; margin: .7rem 0; padding: 1rem 1.1rem; border: 1px solid #dce9e2; border-radius: 17px; background: rgba(255,255,255,.78); box-shadow: 0 8px 22px rgba(27,57,42,.035); }
.readme-modal.contact-scout-modal .feature-icon { grid-column: 1; grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; margin: 0; border-radius: 12px; background: #e8f3ec; font-size: 1.1rem; }
.readme-modal.contact-scout-modal .feature > strong { align-self: center; color: #193b32; font-size: .98rem; }
.readme-modal.contact-scout-modal .feature p { grid-column: 2; margin: .1rem 0 0; font-size: .9rem; }
.readme-modal.contact-scout-modal .readme-modal-content ol { padding-left: 1.3rem; color: #52635b; }
.readme-modal.contact-scout-modal .readme-modal-content li { margin: .45rem 0; padding-left: .2rem; }
.readme-modal.contact-scout-modal .button.readme-button { margin: .5rem .35rem; padding: .7rem 1rem; border-radius: 999px; background: #087f70; box-shadow: 0 7px 18px rgba(8,127,112,.16); }
.readme-modal.contact-scout-modal .button.readme-button:hover { background: #06695d; }
.readme-modal.contact-scout-modal .footer.readme-footer { margin-top: 2rem; padding-top: 1rem; border-color: #dce9e2; }
.readme-modal.contact-scout-modal .footer.readme-footer p { text-align: center; }
.readme-modal.contact-scout-modal .contactscout-downloads { margin:1.3rem 0; padding:1.2rem; border:1px solid #dce9e2; border-radius:19px; background:linear-gradient(145deg,#e8f3ec,#fff 82%); }
.readme-modal.contact-scout-modal .contactscout-downloads h2 { margin:.1rem 0 .4rem; padding:0; border:0; color:#193b32; font-size:1.2rem; }
.readme-modal.contact-scout-modal .contactscout-downloads > p { margin:.35rem 0 1rem; font-size:.87rem; }
.contactscout-download-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.contactscout-download-card { min-width:0; padding:.9rem; border:1px solid #dce9e2; border-radius:15px; background:rgba(255,255,255,.9); }
.readme-modal.contact-scout-modal .contactscout-download-card .version-label { color:#087f70; font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.readme-modal.contact-scout-modal .contactscout-download-card strong { display:block; margin:.35rem 0 .75rem; color:#193b32; font-size:.86rem; overflow-wrap:anywhere; }
.readme-modal.contact-scout-modal .contactscout-download-card a { display:flex; justify-content:center; padding:.55rem .65rem; border:1px solid #087f70; border-radius:999px; background:#087f70; color:white; font-size:.78rem; font-weight:750; text-decoration:none; }
.readme-modal.contact-scout-modal .contactscout-download-card a:hover { background:#06695d; border-color:#06695d; }
body.dark-mode .readme-modal.contact-scout-modal { border-color: #344b40; background: #17251e; }
body.dark-mode .readme-modal.contact-scout-modal .readme-modal-content { background: radial-gradient(ellipse at 6% 0%,rgba(54,104,75,.22),transparent 35%),#17251e; }
body.dark-mode .contact-scout-bar { border-color: #344b40; background: rgba(31,41,55,.9); }
body.dark-mode .contact-scout-bar-copy strong { color: #f4faf5; }
body.dark-mode .contact-scout-bar-copy span { color: #b2c2b8; }
body.dark-mode .contact-scout-download { border-color: #405a49; background: #263d32; color: #c9e5d3; }
body.dark-mode .contact-scout-version-count { border-color:#405a49; background:#263d32; color:#c9e5d3; }
body.dark-mode .readme-modal.contact-scout-modal .readme-modal-content .readme-page { color: #d1ddd6; }
body.dark-mode .readme-modal.contact-scout-modal .readme-modal-content h1,body.dark-mode .readme-modal.contact-scout-modal .feature > strong,body.dark-mode .readme-modal.contact-scout-modal .screenshot-section h3 { color: #f0faf4; }
body.dark-mode .readme-modal.contact-scout-modal .readme-modal-content h2 { color: #8be0c6; border-color: #344b40; }
body.dark-mode .readme-modal.contact-scout-modal .readme-modal-content p { color: #b7c7bd; }
body.dark-mode .readme-modal.contact-scout-modal .feature { border-color: #344b40; background: rgba(31,41,55,.72); }
body.dark-mode .readme-modal.contact-scout-modal .feature-icon { background: #263d32; }
body.dark-mode .readme-modal.contact-scout-modal .screenshot-section { border-color: #344b40; background: linear-gradient(145deg,#203b30,#1f2937 82%); }
body.dark-mode .readme-modal.contact-scout-modal .contactscout-downloads { border-color:#344b40; background:linear-gradient(145deg,#203b30,#1f2937 82%); }
body.dark-mode .readme-modal.contact-scout-modal .contactscout-downloads h2,body.dark-mode .readme-modal.contact-scout-modal .contactscout-download-card strong { color:#f0faf4; }
body.dark-mode .contactscout-download-card { border-color:#405a49; background:rgba(31,41,55,.75); }
body.dark-mode .readme-modal.contact-scout-modal .contactscout-download-card .version-label { color:#8be0c6; }
body.dark-mode .readme-modal.contact-scout-modal .extension-screenshot { border-color: #405a49; }
body.dark-mode .readme-modal.contact-scout-modal .footer.readme-footer { border-color: #344b40; }
body.dark-mode .readme-modal.contact-scout-modal .readme-modal-close { border-color: #405a49; background: #22332a; color: #d6e5db; }
@media (max-width: 768px) {
    .readme-modal.contact-scout-modal { align-self: center; width: calc(100% - 24px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); padding-top: 0; border-radius: 22px; }
    .contact-scout-bar { min-height: 58px; padding: .45rem 3.4rem .45rem .75rem; }
    .contact-scout-mark { width: 33px; height: 33px; flex-basis: 33px; }
    .contact-scout-bar-copy strong { font-size: .78rem; }
    .contact-scout-bar-copy span { font-size: .64rem; }
    .contact-scout-download { padding: .45rem .6rem; font-size: .68rem; }
    .contact-scout-version-count { padding:.4rem .55rem; font-size:.64rem; }
    .readme-modal.contact-scout-modal .readme-modal-content .readme-page { padding: 1.1rem 1rem 2rem; }
    .readme-modal.contact-scout-modal .readme-modal-content .header-section { justify-content: flex-start; }
    .readme-modal.contact-scout-modal .extension-logo { width: 54px; height: 54px; flex-basis: 54px; }
    .readme-modal.contact-scout-modal .readme-modal-content h1 { font-size: 1.45rem; }
    .readme-modal.contact-scout-modal .feature { padding: .85rem; }
    .contactscout-download-grid { grid-template-columns:1fr; }
    .readme-modal.contact-scout-modal .contactscout-downloads { padding:.9rem; }
}
