﻿:root {
    --navy:   #0d1b2a;
    --teal:   #1a6b72;
    --gold:   #c9a84c;
    --light:  #f4f1eb;
    --mid:    #e2ddd5;
    --text:   #2c2c2c;
    --muted:  #6b6b6b;
    --white:  #ffffff;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.7;
  }

  /* ── HEADER ─────────────────────────────────────────── */
  header {
    background: url('back.jpg') center center / cover no-repeat;
    color: var(--white);
    padding: 0;
    position: relative;
  }

  header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      135deg,
      rgba(10, 22, 38, 0.82) 0%,
      rgba(10, 22, 38, 0.70) 50%,
      rgba(26, 107, 114, 0.55) 100%
    );
    z-index: 0;
  }

  .header-inner { position: relative; z-index: 1; }
  .header-bg-accent { display: none; }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
  }

  .header-bg-accent {
    position: absolute;
    top: 0; right: 0;
    width: 400px; height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(26,107,114,0.18) 100%);
    pointer-events: none;
  }

  .header-left h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 0.4rem;
  }

  .header-left .title-tag {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.3rem;
  }
  .header-left .header-subtitle {
    font-size: 0.82rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.2rem;
  }

  .header-left .summary {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.78);
    max-width: 600px;
    font-weight: 300;
    line-height: 1.75;
  }

  .header-contact {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 220px;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
  }

  .contact-item .icon {
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
  }

  .contact-item a {
    color: var(--gold);
    text-decoration: none;
  }
  .contact-item a:hover { text-decoration: underline; }

  /* ── NAV BAR ─────────────────────────────────────────── */
  nav {
    background: var(--teal);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  }

  nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  nav ul li a,
  nav ul li button.nav-inline-trigger {
    display: block;
    padding: 0.85rem 1.2rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
  }

  nav ul li button.nav-inline-trigger {
    appearance: none;
    background: transparent;
    border: none;
    font: inherit;
    cursor: pointer;
  }

  nav ul li a:hover,
  nav ul li button.nav-inline-trigger:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
  }

  /* ── MAIN LAYOUT ─────────────────────────────────────── */
  main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
  }

  /* ── SIDEBAR ─────────────────────────────────────────── */
  .sidebar { position: sticky; top: 60px; }

  .sidebar-section {
    background: var(--white);
    border-radius: 12px;
    padding: 1.6rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    border-top: 3px solid var(--gold);
  }

  .sidebar-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
  }

  /* skills */
  .skill-group { margin-bottom: 1rem; }
  .skill-group:last-child { margin-bottom: 0; }
  .skill-group-title {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 0.45rem;
  }

  .skill-pill {
    display: inline-block;
    background: var(--light);
    border: 1px solid var(--mid);
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    font-size: 0.75rem;
    margin: 0.15rem 0.15rem 0.15rem 0;
    color: var(--navy);
    font-weight: 500;
  }

  /* personal details */
  .detail-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    font-size: 0.83rem;
  }
  .detail-label {
    font-weight: 600;
    color: var(--teal);
    min-width: 70px;
    flex-shrink: 0;
  }
  .detail-value { color: var(--muted); }

  /* languages */
  .lang-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--mid);
    font-size: 0.85rem;
  }
  .lang-row:last-child { border-bottom: none; }
  .lang-level {
    font-size: 0.72rem;
    background: var(--teal);
    color: white;
    padding: 0.1rem 0.55rem;
    border-radius: 12px;
    font-weight: 500;
  }

  /* ── MAIN CONTENT ────────────────────────────────────── */
  .content {}

  /* section */
  .section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem 2.2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  }

  .section-heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.6rem;
  }

  .section-heading h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.02em;
  }

  .section-heading .line {
    flex: 1;
    height: 1px;
    background: var(--mid);
  }

  .section-heading .icon-badge {
    width: 34px; height: 34px;
    background: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 14px;
    flex-shrink: 0;
  }

  /* ── EXPERIENCE ENTRY ────────────────────────────────── */
  .exp-entry {
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--mid);
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0 1.5rem;
  }
  .exp-entry:last-child { border-bottom: none; padding-bottom: 0; }
  .exp-entry:first-child { padding-top: 0; }

  .exp-meta {}

  .exp-period {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
  }

  .exp-location {
    font-size: 0.73rem;
    color: var(--muted);
    margin-top: 0.3rem;
  }

  .contract-value {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.68rem;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.35);
    color: #8a6e20;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-weight: 600;
  }

  .exp-body {}

  .exp-role {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
  }

  .exp-company {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--teal);
    margin: 0.1rem 0 0.1rem;
  }

  .exp-client {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
  }

  .exp-desc {
    font-size: 0.85rem;
    color: var(--text);
  }

  .exp-desc p { margin-bottom: 0.4rem; }

  .sub-heading {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0.8rem 0 0.35rem;
  }

  .bullet-list {
    padding-left: 1.1rem;
    font-size: 0.84rem;
    color: var(--text);
  }

  .bullet-list li { margin-bottom: 0.25rem; }

  /* ── TRAINING / CERTS ────────────────────────────────── */
  .cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.8rem;
  }

  .cert-card {
    background: var(--light);
    border: 1px solid var(--mid);
    border-left: 3px solid var(--teal);
    border-radius: 8px;
    padding: 0.7rem 1rem;
  }

  .cert-card .cert-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
  }

  .cert-card .cert-meta {
    font-size: 0.73rem;
    color: var(--muted);
    margin-top: 0.2rem;
  }

  /* inhouse different color */
  .cert-card.inhouse { border-left-color: var(--gold); }

  /* ── VOLUNTEERING ───────────────────────────────────── */
  .vol-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.5rem 0;
    font-size: 0.87rem;
    border-bottom: 1px solid var(--mid);
  }
  .vol-item:last-child { border-bottom: none; }
  .vol-dot {
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 7px;
  }

  /* ── EDUCATION ──────────────────────────────────────── */
  .edu-entry {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.6rem 0;
  }
  .edu-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--teal);
    min-width: 50px;
    padding-top: 0.1rem;
  }
  .edu-body .edu-degree {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
  }
  .edu-body .edu-inst {
    font-size: 0.8rem;
    color: var(--muted);
  }

  /* ── FOOTER ─────────────────────────────────────────── */
  footer {
    background: var(--navy);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    margin-top: 1rem;
  }
  footer a { color: var(--gold); text-decoration: none; }

  /* ── RESPONSIVE ─────────────────────────────────────── */
  @media (max-width: 820px) {
    main { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .header-inner { grid-template-columns: 1fr; }
    .header-contact { flex-direction: row; flex-wrap: wrap; }
    .exp-entry { grid-template-columns: 1fr; gap: 0.3rem; }
    .exp-meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
  }

  @media (max-width: 520px) {
    .section { padding: 1.4rem; }
    nav ul li a { padding: 0.7rem 0.7rem; font-size: 0.72rem; }
  }

  /* ── ANIMATION ──────────────────────────────────────── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .section, .sidebar-section {
    animation: fadeUp 0.5s ease both;
  }
  .section:nth-child(1) { animation-delay: 0.05s; }
  .section:nth-child(2) { animation-delay: 0.10s; }
  .section:nth-child(3) { animation-delay: 0.15s; }
  .section:nth-child(4) { animation-delay: 0.20s; }
  .section:nth-child(5) { animation-delay: 0.25s; }

/* ── LIGHTBOX ─────────────────────────────────── */
.cert-link { cursor:pointer; }
.cert-link .cert-name { text-decoration: underline dotted var(--teal); }
.cert-link:hover .cert-name { color: var(--teal); }
.cert-link .cert-badge {
  display:inline-block; margin-left:6px;
  font-size:0.68rem; background:var(--teal); color:#fff;
  padding:1px 6px; border-radius:10px; vertical-align:middle;
  font-weight:600; letter-spacing:0.04em;
}

#cert-overlay {
  display:none; position:fixed; inset:0; z-index:9999;
  background:rgba(10,22,38,0.92); align-items:center; justify-content:center;
  padding:1.5rem;
}
#cert-overlay.active { display:flex; }
#cert-overlay .overlay-inner {
  position:relative; max-width:860px; width:100%;
  background:#fff; border-radius:12px; overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,0.6);
  animation: popIn 0.25s ease;
}
.overlay-actions {
  position: absolute;
  top: 10px;
  z-index: 10;
}

