/* Home page */

.home-hero-area {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  margin-bottom: var(--grid-gap);
}

.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-2xl);
  background: var(--gradient-hero);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: rgba(0, 213, 190, 0.1);
  filter: blur(50px);
  pointer-events: none;
}

.home-hero__badge {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: var(--space-4);
}

.home-hero__title {
  position: relative;
  margin: 0 0 var(--space-6);
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: clamp(1.375rem, 2.35vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight-md);
  color: var(--color-text-inverse);
}

.home-hero__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.home-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}

.stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
}

.stat-card__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.home-stat--projects {
  background: var(--gradient-projects);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.home-stat--projects .stat-card__icon {
  position: static;
  margin: 0 0 var(--space-3);
}

.home-stat--experience {
  background-image: linear-gradient(135deg, #009689 0%, #00bc7d 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.home-stat--experience .stat-card__icon {
  position: static;
  margin: 0 0 var(--space-3);
}

.home-expertise .stat-card__icon,
.home-industries .stat-card__icon {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  margin: 0;
}

.home-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.home-stat .stat-card__value,
.home-industries .stat-card__value {
  font-size: clamp(1.625rem, 3.5vw, 2.8125rem);
}

.home-profile {
  position: relative;
  min-height: calc(8.75rem * 0.8);
  border-radius: var(--radius-2xl);
  background-color: var(--color-brand-green);
  box-shadow: var(--shadow-card-sm);
  overflow: hidden;
  margin: 0;
}

.home-profile img {
  width: 100%;
  height: 100%;
  min-height: calc(8.75rem * 0.8);
  object-fit: cover;
  object-position: center 20%;
}

.home-row-two {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  margin-bottom: var(--section-gap);
}

.home-expertise {
  background: var(--gradient-expertise);
  padding-top: 3.5rem;
}

.home-industries {
  background: var(--gradient-industries-bg);
  border: 1px solid var(--color-border-default);
  padding-top: 3.5rem;
}

.tag-list--industries {
  margin-top: var(--space-4);
}

.home-expertise__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-body);
  font-weight: var(--font-weight-bold);
  font-size: 2.125rem;
  line-height: var(--leading-tight);
  color: var(--color-text-inverse);
}

.home-about {
  padding: var(--card-padding);
}

.home-about__content {
  margin-top: var(--space-4);
}

.home-about__body {
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--color-text-primary);
}

.home-about__body + .home-about__body {
  margin-top: 0.9375rem;
}

.home-trusted {
  margin-bottom: var(--section-gap);
}

.home-trusted__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-trusted__item {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 8.875rem;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card-glass);
  border: 1px solid var(--color-border-default);
}

.home-trusted__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88%;
  max-width: 100%;
  height: 5rem;
}

.home-trusted__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.home-trusted__logo--google {
  max-height: 2.125rem;
  max-width: 68%;
}

.home-trusted__logo--massmutual {
  max-height: 4.5rem;
  max-width: 100%;
}

.home-trusted__logo-wrap--perfect {
  width: 88%;
  height: 5rem;
}

.home-trusted__logo--perfect {
  width: 100%;
  height: auto;
  max-height: 4.25rem;
}

.home-trusted__logo-wrap--bavaria {
  width: 78%;
  height: 3.75rem;
}

.home-trusted__logo--bavaria {
  width: 100%;
  max-height: 3.75rem;
  filter: brightness(0) invert(1);
  mix-blend-mode: lighten;
}

.home-trusted__logo--garanti {
  max-height: 3.75rem;
  max-width: 88%;
}

.home-trusted__logo--uvm {
  max-height: 3.75rem;
  max-width: 72%;
}

.home-work-samples {
  margin-bottom: var(--section-gap);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-2xl);
  background: var(--color-bg-card-subtle);
}

.home-work-samples__intro {
  margin-bottom: var(--space-5);
}

.home-work-samples__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-work-samples__list > li {
  min-width: 0;
}

.home-work-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 10rem;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-2xl);
  background: var(--color-bg-page);
  border: 1px solid var(--color-border-default);
  text-decoration: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.home-work-card:hover {
  border-color: var(--color-border-glass);
  transform: translateY(-1px);
}

.home-work-card__emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.home-work-card__footer {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  margin-top: auto;
}

.home-work-card__label {
  display: block;
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: clamp(1.625rem, 4.5vw, 2.125rem);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.home-work-card .icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.home-work-card .icon-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.home-certs {
  margin-bottom: var(--space-10);
}

.home-certs__intro {
  margin-bottom: var(--space-8);
}

.home-certs__panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-2xl);
  overflow-x: clip;
}

