/* Portfolio refinements, loaded after the theme's page styles. */
body, .secondary-font, #secondary-font { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important; }
.primary-font, #primary-font { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
html { scroll-behavior: smooth; }
section { scroll-margin-top: 5rem; }
#hero { min-height: auto; padding-block: clamp(4rem, 9vw, 8rem) !important; }
#hero .subtitle { font-size: .75rem; font-weight: 700; letter-spacing: .16em; opacity: 1; color: var(--primary-color); }
#hero h1 { font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.05; margin: 1.25rem 0; color: var(--text-color); }
#hero h3 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: -.035em; line-height: 1.2; opacity: 1; }
#hero p { font-size: 1.1rem; line-height: 1.85; opacity: 1; color: var(--text-secondary-color); max-width: 37rem; }
#hero .image img { width: 100%; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover; border: 0; border-radius: 1rem; box-shadow: 0 15px 40px rgb(0 0 0 / 10%); }
#hero .image img:hover { cursor: default; }
#hero a.btn { margin-top: 1.8rem; border-radius: .4rem; font-weight: 600; }
#hero a.btn.social-icon { margin-top: 1.8rem; }
#about .content { font-weight: 400; }
#projects .card, #education .card, #achievements .card, #experience .experience-container { box-shadow: none; border: 1px solid var(--text-secondary-color) !important; border-radius: .7rem; }
#projects .card { min-height: 0; }
#projects .card-body { padding: 1.5rem !important; }
#projects .card-title { font-size: 1.3rem; letter-spacing: -.025em; line-height: 1.4; }
#projects .card-text { line-height: 1.8; }
#projects .badge { white-space: normal; margin: 0 .2rem .4rem 0; color: var(--text-color); background: var(--secondary-background-color); border: 1px solid var(--text-secondary-color); font-weight: 500; }
#projects .card-footer { min-height: 0; }
#content > section > .container > h3 { font-size: 1.8rem; font-weight: 650; letter-spacing: -.035em; margin-bottom: 2rem; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary-color) !important; outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 9999; padding: .8rem 1rem; background: var(--background-color); color: var(--text-color); }
.skip-link:focus { top: 1rem; }
@media (max-width: 575px) {
  #hero { padding-block: 3rem !important; }
  #hero .subtitle { font-size: .65rem; letter-spacing: .1em; }
  #hero p { font-size: 1rem; }
  #about ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #projects .row { padding-inline: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