#cert-overlay .overlay-actions {
  right: 58px;
}

#dash-overlay .overlay-actions {
  position: static;
}
.overlay-ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  position: relative;
  z-index: 30;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: rgba(13,27,42,0.82);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.overlay-ai-btn:hover {
  background: var(--teal);
  transform: translateY(-1px);
}
@keyframes popIn {
  from { transform:scale(0.88); opacity:0; }
  to   { transform:scale(1);    opacity:1; }
}
#cert-overlay img {
  width:100%; display:block; max-height:88vh; object-fit:contain;
  background:#f4f1eb;
}
#cert-close {
  position:absolute; top:10px; right:14px;
  background:rgba(13,27,42,0.75); color:#fff;
  border:none; border-radius:50%; width:36px; height:36px;
  font-size:1.2rem; cursor:pointer; display:flex;
  align-items:center; justify-content:center;
  z-index:10; transition:background 0.2s;
}
#cert-close:hover { background:var(--teal,#1a6b72); }

/* ── DOWNLOAD CV BUTTON ─────────────────────────────── */
.cv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 3px 12px rgba(201,168,76,0.35);
}
.cv-download-btn:hover {
  background: #e0bc5a;
  transform: translateY(-1px);
}

/* ── POWER BI SECTION ───────────────────────────────── */
.powerbi-card {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  border-radius: 12px;
  padding: 2rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.powerbi-card .pb-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pb-icon {
  width: 52px; height: 52px;
  background: #F2C811;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
}
.pb-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.pb-subtitle { font-size: 0.82rem; color: rgba(255,255,255,0.65); }
.pb-desc { font-size: 0.88rem; color: rgba(255,255,255,0.80); line-height: 1.7; }
.pb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #F2C811;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.05em;
  width: fit-content;
  transition: background 0.2s;
}
.pb-btn:hover { background: #ffd633; }
.pb-placeholder {
  background: rgba(255,255,255,0.07);
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 1.2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  letter-spacing: 0.04em;
}

/* Keep Power BI screenshots as fixed thumbnails so they never stretch the page */
.pb-projects {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}
.pb-project {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  min-width: 0;
}
.pb-project-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
}
.pb-project-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(242,200,17,0.18);
  color: #F2C811;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.pb-project-info {
  flex: 1;
  min-width: 0;
}
.pb-project-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.pb-project-sub {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}
.pb-project-toggle {
  margin-left: auto;
  color: rgba(255,255,255,0.8);
  transition: transform 0.2s ease;
}
.pb-project.open .pb-project-toggle {
  transform: rotate(180deg);
}
.pb-thumbs {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
  padding: 0 1.1rem 1.1rem;
  width: 100%;
  min-width: 0;
}
.pb-project.open .pb-thumbs {
  display: grid;
}
/* Thumbs used outside the Power BI accordion (e.g. project cards) */
.pc-thumbs {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
  padding: 0.2rem 0 0.2rem;
  width: 100%;
}
.pc-thumbs .pb-thumb-item {
  background: var(--light);
  border: 1px solid var(--mid);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pc-thumbs .pb-thumb-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.pc-thumbs .pb-thumb-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.pc-thumbs .pb-thumb-label {
  font-size: 0.7rem;
  color: var(--navy);
  text-align: center;
  padding: 0.35rem 0.4rem;
  font-weight: 600;
  background: var(--light);
}
.pb-thumb-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}
.pb-thumb-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}
.pb-thumb-item img {
  display: block;
  width: 100%;
  height: 110px;
  max-width: 100%;
  object-fit: cover;
}
.pb-thumb-label {
  padding: 0.65rem 0.75rem 0.8rem;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.92);
  text-align: center;
  word-break: break-word;
}

