/* Independent presentation layer: Sass rebuilds leave this stylesheet intact. */
@font-face {
  font-family: Manrope;
  src: url('../assets/fonts/Manrope.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #23272f;
  --header: #1d2129;
  --surface: #2b313b;
  --surface-soft: #303743;
  --text: #f6f7f9;
  --secondary: #b7c0ce;
  --lead: #c6d5e5;
  --border: #414957;
  --accent: #58c4dc;
  --accent-soft: #58c4dc12;
  --image: #e9eef2;
  --shadow: 0 12px 28px #10141b24;
}
:root[data-theme='light'] {
  color-scheme: light;
  --page: #f6f7f9;
  --header: #ffffff;
  --surface: #ffffff;
  --surface-soft: #edf1f5;
  --text: #23272f;
  --secondary: #596477;
  --lead: #46566a;
  --border: #dce2e9;
  --accent: #087ea4;
  --accent-soft: #087ea40b;
  --image: #e9eef2;
  --shadow: 0 12px 28px #23272f08;
}
html { font-size: 62.5%; scroll-padding-top: 11rem; }
body { background: var(--page); color: var(--text); font-family: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 1.6rem; line-height: 1.75; }
a { transition: color .15s, background-color .15s; }
.main-container { width: calc(100% - 8rem); max-width: 116rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header); border-bottom: 1px solid var(--border); }
.site-header__inner { min-height: 8rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-name { display: inline-flex; align-items: center; gap: 1.2rem; color: var(--text); font-size: 1.8rem; font-weight: 700; letter-spacing: -.05rem; white-space: nowrap; }
.site-avatar { display: block; width: 4.6rem; height: 4.6rem; object-fit: cover; border: 2px solid var(--border); border-radius: 50%; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: .5rem; }
.site-nav > a { color: var(--secondary); font-size: 1.4rem; font-weight: 600; border-radius: 2rem; padding: .8rem 1.4rem; }
.site-nav > a:hover { color: var(--accent); background: var(--accent-soft); }
.site-nav .social-link, .theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 4.2rem; height: 4.2rem; padding: 1rem; border-radius: 50%; }
.social-link img { width: 2rem; height: 2rem; display: block; opacity: .85; }
[data-theme='light'] .social-link img { filter: brightness(0); opacity: .7; }
.theme-toggle { color: var(--accent); background: transparent; border: 1px solid var(--border); margin-left: .8rem; cursor: pointer; }
.theme-toggle:hover { background: var(--accent-soft); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 2rem; height: 2rem; }
.theme-icon-moon, [data-theme='light'] .theme-icon-sun { display: none; }
[data-theme='light'] .theme-icon-moon { display: block; }
.portfolio-intro { padding: 6rem 0 6.4rem; background: radial-gradient(ellipse at 50% 0%, var(--accent-soft), transparent 72%); }
.portfolio-intro__copy { display: block; max-width: 88rem; margin: auto; text-align: center; }
.portfolio-intro h1 { color: var(--text); font-size: clamp(3.6rem, 4vw, 4.8rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.15; margin: 0 0 2.6rem; }
.about__content-details-para { color: var(--secondary); font-size: 1.7rem; line-height: 1.8; margin: 2rem auto 0; max-width: 72rem; }
.about__content-details-para:first-child { color: var(--text); font-size: 1.95rem; line-height: 1.85; max-width: 88rem; margin-top: 0; }
.about__content-details-para:last-child { margin-bottom: 0; }
.sec-pad { padding: 0 0 7rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; padding: 3rem 0; border-top: 1px solid var(--border); }
.section-heading h2 { color: var(--text); font-size: 3rem; line-height: 1.25; font-weight: 800; letter-spacing: -.035em; }
.selected-projects { display: grid; gap: 2.8rem; }
.project-card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 2rem; overflow: hidden; box-shadow: var(--shadow); }
.project-card--selected { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); gap: 3.6rem; padding: 3.6rem; align-items: center; }
.project-card__image { display: flex; align-items: center; justify-content: center; padding: 2.4rem; min-width: 0; background: var(--image); }
.project-card--selected .project-card__image { order: 2; min-height: 26rem; border-radius: 1.2rem; }
.project-card__image img { width: 100%; max-height: 30rem; object-fit: contain; display: block; }
.project-card__body { min-width: 0; padding: 2.8rem; }
.project-card--selected .project-card__body { padding: 0; order: 1; }
.project-card__meta { color: var(--secondary); font-size: 1.2rem; line-height: 1.7; margin-bottom: 1.2rem; }
.project-card__meta:empty { display: none; }
.project-card__meta span { padding: 0 .5rem; opacity: .55; }
.project-card h3 { font-size: 2.5rem; line-height: 1.3; font-weight: 750; letter-spacing: -.035em; color: var(--text); margin-bottom: 1.8rem; }
.project-card h3 a:hover { color: var(--accent); }
.project-card__arrow { display: inline-block; color: var(--accent); margin-left: .6rem; font-size: 1.8rem; font-weight: 500; }
.project-card__description, .project-card__description p { max-width: none; color: var(--secondary); font-size: 1.5rem; line-height: 1.8; margin: 0; }
.project-card__description p + p { margin-top: 1.4rem; }
.project-card__description > p:first-child strong,
.project-details__tools-used > .projects__row-content-desc2:first-of-type > strong:only-child { color: var(--lead); font-weight: 600; }
.project-status { display: inline-flex; align-items: center; gap: .6rem; max-width: 100%; padding: .35rem .8rem; margin: 0 0 1.3rem; border: 1px solid var(--border); border-radius: .6rem; background: var(--surface-soft); color: var(--secondary); font-size: 1.1rem; line-height: 1.5; }
.project-status svg { flex-shrink: 0; }
.project-tags { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }
.project-tags li { border: 1px solid var(--border); background: var(--surface-soft); color: var(--secondary); border-radius: 2rem; font-size: 1.1rem; padding: .3rem .9rem; }
.section-heading--other { margin-top: 6rem; }
.other-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; align-items: stretch; }
.other-projects .project-card__image { height: 20rem; }
.other-projects .project-card__image img { height: 100%; }
.other-projects h3 { font-size: 2rem; }
.other-projects .project-card__body { padding: 2.4rem; }
.technical-stack__groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem; }
.skill-group { padding: 2rem; border: 1px solid var(--border); border-radius: 1.2rem; background: var(--surface); }
.skill-group h3 { font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.skill-group p { color: var(--secondary); font-size: 1.35rem; line-height: 1.9; }
.project-details__content { max-width: 90rem; padding: 4rem 0 7rem; }
.project-back { display: inline-block; color: var(--accent); font-size: 1.4rem; margin-bottom: 3rem; }
.project-back:hover { text-decoration: underline; }
.project-details__content-title--big { color: var(--text); font-size: clamp(3rem, 4vw, 4.8rem); font-weight: 800; line-height: 1.2; letter-spacing: -.04em; margin-bottom: 2.4rem; }
.project-details__desc { margin: 0 0 3rem; }
.project-details__desc-para { color: var(--secondary); font-size: 1.4rem; line-height: 1.9; margin-bottom: 0; }
.project-details__desc-para strong { color: var(--text); font-weight: 600; }
.project-details__content > [class^='project-details__showcase-img-cont'] { width: 100%; margin: 0 0 4rem; padding: 3rem; border: 1px solid var(--border); background: var(--image); border-radius: 2rem; }
.project-details__content > [class^='project-details__showcase-img-cont'] img { max-height: 32rem; object-fit: contain; }
.project-details__content-main { width: 100%; max-width: 76rem; }
.project-details__content-title { color: var(--text); font-size: 2.5rem; font-weight: 750; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 2rem; }
.project-details__tools-used { padding-top: 3rem; margin-bottom: 4rem; border-top: 1px solid var(--border); }
.project-details__content-main .projects__row-content-desc,
.project-details__content-main .projects__row-content-desc2,
.project-details__desc-list { color: var(--secondary); font-size: 1.6rem; line-height: 1.85; max-width: none; margin-bottom: 1.8rem; }
.project-details__desc-list li + li { margin-top: 1rem; }
.project-details__showcase-img-cont3 { margin: 2.4rem 0; }
.project-details__showcase-img-cont3 + .project-details__showcase-img-cont3 { margin-top: 2.4rem; }
.project-details__showcase-img { display: block; max-width: 100%; height: auto; }
.skills { gap: .7rem; }
.skills__skill { margin: 0; padding: .5rem 1rem; font-size: 1.3rem; font-weight: 500; background: var(--surface-soft); color: var(--secondary); border-radius: 2rem; }
.project-details__links .btn { background: transparent; color: var(--accent); border: 1px solid var(--border); border-radius: 2rem; box-shadow: none; padding: .7rem 1.6rem; text-transform: none; letter-spacing: 0; font-size: 1.4rem; font-weight: 600; margin: 0 1rem 1rem 0; width: auto; transform: none; }
@media (max-width: 900px) {
  .main-container { width: calc(100% - 4.8rem); }
  .project-card--selected { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); gap: 2.4rem; padding: 2.4rem; }
  .project-card--selected .project-card__image { min-height: 20rem; padding: 1.6rem; }
  .other-projects, .technical-stack__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav > a { padding: .8rem 1rem; }
}
@media (max-width: 700px) {
  .main-container { width: calc(100% - 3.6rem); }
  .site-header__inner { flex-wrap: wrap; gap: .7rem; padding: 1.2rem 0; }
  .site-name { font-size: 1.7rem; }
  .site-avatar { width: 4rem; height: 4rem; }
  .site-nav { justify-content: space-between; gap: .3rem; width: 100%; }
  .site-nav > a { font-size: 1.3rem; padding: .6rem .8rem; }
  .site-nav .social-link, .theme-toggle { width: 3.8rem; height: 3.8rem; }
  .theme-toggle { margin-left: 0; }
  html { scroll-padding-top: 15rem; }
  .portfolio-intro { padding: 3.6rem 0 4.2rem; }
  .portfolio-intro__copy { text-align: left; }
  .portfolio-intro h1 { font-size: 3.6rem; margin-bottom: 2rem; }
  .about__content-details-para:first-child { font-size: 1.75rem; line-height: 1.8; }
  .about__content-details-para { font-size: 1.6rem; }
  .section-heading { padding: 2.4rem 0; }
  .section-heading h2 { font-size: 2.5rem; }
  .project-card--selected { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .project-card--selected .project-card__image { order: 0; height: 22rem; min-height: 0; border-radius: 0; padding: 2rem; }
  .project-card--selected .project-card__image img { height: 100%; }
  .project-card--selected .project-card__body { padding: 2.4rem; }
  .project-card h3 { font-size: 2.2rem; }
  .other-projects { grid-template-columns: 1fr; }
  .project-card__image { height: 20rem; }
  .project-card__image img { height: 100%; }
  .section-heading--other { margin-top: 4rem; }
  .sec-pad { padding-bottom: 4.5rem; }
  .project-details__content { padding-top: 2.5rem; }
}
@media (max-width: 400px) {
  .technical-stack__groups { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a { transition: none; }
}
