:root {
  --black: #000000;
  --white: #ffffff;
  --fourB: #4b4b4b;
  --twoSeven: #272727;
  --eightNine: #898989;
  --sevenZero: #707070;
  --bgColorBlack: #2e2e2e;
  --accentA: #b8b8b8;
  /* light silver */
  --accentB: #5c5c5c;
  /* dark silver */
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: linear-gradient(90deg, var(--bgColorBlack), var(--twoSeven));
  color: var(--white);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
  line-height: 1.6;
  overflow: hidden;
  /* only .appMain scrolls */
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  opacity: 0.9;
}

a:visited {
  color: inherit;
  opacity: 0.95;
}

.container {
  width: 100%;
  margin: 0;
  padding-inline: 8px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 16px;
  }
}

/* --- Splash --- */
.splash {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bgColorBlack);
  z-index: 999;
}

.splash__box {
  width: 180px;
}

.splash__bar {
  height: 4px;
  background: var(--black);
  border-radius: 999px;
  overflow: hidden;
}

.splash__barFill {
  height: 100%;
  width: 0%;
  background: var(--white);
  border-radius: 999px;
}

.splash__percent {
  margin-top: 12px;
  text-align: center;
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1), -2px -2px 10px rgba(0, 0, 0, 1);
}

#appRoot[hidden] {
  display: none;
}

/* --- AppPage layout (Row) --- */
.appRow {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.appSpacer {
  flex: 0 0 16px;
}

.gap05 {
  flex: 0 0 24px;
}

/* Main scroll container (your PageView area) */
.appMain {
  flex: 1 1 auto;
  min-width: 0;

  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scroll-snap-type: none;
  scroll-padding-top: 110px;
  /* paging handled via JS to prevent trackpad skipping */
}

/* Sections act like pages (Flutter PageView children) */
.section {
  min-height: 100vh;
  height: auto;
  /* grow with content so nothing gets cut off or overlaps */
  scroll-margin-top: 110px;
  /* helps when clicking nav */
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Above mobile the nav is sticky (110px), so a "page" is the space below it */
@media (min-width: 768px) {
  .section {
    min-height: calc(100vh - 110px);
  }
}

.section:last-child {
  border-bottom: none;
}

/* On phones, content can be taller than 100vh (cards, lists). Allow sections to grow
   so they don't visually overlap the next section. */
@media (max-width: 767px) {
  .section {
    height: auto;
    padding-bottom: 24px;
    /* a little breathing room between sections */
  }
}

.section__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-block: 40px;
  padding-inline: 12px;
}

@media (min-width: 768px) {
  .section__inner {
    padding-inline: 24px;
  }
}

@media (min-width: 1400px) {
  .section__inner {
    padding-inline: 32px;
  }
}

.section h1,
.section h2 {
  margin: 0 0 14px 0;
  line-height: 1.15;
}

.muted {
  color: var(--eightNine);
}

/* --- Social rail (left) --- */
.socialRail {
  display: none;
}

.socialRail__inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.socialRail__anim {
  animation: socialPop 200ms ease-out both;
  transform-origin: center;
}

@keyframes socialPop {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.socialRail__topSpacer,
.socialRail__bottomSpacer {
  flex: 1 1 auto;
}

.socialRail__follow {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  transform: rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;

  /* Prevent overlap with the vertical line (Chrome debug can differ from preview) */
  margin-bottom: 60px;
  letter-spacing: 0.3px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(46, 46, 46, 0.92);

  line-height: 1;
  position: relative;
  z-index: 2;
}

.socialRail__line {
  width: 3px;
  height: 6vh;
  margin: 6px 0 12px 0;
  /* no top margin so it doesn't collide with rotated text */
  background: var(--white);
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

.socialRail__icons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.socialBtn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.15);
  display: grid;
  place-items: center;
}

.socialBtn img {
  width: 22px;
  height: 22px;
}

.socialBtn:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* show rail on desktop */
@media (min-width: 1024px) {
  .socialRail {
    display: block;
  }
}

/* spacing sanity */
@media (min-width: 1400px) {
  .appSpacer {
    flex-basis: 24px;
  }

  .gap05 {
    flex-basis: 32px;
  }
}

@media (max-width: 560px) {
  .appSpacer {
    flex-basis: 16px;
  }

  .gap05 {
    display: none;
  }
}

/* --- Top Navigation (Flutter TopNavigationBar equivalent) --- */
.topNav {
  position: sticky;
  top: 0;
  z-index: 20;

  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;

  background: linear-gradient(180deg,
      rgba(46, 46, 46, 0.95),
      rgba(46, 46, 46, 0.7) 60%,
      rgba(46, 46, 46, 0));
  backdrop-filter: blur(6px);
}

.topNav__brand {
  font-size: 22px;
  font-weight: 700;
  flex: 0 0 auto;
}

/* --- Mobile Hamburger Menu --- */
.hamburger {
  display: none;
  /* shown <1024px */
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
}

.hamburger__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
}