#dash-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,22,38,0.92);
  padding: 1.5rem;
  align-items: center;
  justify-content: center;
}
#dash-overlay.active {
  display: flex;
}
.dash-modal {
  position: relative;
  width: min(960px, 100%);
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: popIn 0.25s ease;
}
.dash-title {
  padding: 1rem 1.25rem 0.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}
#dash-img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: calc(90vh - 120px);
  object-fit: contain;
  background: #f4f1eb;
}
#dash-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(13,27,42,0.75);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.dash-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.25rem 1.15rem;
}
.dash-nav button {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}
.dash-nav .overlay-ai-btn {
  background: var(--navy);
  margin-left: auto;
}
.dash-counter {
  color: var(--navy);
  font-weight: 600;
}

/* ── PROJECT CARDS ──────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.2rem;
}
.project-card {
  border: 1px solid var(--mid);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.project-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}
.project-card .pc-header {
  padding: 1.1rem 1.3rem 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  border-bottom: 1px solid var(--mid);
}
.pc-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.pc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.pc-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
  margin-top: 0.3rem;
  background: rgba(26,107,114,0.10);
  color: var(--teal);
}
.project-card .pc-body {
  padding: 1rem 1.3rem 1.2rem;
}
.pc-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.8rem;
}
.pc-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}
.pc-tech span {
  font-size: 0.72rem;
  background: var(--light);
  border: 1px solid var(--mid);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  color: var(--navy);
  font-weight: 500;
}
.pc-highlights { padding-left: 1rem; }
.pc-highlights li {
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.pc-coming {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 0.5rem 0 0.2rem;
}


/* ── AI ASSISTANT ───────────────────────────────────── */
.ai-wrap {
  background: linear-gradient(160deg, #0d1b2a 0%, #0f2d3a 60%, #1a6b72 100%);
  border-radius: 14px;
  overflow: hidden;
}
.ai-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.9rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ai-topbar-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}
.ai-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--teal), #0d4a50);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(26,107,114,0.35);
}
.ai-topbar-info .ai-name { font-weight:700; color:#fff; font-size:0.95rem; }
.ai-topbar-info .ai-status {
  font-size:0.73rem; color:rgba(255,255,255,0.5);
  display:flex; align-items:center; gap:0.35rem;
}
.ai-topbar-info .ai-status::before {
  content:''; display:inline-block;
  width:7px; height:7px; border-radius:50%;
  background:#4ade80; box-shadow:0 0 6px #4ade80;
}
.ai-topbar-close {
  appearance: none;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ai-topbar-close:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
#ai-messages {
  height: 360px; overflow-y: auto;
  padding: 1.2rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  scroll-behavior: smooth;
}
#ai-messages::-webkit-scrollbar { width: 4px; }
#ai-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius:4px; }
.msg {
  max-width: 85%; padding: 0.65rem 1rem;
  border-radius: 14px; font-size: 0.86rem; line-height: 1.6;
  animation: msgIn 0.25s ease;
}
@keyframes msgIn {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}
.msg.user {
  align-self:flex-end; background:var(--teal); color:#fff;
  border-bottom-right-radius:4px;
}
.msg.bot {
  align-self:flex-start;
  background:rgba(255,255,255,0.09); color:rgba(255,255,255,0.88);
  border-bottom-left-radius:4px; border:1px solid rgba(255,255,255,0.08);
}
.msg.typing {
  align-self:flex-start;
  background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.08);
  color:rgba(255,255,255,0.5); font-style:italic; font-size:0.82rem;
}
.ai-suggestions {
  display:flex; flex-wrap:wrap; gap:0.5rem;
  padding: 0.6rem 1.5rem 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ai-suggestions button {
  background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.15);
  color:rgba(255,255,255,0.7); border-radius:20px;
  padding:0.3rem 0.85rem; font-size:0.75rem; cursor:pointer;
  font-family:'DM Sans',sans-serif; transition:background 0.2s,color 0.2s;
}
.ai-suggestions button:hover {
  background:rgba(26,107,114,0.45); color:#fff; border-color:var(--teal);
}
.ai-inputbar {
  display:flex; gap:0.6rem;
  padding:0.9rem 1.5rem 1.2rem;
  border-top:1px solid rgba(255,255,255,0.08);
}
#ai-input {
  flex:1; background:rgba(255,255,255,0.07);
  border:1px solid rgba(255,255,255,0.15);
  border-radius:8px; padding:0.6rem 1rem;
  color:#fff; font-size:0.87rem;
  font-family:'DM Sans',sans-serif; outline:none;
  transition:border-color 0.2s;
}
#ai-input::placeholder { color:rgba(255,255,255,0.35); }
#ai-input:focus { border-color:var(--teal); }
#ai-send {
  background:var(--gold); color:var(--navy);
  border:none; border-radius:8px;
  padding:0.6rem 1.1rem; font-weight:700; font-size:0.85rem;
  cursor:pointer; transition:background 0.2s,transform 0.15s;
  font-family:'DM Sans',sans-serif;
}
#ai-send:hover { background:#e0bc5a; transform:translateY(-1px); }
#ai-send:disabled { opacity:0.5; cursor:not-allowed; transform:none; }

