/* Portfolio refinements, loaded after the original template styles. */
:root {
  --page: #ffffff;
  --surface: #f4f7f9;
  --ink: #182c3d;
  --muted: #526371;
  --accent: #087e94;
  --line: #dce5ea;
  --tag: #eaf4f6;
}
html { scroll-behavior: smooth; }
body { background: var(--page); color: var(--muted); }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -.025em; }
section, footer, main { scroll-margin-top: 95px; }
.section-padding { padding: 80px 0; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, .checkbox:focus-visible + .label {
  outline: 3px solid var(--accent) !important;
  outline-offset: 4px;
}
.skip-link { position: fixed; top: -80px; left: 16px; padding: 12px 20px; background: var(--page); z-index: 1000000; }
.skip-link:focus { top: 12px; }
.navbar-brand { position: static; color: var(--accent); font-size: 19px; font-weight: 700; white-space: nowrap; }
.navbar .container { padding: 8px 15px; }
.navbar-expand-lg .navbar-nav .nav-link { padding: 0 10px; font-size: 13px; letter-spacing: .04em; }
.navbar-toggler { color: var(--accent); border: 1px solid currentColor; font-size: 16px; padding: 10px; }
#hero-area .overlay { background: #102534; opacity: .83; }
#hero-area .contents { padding: 155px 0 85px; }
#hero-area .contents .hero-intro { margin-bottom: 12px; font-size: 19px; letter-spacing: .1em; }
#hero-area .contents .head-title { font-size: clamp(42px, 6vw, 72px); line-height: 1.1; letter-spacing: -.035em; text-transform: none; margin-bottom: 22px; }
#hero-area .contents .hero-role { font-size: 27px; line-height: 1.4; margin-bottom: 10px; }
#hero-area .contents .hero-specialties { color: #d4e7ed; font-size: 18px; line-height: 1.6; margin-bottom: 22px; }
#about .row { align-items: center; }
.profile-wrapper { padding: 0; }
.profile-wrapper h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; margin-bottom: 24px; }
.profile-wrapper p { font-size: 17px; line-height: 1.75; margin-bottom: 18px; }
#about .img-thumb { max-width: 390px; margin: 0 auto; }
#about .img-thumb img { display: block; width: 100%; height: auto; border: 0; border-radius: 14px; box-shadow: 0 12px 36px rgba(24, 44, 61, .1); }
/* Frame the original photograph with CSS; its pixels are unedited. */
#about .portrait-original {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(24, 44, 61, .1);
}
#about .portrait-original img {
  position: absolute;
  width: 325.7143%;
  max-width: none;
  height: auto;
  left: -107.1429%;
  top: -138.0952%;
  border-radius: 0;
  box-shadow: none;
}
.btn { font-weight: 700; text-transform: none; padding: 12px 22px; border-radius: 6px; }
.btn-common { background: var(--accent); }
.btn-common:hover { background: #06687c; }
.btn-danger { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-danger:hover { background: var(--surface); border-color: var(--accent); color: var(--ink); }
.section-heading { margin-bottom: 40px; max-width: 720px; }
.section-heading h2, .education-row h2 { font-size: 36px; line-height: 1.2; margin-bottom: 14px; }
.section-heading > p:last-child { font-size: 18px; line-height: 1.6; }
.eyebrow, .profile-wrapper .eyebrow, .project-category {
  color: var(--accent); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px;
}
#experience { border-top: 1px solid var(--line); }
.experience-entry { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 34px 0; border-top: 1px solid var(--line); }
.experience-entry:last-child { padding-bottom: 0; }
.role-meta p { font-size: 15px; line-height: 1.6; }
.role-meta .company { font-size: 18px; color: var(--ink); font-weight: 700; margin-bottom: 3px; }
.role-meta .role-dates { margin-top: 12px; }
.current-role { display: inline-block; margin-top: 14px; padding: 3px 10px; border-radius: 4px; background: var(--tag); color: var(--accent); font-size: 12px; font-weight: 700; }
.role-content h3 { font-size: 25px; line-height: 1.3; margin-bottom: 12px; }
.role-summary { font-size: 17px; line-height: 1.65; margin-bottom: 18px; }
.role-achievements { padding-left: 19px; }
.role-achievements li { list-style: disc; padding-left: 5px; margin-bottom: 12px; font-size: 16px; line-height: 1.7; }
.role-achievements li:last-child { margin-bottom: 0; }
.role-achievements li::marker { color: var(--accent); }
.role-achievements strong { color: var(--ink); }
.internship-employers { font-size: 14px; line-height: 1.8; margin-bottom: 18px; }
.projects-section { background: var(--surface); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card { display: flex; flex-direction: column; padding: 28px; background: var(--page); border: 1px solid var(--line); border-radius: 10px; }
.project-card h3 { font-size: 23px; line-height: 1.3; margin-bottom: 16px; }
.project-card > p:not(.project-category) { font-size: 16px; line-height: 1.7; margin-bottom: 22px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; margin-bottom: 24px; }
.tech-tags li { font-size: 12px; line-height: 1.5; padding: 5px 9px; background: var(--surface); color: var(--muted); border-radius: 4px; }
.project-link { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; font-size: 15px; font-weight: 700; }
.project-link:hover { text-decoration: underline; }
.project-link span { font-size: 20px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.skills-grid article { border-top: 2px solid var(--line); padding-top: 20px; }
.skills-grid h3 { font-size: 20px; line-height: 1.3; margin-bottom: 12px; }
.skills-grid p, .education-detail { font-size: 16px; line-height: 1.75; }
#education { border-top: 1px solid var(--line); padding: 45px 0; }
.education-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.education-row h2 { font-size: 28px; margin: 0; }
.education-detail strong { color: var(--ink); }
.footer-area { background: #102534; }
.footer-text h2 { color: #fff; font-size: 32px; }
.footer-area .footer-text p a { color: #77d4e6; }
body.dark {
  --page: #111e29; --surface: #172735; --ink: #e6eef3;
  --muted: #b7c6d1; --accent: #75d4e5; --line: #304251; --tag: #1c3c46;
  background-color: var(--page) !important; color: var(--muted);
}
body.dark .navbar { background-color: var(--page) !important; }
body.dark .navbar-brand { color: var(--accent); }
body.dark #about .img-thumb img { border: 0; }
body.dark .btn-common { background: #087e94; color: #fff; }
body.dark .btn-common:hover { background: #06687c; }
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-expand-lg .navbar-nav .nav-link { padding: 0 7px; }
  .project-card { padding: 22px; }
}
@media (max-width: 991px) {
  .navbar-toggler { display: block; }
  .navbar-collapse { width: 100%; }
  .navbar-expand-lg .navbar-nav .nav-link { margin: 0; }
  .toggle-button { padding: 0 10px 14px; }
  .label { margin-top: 14px; }
  .experience-entry { grid-template-columns: 165px minmax(0, 1fr); gap: 30px; }
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .section-padding { padding: 55px 0; }
  #hero-area .contents { padding: 125px 0 60px; }
  #hero-area .contents .hero-role { font-size: 23px; }
  #hero-area .contents .hero-specialties { font-size: 16px; }
  #about .img-thumb { margin-top: 32px; }
  .experience-entry { grid-template-columns: 1fr; gap: 20px; }
  .role-meta .role-dates { margin-top: 4px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2 { font-size: 30px; }
  .education-row { align-items: flex-start; flex-direction: column; gap: 16px; }
}
@media (max-width: 575px) {
  .skills-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
