* {
  box-sizing: border-box;
}

html {
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}




/* Main Page Layout */

#main-content {
  width: min(1120px, calc(100% - 204px));
  margin: 160px 48px 0 164px;
  display: flex;
  flex-direction: column;
  gap: 96px;
}




/* Portfolio Header */

#portfolio-header {
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  gap: 48px;
  align-items: start;
}

#portfolio-header-visual {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

#portfolio-header-image-container {
  min-width: 0;
}

.portfolio-header-image {
  width: 100%;
  height: auto;
  border-radius: 5%;
}

#portfolio-header-text-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-width: 0;
  margin-top: 135px;
  padding-bottom: 24px;
}

.hero-top-content {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 0;
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-socials {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: nowrap;
  max-width: 420px;
  margin-top: 0;
  margin-bottom: 0;
}



.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
}

.hero-actions .button {
  padding: 10px 16px;
  white-space: nowrap;
}

.hero-actions .button-text {
  font-size: 14px;
}

@media only screen and (max-width: 1100px) {
  #main-content {
    width: calc(100% - 176px);
    margin: 156px 28px 0 148px;
  }

  #portfolio-header {
    grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
    gap: 32px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .project-card {
    max-width: calc((100% - 16px) / 2);
  }

  .hero-badges {
    margin-bottom: 0;
    margin-top: 0;
    flex-wrap: wrap;
  }

  .hero-top-content {
    gap: 28px;
  }
}



/* Stats Summary */

#stats-summary-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stats-diagram {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.stats-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 34px;
}

.stats-row-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-row::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 26px;
  right: 26px;
  height: 2px;
  background: linear-gradient(90deg, #141414 0%, #626262 100%);
}

.stat-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 2px solid #141414;
  border-radius: 24px;
  background-color: white;
  min-width: 0;
  z-index: 0;
  box-shadow: 0 0 0 rgba(20, 20, 20, 0);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.stat-node:hover,
.stat-node:active,
.stat-node:focus-within {
  z-index: 1;
  transform: translateY(-6px);
  background-color: #f7f7f7;
  box-shadow: 0 30px 50px rgba(20, 20, 20, 0.22);
}

.stat-node .stat-step,
.stat-node .stat-value,
.stat-node .stat-label,
.stat-node .stat-note {
  transition: transform 180ms ease, color 180ms ease;
}

.stat-node:hover .stat-step,
.stat-node:active .stat-step,
.stat-node:focus-within .stat-step,
.stat-node:hover .stat-label,
.stat-node:active .stat-label,
.stat-node:focus-within .stat-label {
  transform: translateX(6px);
}

.stat-node:hover .stat-value,
.stat-node:active .stat-value,
.stat-node:focus-within .stat-value {
  transform: scale(1.12);
}

.stat-node:hover .stat-note,
.stat-node:active .stat-note,
.stat-node:focus-within .stat-note {
  transform: translateY(3px);
}

.stat-node::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 28px;
  width: 2px;
  height: 24px;
  background-color: #141414;
}

.stat-node::after {
  content: "";
  position: absolute;
  top: -32px;
  left: 21px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background-color: #141414;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #141414;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stat-node:hover::after,
.stat-node:active::after,
.stat-node:focus-within::after {
  transform: scale(1.22);
  box-shadow: 0 0 0 3px #141414;
}

.stat-node:nth-child(even) {
  margin-top: 26px;
}



/* About Section */

#about-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-section-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 2px solid #141414;
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.08);
}

.about-card-story {
  position: relative;
  grid-row: span 2;
  min-height: 100%;
  overflow: hidden;
}

.about-card-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(20, 20, 20, 0.08) 0, rgba(20, 20, 20, 0.08) 2px, transparent 2px) 0 0 / 18px 18px,
    linear-gradient(135deg, rgba(20, 20, 20, 0.08), transparent 48%);
  opacity: 0.65;
  pointer-events: none;
}

.about-card-story::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(20, 20, 20, 0.14);
  border-radius: 24px;
  background: radial-gradient(circle at 32% 32%, rgba(20, 20, 20, 0.18), transparent 58%);
  pointer-events: none;
}

.about-card-story > * {
  position: relative;
  z-index: 1;
}