#ai-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10020;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
  pointer-events: none;
}

.ai-widget-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.58rem 0.78rem;
  border: 1px solid rgba(13,27,42,0.08);
  border-radius: 999px;
  background: linear-gradient(135deg, #0d1b2a 0%, #143755 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(9, 18, 31, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  pointer-events: auto;
}

.ai-widget-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(9, 18, 31, 0.28);
}

.ai-widget-toggle-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(201,168,76,0.18);
  color: var(--gold);
  font-size: 0.8rem;
}

.ai-widget-toggle-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.ai-widget-toggle-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ai-widget-toggle-subtitle {
  margin-top: 0.15rem;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.68);
}

.ai-widget-panel {
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 130px));
  max-height: 620px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 90px rgba(5, 12, 24, 0.34);
  background: linear-gradient(160deg, #0d1b2a 0%, #0f2d3a 60%, #1a6b72 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

#ai-widget.active .ai-widget-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

#ai-widget.active .ai-widget-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.ai-widget-panel .ai-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.ai-widget-panel #ai-messages {
  flex: 1;
  height: auto;
  min-height: 220px;
}

@keyframes cvModalIn {
    from { opacity:0; transform:translateY(18px) scale(0.97); }
    to   { opacity:1; transform:translateY(0)    scale(1); }
  }
