/* utility classes */
/* Button styles */
.btn {
  max-width: fit-content;
  max-height: fit-content;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 20px;
  background-color: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.purple {
  color: var(--text-main);
  border: 1px solid var(--color-primary);
  background-color: var(--color-primary);
}

.outline {
  border: 1px solid var(--text-main);
  color: var(--text-main);
}

.purple:hover,
.outline:hover {
  color: var(--text-main);
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

/* ── HERO ── */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 350px;
  width: 100%;
  height: 100%;
  padding: 0;

}

.hero-title {
  font-weight: 800;
  font-size: clamp(60px, 12vw, 125px);
  line-height: 1;
  color: var(--text-main);
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin-top: 80px;
  z-index: 10;
}

.hero-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 900px;
  z-index: 20;
}

.hero-desc {
  color: var(--text-main);
  max-width: 220px;
}

.hero-badge {
  position: absolute;
  top: 15%;
  left: -30%;
  background: var(--color-primary);
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 20;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-rating);
  fill: var(--color-rating);
}
.hero-badge span {
  font-size: 14px;
  color: var(--text-main);
}

.badge-tag {
  background: var(--color-primary);
  width: fit-content;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  border-radius: 5px;
}
.badge-tag svg,
.hero-badge svg {
  width: 15px;
  height: 15px;
  color: var(--color-rating);
  fill: currentColor;
}

/* ── VALUE PROP ── */
#valueprop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9rem;
}

.vp-tagline {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0;
  margin: 0;
}

.vp-tagline p {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-size: clamp(28px, 5vw, 40px);
}

.vp-tagline p span {
  color: var(--text-main);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vp-cards {
  display: flex;
  width: 100%;
  border-top: 1px solid var(--border-color);
  overflow: hidden;
}

.vp-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px;
  border-right: 1px solid var(--border-color);
}
.vp-card:last-child {
  border-right: none;
}

.check-icon {
  background: var(--purple);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.vp-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}
.vp-card p {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray-300);
  line-height: 1.6;
}

/* ── FRAMEWORK ── */
#framework {
  background-color: var(--bg-page);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}

.framework-header {
width: 1200px;
margin: 0 auto;
}

.framework-header h2,
.framework-header p {
  max-width: 700px;
}

.what-i-handle {
  position: relative;
  overflow-y: hidden;
  padding: 60px 0;
}

/* Track - horizontal row that extends beyond viewport */
.handle-track {
  display: flex;
  gap: 32px;
  padding-left: 5px;
  width: max-content;
  will-change: transform;
}

/* Handle Cards - same styling as about cards */
.card-handle {
  flex-shrink: 0;
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-handle:hover {
  border-color: var(--color-primary);
}

.card-handle .card-header {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0;
  margin: 0;
}

.card-handle .card-header span {
  font-family: var(--font-mono);
  font-size: 25px;
  font-weight: 100;
  line-height: 1;
  color: var(--border);
  transition: color 0.4s ease;
}

.card-handle:hover .card-header span {
  color: var(--color-primary);
}

.card-handle .card-title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
  margin: 0;
}

.card-handle .card-title em {
  font-weight: 100;
  font-style: italic;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.card-handle:hover .card-title em {
  color: var(--color-primary);
}

.card-handle .card-desc-box p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
}

/* ── WORK BODY ── */
.work-body {
  width: 100%;
  height: fit-content;
  padding: 100px clamp(24px, 10vw, 150px);
  background-color: var(--bg-page);
}

/* ── TESTIMONIALS ── */
#testimonials {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
  overflow: hidden;
  padding-bottom: 5rem;
  height: 110vh;
}

.testi-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
}

