/* Main colors used throughout the website. */
:root {
  --bg: #061323;
  --panel: #091a2c;
  --panel2: #0b1c30;
  --line: #17334c;
  --text: #e9f1fb;
  --muted: #a9bdd3;
  --green: #32edaa;
  --blue: #45c9ef;
  --danger: #ff7777;
}
/* Make element sizes easier to calculate. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.55 Inter,
    "Segoe UI",
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--green);
}
/* Header, logo, navigation menu, and menu button. */
.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(calc((100vw - 1200px) / 2), 5%);
  background: #071526ed;
  border-bottom: 1px solid #12283c;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}
.brand {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.brand b,
.footer strong b {
  color: var(--green);
}
.code-mark {
  color: var(--green);
  font-weight: 900;
  margin-right: 8px;
  font-size: 19px;
}
.navigation {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 26px;
}
.navigation a {
  font-size: 13px;
  color: #dce7f3;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
.navigation a:hover {
  color: var(--green);
  border-color: var(--green);
}
/* Shared appearance for links and buttons styled as buttons. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  padding: 9px 16px;
  font-weight: 650;
  font-size: 13px;
  border: 1px solid var(--blue);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: 0.2s;
}
.button:hover {
  transform: translateY(-1px);
  color: var(--bg);
  background: var(--blue);
}
.button-primary {
  background: var(--green);
  border-color: var(--green);
  color: #05231a;
}
.button-primary:hover {
  background: #79ffcb;
  border-color: #79ffcb;
}
.button-outline {
  border-color: #45bfe4;
}
.admin-link {
  color: var(--green);
  border-color: var(--green);
  padding: 7px 15px;
}
.menu-toggle {
  display: none;
  background: transparent;
  color: var(--green);
  border: 0;
  border-radius: 8px;
  font-size: 24px;
}
.menu-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
/* Center page content and keep it from becoming too wide. */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
/* Intro section with text on one side and profile photo on the other. */
.hero {
  min-height: 375px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 42px;
  border-bottom: 1px solid #12283c;
  padding-top: 34px;
  padding-bottom: 30px;
}
.eyebrow {
  display: inline-block;
  border: 1px solid #08795b;
  color: var(--green);
  border-radius: 18px;
  padding: 3px 12px;
  font-size: 12px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.06;
  margin: 8px 0 10px;
  letter-spacing: -1.6px;
}
.hero h1 span,
.section-heading h2 span {
  color: var(--green);
}
.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
  padding: 8px 14px;
  border: 1px solid rgba(51, 214, 164, 0.35);
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(51, 214, 164, 0.14), rgba(51, 214, 164, 0.04));
  color: #9cf2d4;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.hero-role span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(51, 214, 164, 0.65);
}
.hero h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 10px;
  color: #cad8e8;
}
.hero h2 i {
  font-style: normal;
  color: var(--green);
  padding: 0 5px;
}
.hero-copy > p {
  max-width: 530px;
  color: #d2deeb;
  margin: 0 0 16px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.social-links {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  font-size: 13px;
  color: #c5d6e8;
}
.portrait-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}
.portrait-ring {
  width: 218px;
  height: 218px;
  border-radius: 50%;
  padding: 5px;
  border: 3px solid var(--green);
  box-shadow:
    0 0 34px #00d9a333,
    0 0 0 15px #00d9a30a;
  position: relative;
  z-index: 1;
}
.portrait-ring:before,
.portrait-ring:after {
  content: "";
  position: absolute;
  inset: -22px;
  border: 1px solid #00cda333;
  border-radius: 50%;
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-35deg);
}
.portrait-ring:after {
  inset: -36px;
  transform: rotate(145deg);
  opacity: 0.5;
}
.portrait-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #c9d8e6;
}
.photo-note {
  position: absolute;
  left: calc(50% + 125px);
  top: 54px;
  color: var(--green);
  font-style: italic;
  min-width: 170px;
  font-size: 13px;
  transform: rotate(-5deg);
}
.photo-note small {
  color: #bfd0df;
  font-size: 11px;
  display: block;
  margin-top: 15px;
  transform: rotate(5deg);
}
.content-section {
  padding-top: 23px;
  padding-bottom: 7px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 14px;
}
.section-heading h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0;
}
.section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}
.section-icon {
  font-size: 27px;
  color: var(--green);
  min-width: 28px;
}
.heading-action {
  margin-left: auto;
  white-space: nowrap;
}
/* Project, skill, and learning-note card layouts. */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(145deg, #0b1c2f, #081727);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.project-card:hover,
.skill-card:hover,
.note-card:hover {
  border-color: #168566;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px #0004;
}
.project-art {
  width: 100%;
  min-width: 0;
  height: clamp(150px, 18vw, 205px);
  align-self: stretch;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #17334c;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(52, 237, 170, 0.11), transparent 65%),
    linear-gradient(145deg, #10243a, #091728);
  display: grid;
  place-items: center;
  font-size: 44px;
}
.project-art img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 20px;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.project-card:hover .project-art img {
  transform: scale(1.045);
}
.project-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px;
  min-width: 0;
}
.project-info h3 {
  margin: 0 0 8px;
  color: #edf4fb;
  font-size: 17px;
  line-height: 1.35;
}
.project-info p {
  margin: 0 0 14px;
  color: #aebfd0;
  font-size: 13px;
  line-height: 1.65;
}
.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.tags span {
  border: 1px solid #23435c;
  border-radius: 999px;
  background: #11283c;
  padding: 4px 9px;
  color: #bed1e2;
  font-size: 10px;
  line-height: 1.3;
}
.project-info .button {
  margin-top: auto;
}
.project-links {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.button.small {
  font-size: 10px;
  padding: 4px 10px;
}
.about-card,
.education-card,
.note-card,
.skill-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}
.about-card p {
  color: #d0dce8;
  margin: 0 0 12px;
}
.about-card p:last-child {
  margin-bottom: 0;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.skill-card span {
  font-size: 25px;
}
.skill-card h3 {
  margin: 5px 0;
  font-size: 15px;
}
.skill-card p,
.note-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.education-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.education-card-university {
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.education-university-logos {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}
.education-university-logos img {
  display: block;
  width: 112px;
  height: 72px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}
.education-university-logos span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}
.education-university-details {
  min-width: 0;
}
.education-university-details .education-level {
  margin-bottom: 5px;
}
.education-university-details h3 {
  margin-bottom: 5px;
}
.education-university-details p {
  color: var(--muted);
}
.education-list {
  display: grid;
  gap: 12px;
}
.education-icon {
  font-size: 32px;
}
.education-card h3 {
  margin: 0 0 4px;
}
.education-card p {
  margin: 0;
  color: var(--muted);
}
.education-card .education-story {
  max-width: 760px;
  margin-top: 10px;
  line-height: 1.65;
}
.education-card-kmc {
  display: block;
  padding: 20px;
  border-color: rgba(80, 157, 255, 0.24);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(21, 46, 75, 0.86), rgba(8, 24, 41, 0.96));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}
.education-content {
  min-width: 0;
}
.education-photo {
  display: block;
  width: min(100%, 280px);
  max-height: 150px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}
.education-photo-kmc {
  width: 100%;
  max-width: 520px;
  height: clamp(130px, 20vw, 190px);
  max-height: none;
  margin-bottom: 18px;
  border-radius: 12px;
  object-position: center 48%;
}
.education-school-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.education-school-brand-compact {
  gap: 12px;
}
.education-school-brand-compact .education-logo-frame {
  width: 76px;
  height: 76px;
  padding: 4px;
  border-radius: 50%;
}
.education-school-brand-compact .education-logo {
  border-radius: 50%;
}
.education-school-brand-compact .education-level {
  margin-bottom: 2px;
}
.education-school-brand-compact .education-heading h3 {
  font-size: 17px;
}
.education-school-brand-compact .education-heading p {
  font-size: 14px;
}
.education-logo-frame {
  display: grid;
  width: 118px;
  height: 84px;
  flex: 0 0 auto;
  place-items: center;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
}
.education-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.education-heading {
  min-width: 0;
}
.education-level {
  display: inline-block;
  margin-bottom: 5px;
  color: #8dbfff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.education-heading h3 {
  margin: 0 0 5px;
}
.education-heading p {
  color: #b7c8dc;
}
.education-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.education-highlights span {
  padding: 5px 10px;
  border: 1px solid rgba(141, 191, 255, 0.22);
  border-radius: 999px;
  background: rgba(100, 155, 220, 0.1);
  color: #deebfb;
  font-size: 13px;
  line-height: 1.5;
}
.education-card-kmc .education-story {
  max-width: 850px;
  color: #c1cedd;
}
.internship-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.internship-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.internship-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(51, 214, 164, 0.3);
  border-radius: 12px;
  background: rgba(51, 214, 164, 0.1);
  color: var(--green);
  font-size: 22px;
  font-weight: 700;
}
.internship-card h3 {
  margin: 0 0 4px;
}
.internship-card p {
  margin: 0;
  color: var(--muted);
}
.internship-details {
  min-width: 0;
}
.internship-card-featured {
  grid-column: 1 / -1;
  align-items: flex-start;
}
.internship-logo {
  display: block;
  width: 124px;
  height: 62px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0879c9;
  object-fit: contain;
}
.internship-photo {
  height: 82px;
  border-color: var(--line);
  background: #102235;
  object-fit: cover;
}
.iqasec-logo {
  height: 82px;
  background: #fff;
  object-fit: contain;
}
.internship-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.internship-topics li {
  padding: 4px 10px;
  border: 1px solid rgba(51, 214, 164, 0.22);
  border-radius: 999px;
  background: rgba(51, 214, 164, 0.07);
  color: #c8f2e3;
  font-size: 13px;
  line-height: 1.5;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.note-card h3 {
  margin: 0 0 7px;
  font-size: 15px;
}
.note-card small {
  display: block;
  color: #7794ac;
  margin-top: 12px;
}
/* Shared footer at the bottom of pages. */
.footer {
  margin-top: 20px;
  border-top: 1px solid #132a3e;
  min-height: 74px;
  padding: 15px max(calc((100vw - 1200px) / 2), 5%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer strong {
  display: block;
  font-size: 14px;
}
.footer small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.footer nav,
.footer-contact {
  display: flex;
  gap: 19px;
  align-items: center;
  font-size: 11px;
  color: #c3d4e5;
}
.footer-contact {
  gap: 20px;
}
.footer-contact span b {
  color: #ff5757;
}
/* Status messages shown after a form action. */
.flash-wrap {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 28px;
}
.flash {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}
.flash.success {
  border-color: #168566;
  color: var(--green);
}
.flash.error {
  border-color: #a34f59;
  color: #ffb5b5;
}
.page-top {
  padding-top: 38px;
  min-height: 65vh;
}
.narrow {
  max-width: 680px;
}
/* Contact form and contact information layout. */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  max-width: 900px;
}
.form-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
  background: var(--panel);
}
.form-card h3 {
  margin: 0;
}
.form-card label {
  display: grid;
  gap: 6px;
  color: #dbe7f3;
  font-size: 13px;
}
.form-card input,
.form-card textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #27445d;
  border-radius: 6px;
  background: #061323;
  color: var(--text);
  font: inherit;
  resize: vertical;
}
.form-card input:focus,
.form-card textarea:focus {
  outline: 1px solid var(--green);
  border-color: var(--green);
}
.form-card button {
  justify-self: start;
}
.contact-card h3 {
  margin-top: 0;
}
.contact-card p {
  margin: 0 0 17px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.contact-card strong {
  color: var(--text);
}
.contact-card a {
  color: var(--green);
}
.setup-link {
  color: var(--green);
  font-size: 13px;
}
/* Two-column layout used by the local content manager. */
.admin-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}
.admin-section-title {
  font-size: 20px;
  margin-top: 28px;
}
.admin-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.admin-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
.admin-row:last-child {
  border: 0;
}
.admin-row p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 13px;
}
.admin-row small {
  display: block;
  color: #7892a7;
}
.button-danger {
  border-color: #a34f59;
  color: #ffb5b5;
}
.button-danger:hover {
  background: #a34f59;
  color: white;
}
/* Tablet-sized screens: use fewer columns and tighter navigation. */
@media (max-width: 900px) {
  .navigation {
    gap: 14px;
  }
  .navigation a {
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .photo-note {
    display: none;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer {
    flex-wrap: wrap;
  }
  .footer nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}
/* Phone-sized screens: stack content and show the compact menu. */
@media (max-width: 650px) {
  .site-header {
    height: 58px;
    padding: 0 17px;
  }
  .brand {
    font-size: 15px;
  }
  .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    margin-left: auto;
    margin-right: 8px;
    border: 1px solid #23435c;
    background: #0b1d30;
    color: var(--green);
    cursor: pointer;
    font-size: 23px;
    line-height: 1;
  }
  .navigation {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 20;
    height: auto;
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    background: rgba(7, 21, 36, 0.99);
    padding: 9px 16px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid #1a344b;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 34px #0006;
  }
  .navigation.open {
    display: flex;
  }
  .navigation a {
    height: auto;
    min-height: 48px;
    padding: 12px 13px;
    border: 0;
    border-bottom: 1px solid #ffffff12;
    border-radius: 8px;
    font-size: 14px;
  }
  .navigation a:last-child {
    border-bottom: 0;
  }
  .navigation a:hover,
  .navigation a:focus-visible {
    background: #12302d;
    outline: 0;
  }
  .admin-link {
    font-size: 11px;
    padding: 6px 9px;
  }
  .section-wrap {
    padding-left: 17px;
    padding-right: 17px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-top: 29px;
    text-align: center;
  }
  .hero h1 {
    font-size: 39px;
  }
  .hero-role {
    font-size: 14px;
  }
  .hero h2 {
    font-size: 14px;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .hero-actions,
  .social-links {
    justify-content: center;
  }
  .portrait-wrap {
    grid-row: 1;
    min-height: 225px;
  }
  .portrait-ring {
    width: 174px;
    height: 174px;
  }
  .hero-copy {
    grid-row: 2;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .project-grid,
  .skill-grid,
  .notes-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }
  .internship-grid {
    grid-template-columns: 1fr;
  }
  .education-card-kmc {
    padding: 14px;
  }
  .education-card-university {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
  }
  .education-university-logos {
    gap: 7px;
  }
  .education-university-logos img {
    width: 94px;
    height: 62px;
  }
  .education-university-details h3 {
    font-size: 18px;
  }
  .education-university-details p {
    font-size: 14px;
  }
  .education-photo-kmc {
    height: clamp(120px, 40vw, 175px);
  }
  .education-logo-frame {
    width: 92px;
    height: 70px;
  }
  .education-school-brand {
    align-items: flex-start;
    gap: 11px;
  }
  .education-heading h3 {
    font-size: 17px;
  }
  .education-heading p {
    font-size: 14px;
  }
  .education-highlights {
    gap: 6px;
  }
  .education-highlights span {
    font-size: 12px;
  }
  .project-card {
    min-height: 0;
  }
  .project-art {
    height: clamp(155px, 48vw, 220px);
  }
  .project-info {
    padding: 16px;
  }
  .project-info h3 {
    font-size: 17px;
  }
  .project-info p {
    font-size: 13px;
  }
  .heading-action {
    font-size: 10px;
    padding: 7px;
    margin-left: auto;
  }
  .contact-layout,
  .admin-columns {
    grid-template-columns: 1fr;
  }
  .footer {
    padding: 16px 18px;
    justify-content: center;
    text-align: center;
  }
  .footer nav {
    gap: 12px;
    flex-wrap: wrap;
  }
  .footer-contact {
    justify-content: center;
    width: 100%;
  }
  .flash-wrap {
    padding: 0 17px;
  }
  .page-top {
    padding-top: 26px;
  }
}