.about-card-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-card-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.08;
  max-width: 14ch;
}

.about-card-title-compact {
  font-size: 24px;
  max-width: none;
}

.about-copy {
  line-height: 1.65;
}

.about-points {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  line-height: 1.6;
}

.about-points li::marker {
  font-weight: 700;
}

.about-story-roles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-story-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.7);
}

.about-story-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.about-story-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 2px solid #141414;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(20, 20, 20, 0.06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-copy-compact {
  margin-top: auto;
}

.about-skill-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-skill-pages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-skill-page {
  display: none;
  gap: 12px;
  padding: 16px;
  border: 2px solid #141414;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 246, 238, 0.98) 100%);
  box-shadow: 0 18px 32px rgba(20, 20, 20, 0.08);
}

.about-skill-page.is-active {
  display: grid;
}

.about-skill-page-label {
  color: rgba(20, 20, 20, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-skill-filter {
  padding: 8px 12px;
  border: 2px solid #141414;
  border-radius: 999px;
  background-color: white;
  color: #141414;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.about-skill-filter:hover,
.about-skill-filter:active,
.about-skill-filter:focus-visible,
.about-skill-filter.is-active {
  background-color: #141414;
  color: white;
  box-shadow: 0 12px 24px rgba(20, 20, 20, 0.12);
}

.about-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 10px;
  border: 1.5px solid rgba(20, 20, 20, 0.18);
  border-radius: 8px;
  background-color: rgba(20, 20, 20, 0.04);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.about-pill svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke-width: 2;
}

.about-certificate-carousel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-certificate-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.about-certificate-nav {
  padding: 8px 12px;
  border: 2px solid #141414;
  border-radius: 999px;
  background-color: white;
  color: #141414;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.about-certificate-nav:hover,
.about-certificate-nav:active,
.about-certificate-nav:focus-visible {
  background-color: #141414;
  color: white;
  box-shadow: 0 12px 24px rgba(20, 20, 20, 0.12);
}

.about-certificate-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.about-certificate-viewport::-webkit-scrollbar {
  display: none;
}

.about-certificate-list {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.about-certificate-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 12px;
  align-items: center;
  min-width: 100%;
  scroll-snap-align: start;
  padding: 14px 16px;
  border: 2px solid #141414;
  border-radius: 20px;
  background-color: white;
}

.about-certificate-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-certificate-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.about-certificate-note {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.about-certificate-media {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 2px solid #141414;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 100%);
  gap: 4px;
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.05);
}

.about-certificate-badge-code {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

.about-certificate-badge-meta {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}




/* Project Section */

#my-work-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#blog-preview-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.blog-preview-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
}

.blog-preview-intro {
  color: rgba(20, 20, 20, 0.76);
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-preview-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 22px;
  border: 2px solid #141414;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.08);
}

.blog-preview-card-accent {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(49, 49, 49, 0.98) 100%);
  color: white;
}

.blog-preview-card-accent .project-tag {
  border-color: rgba(255, 255, 255, 0.5);
}

.blog-preview-card-accent .blog-preview-text,
.blog-preview-card-accent .blog-preview-meta {
  color: rgba(255, 255, 255, 0.8);
}

.blog-preview-card-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-preview-title {
  font-size: 24px;
}

.blog-preview-text {
  color: rgba(20, 20, 20, 0.76);
}

.blog-preview-meta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.58);
}

.project-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.projects-container {
  display: flex;
  gap: 34px 16px;
  flex-wrap: wrap;
}

    /* Project Cards */

    .project-card {
      max-width: calc((100% - 32px) / 3);
      display: flex;
      flex-direction: column;
      gap: 34px;
      padding: 18px;
      border: 2px solid transparent;
      border-radius: 28px;
      background-color: white;
      z-index: 0;
      box-shadow: 0 0 0 rgba(20, 20, 20, 0);
      transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    }

    .project-card:hover,
    .project-card:active,
    .project-card:focus-within {
      z-index: 1;
      transform: translateY(-4px);
      border-color: #141414;
      box-shadow: 0 20px 38px rgba(20, 20, 20, 0.14);
    }

    .project-card.is-hidden {
      display: none;
    }

    .project-card-text-container {
      flex-direction: column;
      display: flex;
      gap: 16px
    }

    .project-card-tags {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .project-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
      object-position: center;
      border-radius: 18px;
      transition: transform 180ms ease;
    }

    .project-card:hover .project-image,
    .project-card:active .project-image,
    .project-card:focus-within .project-image {
      transform: scale(1.02);
    }