.testi-scroll {
  display: flex;
  align-items: stretch;
  gap: 32px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 32px;
  /* Native scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--text-main) var(--bg-input);
}

/* WebKit scrollbar (Chrome, Safari, Edge) */
.testi-scroll::-webkit-scrollbar {
  height: 8px;
  display: block;
}

.testi-scroll::-webkit-scrollbar-track {
  background: var(--bg-input);
  border-radius: 999px;
}

.testi-scroll::-webkit-scrollbar-thumb {
  background: var(--text-main);
  border-radius: 999px;
}

.testi-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.testi-card {
  flex-shrink: 0;
  width: min(1000px, 90vw);
  border: 1px dashed var(--border-color);
  padding: 32px;
}

.testi-inner {
  display: flex;
  gap: 32px;
}

.testi-avatar {
  width: 214px;
  height: 214px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-input);
  filter: grayscale(1);
}
.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testi-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.testi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.testi-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main);
}
.testi-role {
  font-size: 16px;
  font-weight: 200;
  color: var(--gray-300);
}
.testi-role strong {
  font-weight: 400;
  color: var(--text-main);
}
.testi-role br {
  display: none;
}

.testi-monogram {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
}

.testi-text {
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.6;
}

.testi-stars {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 24px;
}
.testi-stars svg {
  width: 20px;
  height: 20px;
  fill: var(--text-main);
  color: var(--text-main);
}

/* ── FAQ ── */
#faq .container {
  display: flex;
  gap: 64px;
}

.faq-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.faq-left .heading-page {
  width: 100% !important;
}
.faq-left p {
  font-size: 16px;
  color: var(--text-body);
  max-width: 400px;
  line-height: 1.6;
}

.faq-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 12px;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  transition: background 0.2s;
}
.faq-question:hover {
  background: var(--color-primary-dim);
}
.faq-question h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.4;
}

.faq-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-subtle);
  transition: border-color var(--transition), color var(--transition);
}
.faq-icon svg {
  width: 14px;
  height: 14px;
}
.faq-item.open .faq-icon {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease,
    padding 0.3s ease;
  padding: 0 16px;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 0 16px 24px;
}
.faq-answer p {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.75;
  padding-left: 16px;
  border-left: 1px solid var(--color-primary);
}

/* ── ABOUT ME SECTION ── */
  #about {
    width: 100%;
    gap: 40px;
    display: flex;
    flex-direction: column;
  }

  #about h2 {
    margin-bottom: var(--gap-loose);
  }

  .cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }

   .cards-wrapper a {
    text-decoration: none;
    color: inherit;
   }

  .card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
  }

  .card-linkedin { background-image: url('/img/home-img/fractal-1.png'); }
  .card-fiverr   { background-image: url('/img/home-img/fractal-2.png'); }
  .card-social   { background-image: url('/img/home-img/fractal-3.png'); }

  .card-linkedin, .card-fiverr, .card-social {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 32px;
  }

  .icon-circle {
    width: 28px;
    height: 28px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.8rem;
  }

  .card-title {
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .card-title strong { font-weight: 700; }
  .card-title i { font-style: italic; font-weight: 300; }

  .card-desc-box {
    background-color: rgba(0, 0, 0, 0.2); 
    padding: 20px;
    border-radius: 4px;
    margin-top: 32px;
    height: 150px;
  }

  .card-desc-box p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
  }

/* ── CTA ── */
#cta {
  position: relative;
  display: flex;
  align-items: center; 
  justify-content: center;
  width: 100%;
  padding: 192px 24px;
  overflow: hidden;
}
#cta .cta-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-page);
}
#cta .cta-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  mix-blend-mode: screen;
  transform: scale(1.1);
}
#cta .cta-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  max-width: 900px;
}
#cta h2 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.1;
}
#cta h2 em {
  font-weight: 200;
  font-style: italic;
}
#cta p {
  font-size: 18px;
  color: var(--text-body);
  max-width: 500px;
  line-height: 1.6;
}
#cta .btn-purple {
  padding: 16px 32px;
  font-size: 16px;
  margin-top: 16px;
  box-shadow: 0 4px 30px rgba(146, 57, 223, 0.3);
}

