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

:root {
  --bg: #ffffff;
  --bg2: #f7f7f8;
  --border: #e8e8ec;
  --text: #111113;
  --text-mid: #444448;
  --text-soft: #8a8a92;
  --accent: #3b5bdb;
  --accent-bg: #eef2ff;
  --tag-bg: #f1f1f4;
  --tag-text: #444448;
  --green: #2f9e44;
  --green-bg: #ebfbee;
  --amber: #e67700;
  --amber-bg: #fff3cd;
  --navy: #1e3a5f;
  --navy-bg: #e8f0fb;
  --radius: 10px;
}
@font-face {
  font-family: 'OpenRunde-Regular';
  src: url('../fonts/OpenRunde-Regular.otf') format('woff2');
}

@font-face {
  font-family: 'OpenRunde-Medium';
  src: url('../fonts/OpenRunde-Medium.otf') format('woff2');
}

@font-face {
  font-family: 'OpenRunde-Semibold';
  src: url('../fonts/OpenRunde-Semibold.otf') format('woff2');
}

@font-face {
  font-family: 'OpenRunde-Bold';
  src: url('../fonts/OpenRunde-Bold.otf') format('woff2');
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg2);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── TOP NAV ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-logo {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
}

.topbar-nav { display: flex; gap: 0.25rem; }

.topbar-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  transition: all 0.15s;
}

.topbar-nav a:hover,
.topbar-nav a.active {
  color: var(--text);
  background: var(--tag-bg);
}

/* ── LAYOUT ── */
.wrapper {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

.main-col { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar  { display: flex; flex-direction: column; gap: 1.5rem; }

/* ── CARD ── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-pad    { padding: 1.75rem; }
.card-pad-sm { padding: 1.25rem 1.75rem; }

/* ── PROFILE HEADER ── */
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 5%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  border-radius: 5%;
  object-fit: cover;
}

.profile-info { flex: 1; }

.profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verified {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.6rem;
}

.profile-location {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.profile-role {
  font-size: 0.88rem;
  color: var(--text-mid);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-bg);
  border: 1px solid rgba(47, 158, 68, 0.2);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── ACTION BUTTONS ── */
.profile-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 7px;
  text-decoration: none;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--text); color: white; }
.btn-primary:hover { background: #333; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-mid);
}

.btn-ghost:hover { background: var(--tag-bg); }

/* ── SECTION TITLES ── */
.section-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  color: var(--text);
}

.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

/* ── VIEW ALL BUTTON ── */
.view-all-btn {
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  /* background: var(--accent-bg); */
  /* border: 1px solid rgba(59,91,219,0.15); */
  border-radius: 6px;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

/* .view-all-btn:hover {
  background: var(--accent);
  color: white;
} */

/* ── ABOUT ── */
.about-text {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.about-text p { margin-bottom: 0.875rem; }
.about-text p:last-child { margin-bottom: 0; }

/* ── TECH STACK ── */
.stack-group { margin-bottom: 1.25rem; }
.stack-group:last-child { margin-bottom: 0; }

.stack-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.stack-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.s-tag {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.28rem 0.65rem;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--tag-text);
}

.s-tag.learning {
  background: var(--green-bg);
  border-color: rgba(47, 158, 68, 0.2);
  color: var(--green);
}

.s-tag.planned {
  background: var(--amber-bg);
  border-color: rgba(230, 119, 0, 0.2);
  color: var(--amber);
}

.stack-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-soft);
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.proj-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  transition: border-color 0.15s;
}