nav ul li a[aria-current="page"] {
  color: var(--gold);
  background: rgba(255,255,255,0.08);
}

.page-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
  margin: 0 0 2rem;
}

.page-link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, #f6f2ec 100%);
  border: 1px solid rgba(13, 27, 42, 0.08);
  border-radius: 18px;
  padding: 1.2rem 1.1rem;
  box-shadow: 0 14px 34px rgba(13, 27, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

button.page-link-card {
  appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.page-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(13, 27, 42, 0.12);
  border-color: rgba(26, 107, 114, 0.22);
}

.page-link-kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.45rem;
}

.page-link-title {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.page-link-desc {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.section-intro {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 700px) {
  .page-links {
    grid-template-columns: 1fr;
  }
}

:root {
  --light: #eef2f5;
  --mid: #d8e0e7;
  --text: #23313d;
  --muted: #5d6a76;
  --surface: #f7f9fb;
  --border: #d7dfe7;
  --shadow-soft: 0 16px 40px rgba(13, 27, 42, 0.06);
  --shadow-card: 0 22px 50px rgba(13, 27, 42, 0.08);
}

body {
  background:
    radial-gradient(circle at top left, rgba(201, 168, 76, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fafb 0%, #eef2f5 100%);
  color: var(--text);
}

header {
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

header::before {
  background: linear-gradient(
    135deg,
    rgba(10, 22, 38, 0.82) 0%,
    rgba(10, 22, 38, 0.70) 50%,
    rgba(26, 107, 114, 0.55) 100%
  );
}

.header-inner {
  max-width: 1180px;
  padding: 1.6rem 2rem 1.25rem;
  gap: 2.4rem;
}

.header-left .title-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.78rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(201,168,76,0.34);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  letter-spacing: 0.16em;
}

.header-left .header-subtitle {
  margin-bottom: 1.1rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.58);
}

.header-left h1 {
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 1.02;
  margin-bottom: 0.7rem;
}

.header-left .summary {
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.82);
}

.header-contact {
  gap: 0.8rem;
  min-width: 280px;
  padding: 1.35rem 1.25rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(4, 10, 20, 0.18);
}

.contact-item {
  gap: 0.75rem;
  font-size: 0.87rem;
}

.contact-item .icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(201,168,76,0.14);
  border: 1px solid rgba(201,168,76,0.28);
  color: var(--gold);
  font-size: 0.8rem;
}

.cv-download-btn {
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  letter-spacing: 0.12em;
}

nav {
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(13,27,42,0.08);
  box-shadow: 0 8px 24px rgba(13,27,42,0.06);
  backdrop-filter: blur(16px);
}

nav ul {
  max-width: 1180px;
  justify-content: flex-start;
  padding: 0 1.1rem;
}

nav ul li a,
nav ul li button.nav-inline-trigger {
  padding: 1rem 0.95rem;
  color: rgba(13,27,42,0.76);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

nav ul li a:hover,
nav ul li button.nav-inline-trigger:hover {
  color: var(--teal);
  background: transparent;
}

nav ul li a[aria-current="page"] {
  color: var(--navy);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--gold);
}

main {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 2rem 3.5rem;
  gap: 2rem;
}

.sidebar {
  top: 108px;
}

.sidebar-section,
.section {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.sidebar-section {
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  border-top: 0;
}

.sidebar-section h3 {
  margin-bottom: 0.95rem;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-pill,
.pc-tech span {
  background: #f8fafc;
  border-color: var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
}

.lang-row {
  border-bottom-color: var(--border);
}

.lang-level {
  background: rgba(26,107,114,0.12);
  color: var(--teal);
}

.detail-value,
.pc-desc,
.edu-body .edu-inst,
.cert-card .cert-meta,
.exp-client {
  color: var(--muted);
}

.section {
  padding: 2rem 2.1rem;
  margin-bottom: 1.5rem;
}

.section-heading {
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.section-heading h2 {
  font-size: 1.75rem;
  letter-spacing: 0.01em;
}

.section-heading .icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #f7fafc;
  border: 1px solid rgba(13,27,42,0.1);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading .line {
  background: linear-gradient(90deg, rgba(201,168,76,0.7), rgba(216,224,231,0.4));
}

.section-intro {
  max-width: 760px;
  font-size: 0.96rem;
  line-height: 1.8;
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.home-hero-copy {
  max-width: 860px;
}

.home-eyebrow,
.home-summary-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
}

.home-hero h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  color: var(--navy);
  margin: 0.6rem 0 1rem;
}

.home-lead {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.45rem 0 1.2rem;
}

.home-metric,
.about-stat,
.edu-entry,
.vol-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.home-metric {
  padding: 1rem 1rem 0.95rem;
}

.home-metric strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--navy);
}

.home-metric span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.home-primary,
.home-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 16px 32px rgba(13,27,42,0.16);
}