.hamburger:hover {
  background: rgba(0, 0, 0, 0.25);
}

.mobileMenu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.mobileMenu.isOpen {
  display: block;
}

.mobileMenu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.mobileMenu__panel {
  position: absolute;
  right: 12px;
  top: 72px;
  width: min(360px, calc(100% - 24px));
  background: var(--bgColorBlack);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.mobileMenu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobileMenu__title {
  font-weight: 700;
}

.mobileMenu__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
}

.mobileMenu__nav {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.mobileMenu__link {
  display: block;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.mobileMenu__link:hover {
  background: rgba(0, 0, 0, 0.22);
}

.mobileMenu__link.isActive {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
}

/* Under 1024: hide desktop links, show hamburger, hide CV (your requirement) */
@media (max-width: 1023px) {
  .topNav__center {
    display: none !important;
  }

  .hamburger {
    display: inline-flex !important;
  }

  .topNav__right {
    display: none !important;
  }
}

/* Desktop center links */
.topNav__center {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1 1 auto;
  justify-content: center;
}

.topNav__link {
  position: relative;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  font-size: 16px;
  padding-bottom: 6px;
}

.topNav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accentA), var(--accentB));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
  opacity: 0.75;
}

.topNav__link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.topNav__link.isActive {
  color: rgba(255, 255, 255, 0.92);
}

.topNav__link.isActive::after {
  transform: scaleX(1);
}

/* Right: CV (desktop only) */
.topNav__right {
  flex: 0 0 auto;
}

/* CV button */
.cvBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 64px;
  border-radius: 32px;
  border: 1px solid var(--sevenZero);
  background: linear-gradient(90deg, var(--eightNine), var(--twoSeven));
  font-weight: 500;
  font-size: 16px;
}

.cvBtn--nav {
  padding: 14px 48px;
  border-radius: 999px;
}

.cvBtn:hover {
  opacity: 0.92;
}

/* --- Education / Experience --- */
/* Logos in Education / Experience */
.eduLogo {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;

  width: 110px;
  /* logoyu büyüttüğün için */
  height: 52px;

  opacity: 0.92;
  pointer-events: none;

  background: rgba(46, 46, 46, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 8px 10px;
}

/* --- Education: mobile fixes (prevent cramped header + logo overlap) --- */
@media (max-width: 767px) {

  /* Remove the reserved right space used on desktop for the floating logo */
  .timelineItem {
    --eduLogoSpace: 0px;
    display: flex;
    flex-direction: column;
  }

  .timelineItem__header,
  .timelineItem__title {
    padding-right: 0;
  }

  .eduLogo {
    position: static;
    align-self: flex-end;
    width: 64px;
    height: auto;
    margin: 0 0 10px 0;

    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .eduLogo img {
    width: 64px;
    height: auto;
    object-fit: contain;
  }

  /* Allow long titles/subtitles to wrap nicely */
  .timelineItem__title {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .timelineItem__sub {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .timelineItem__when {
    font-size: 13px;
  }

  .timelineItem__title {
    font-size: 18px;
    line-height: 1.25;
  }

  /* Table readability on phones */
  .simpleTable th,
  .simpleTable td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

.eduLogo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.expLogo {
  width: 152px;
  height: 44px;
  margin-bottom: 12px;
  opacity: 0.95;
}

.expLogo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}



/* Small detail helpers */
.timelineItem__meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.metaPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.14);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.metaDot {
  color: rgba(255, 255, 255, 0.35);
}

.metaText {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 400;
}

.timelineItem__list {
  margin: 12px 0 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
}

.chipRow {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.topNav>.topNav__brand {
  letter-spacing: 0.2px;
}

.socialRail__line+.socialRail__icons {
  margin-top: 4px;
}

.timelineItem:nth-child(2) {
  background: rgba(0, 0, 0, 0.16);
}

.floatBadge {
  float: right;
  margin-left: 12px;
  margin-top: 2px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.16);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
}

.card::after {
  content: "";
  display: block;
  clear: both;
}

/* --- Table (Rubric) --- */
.tableWrap {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.10);
}

.simpleTable {
  width: 100%;
  border-collapse: collapse;
}

.simpleTable th,
.simpleTable td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  font-weight: 300;
}

.simpleTable th {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
}

.simpleTable tr:last-child td {
  border-bottom: none;
}

@media (max-width: 560px) {
  .tableWrap {
    overflow-x: auto;
  }

  .simpleTable {
    min-width: 520px;
  }
}

/* --- Contact Form (Rubric) --- */
.contact__lead {
  margin-top: 6px;
  max-width: 680px;
}

.contactForm {
  margin-top: 18px;
  margin-bottom: 40px;
  max-width: 720px;
  display: grid;
  gap: 14px;
}

.formRow {
  display: grid;
  gap: 8px;
}

.formLabel {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.formInput,
.formTextarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.14);
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 16px;
  outline: none;
}