/* Project Pages */

#project-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-header-image {
  width: 100%;
  height: auto;
}

#project-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-details-content {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

    /* Project Gallery */

    #project-gallery {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .project-gallery-content {
      display: flex;
      flex-wrap: wrap;
      gap: 34px 16px;
    }

    .gallery-image-container {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .gallery-image-container.half-width {
      width: calc((100% - 16px) / 2);
    }

    .gallery-image {
      width: 100%;
      height: auto;
    }


/* Extra large devices (large laptops and desktops, 1200px and below) */
@media only screen and (max-width: 1200px) {
  #main-content {
    width: calc(100% - 192px);
    margin: 160px 32px 0 160px;
  }
}

/* Large devices (laptops/desktops, 1000px and below) */
@media only screen and (max-width: 1000px) {
  #main-content {
    width: calc(100% - 160px);
    margin: 156px 20px 0 140px;
    gap: 80px;
  }

  #portfolio-header {
    gap: 24px;
  }

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

/* Small devices (portrait tablets and large phones, 800px and below) */
@media only screen and (max-width: 800px) {
  #main-content {
    width: calc(100% - 40px);
    margin: 220px auto 0;
    gap: 64px;
  }

  #portfolio-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  #portfolio-header-visual,
  #portfolio-header-text-container {
    width: 100%;
    flex-basis: auto;
  }

  #portfolio-header-text-container {
    justify-content: flex-start;
    gap: 24px;
    padding-bottom: 0;
  }

  .hero-top-content {
    gap: 24px;
  }

  #portfolio-header-visual {
    max-width: 680px;
  }

  .hero-badges {
    flex-wrap: wrap;
  }

  .project-card {
    max-width: calc((100% - 16px) / 2);
  }

  .blog-preview-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-preview-grid {
    grid-template-columns: 1fr;
  }

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

  .about-card-story {
    grid-row: auto;
  }

  .about-card-title {
    max-width: none;
    font-size: 28px;
  }

  .about-card-story::after {
    width: 96px;
    height: 96px;
  }

  .about-certificate-item {
    grid-template-columns: 1fr;
  }

  .about-certificate-media {
    min-height: 56px;
  }

  .about-certificate-carousel-controls {
    justify-content: flex-start;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
  }

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

  .stats-row::before {
    left: 10px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .stat-node,
  .stat-node:nth-child(even) {
    margin-top: 0;
    margin-left: 30px;
  }

  .stat-node::before {
    top: 30px;
    left: -22px;
    width: 22px;
    height: 2px;
  }

  .stat-node::after {
    top: 22px;
    left: -30px;
  }
}

/* Small devices (portrait tablets and large phones, 600px and below) */
@media only screen and (max-width: 600px) {
  #main-content {
    width: calc(100% - 24px);
    margin-top: 168px;
    gap: 56px;
  }

  #portfolio-header {
    gap: 22px;
  }

  #portfolio-header-text-container {
    gap: 24px;
  }


  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-socials {
    gap: 10px;
  }

  .hero-actions .button {
    justify-content: center;
  }

  .about-card {
    padding: 22px;
    border-radius: 24px;
  }

  .blog-preview-card {
    padding: 20px;
    border-radius: 24px;
  }

  .about-story-chip {
    min-height: 32px;
    font-size: 10px;
  }

  .about-pill {
    min-width: unset;
  }

  .about-card-title {
    font-size: 24px;
  }

  .about-card-title-compact {
    font-size: 22px;
  }

  .about-pill-list {
    gap: 8px;
  }

  .about-skill-filter {
    font-size: 11px;
  }

  .project-card {
    max-width: 100%;
  }

  .stats-diagram {
    gap: 20px;
  }

  .stats-row,
  .stats-row-compact {
    grid-template-columns: 1fr;
  }

  .project-filters {
    gap: 8px;
  }
}



