/* Custom variables */
:root {
  --primary-color: #10B981; /* Updated teal/green color */
  --text-color: #000000;
  --bg-color: #ffffff;
  --light-gray: #f5f5f5;
  --card-border-color: rgba(0, 0, 0, 0.1);
  --muted-color: #6c757d;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --red-color: #f44336;
  --green-color: #4caf50;
}

/* Accent text */
.gradient-text { color: #F59E0B; display: inline; } /* Golden yellow/amber from RunBear.io */
.gradient-heading { color: #10B981; display: inline; } /* Updated teal/green color */

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  font-size: 18px;
}
main { flex: 1; padding: 1rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; width: 90%; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--text-color);
  margin-top: 0;
}
h1 { font-size: 2.75rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; margin: 1.25rem 0 0.625rem; }
h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
p { margin: 0 0 1rem 0; }

/* Header */
header { padding: 1rem 0; margin-bottom: 1rem; border-bottom: 1px solid var(--card-border-color); }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--text-color); letter-spacing: -0.01em; text-decoration: none; }
.header-links { display: flex; gap: 1.25rem; align-items: center; }
.header-link { color: var(--text-color); font-weight: 600; text-decoration: none; transition: color 0.2s ease; }
.header-link:hover { color: var(--primary-color); }

/* Hero section */
.hero { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.profile-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: url(images/sprite-color.webp) 0 0 no-repeat;
  overflow: hidden;
}
.subtitle { font-size: 1.5rem; font-weight: 500; line-height: 1.7; letter-spacing: -0.01em; max-width: 100%; margin-bottom: 2rem; color: var(--muted-color); }

/* Social Proof Blurb */
.social-proof-blurb {
  background-color: var(--light-gray);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem 2rem;
  margin: 3rem auto;
  max-width: 800px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.social-proof-blurb .blurb-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: 50px 50px !important;
  background-position: center !important;
  overflow: hidden;
}
.social-proof-blurb .blurb-content {
  flex-grow: 1; 
}
.social-proof-blurb blockquote {
  margin: 0;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-color);
}
.social-proof-blurb footer {
  margin-top: 0.75rem;
  text-align: left;
  font-size: 1rem;
  color: var(--muted-color);
  border: none;
  padding: 0;
}

/* Clients section */
.clients { margin: 5rem 0; text-align: center; }
.clients-title { font-size: 1.25rem; color: var(--muted-color); margin-bottom: 2rem; }
.client-logos-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, auto); gap: 2.5rem; justify-content: center; align-items: center; margin: 0 auto; max-width: 900px; }
.logo-item { display: flex; justify-content: center; align-items: center; height: 60px; }
.logo-bg { background-image: url(images/sprite-color.webp); background-repeat: no-repeat; display: block; transform: scale(0.7); transition: all 0.3s ease; filter: brightness(0); }
.logo-bg:hover { opacity: 0.8; }
.logo-trivago { background-position: 0 -223px; width: 160px; height: 51px; }
.logo-eduki { background-position: -415px -133px; width: 160px; height: 58px; }
.logo-hairskin { background-position: -416px -238px; width: 160px; height: 22px; }
.logo-biosouth { background-position: -208px -226px; width: 160px; height: 46px; }
.logo-inne { background-position: 0 -306px; width: 160px; height: 37px; }
.logo-craft { background-position: -207px -137px; width: 160px; height: 51px; transform: scale(0.5); }
.logo-autodata { background-position: -208px -308px; width: 160px; height: 32px; }
.logo-truely { background-position: -423px -307px; width: 145px; height: 31px; }

/* My Method Section */
.method-section { margin: 4rem 0; text-align: center; content-visibility: auto; contain-intrinsic-size: 1px 800px; }
.method-subtitle { font-size: 1.25rem; color: var(--muted-color); margin-bottom: 4rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.method-comparison { display: grid; grid-template-columns: 1fr 20px 1fr; gap: 2rem; align-items: start; max-width: 900px; margin: 0 auto; }
.method-divider { width: 2px; background: repeating-linear-gradient(0deg, var(--primary-color), var(--primary-color) 5px, transparent 5px, transparent 10px); height: 100%; justify-self: center; }
.method-card { background: var(--light-gray); border-radius: 0.5rem; padding: 2.5rem; border: 1px solid var(--card-border-color); text-align: left; box-shadow: none; }
.method-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.method-list { list-style: none; padding: 0; margin: 0 0 1.5rem 0; }
.method-list li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; font-size: 1.125rem; line-height: 1.6; color: var(--text-color); }
.method-list i { margin-top: 0.25rem; flex-shrink: 0; }
.method-list .icon-bad { color: var(--red-color); }
.method-list .icon-good { color: var(--green-color); }
.method-list strong { font-weight: 600; color: var(--text-color); display: block; }
.method-list span { color: var(--muted-color); font-size: 1rem; }
.method-result { font-weight: 600; padding: 0.5rem 1rem; border-radius: 0.25rem; display: inline-block; margin-top: 1rem; }
.result-bad { background-color: rgba(244, 67, 54, 0.2); color: var(--red-color); border: 1px solid var(--red-color); }
.result-good { background-color: rgba(76, 175, 80, 0.2); color: var(--green-color); border: 1px solid var(--green-color); }