.proj-card:hover { border-color: #c5c5d0; }

.proj-name {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.proj-desc {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 0.625rem;
  line-height: 1.55;
}

.proj-url {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
}

.proj-status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ps {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ps-academic { background: var(--navy-bg);   color: var(--navy);       }
.ps-done     { background: var(--green-bg);  color: var(--green);      }
.ps-wip      { background: var(--amber-bg);  color: var(--amber);      }
.ps-planned  { background: var(--tag-bg);    color: var(--text-soft);  }

/* ── CERTIFICATIONS ── */
.cert-list { display: flex; flex-direction: column; gap: 0; }

.cert-item {
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1rem ;
  /* border-bottom: 1px solid var(--border); */
}
.cert-button{
  user-select: none;
  border-radius: 3px;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  width: 100%;
  background: var(--tag-bg);
  padding-top: 5px;
  padding-bottom: 5px;
  padding: 5px 10px;
  transition: background 0.2s ease;
}
.cert-button:hover{
  transition: background 0.2s ease;
  background: #e2e2e6
}
.cert-item:last-child { border-bottom: none; }

.cert-name   { font-size: 0.86rem; font-weight: 600; }
.cert-issuer { font-size: 0.76rem; color: var(--text-soft); }

.cert-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: var(--tag-bg);
  flex-shrink: 0;
}

/* ── CONTACT GRID ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.contact-grid-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.875rem;
  text-decoration: none;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  transition: background 0.15s;
}

.contact-grid-item:hover { background: var(--bg2); }

/* ── SIDEBAR: EXPERIENCE ── */
.exp-list { display: flex; flex-direction: column; }

.exp-item {
  display: flex;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background 0.15s;
  border-radius: 6px;
}

.exp-item:last-child { border-bottom: none; }

/* Circle dot indicator */
.exp-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  margin-top: 2px;
  flex-shrink: 0;
  transition: all 0.2s;
  background: var(--bg);
}

.exp-item.active .exp-dot,
.exp-item:hover .exp-dot {
  background: var(--text);
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(17,17,19,0.1);
}

.exp-main { flex: 1; }

.exp-title   { font-size: 0.86rem; font-weight: 600; color: var(--text); margin-bottom: 0.1rem; }
.exp-company { font-size: 0.76rem; color: var(--text-soft); }

.exp-year {
  font-size: 0.74rem;
  color: var(--text-soft);
  font-weight: 500;
  white-space: nowrap;
  padding-top: 2px;
}

/* ── SIDEBAR: CONTACT ── */
.contact-list { display: flex; flex-direction: column; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: opacity 0.15s;
}

.contact-row:last-child { border-bottom: none; }
.contact-row:hover { opacity: 0.65; }

.contact-icon {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: var(--bg2);
  flex-shrink: 0;
}

.contact-info  { flex: 1; }
.contact-label { font-size: 0.7rem;  color: var(--text-soft); font-weight: 500; }
.contact-val   { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.contact-arrow { color: var(--text-soft); font-size: 0.8rem; }

/* ── FOOTER ── */
footer {
  font-family:'OpenRunde-Regular' ;
  margin-bottom: 30px;
  max-width: 1000px;
  margin: 1rem auto 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.90rem;
  color: var(--text-hard);
  border-top: 1px solid var(--border);
}

/* ── FADE-IN ANIMATION ── */
.fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade.in {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════
   MODAL STYLES
══════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text-soft);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.modal-close:hover {
  background: var(--tag-bg);
  color: var(--text);
}

.modal-body {
  overflow-y: auto;
  padding: 1.5rem;
  flex: 1;
}

.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── MODAL STACK ── */
.modal-section { margin-bottom: 2rem; }
.modal-section:last-child { margin-bottom: 0; }

.modal-section-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.learning-label { color: var(--green); }
.planned-label  { color: var(--amber); }
.cs-label       { color: var(--text-soft); }

.modal-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.625rem;
}

.modal-stack-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.875rem;
  transition: border-color 0.15s, transform 0.15s;
  cursor: default;
}

.modal-stack-item:hover {
  border-color: #c5c5d0;
  transform: translateY(-1px);
}

.modal-stack-item.learning { border-left: 3px solid var(--green); }
.modal-stack-item.planned  { border-left: 3px solid var(--amber); }
.modal-stack-item.cs       { border-left: 3px solid #ccc; }

.msi-icon {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  line-height: 1;
}

.msi-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.msi-desc {
  font-size: 0.72rem;
  color: var(--text-soft);
  line-height: 1.45;
}

/* ── MODAL CERTS ── */
.modal-cert-list { display: flex; flex-direction: column; gap: 0; }

.modal-cert-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.modal-cert-item:last-child { border-bottom: none; }
.modal-cert-item.upcoming { opacity: 0.7; }

.modal-cert-icon {
  width: 40px;
  height: 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cert-status {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cert-status.done    { background: var(--green-bg);  color: var(--green); }
.cert-status.wip     { background: var(--amber-bg);  color: var(--amber); }
.cert-status.planned { background: var(--tag-bg);    color: var(--text-soft); }

.cert-year {
  font-size: 0.74rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* ── MODAL TIMELINE (Experience) ── */
.modal-timeline { display: flex; flex-direction: column; }

.timeline-item {
  display: grid;
  grid-template-columns: 24px 2px 1fr;
  gap: 0 0.875rem;
  padding-bottom: 1.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  margin-top: 3px;
  flex-shrink: 0;
  transition: all 0.2s;
  justify-self: center;
}

.tl-dot.filled-dot {
  background: var(--text);
  border-color: var(--text);
}

.tl-dot.active-dot {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-bg);
}

.tl-line {
  width: 2px;
  background: var(--border);
  justify-self: center;
  margin-top: 2px;
}

.tl-line.last-line { background: transparent; }

.tl-content {
  padding-bottom: 0;
  padding-top: 0;
}

.tl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
  gap: 0.5rem;
}

.tl-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.tl-year {
  font-size: 0.72rem;
  color: var(--text-soft);
  font-weight: 500;
  white-space: nowrap;
}

.now-badge {
  background: var(--green-bg);
  color: var(--green);
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.7rem;
}

.tl-company {
  font-size: 0.76rem;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.tl-desc {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .wrapper            { grid-template-columns: 1fr; }
  .projects-grid      { grid-template-columns: 1fr; }
  .contact-grid       { grid-template-columns: 1fr; }
  .topbar-nav         { display: none; }
  .modal-stack-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .modal-stack-grid { grid-template-columns: 1fr; }
}