:root {
  --link-color: #0077cc;
  --link-color-hover: #00487c;
  --header-footer-bg-color: #f0f0f0;
  --aside-accent-color: #9d836b;
  --skill-bar-fill-color: #f3e4c6;
  --blockquote-bg-color: #f7fafc;
  --blockquote-accent-color: #4a5568;
  --blockquote-text-color: #4a5568;
  --spacing-inline: 0.5rem;
  --footer-text: #5a5a5a;
  --footer-text-muted: #8a8a8a;
  --footer-border: rgba(0, 0, 0, 0.088);
  --footer-edge: rgba(0, 0, 0, 0.06);
}

/* Base Styles */
html {
  overflow-x: clip;
}

body {
  font-family: "Nunito", "Segoe UI", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-weight: 400;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  font-weight: 600;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.15rem, 1rem + 0.75vw, 1.4rem);
  font-weight: 500;
  text-transform: uppercase;
}

h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

h4 {
  font-size: 1rem;
  font-weight: 500;
}

h5 {
  font-size: 1rem;
  font-weight: 500;
}

h6 {
  font-size: 1rem;
  font-weight: 500;
}

p {
  margin: 0.75rem 0;
}

a {
  color: var(--link-color) !important;
  text-decoration: none;
}

a:hover {
  color: var(--link-color-hover);
  text-decoration: underline;
}

address {
  font-style: normal;
}

figure,
ul {
  margin: 0;
  padding: 0;
}

header,
main,
aside,
footer {
  padding: 2rem;
}

header {
  padding-bottom: 0.5rem;
}

aside {
  border-top: 1px solid #ccc;
}

footer {
  text-align: center;
}

section {
  margin-bottom: 1.5rem;
}

/* Utility */
.block {
  display: block;
  margin: 0.25rem 0;
}

.flex-responsive {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  text-align: center;
}

/* Main Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.page-content .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.page-content .container > main,
.page-content .container > aside {
  min-width: 0;
}

.page-header,
.page-footer {
  background: var(--header-footer-bg-color);
}

.page-header {
  border-bottom: 1px solid #ccc;
}

.page-header .container {
  display: flex;
  flex-direction: column;
}

.header-top {
  gap: 1rem;
  min-width: 0;
}

.header-image {
  width: min(11.5rem, 46vw);
  max-width: 256px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #999;
  flex-shrink: 0;
}

.header-info {
  min-width: 0;
  width: 100%;
}

.header-info ul {
  margin: 1rem 0;
}

.link-with-icon {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-label {
  font-size: clamp(1.05rem, 0.95rem + 1.1vw, 1.3rem);
  color: #444;
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.header-summary {
  margin: 1.25rem 0;
}

.page-footer {
  border-top: 1px solid var(--footer-border);
  box-shadow: 0 -1px 0 var(--footer-edge);
  padding-block: 1rem 1.125rem;
  padding-inline: 2rem;
  margin-top: 0;
}

.page-footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-footer-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  max-width: 36rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--footer-text);
  font-weight: 400;
  text-align: center;
}

.page-footer-sep {
  display: none;
  color: var(--footer-text-muted);
  font-weight: 300;
  user-select: none;
}

.section-heading {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
  gap: 0.35rem;
  min-width: 0;
}

.section-heading::before,
.section-heading::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ccc;
  margin: 0 1rem;
}

aside .section-heading {
  align-items: flex-start;
  text-align: left;
  border-left: 4px solid var(--aside-accent-color);
  padding-left: 0.5rem;
  margin-bottom: 0.75rem;
}

aside .section-heading::before,
aside .section-heading::after {
  content: none;
}

.section-label {
  font-size: 0.9rem;
  color: #444;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.work-group {
  margin-bottom: 1rem;
}

.work-group:last-child {
  margin-bottom: 0;
}

.work-group-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.25rem 0 0.15rem;
  line-height: 1.35;
}

.work-group ul {
  margin-top: 0.35rem;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

.gallery {
  display: grid;
  gap: 1rem;
  justify-items: center;
  margin: 0.5rem 0;
}

.main-gallery {
  grid-template-columns: 1fr;
}

.side-gallery {
  grid-template-columns: 1fr;
}

figcaption {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Lists */
main ul,
aside ul {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 1.2em;
  margin: 0.75rem 0;
}