.formInput:focus,
.formTextarea:focus {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.formTextarea {
  resize: vertical;
}

.cvBtn--accent {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(90deg, var(--eightNine), var(--twoSeven));
}

.formNote {
  min-height: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.formNote.isError {
  color: rgba(255, 255, 255, 0.9);
}

.card__foot {
  margin-top: 14px;
}

.timeline {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.timelineItem {
  position: relative;
  --eduLogoSpace: 170px;

  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  max-width: 100%;
  overflow: hidden;
}

.timelineItem__when {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 500;
}

.timelineItem__title {
  margin-top: 6px;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  padding-right: var(--eduLogoSpace);

  /* prevent horizontal overflow on narrow screens */
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.timelineItem__sub {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

.cards {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--fourB);
  border-radius: 20px;
  padding: 18px;
}

.card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.card__title {
  font-weight: 800;
  font-size: 20px;
}

.card__when {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  white-space: nowrap;
}

.card__sub {
  margin-top: 6px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.card__list {
  margin: 12px 0 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

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

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Home --- */
.home__desc {
  margin: 40px 0 0 0;
  font-weight: 300;
  max-width: 680px;
}

/* Hero Title (Flutter-like: ghost text on the left + main text on the right)
   Goal: ALWAYS 2 lines:
   1) Reflecting  My Passion
   2) into        Applications!
*/
.heroTitle {
  margin-top: 12px;

  /* spacing between ghost and main text per row */
  --hero-gap-1: clamp(10px, 2.0vw, 84px);
  --hero-gap-2: clamp(10px, 1.8vw, 72px);

  /* one font size source for both ghost & main */
  --hero-size: clamp(56px, 6.6vw, 120px);
}

.heroTitle__row {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  /* never wrap inside a row */
  white-space: nowrap;
  /* keep each row on one line */
  line-height: 1;
  min-width: 0;
}

.heroTitle__row--first {
  gap: var(--hero-gap-1);
}

.heroTitle__row--second {
  gap: var(--hero-gap-2);
}

.heroTitle__ghost,
.heroTitle__main {
  font-size: var(--hero-size);
  font-weight: 800;
}

.heroTitle__ghost {
  pointer-events: none;
  display: inline-block;
  -webkit-text-fill-color: transparent;

  /* Gradient left -> right */
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.12) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* Crisp outline (less “blurry” than multi-shadow) */
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
}

.heroTitle__main {
  color: var(--white);
}

/* --- Responsive (match your Flutter breakpoints) --- */
@media (max-width: 560px) {
  .heroTitle {
    --hero-size: 24px;
    --hero-gap-1: clamp(10px, 4.4vw, 44px);
    --hero-gap-2: clamp(10px, 4.4vw, 44px);
  }

  .home__desc {
    font-size: 12px;
    max-width: 80vw;
  }
}

@media (min-width: 561px) and (max-width: 767px) {
  .heroTitle {
    --hero-size: 36px;
    --hero-gap-1: clamp(12px, 4.6vw, 72px);
    --hero-gap-2: clamp(12px, 4.6vw, 72px);
  }

  .home__desc {
    font-size: 16px;
    max-width: 80vw;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .heroTitle {
    --hero-size: 52px;
    --hero-gap-1: clamp(14px, 4.5vw, 96px);
    --hero-gap-2: clamp(14px, 4.3vw, 90px);
  }

  .home__desc {
    font-size: 20px;
    max-width: 600px;
  }
}

@media (min-width: 1024px) and (max-width: 1399px) {

  /* Fix the 1024+ case where "My Passion" was overflowing */
  .heroTitle {
    --hero-size: clamp(56px, 5.8vw, 104px);
    --hero-gap-1: clamp(16px, 2.9vw, 96px);
    --hero-gap-2: clamp(16px, 2.5vw, 84px);
  }

  .home__desc {
    font-size: 24px;
    max-width: 680px;
  }
}

@media (min-width: 1400px) {
  .heroTitle {
    --hero-size: clamp(90px, 6.8vw, 128px);
    --hero-gap-1: clamp(18px, 3.0vw, 112px);
    --hero-gap-2: clamp(16px, 2.6vw, 92px);
  }

  .home__desc {
    font-size: 24px;
    max-width: 748px;
  }
}

/* --- Personal --- */
.personal__wrap {
  padding-top: 16px;
  padding-bottom: 32px;

  display: flex;
  flex-direction: column;
  gap: 32px;
}

.personal__left {
  max-width: 80vw;
}

.personal__name {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
}

.personal__role {
  margin-top: 6px;
  line-height: 1.2;
}

.personal__about {
  margin: 20px 0 48px 0;
  font-weight: 300;
  line-height: 1.33;
}

/* Avatar */
.personal__avatar {
  border-radius: 40px;
  overflow: hidden;
}

.personal__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.personal__avatar--small {
  width: 20vw;
  height: 20vw;
  max-width: 140px;
  max-height: 140px;
  margin-bottom: 32px;
}

.personal__avatar--large {
  width: min(520px, 40vw);
  aspect-ratio: 1 / 1;
}

.personal__right {
  display: none;
}

/* Info rows */
.infoRow {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
}

.infoRow--phone {
  padding-top: 24px;
}

.infoRow__label {
  flex: 0 0 72px;
  font-weight: 500;
}

.infoRow__value {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
}

.divider {
  height: 1px;
  background: var(--sevenZero);
}

@media (max-width: 560px) {
  .personal__name {
    font-size: 24px;
  }

  .personal__role {
    font-size: 24px;
  }

  .personal__about {
    font-size: 12px;
  }

  .infoRow__label {
    flex-basis: 72px;
    font-size: 14px;
  }

  .infoRow__value {
    font-size: 12px;
  }
}

@media (min-width: 561px) and (max-width: 767px) {
  .personal__name {
    font-size: 32px;
  }

  .personal__role {
    font-size: 28px;
  }

  .personal__about {
    font-size: 14px;
  }

  .infoRow__label {
    flex-basis: 84px;
    font-size: 16px;
  }

  .infoRow__value {
    font-size: 14px;
  }

  .infoRow--phone {
    padding-top: 32px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .personal__name {
    font-size: 48px;
  }

  .personal__role {
    font-size: 32px;
  }

  .personal__about {
    font-size: 16px;
  }

  .infoRow__label {
    flex-basis: 104px;
    font-size: 20px;
  }

  .infoRow__value {
    font-size: 16px;
  }

  .infoRow--phone {
    padding-top: 48px;
  }
}

@media (min-width: 1024px) and (max-width: 1399px) {
  .personal__wrap {
    padding-top: 44px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
  }

  .personal__left {
    width: 46vw;
    max-width: 640px;
  }

  .personal__right {
    display: block;
    margin-left: 48px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .personal__avatar--small {
    display: none;
  }

  .personal__name {
    font-size: 60px;
  }

  .personal__role {
    font-size: 40px;
  }

  .personal__about {
    font-size: 20px;
  }

  .infoRow__label {
    flex-basis: 112px;
    font-size: 22px;
  }

  .infoRow__value {
    font-size: 18px;
  }

  .infoRow--phone {
    padding-top: 52px;
  }
}

@media (min-width: 1400px) {
  .personal__wrap {
    padding-top: 72px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
  }

  .personal__left {
    width: 46vw;
    max-width: 720px;
  }

  .personal__right {
    display: block;
    margin-left: 64px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .personal__avatar--small {
    display: none;
  }

  .personal__name {
    font-size: 72px;
  }

  .personal__role {
    font-size: 48px;
  }

  .personal__about {
    font-size: 24px;
  }

  .infoRow__label {
    flex-basis: 120px;
    font-size: 24px;
  }

  .infoRow__value {
    font-size: 20px;
  }

  .infoRow--phone {
    padding-top: 60px;
  }
}

/* --- Skills --- */
.skillsGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.skillCard {
  padding: 12px 12px 12px 0;
}

.skillNum {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 700;
  line-height: 1;
}

.skillHead {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skillIcon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.skillName {
  font-weight: 500;
}

.skillDesc {
  margin: 6px 0 0 0;
  font-weight: 300;
}

@media (max-width: 560px) {
  .skillNum {
    font-size: 28px;
  }

  .skillName {
    font-size: 18px;
  }

  .skillDesc {
    font-size: 12px;
  }
}

@media (min-width: 561px) and (max-width: 767px) {
  .skillNum {
    font-size: 32px;
  }

  .skillName {
    font-size: 20px;
  }

  .skillDesc {
    font-size: 14px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .skillNum {
    font-size: 40px;
  }

  .skillName {
    font-size: 24px;
  }

  .skillDesc {
    font-size: 16px;
  }
}

@media (min-width: 1024px) and (max-width: 1399px) {
  .skillNum {
    font-size: 44px;
  }

  .skillName {
    font-size: 28px;
  }

  .skillDesc {
    font-size: 18px;
  }

  .skillsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 12px;
  }

  .skillCard {
    min-height: 120px;
  }
}

@media (min-width: 1400px) {
  .skillNum {
    font-size: 48px;
  }

  .skillName {
    font-size: 32px;
  }

  .skillDesc {
    font-size: 20px;
  }

  .skillsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skillCard {
    min-height: 110px;
  }
}

/* --- Projects --- */
.projects__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.projectCard {
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  padding: 24px 20px 24px 16px;
  background: var(--fourB);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  color: var(--white);
}

.projectCard:hover {
  opacity: 0.96;
}

.projectCard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.projectCard__num {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.projectCard__hint {
  font-size: 16px;
}

.projectCard__spacer {
  flex: 1 1 auto;
}

.projectCard__name {
  font-weight: 500;
  line-height: 1;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.projectCard__desc {
  font-weight: 300;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

@media (max-width: 560px) {
  .projects__grid {
    grid-template-columns: 1fr;
  }

  .projectCard__num {
    font-size: 24px;
  }

  .projectCard__name {
    font-size: 20px;
  }

  .projectCard__desc {
    font-size: 10px;
    -webkit-line-clamp: 4;
  }
}

@media (min-width: 561px) and (max-width: 767px) {
  .projects__grid {
    grid-template-columns: 1fr;
  }

  .projectCard__num {
    font-size: 28px;
  }

  .projectCard__name {
    font-size: 24px;
  }

  .projectCard__desc {
    font-size: 12px;
    -webkit-line-clamp: 6;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projectCard__num {
    font-size: 32px;
  }

  .projectCard__name {
    font-size: 24px;
  }

  .projectCard__desc {
    font-size: 12px;
    -webkit-line-clamp: 5;
  }
}

@media (min-width: 1024px) and (max-width: 1399px) {
  .projects__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .projectCard__num {
    font-size: 36px;
  }

  .projectCard__name {
    font-size: 28px;
  }

  .projectCard__desc {
    font-size: 14px;
    -webkit-line-clamp: 3;
  }
}

@media (min-width: 1400px) {
  .projects__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .projectCard__num {
    font-size: 40px;
  }

  .projectCard__name {
    font-size: 32px;
  }

  .projectCard__desc {
    font-size: 16px;
    -webkit-line-clamp: 4;
  }
}

/* --- Education: tablet / narrow desktop fixes --- */
@media (max-width: 1023px) {
  .timelineItem {
    /* reduce the reserved space for the floating logo */
    --eduLogoSpace: 120px;
  }

  .eduLogo {
    width: 84px;
    height: 40px;
    top: 14px;
    right: 14px;
    padding: 6px 8px;
  }
}

/* --- Footer --- */
/* Contact fills the page and pins the footer to its bottom */
.section.contact {
  padding-bottom: 0;
}

.contact .section__inner {
  display: flex;
  flex-direction: column;
  min-height: inherit;
  padding-bottom: 0;
}

.siteFooter {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(46, 46, 46, 0.6), rgba(46, 46, 46, 0.95));
}

.siteFooter__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.siteFooter__dot {
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 560px) {
  .siteFooter__inner {
    font-size: 12px;
    padding: 12px;
    text-align: center;
    flex-wrap: wrap;
  }
}