/* Testimonials */
.testimonials-section { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin: 5rem 0; }
.testimonial { background: var(--light-gray); border-radius: 0.5rem; padding: 2.5rem; border: 1px solid var(--card-border-color); box-shadow: none; }
.testimonial-content { font-size: 1.125rem; line-height: 1.7; margin-bottom: 2rem; color: var(--text-color); }
.testimonial-author { display: flex; align-items: center; gap: 0.9375rem; }
.testimonial-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-size: 60px 60px !important;
  background-position: center !important;
  overflow: hidden;
}
.testimonial-name { font-weight: 700; color: var(--text-color); }
.star-rating { color: #F59E0B; font-size: 1.5rem; margin-bottom: 0.9375rem; }
.rudiger-img { background: url(images/sprite-color.webp) -396px 0 no-repeat !important; }
.merlin-img { background: url(images/sprite-color.webp) -307px 0 no-repeat !important; }
.jp-img { background: url(images/sprite-color.webp) -129px 0 no-repeat !important; }
.hicham-img { background: url(images/sprite-color.webp) -485px 0 no-repeat !important; }
.alex-img { background: url(images/sprite-color.webp) -218px 0 no-repeat !important; }

/* Problems section */
.problems-section { margin: 5rem 0; content-visibility: auto; contain-intrinsic-size: 1px 1000px; }
.problems-section h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 3rem; text-align: center; }
.problems-list { display: flex; flex-direction: column; gap: 2rem; max-width: 900px; margin: 0 auto; width: 100%; }
.problem-item {
  background: var(--light-gray);
  border-radius: 0.5rem;
  border: 1px solid var(--card-border-color);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
.problem-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}
.problem-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--text-color);
  position: relative;
  padding-bottom: 0.75rem;
}
.problem-item h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.problem-item:hover h3::after {
  width: 100px;
}
.problem-item p { font-size: 1.125rem; line-height: 1.7; color: var(--muted-color); margin: 0; }
.problem-item strong { color: var(--primary-color); font-weight: 700; }
.problem-item ul { font-size: 1.125rem; line-height: 1.6; margin: 1.25rem 0 0 0; list-style: none; padding-left: 0; }
.problem-item li { margin-bottom: 0.75rem; padding-left: 1.5rem; position: relative; }
.problem-item li:before { content: "→"; color: var(--primary-color); position: absolute; left: 0; font-weight: bold; }
.problem-item li:last-child { margin-bottom: 0; }
.problem-item .learn-more { margin-top: 1.5rem; }
.problem-item .learn-more a { color: #10B981; text-decoration: underline; font-weight: 600; }
.problem-item .learn-more a:hover { color: #F59E0B; }

/* Responsive adjustments for problems section */
@media (min-width: 768px) {
  .problems-list { gap: 3rem; }
  .problem-item {
    padding: 2.5rem;
  }
  .problem-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
}

/* Tools Section */
.tools-section { margin: 5rem 0; content-visibility: auto; contain-intrinsic-size: 1px 600px; }
.tools-section h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 3rem; text-align: center; }
.tools-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; max-width: 800px; margin: 0 auto; }
.tool-card { display: flex; align-items: flex-start; gap: 1.5rem; background: transparent; border: none; padding: 0; }
.tool-card-icon { font-size: 2rem; color: #10D4B4; flex-shrink: 0; margin-top: 0.25rem; }
.tool-card-content { flex: 1; }
.tool-card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; line-height: 1.4; }
.tool-card p { font-size: 1.125rem; line-height: 1.7; color: var(--muted-color); margin: 0; }

