@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("https://fonts.googleapis.com/css?family=Quicksand:300,700,400");
* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
html,
body {
  margin: 0px;
  height: 100%;
}
/* a blue color as a generic focus style */
button:focus-visible {
  outline: 2px solid #4a90e2 !important;
  outline: -webkit-focus-ring-color auto 5px !important;
}
a {
  text-decoration: none;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --font: "Quicksand", Helvetica, sans-serif;
  --yellow: #fdda00;
  --amber: #c26700;
  --white: #ffffff;
  --black: #000000;
  --grey-text: #575757;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  font-family: var(--font);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   LOAD ANIMATION
   ============================================================ */
@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card {
  opacity: 0;
  animation: cardFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.project-card:nth-child(1) {
  animation-delay: 0.05s;
}
.project-card:nth-child(2) {
  animation-delay: 0.12s;
}
.project-card:nth-child(3) {
  animation-delay: 0.19s;
}
.project-card:nth-child(4) {
  animation-delay: 0.26s;
}
.project-card:nth-child(5) {
  animation-delay: 0.33s;
}
.project-card:nth-child(6) {
  animation-delay: 0.4s;
}
.project-card:nth-child(7) {
  animation-delay: 0.47s;
}
.project-card:nth-child(8) {
  animation-delay: 0.54s;
}
.project-card:nth-child(9) {
  animation-delay: 0.61s;
}

a:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 40px;
  background: #fff;
  position: relative;
  z-index: 10;
}

.mask-group {
  width: 131px;
  height: 131px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.jana-soroczak {
  margin: 28px 0 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--black);
  font-size: 40px;
  text-align: center;
  letter-spacing: 0;
  line-height: 46px;
  white-space: nowrap;
}

.leading-accessible {
  margin: 14px 0 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--grey-text);
  font-size: 23px;
  text-align: center;
  letter-spacing: 0;
  line-height: 24px;
  white-space: nowrap;
}

/* NAV */
.profile-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 32px;
  margin-top: 20px;
  width: 100%;
  max-width: 564px;
}

.nav-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.nav-link {
  font-family: var(--font);
  font-weight: 700;
  color: var(--amber);
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  text-align: center;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--amber);
  border-radius: 1px;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  opacity: 1;
}

/* ============================================================
   PROJECTS GRID
   ============================================================ */
.projects-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

/* ============================================================
   PROJECT CARD BASE
   ============================================================ */
.project-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.project-card:active {
  transform: translateY(-2px) scale(0.985);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition-duration: 0.1s;
}

/* tall row (first 3) */
.card-tall {
  aspect-ratio: 553 / 554;
}

/* medium row (last 6) */
.card-medium {
  aspect-ratio: 553 / 554;
}

/* -------- full-bleed gradient background -------- */
.card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.card-bg--healthcare {
  background: linear-gradient(137deg, #6816af 0%, #3a0469 100%);
}
.card-bg--fintech {
  background: linear-gradient(137deg, #204029 0%, #316f17 100%);
}
.card-bg--aiinsights {
  background: linear-gradient(135deg, #005288 0%, #d7652c 100%);
}
.card-bg--employee {
  background: linear-gradient(140deg, #6f1a11 12%, #3656dc 100%);
}
.card-bg--mckinsey {
  background: linear-gradient(156deg, #001d32 0%, #02286c 81%);
}
.card-bg--marketplace {
  background: linear-gradient(206deg, #dc4731 0%, #922e27 100%);
}
.card-bg--policies {
  background: linear-gradient(225deg, #6e7784 0%, #2f425c 100%);
}
.card-bg--elearning {
  background: linear-gradient(135deg, #003a51 0%, #008bb1 100%);
}
.card-bg--trip {
  background: linear-gradient(310deg, #d74e2b 0%, #6f2300 100%);
}

/* -------- year / NEW badge -------- */
.card-badge {
  position: absolute;
  top: 20px;
  right: 16px;
  z-index: 2;
}

.card-badge span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  padding: 5px 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  color: var(--black);
  line-height: normal;
}

.card-badge--new span {
  background: rgba(255, 255, 255, 1);
}

/* -------- text content -------- */
.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: clamp(16px, 3%, 32px);
  width: min(100%, 260px);
  max-width: 100%;
}

.card-category {
  font-family: var(--font);
  font-weight: 700;
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0;
  line-height: normal;
  margin: 0;
  white-space: nowrap;
  text-transform: uppercase;
}

.card-desc {
  font-family: var(--font);
  font-weight: 400;
  color: var(--white);
  font-size: 16px;
  line-height: 25px;
  letter-spacing: 0;
  margin: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-weight: 700;
  color: var(--yellow);
  font-size: 15px;
  line-height: 22px;
  letter-spacing: 0;
  white-space: nowrap;
  margin: 0;
  position: relative;
  padding-bottom: 2px;
  width: fit-content;
}

.card-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--yellow);
  border-radius: 1px;
  opacity: 0.33;
  transition: opacity 0.2s ease;
}

.project-card:hover .card-link::after {
  opacity: 1;
}

/* lock icon sizing */
.lock-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 1px;
}

/* ============================================================
   TABLET  641 – 1024 px
   ============================================================ */
@media (min-width: 641px) and (max-width: 1024px) {
  .jana-soroczak {
    font-size: clamp(22px, 3.5vw, 36px);
    white-space: normal;
    line-height: 1.2;
  }

  .leading-accessible {
    font-size: clamp(16px, 2.5vw, 20px);
    white-space: normal;
    line-height: 1.4;
  }

  .projects-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-tall,
  .card-medium {
    aspect-ratio: 1 / 1;
  }

  /* last card spans full width when count leaves a lone item */
  /* aspect-ratio 1/1 at full 2-col width would be 2× too tall;
     halving the ratio (1/0.5 = 2/1 inverted → width:height = 2:1)
     makes it the same pixel height as a 1-col square card */
  .project-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
  }
}

/* ============================================================
   MOBILE  ≤ 640 px
   ============================================================ */
@media (max-width: 640px) {
  .site-header {
    padding: 36px 16px 28px;
  }

  .mask-group {
    width: 100px;
    height: 100px;
  }

  .jana-soroczak {
    font-size: clamp(20px, 6vw, 28px);
    margin-top: 20px;
    white-space: normal;
    line-height: 1.2;
  }

  .leading-accessible {
    font-size: clamp(14px, 4vw, 18px);
    white-space: normal;
    line-height: 1.4;
  }

  .profile-nav {
    gap: 6px 20px;
    margin-top: 16px;
  }

  .nav-link {
    font-size: 16px;
  }

  .projects-section {
    grid-template-columns: 1fr;
  }

  .card-tall,
  .card-medium {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .card-content {
    padding: 24px 20px;
    width: min(100%, 220px);
    gap: 20px;
  }

  .card-desc {
    font-size: 16px;
    line-height: 22px;
  }

  .card-link {
    font-size: 16px;
  }

  .card-badge {
    top: 14px;
    right: 14px;
  }
}