.home-secondary {
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  border: 1px solid var(--border);
}

.home-primary:hover,
.home-secondary:hover {
  transform: translateY(-2px);
}

.home-summary-card {
  padding: 1.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.home-summary-card h3 {
  margin: 0.5rem 0 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--navy);
}

.home-summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.home-summary-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.home-summary-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.home-directory .section-heading .icon-badge {
  font-size: 0.64rem;
}

.page-links {
  gap: 1rem;
  margin: 0;
}

.page-link-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: none;
}

.page-link-card:hover {
  box-shadow: var(--shadow-soft);
  border-color: rgba(26,107,114,0.24);
}

.page-link-kicker {
  margin-bottom: 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.page-link-title {
  margin-bottom: 0.5rem;
  font-size: 1.45rem;
}

.page-link-desc {
  font-size: 0.88rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.about-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem;
}

.stat-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(26,107,114,0.10);
  color: var(--teal);
  flex-shrink: 0;
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--navy);
}

.stat-label {
  margin-top: 0.32rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}

.about-quote {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.2rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 16px 16px 0;
  background: var(--surface);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--navy);
}

.about-fact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(26,107,114,0.08);
  border: 1px solid rgba(26,107,114,0.14);
  color: var(--navy);
  font-size: 0.88rem;
}