main li,
aside li {
  margin-bottom: 0.5rem;
  line-height: 1.55;
  padding-left: 0.15em;
}

.unstyled-list {
  list-style: none;
  padding-left: 0;
}

.inline-list {
  list-style: none;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.inline-list li {
  display: flex; /* This is for HTML Whitespace Issues */
}

/* Skillbars */
.skill-bar {
  width: 100%;
  height: 1.5rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  background: #eee;
  border: 1px solid #848484;
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--skill-bar-fill-color) !important;
  border-right: 1px solid #848484;
  border-radius: 2px;
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
}

.skill-bar-label {
  color: #333;
  font-size: 0.9rem;
  white-space: nowrap;
}

.w-0 {
  width: 0%;
}

.w-10 {
  width: 10%;
}

.w-20 {
  width: 20%;
}

.w-25 {
  width: 25%;
}

.w-30 {
  width: 30%;
}

.w-40 {
  width: 40%;
}

.w-50 {
  width: 50%;
}

.w-60 {
  width: 60%;
}

.w-70 {
  width: 70%;
}

.w-75 {
  width: 75%;
}

.w-80 {
  width: 80%;
}

.w-90 {
  width: 90%;
}

.w-100 {
  width: 100%;
  border-right: none;
}

/* Blockquotes */
blockquote {
  margin: 1rem 0;
  padding: 1rem 1rem;
  background-color: var(--blockquote-bg-color);
  border-left: 4px solid var(--blockquote-accent-color);
  font-style: italic;
  color: var(--blockquote-text-color);
  line-height: 1.6;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 47.99rem) {
  header,
  main,
  aside {
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .page-footer {
    padding-top: 0.875rem;
    padding-bottom: max(0.875rem, env(safe-area-inset-bottom, 0px));
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .page-footer-copy {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
  }

  header {
    padding-bottom: 0.75rem;
  }

  .header-image {
    width: min(9.5rem, 38vw);
  }

  .header-info ul {
    margin: 0.65rem 0;
  }

  .section-heading::before,
  .section-heading::after {
    margin: 0;
    min-width: 1rem;
  }

  .work-group-title {
    font-size: 0.95rem;
  }

  .page-header .inline-list a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0;
  }

  .page-header .header-social-links.flex-responsive {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.25rem;
    text-align: center;
  }

  .page-header .header-social-links .link-with-icon:not(.link-resume) .header-link-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .page-header .header-social-links .link-with-icon:not(.link-resume) {
    justify-content: center;
    position: relative;
    padding-inline: 0.4rem;
    gap: 0;
  }

  .page-header .header-social-links .link-with-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .skill-bar-label {
    white-space: normal;
  }

  aside .skill-category h3 {
    font-size: 0.95rem;
  }
}

@media (min-width: 37.5rem) {
  .main-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 48rem) {
  blockquote {
    margin: 1rem 2rem;
    padding: 1.5rem 2rem;
  }

  aside h1 {
    font-size: 1.4rem;
  }

  aside h2 {
    font-size: 1.1rem;
  }

  aside h3 {
    font-size: 1rem;
  }

  aside h4 {
    font-size: 1rem;
  }

  aside h5 {
    font-size: 1rem;
  }

  aside h6 {
    font-size: 1rem;
  }

  header {
    padding-bottom: 1.5rem;
  }

  .flex-responsive {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .header-top {
    gap: 1.5rem 2rem;
  }

  .header-image {
    width: 192px;
    max-width: 192px;
  }

  .header-info {
    flex: 1 1 18rem;
    width: auto;
    margin-top: 0.5rem;
  }

  .page-header ul {
    margin: 0.5rem 0;
  }

  .inline-list {
    gap: var(--spacing-inline);
  }

  .skill-bar-label {
    white-space: nowrap;
  }

  .inline-list li:not(:last-child)::after {
    content: "|";
    margin-left: var(--spacing-inline);
    color: #ccc;
  }

  .side-gallery {
    grid-template-columns: 1fr;
  }

  .skills-aside .skill-aside-category {
    font-size: 0.8125rem;
    font-weight: 700;
  }

  .skills-aside .skill-aside-body {
    font-size: 0.875rem;
  }

  .education-aside-institution {
    font-size: 0.9375rem;
  }

  .education-aside-list li {
    font-size: 0.875rem;
  }

  .education-aside-meta {
    font-size: 0.8125rem;
  }

  .page-footer-copy {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.45rem 0.55rem;
    font-size: 0.875rem;
    letter-spacing: 0.028em;
  }

  .page-footer-sep {
    display: inline;
  }

  .page-footer {
    padding-top: 1.125rem;
    padding-bottom: max(1.375rem, env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 64rem) {
  .page-content .container {
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  }

  aside {
    border-top: none;
    border-left: 1px solid #ccc;
  }
}

@media print {
  .skill-bar-label {
    background: transparent !important;
    background-color: transparent !important;
    mix-blend-mode: darken;
  }

  body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* my css - */

/* Education */
.education-item {
  margin-bottom: 1.5rem;
  padding-left: 0.72rem; /* Reduced from 1.5rem */
}

.institution {
  font-weight: 500;
  color: #555;
}

.education-dates {
  font-size: 0.9rem;
  color: #888;
}

/* Tech Stack */
.skills-list {
  margin-top: 1rem;
  padding-left: 0.72rem; /* Reduced from 1.5rem */
}

.skill-category {
  margin-bottom: 1.5rem;
}

.skill-category h3 {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.skill-category p {
  color: #555;
  font-size: 0.95rem;
  margin: 0;
}

/* Optional: Section Spacing */
aside section {
  margin-bottom: 2rem;
}

aside h2.section-heading {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: #222;
}

/* Skills sidebar (aside) */
.skills-aside-list {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skills-aside .skill-aside-item {
  margin-bottom: 0;
  padding: 1.125rem 0;
  border-bottom: 1px solid #e8e8e8;
}

.skills-aside .skill-aside-item:first-child {
  padding-top: 0;
}

.skills-aside .skill-aside-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.skills-aside .skill-aside-category {
  font-family: "Montserrat", "Segoe UI", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #252525;
  margin: 0 0 0.45rem;
}

.skills-aside .skill-aside-body {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
  color: #4a4a4a;
  margin: 0;
}

.skills-aside > .section-heading {
  margin-bottom: 0.625rem;
}

/* Education sidebar (aside) */
.education-aside > .section-heading {
  margin-bottom: 0.625rem;
}

.education-aside-entry + .education-aside-entry {
  margin-top: 1.125rem;
  padding-top: 1.125rem;
  border-top: 1px solid #e8e8e8;
}

.education-aside-institution {
  font-family: "Montserrat", "Segoe UI", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #252525;
  margin: 0 0 0.65rem;
}

.education-aside-location {
  font-size: 0.875rem;
  color: #666;
  margin: -0.35rem 0 0.85rem;
  line-height: 1.45;
}

.education-aside-label {
  font-family: "Montserrat", "Segoe UI", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #555;
  margin: 0 0 0.4rem;
}

.education-aside-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem;
}

.education-aside-list li {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
  color: #4a4a4a;
  margin: 0 0 0.35rem;
}

.education-aside-list li:last-child {
  margin-bottom: 0;
}

.education-aside-meta {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
  color: #5c5c5c;
  margin: 0;
}

.education-aside-meta .block {
  display: block;
  margin: 0.25rem 0 0;
}

.education-aside-meta .block:first-child {
  margin-top: 0;
}