/* Experience section */
.experience-section { margin: 5rem 0; padding: 4rem 0; border-top: 1px solid var(--card-border-color); border-bottom: 1px solid var(--card-border-color); content-visibility: auto; contain-intrinsic-size: 1px 800px; }
.experience-section h2 { font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 2.5rem; text-align: center; }
.experience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.experience-card { display: flex; flex-direction: column; background: var(--light-gray); border-radius: 0.5rem; border: 1px solid var(--card-border-color); overflow: hidden; transition: border-color 0.2s ease; box-shadow: none; }
.experience-card:hover { border-color: #10B981; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
.experience-card .logo-container { height: 60px; background: var(--light-gray); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--card-border-color); padding: 0.5rem; }
.experience-card .logo-bg { background-image: url(images/sprite-color.webp); background-repeat: no-repeat; display: block; transform: scale(0.7); transition: opacity 0.3s ease; filter: brightness(0); }
.experience-card .logo-bg:hover { opacity: 0.8; }
.experience-content { padding: 1.5rem; }
.experience-card h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin: 0 0 1rem 0; }
.experience-text { font-size: 1.125rem; line-height: 1.7; color: var(--muted-color); margin-bottom: 1.25rem; }
.read-more-link { color: #10B981; font-weight: 600; font-size: 1.0625rem; text-decoration: underline; display: inline-block; }
.read-more-link:hover { color: #F59E0B; text-decoration: none; }
.logo-bg.experience-logo-trivago { background-position: 0 -223px; width: 160px; height: 51px; }
.logo-bg.experience-logo-eduki { background-position: -415px -133px; width: 160px; height: 58px; }
.logo-bg.experience-logo-hairskin { background-position: -416px -238px; width: 160px; height: 22px; }
.logo-bg.experience-logo-inne { background-position: 0 -306px; width: 160px; height: 37px; }

/* Footer */
footer { padding: 3rem 0; border-top: 1px solid var(--card-border-color); margin-top: 5rem; text-align: center; color: var(--muted-color); font-size: 1.0625rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; }
.footer-link { color: var(--text-color); font-weight: 600; transition: color 0.2s ease; text-decoration: none; }
.footer-link:hover { color: var(--primary-color); }

/* Button styles - RunBear.io inspired */
.button { display: inline-block; background-color: #000000; color: #fff; padding: 1rem 1.75rem; border-radius: 0.5rem; font-weight: 600; font-size: 1.125rem; text-align: center; transition: all 0.3s ease; text-decoration: none; border: none; cursor: pointer; box-sizing: border-box; }
.button:hover { background-color: #111827; transform: translateY(-2px); }
.button-ghost { display: inline-block; background: transparent; color: var(--text-color); padding: calc(1rem - 2px) calc(1.75rem - 2px); border-radius: 0.5rem; font-weight: 600; font-size: 1.125rem; text-align: center; text-decoration: none; border: 2px solid var(--text-color); cursor: pointer; transition: all 0.3s ease; box-sizing: border-box; }
.button-ghost:hover { background: rgba(0, 0, 0, 0.05); transform: translateY(-2px); }
.button-container { display: flex; flex-direction: column; gap: 1rem; width: auto; max-width: 100%; }

/* Icons */
.icon-times-circle::before { content: "✕"; color: var(--red-color); }
.icon-check-circle::before { content: "✓"; color: var(--green-color); }
.icon-arrow-left::before { content: "←"; }
.icon-arrow-right::before { content: "→"; }
.icon-star::before { content: "★"; }
.icon-file-alt::before { content: "📄"; }
.icon-linkedin::before {
  content: "in";
  background-color: #0077b5; /* LinkedIn blue */
  color: white;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: bold;
  display: inline-block;
}
.icon-flask::before { content: "🧪"; }
.icon-chart-bar::before { content: "📊"; }
.icon-tasks::before { content: "📋"; }
.icon-pencil-ruler::before { content: "✏️"; }
.icon-blog::before { content: "📝"; }

/* Responsive styles */
@media (min-width: 810px) {
  .testimonials-section, .experience-grid, .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .client-logos-grid { display: grid; }
  .experience-section h2 { text-align: center; font-size: 2.25rem; margin-bottom: 2.5rem; }
  .button-container { flex-direction: row; width: auto; justify-content: flex-start; gap: 1.5rem; }
  .button, .button-ghost { width: auto; min-width: 160px; text-align: center; }
}
@media (max-width: 809px) {
  .container { width: 90%; padding: 0 5%; }
  .client-logos-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 100%; }
  .logo-item { height: 50px; }
  h1 { font-size: 2rem; }
  .subtitle { font-size: 1rem; max-width: 100%; }
  .problems-list { max-width: 100%; }
  .tools-grid { grid-template-columns: 1fr; max-width: 100%; }
  .experience-grid { grid-template-columns: 1fr; }
  .method-comparison { grid-template-columns: 1fr; gap: 2rem; }
  .method-divider { display: none; }
  .button, .button-ghost { width: 80%; min-width: 160px; display: block; margin: 0 auto; }
  .social-proof-blurb { flex-direction: column; text-align: center; gap: 1rem; }
  .social-proof-blurb footer { text-align: center; }
}
@media (max-width: 600px) {
  .container { width: 90%; padding: 0 5%; }
  .problem-item { margin-bottom: 2rem; }
  .tool-card { padding: 1.5rem; }
  .method-card { padding: 1.5rem; }
  .method-card h3 { font-size: 1.3rem; }
  .method-list li { font-size: 0.95rem; }
  .button, .button-ghost { width: 80%; max-width: 80%; }
}