.about-fact strong {
  color: var(--teal);
}

.about-body p {
  margin-bottom: 1rem;
  color: var(--muted);
  line-height: 1.9;
}

.gold {
  color: #9c7a2b;
  font-weight: 700;
}

.highlight {
  color: var(--navy);
  font-weight: 700;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.about-tag {
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--navy);
}

.exp-entry {
  grid-template-columns: 160px 1fr;
  gap: 0 1.25rem;
  padding: 1.5rem 0;
  border-bottom-color: var(--border);
}

.exp-meta {
  padding: 0.95rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  height: fit-content;
}

.exp-period {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.exp-role {
  font-size: 1.28rem;
  margin-bottom: 0.18rem;
}

.sub-heading {
  margin: 1rem 0 0.45rem;
  letter-spacing: 0.12em;
  color: var(--teal);
}

.bullet-list li,
.pc-highlights li {
  margin-bottom: 0.38rem;
  line-height: 1.7;
}

.cert-grid,
.project-grid {
  gap: 1rem;
}

.cert-card,
.project-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: none;
}

.cert-card {
  padding: 1rem 1.05rem;
  border-left: 0;
}

.cert-link:hover,
.project-card:hover {
  box-shadow: var(--shadow-soft);
}

.cert-card .cert-name {
  font-size: 0.88rem;
  line-height: 1.5;
}

.cert-link .cert-name {
  text-decoration: none;
}

.cert-link .cert-badge {
  background: rgba(26,107,114,0.12);
  color: var(--teal);
}

.vol-item,
.edu-entry {
  padding: 1rem 1.05rem;
  border-bottom: 0;
}

.vol-item + .vol-item,
.edu-entry + .edu-entry {
  margin-top: 0.8rem;
}

.powerbi-card {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-card);
}

.pb-project,
.pb-thumb-item {
  border-radius: 16px;
}

.project-card .pc-header {
  padding: 1.2rem 1.3rem 1rem;
  background: linear-gradient(180deg, #fbfcfd 0%, #f5f8fa 100%);
  border-bottom-color: var(--border);
}

.pc-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(26,107,114,0.10);
  border: 1px solid rgba(26,107,114,0.12);
  font-size: 1rem;
}

.pc-title {
  font-size: 1.18rem;
}

.pc-tag {
  background: rgba(26,107,114,0.10);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
}

.ai-wrap {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-card);
}

footer {
  margin-top: 0.5rem;
  padding: 1.8rem;
  background: #0d1b2a;
  letter-spacing: 0.08em;
}

.section,
.sidebar-section {
  animation: none;
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  main {
    margin-top: 0;
    padding-top: 1.5rem;
  }

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

  nav ul {
    justify-content: center;
  }

  .exp-meta {
    padding: 0.75rem 0.9rem;
  }

  #ai-widget {
    right: 16px;
    bottom: 16px;
  }

  .ai-widget-panel {
    width: min(380px, calc(100vw - 24px));
    height: min(560px, calc(100vh - 110px));
  }
}

@media (max-width: 640px) {
  .home-metrics,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .home-actions {
    flex-direction: column;
  }

  .home-primary,
  .home-secondary {
    width: 100%;
  }

  #ai-widget {
    left: 12px;
    right: 12px;
    bottom: 12px;
    align-items: stretch;
  }

  .ai-widget-toggle {
    width: 100%;
    justify-content: center;
  }

  .ai-widget-panel {
    width: 100%;
    height: min(68vh, 520px);
    transform-origin: bottom center;
  }

  .ai-topbar,
  #ai-messages,
  .ai-suggestions,
  .ai-inputbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #ai-messages {
    height: auto;
    min-height: 180px;
  }

  .ai-inputbar {
    flex-direction: column;
  }

  #ai-send {
    width: 100%;
  }
}
















