/* =====================================================================
   Personal / portfolio demo — dark, minimal, technical
   ===================================================================== */
.pers {
  --d-bg: #0c0c10; --d-surface: #14141b; --d-soft: #191922; --d-text: #ecebf3; --d-muted: #9a98ab; --d-line: #25242f;
  --ink: #ecebf3; --ink-2: #c9c7d6; --muted: #9a98ab; --line: #25242f; --line-2: #1d1c26; --bg-2: #14141b;
  --c1-soft: rgba(139, 92, 246, .14);
  background: var(--d-bg); color: var(--d-text); position: relative; overflow-x: hidden;
}
.pers ::selection { background: var(--c2); color: #111; }
.pers-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(600px 400px at 85% -5%, rgba(139, 92, 246, .22), transparent 70%), radial-gradient(500px 400px at 0 60%, rgba(163, 230, 53, .06), transparent 70%); }
.pers main, .pers footer, .pers header { position: relative; z-index: 1; }
.pers .card, .pers .input, .pers .select, .pers .textarea, .pers .chip, .pers .pg-btn, .pers .table-wrap { background: var(--d-surface); border-color: var(--d-line); color: var(--d-text); }
.pers .input::placeholder, .pers .textarea::placeholder { color: #5f5d70; }
.pers .chip.is-active { background: var(--c2); border-color: var(--c2); color: #111; }
.pers .pg-btn.is-current { background: var(--c1); color: #fff; }
.pers .btn-ghost { --b-fg: var(--d-text); border-color: var(--d-line); }
.pers .btn-ghost:hover { background: var(--d-soft); }
.pers .btn-primary { --b-bg: var(--c1); }
.pers .alert-success { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .3); color: #6ee7b7; }
.pers .alert-error { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .3); color: #fca5a5; }
.pers .drawer, .pers .drawer-head { background: #121218; color: var(--d-text); }
.pers .drawer-nav a { border-color: var(--d-line); }
.pers .d-page-head { background: none; }
.pers .eyebrow { background: rgba(163, 230, 53, .1); color: var(--c2); }
.pers .post-card__cat { background: rgba(12, 12, 16, .8); color: var(--d-text); }
.pers .map-card__label { background: rgba(12, 12, 16, .9); color: var(--d-text); }
.pers .link-arrow { color: var(--c2); }
.pers .icon-box { background: rgba(139, 92, 246, .14); color: #c4b5fd; }
.pers .prj-card__cat { color: var(--c2); }
.pers .prj-card:hover .prj-card__go { background: var(--c2); border-color: var(--c2); color: #111; }
.pers .badge { background: var(--d-soft); color: var(--d-text); }
.pers .contact-item a { color: var(--d-text); }
.pers .prose a { color: var(--c2); }
.pers .stars { color: #3a3947; }

.pers-btn { --b-bg: var(--c2); --b-fg: #111; background: var(--c2); color: #111; font-weight: 800; }
.pers-btn:hover { box-shadow: 0 14px 30px -14px var(--c2); }
.pers-ghost { --b-bg: transparent; --b-fg: var(--d-text); border-color: #3a3947; }
.pers-ghost:hover { border-color: var(--c1); box-shadow: none; }

/* header */
.pers-header { position: sticky; top: 0; z-index: 500; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.pers-header.is-scrolled { background: rgba(12, 12, 16, .8); backdrop-filter: blur(14px); border-color: var(--d-line); }
.pers-header__in { display: flex; align-items: center; gap: 28px; height: 78px; }
.pers-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.pers-logo span { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), #6d28d9); color: #fff; font-weight: 900; font-size: 15px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset; }
.pers-nav { display: flex; gap: 2px; margin-inline-start: auto; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--d-line); }
.pers-nav a { padding: 7px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--d-muted); transition: all .2s; }
.pers-nav a:hover { color: var(--d-text); }
.pers-nav a.is-active { background: var(--d-soft); color: var(--d-text); box-shadow: 0 0 0 1px var(--d-line); }
.pers-menu { margin-inline-start: auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--d-line); color: var(--d-text); }

/* hero */
.p-hero { padding: 60px 0 40px; }
.p-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.avail { display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px; border-radius: 99px; border: 1px solid rgba(163, 230, 53, .3); background: rgba(163, 230, 53, .06); color: var(--c2); font-size: 13.5px; font-weight: 600; margin-bottom: 22px; }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: var(--c2); box-shadow: 0 0 12px var(--c2); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.p-hero h1 { font-size: clamp(32px, 5vw, 60px); line-height: 1.3; font-weight: 900; letter-spacing: -.02em; margin-bottom: 22px; }
.grad { background: linear-gradient(90deg, #c4b5fd, var(--c1) 45%, var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-hero p { font-size: 17.5px; color: var(--d-muted); line-height: 2.1; max-width: 560px; margin-bottom: 30px; }
.p-hero__stats { display: flex; gap: 36px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--d-line); }
.p-hero__stats b { display: block; font-size: 34px; font-weight: 900; line-height: 1.3; }
.p-hero__stats small { color: var(--d-muted); }
.p-hero__photo { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.p-hero__photo img { position: relative; border-radius: 40% 40% 32px 32px; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 40px 80px -30px rgba(139, 92, 246, .5); }
.ring { position: absolute; inset: -18px; border-radius: 44% 44% 40px 40px; border: 1px dashed rgba(139, 92, 246, .45); animation: spin-slow 30s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.chip-float { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 14px; background: rgba(20, 20, 27, .85); backdrop-filter: blur(10px); border: 1px solid var(--d-line); font-size: 13px; font-weight: 700; box-shadow: var(--sh-3); animation: float 6s ease-in-out infinite; z-index: 2; }
.chip-float .i { width: 17px; height: 17px; color: var(--c2); }
.chip-float.f1 { top: 12%; right: -28px; } .chip-float.f2 { bottom: 26%; left: -34px; animation-delay: -2s; } .chip-float.f3 { bottom: -12px; right: 16%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* section heads */
.p-sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.p-sec-head > span { font-family: ui-monospace, monospace; color: var(--c2); font-weight: 700; font-size: 15px; }
.p-sec-head h2 { font-size: clamp(24px, 3vw, 36px); margin: 0; }
.p-sec-head p { color: var(--d-muted); margin: 0; flex-basis: 100%; }
.p-sec-head .link-arrow { margin-inline-start: auto; }

/* skills */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill-card { padding: 24px; border-radius: 22px; background: var(--d-surface); border: 1px solid var(--d-line); }
.skill-card h3 { font-size: 16px; margin-bottom: 18px; color: var(--c2); }
.skill { margin-bottom: 16px; }
.skill__top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; }
.skill__top b { color: var(--d-muted); font-weight: 600; }
.skill__bar { height: 6px; border-radius: 9px; background: var(--d-soft); overflow: hidden; }
.skill__bar i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, var(--c1), var(--c2)); transition: width 1.4s var(--ease); }

/* services */
.p-svc { padding: 26px; border-radius: 22px; background: var(--d-surface); border: 1px solid var(--d-line); transition: all .35s var(--ease); }
.p-svc:hover { border-color: rgba(139, 92, 246, .5); transform: translateY(-5px); background: linear-gradient(160deg, rgba(139, 92, 246, .1), var(--d-surface)); }
.p-svc h3 { font-size: 17px; margin: 16px 0 8px; }
.p-svc p { color: var(--d-muted); font-size: 14px; margin: 0; }
.price-card { position: relative; padding: 32px; border-radius: 26px; background: var(--d-surface); border: 1px solid var(--d-line); display: flex; flex-direction: column; }
.price-card.hot { border-color: var(--c1); box-shadow: 0 30px 60px -40px var(--c1); }
.price-card__tag { position: absolute; top: -13px; left: 26px; background: var(--c2); color: #111; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 99px; }
.price-card h2 { font-size: 21px; margin: 18px 0 8px; }
.price-card p { color: var(--d-muted); }
.price-card__price { font-size: 22px; font-weight: 900; color: var(--c2); margin-bottom: 16px; }
.price-card ul { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; flex: 1; }
.price-card li { display: flex; gap: 8px; align-items: center; font-size: 14.5px; }
.price-card li .i { width: 18px; height: 18px; color: var(--c2); }

/* experience */
.p-two { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.xp-list { list-style: none; position: relative; padding-right: 24px; border-right: 1px solid var(--d-line); }
.xp-list li { position: relative; padding-bottom: 26px; }
.xp-list li::before { content: ""; position: absolute; right: -30.5px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--d-bg); border: 2px solid var(--c1); }
.xp-period { display: inline-block; font-size: 12.5px; color: var(--c2); font-weight: 700; margin-bottom: 4px; }
.xp-list h3 { font-size: 17px; margin-bottom: 2px; }
.xp-list b { font-size: 14px; color: #c4b5fd; font-weight: 600; }
.xp-list p { color: var(--d-muted); font-size: 14px; margin: 6px 0 0; }
.p-quotes { display: grid; gap: 16px; }
.p-quote { margin: 0; padding: 24px; border-radius: 22px; background: var(--d-surface); border: 1px solid var(--d-line); }
.p-quote blockquote { margin: 0 0 16px; line-height: 2; color: var(--ink-2); }
.p-quote figcaption { display: flex; align-items: center; gap: 12px; }
.p-quote img { width: 44px; height: 44px; border-radius: 50%; }
.p-quote span { display: flex; flex-direction: column; line-height: 1.6; }
.p-quote small { color: var(--d-muted); }

/* about */
.p-about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.p-about__photo img { border-radius: 32px; box-shadow: 0 40px 80px -40px rgba(139, 92, 246, .6); }
.p-about h1 { font-size: clamp(26px, 3.4vw, 40px); margin: 12px 0 16px; }
.info-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.info-list li { padding: 14px; border-radius: 16px; background: var(--d-surface); border: 1px solid var(--d-line); display: flex; flex-direction: column; line-height: 1.7; }
.info-list small { color: var(--d-muted); font-size: 12.5px; }
.ok-text { color: var(--c2); }

/* resume */
.resume-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.resume { background: #fff; color: #1f2937; border-radius: 26px; overflow: hidden; --d-text: #1f2937; --d-muted: #6b7280; --d-line: #e5e7eb; --ink: #111827; --ink-2: #374151; --muted: #6b7280; }
.resume__head { display: flex; align-items: center; gap: 24px; padding: 36px 40px; background: linear-gradient(120deg, #1e1b4b, #4c1d95); color: #fff; }
.resume__head img { width: 110px; height: 110px; border-radius: 24px; border: 3px solid rgba(255, 255, 255, .3); }
.resume__head h1 { font-size: 30px; margin: 0; }
.resume__role { color: var(--c2); font-weight: 700; margin: 4px 0 10px; }
.resume__contact { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: #ddd6fe; }
.resume__contact > span { display: inline-flex; align-items: center; gap: 6px; }
.resume__contact .i { width: 16px; height: 16px; }
.resume__body { display: grid; grid-template-columns: 1.6fr 1fr; }
.resume__main { padding: 32px 40px; }
.resume__side { padding: 32px 30px; background: #f8f7fc; }
.resume h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; color: #4c1d95; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid #ede9fe; }
.resume h2 .i { width: 19px; height: 19px; }
.resume section + section { margin-top: 28px; }
.resume .prose { font-size: 14.5px; line-height: 2; color: #374151; }
.resume .xp-list { border-color: #e5e7eb; }
.resume .xp-list li::before { background: #fff; }
.resume .xp-period { color: #7c3aed; }
.resume .xp-list b { color: #6d28d9; }
.resume .skill__bar { background: #ede9fe; }
.resume .skill__top b { color: #6b7280; }
.lang-row { display: flex; justify-content: space-between; font-size: 14px; margin: 0 0 8px; }
.lang-row b { color: #6d28d9; }
@media print {
  .pers-header, .pers-footer, .demo-bar, .demo-spacer, .no-print, .pers-glow { display: none !important; }
  body.pers { background: #fff; }
  .resume { border-radius: 0; }
  .section { padding: 0 !important; }
  .container { max-width: none; padding: 0; }
  .resume__head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .skill__bar i, .resume__side { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* footer */
.pers-footer { padding: 70px 0 20px; margin-top: 40px; border-top: 1px solid var(--d-line); }
.pers-footer__cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 50px; }
.pers-footer__cta h2 { font-size: clamp(28px, 4.5vw, 54px); line-height: 1.4; margin: 0; font-weight: 900; }
.pers-footer__cta h2 span { color: var(--d-muted); }
.pers-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--d-line); color: var(--d-muted); font-size: 13.5px; }
.pers-social { display: flex; gap: 8px; }
.pers-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--d-line); transition: all .2s; }
.pers-social a:hover { border-color: var(--c2); color: var(--c2); transform: translateY(-3px); }

@media (max-width: 1100px) { .pers-nav a { padding: 7px 10px; } }
@media (max-width: 960px) {
  .p-hero__grid, .p-two, .p-about { grid-template-columns: 1fr; }
  .p-hero__photo { max-width: 340px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .resume__body { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .p-hero { padding: 24px 0; }
  .p-hero__text { order: 2; }
  .p-hero p { font-size: 15.5px; }
  .p-hero__stats { gap: 20px; }
  .p-hero__stats b { font-size: 26px; }
  .chip-float { font-size: 11px; padding: 6px 10px; }
  .chip-float.f1 { right: -6px; } .chip-float.f2 { left: -6px; }
  .skills-grid { grid-template-columns: 1fr; }
  .info-list { grid-template-columns: 1fr; }
  .resume__head { flex-direction: column; text-align: center; padding: 26px 20px; }
  .resume__contact { justify-content: center; }
  .resume__main, .resume__side { padding: 22px 18px; }
  .price-card { padding: 24px 20px; }
}
.p-hero { overflow: hidden; padding-inline: 0; }
.p-hero .container { overflow: visible; }
@media (max-width: 720px) { .p-hero__photo { margin-top: 20px; width: calc(100% - 40px); } }