.home-certs__list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-certs__item {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  min-height: 3rem;
  min-width: 0;
}

.home-certs__icon {
  flex-shrink: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1;
  margin-top: 0.125em;
}

.home-certs__line {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--font-weight-normal);
  font-size: 1.125rem;
  line-height: 1.5;
  letter-spacing: normal;
  color: var(--color-text-primary);
}

.home-certs__title {
  display: block;
  font-weight: var(--font-weight-bold);
}

.home-certs__meta {
  display: block;
  margin-top: 0.125rem;
  font-weight: var(--font-weight-normal);
}

.home-certs__meta .home-certs__sep:first-child {
  margin-inline-start: 0;
}

.home-certs__sep {
  display: inline-block;
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-inline: 0.375rem;
  border: 2px solid var(--color-text-primary);
  border-radius: 50%;
  box-sizing: border-box;
  vertical-align: middle;
  position: relative;
  top: -0.0625em;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .home-hero-area {
    --home-hero-row-height: calc(18rem * 0.8);
  }

  .home-stat--experience,
  .home-profile {
    height: var(--home-hero-row-height);
    min-height: 0;
  }

  .home-profile img {
    min-height: 0;
  }
}

@media (min-width: 768px) {
  .home-trusted__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-work-samples__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .home-work-card {
    min-height: 13rem;
    padding: 1.875rem;
  }

  .home-work-card__emoji {
    font-size: 2.75rem;
  }

  .home-work-card__label {
    font-size: clamp(1.875rem, 1.75vw, 2.625rem);
    letter-spacing: -0.05em;
  }

  .home-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .home-about {
    grid-column: 1 / -1;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .home-hero-area {
    --home-hero-row-height: calc(22.375rem * 0.8);
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 0.85fr) minmax(0, 0.55fr);
    grid-template-rows: var(--home-hero-row-height);
    gap: var(--grid-gap);
    margin-bottom: var(--grid-gap);
    align-items: stretch;
  }

  .home-hero {
    height: var(--home-hero-row-height);
    min-height: 0;
    max-height: var(--home-hero-row-height);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2.4rem;
  }

  .home-stats-row {
    display: contents;
  }

  .home-stat--experience {
    height: var(--home-hero-row-height);
    min-height: 0;
    max-height: var(--home-hero-row-height);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1.75rem 1.5rem;
  }

  .home-profile {
    height: var(--home-hero-row-height);
    min-height: 0;
    max-height: var(--home-hero-row-height);
    overflow: hidden;
  }

  .home-profile img {
    min-height: 0;
  }

  .home-row-two {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.85fr);
    grid-template-rows: auto 1fr;
    align-items: stretch;
  }

  .home-about {
    grid-column: 1;
    grid-row: 1 / span 2;
    height: 100%;
    padding: 2rem 1.75rem;
  }

  .home-about__body {
    font-size: var(--text-lg);
    line-height: 1.72;
  }

  .home-about__body + .home-about__body {
    margin-top: 1rem;
  }

  .home-stat--projects {
    grid-column: 2;
    grid-row: 1;
    min-height: 12.5rem;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .home-expertise {
    grid-column: 2;
    grid-row: 2;
  }

  .home-industries {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .home-work-samples .section-heading {
    font-size: clamp(1.75rem, 4vw, 3rem);
  }

  .home-certs .section-heading {
    font-size: clamp(1.75rem, 4vw, 3rem);
  }

  .home-certs__panel {
    padding: 2rem;
  }

  .home-certs__item {
    align-items: center;
    min-height: 3.75rem;
    gap: 0.75rem;
  }

  .home-certs__icon {
    font-size: 2.25rem;
    margin-top: 0;
  }

  .home-certs__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4375rem;
    font-size: clamp(1rem, 1vw, 1.125rem);
  }

  .home-certs__title {
    display: inline;
  }

  .home-certs__meta {
    display: contents;
    margin-top: 0;
  }

  .home-certs__sep {
    display: block;
    width: 0.625rem;
    height: 0.625rem;
    margin-inline: 0;
    top: 0;
  }
}

@media (max-width: 767px) {
  .home-hero__actions {
    flex-wrap: nowrap;
    width: 100%;
    gap: var(--space-2);
  }

  .home-hero__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 0.875rem;
    font-size: var(--text-sm);
  }
}
