@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&display=swap");
:root {
  --color-white: #ffffff;
  --color-page: #f8f8ff;
  --color-surface: #f2f2f9;
  --color-border: #e5e5ef;
  --color-text: #1e1b39;
  --color-text-muted: #9291a5;
  --color-purple: #4031d7;
  --color-purple-strong: #2b1ad6;
  --color-green: #1f9d55;
  --color-red: #d14343;
  --gradient-primary: linear-gradient(253deg, #4031d7 18.02%, #2b1ad6 87.64%);
  --gradient-light: linear-gradient(136deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

:root {
  --bg-main: var(--color-page);
  --bg-surface: var(--color-surface);
  --bg-card: var(--color-white);
  --bg-sidebar: #ececf2;
  --text-primary: var(--color-text);
  --text-secondary: var(--color-text-muted);
  --border: var(--color-border);
  --accent: var(--color-purple);
  --accent-strong: var(--color-purple-strong);
  --chart-track: #dcdce8;
  --icon-muted: #d3d4df;
  --chip-muted: #d8d8e5;
  --search-muted: #e9e9f0;
  --avatar-muted: #dddcef;
  --meter-rest: #e8f1f2;
  --text-tertiary: #787696;
  --text-axis: #6f6d8d;
  --income: var(--color-green);
  --expense: var(--color-red);
  --radius-card: 20px;
  --radius-pill: 999px;
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 32px;
  --shadow-elevated: 0 2px 6px rgba(13, 10, 44, 0.08);
  --gradient-accent: var(--gradient-primary);
  --gradient-soft: var(--gradient-light);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.4;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 100vh;
  transition: grid-template-columns 220ms ease;
}

.sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar__toggle {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--icon-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.sidebar__toggle:hover {
  color: var(--text-secondary);
}

.sidebar__toggle-icon {
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -4px currentColor, 0 4px currentColor;
  transition: opacity 180ms ease;
}

.sidebar__brand {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.sidebar__brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
}

.sidebar__nav {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.sidebar__link {
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  min-height: 28px;
  transition: color 140ms ease, background-color 140ms ease;
}

.sidebar__link:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.sidebar__link--active {
  background: var(--accent);
  color: var(--bg-card);
}

body.sidebar-collapsed .dashboard-shell {
  grid-template-columns: 58px 1fr;
}

body.sidebar-collapsed .sidebar {
  padding: 12px 0;
  justify-items: center;
}

body.sidebar-collapsed .sidebar__header {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 14px;
}

body.sidebar-collapsed .sidebar__toggle-icon {
  opacity: 0.9;
}

body.sidebar-collapsed .sidebar__brand {
  width: 20px;
  height: 20px;
}

body.sidebar-collapsed .sidebar__nav {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

body.sidebar-collapsed .sidebar__link {
  width: 100%;
  height: 26px;
  border-radius: 0;
  padding: 0;
  font-size: 0;
  display: grid;
  place-items: center;
  margin: 0;
  background: transparent;
}

body.sidebar-collapsed .sidebar__link::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--icon-muted);
}

body.sidebar-collapsed .sidebar__link:hover {
  background: transparent;
}

body.sidebar-collapsed .sidebar__link:hover::before {
  background: var(--text-tertiary);
}

body.sidebar-collapsed .sidebar__link--active {
  background: transparent;
}

body.sidebar-collapsed .sidebar__link--active::before {
  background: var(--accent);
}

.page {
  display: grid;
  grid-template-rows: 52px 1fr;
}

.content {
  padding: 36px 34px 40px;
}

.content__header {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.greeting {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 16px;
}

.user-name {
  margin-top: 2px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
}

.main-grid {
  display: grid;
  gap: 18px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1140px) {
  body.sidebar-collapsed .dashboard-shell,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .sidebar__nav {
    grid-auto-flow: column;
    gap: 6px;
    overflow-x: auto;
  }
  .stats-row {
    grid-template-columns: 1fr;
  }
}
.personal-site {
  --ui-background: #040b14;
  --ui-borders: #181e25;
  --alice-blue: #e8f1f2;
  --ice-blue: #f7f7f7;
  --celestial-blue: #1b98e0;
  --strong-purple: #2b1ad6;
  --gradient-brand: linear-gradient(222deg, #1b85bd 18%, #2938be 88%);
  /* Cursor trail: matches .skill-mint (#21ffcd) → --celestial-blue (used by personal-site.js) */
  --cursor-trail-rgb-start: 33, 255, 205;
  --cursor-trail-rgb-end: 27, 152, 224;
  background: var(--ui-background);
  /* Prevent subtle horizontal overflow on mobile (no "scroll-right" gap) */
  overflow-x: hidden;
  /* Prevent iOS/Android overscroll "rubber band" on the x-axis */
  overscroll-behavior-x: none;
  color: var(--alice-blue);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

.personal-site .section-block {
  padding: 5.5rem 0;
  background: rgba(24, 30, 37, 0.94);
}

.personal-site .hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.personal-site .hero-image {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: top center;
     object-position: top center;
}

.personal-site .hero-columns {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.personal-site .hero-left {
  display: flex;
  align-items: center;
  background: rgba(12, 10, 30, 0.78);
  position: relative;
  overflow: hidden;
}

.personal-site .hero-left::after {
  display: none;
}

.personal-site .hero-right {
  position: relative;
}

.personal-site .hero-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 152, 224, 0.12);
}

.personal-site .hero-content {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.personal-site .hero-kicker {
  font-size: 1.4rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.personal-site h1,
.personal-site h2,
.personal-site h3,
.personal-site h4 {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.personal-site .hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 3rem);
  line-height: 0.95;
  color: #fff;
  font-weight: 900;
  text-wrap: balance;
}

.personal-site .hero-content h1 span {
  color: var(--celestial-blue);
}

.personal-site .hero-copy {
  max-width: 35rem;
  opacity: 0.9;
  font-size: 1.15rem;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.personal-site .hero-logo-card {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translateX(-50%);
  width: min(38%, 470px);
}

.personal-site .hero-logo-card img {
  width: 100%;
  height: auto;
  display: block;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 28px;
}

.personal-site .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.personal-site .btn-brand-primary,
.personal-site .btn-brand-outline {
  border-radius: 7px;
  padding: 0.8rem 1.4rem;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
}

.personal-site .btn-brand-primary {
  border: none;
  background: var(--gradient-brand);
  color: #fff;
}

.personal-site .btn-brand-outline {
  border: 1px solid #1b85bd;
  color: #fff;
}

.personal-site .biography-section {
  background: var(--ui-borders);
}

.personal-site .bio-image-frame {
  --bio-border-size: 2px;
  border-radius: 10px;
  padding: calc(1rem + var(--bio-border-size));
  max-width: 340px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(4, 11, 20, 0.96) 0%, rgba(4, 11, 20, 0.86) 100%);
}

.personal-site .bio-image-frame::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -55%;
  background: conic-gradient(from 0deg, #1b85bd 0deg, #2938be 90deg, #2b1ad6 180deg, #21ffcd 270deg, #1b85bd 360deg);
  animation: bioBorderSpin 5.5s linear infinite;
}

.personal-site .bio-image-frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: var(--bio-border-size);
  border-radius: 9px;
  background: linear-gradient(180deg, rgb(24, 30, 37) 0%, rgb(24, 30, 37) 100%);
}

.personal-site .bio-image-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 10px;
  display: block;
}

@keyframes bioBorderSpin {
  to {
    transform: rotate(1turn);
  }
}
.personal-site .section-tag {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.personal-site .section-copy {
  opacity: 0.8;
  font-size: 1.05rem;
  max-width: 42rem;
}

.personal-site .highlights-title {
  font-size: clamp(2rem, 4.8vw, 3rem);
  line-height: 0.95;
}

.personal-site .highlights-title span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.personal-site .highlights-section h3 {
  font-size: 1.5rem;
}

.personal-site .highlights-section p {
  opacity: 0.8;
  line-height: 1.6;
}

.personal-site .skills-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.3rem;
}

.personal-site .skill-item {
  margin-bottom: 1.2rem;
}

.personal-site .skill-item p {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.personal-site .skill-progress {
  height: 8px;
  background: var(--ui-borders);
  border-radius: 8px;
}

.personal-site .skill-bar {
  width: 0;
  transition: width 1.2s ease;
  border-radius: 8px;
}

.personal-site .skill-mint {
  background: #21ffcd;
}

.personal-site .skill-purple {
  background: #8561da;
}

.personal-site .skill-blue {
  background: #217aff;
}

.personal-site .skill-coral {
  background: #ff7477;
}

.personal-site .testimonials-title {
  font-size: clamp(2rem, 4.8vw, 2.6rem);
  margin-bottom: 3rem;
}

.personal-site .carousel-item {
  min-height: 270px;
  text-align: center;
  padding: 0 3.5rem;
}

.personal-site blockquote {
  max-width: 60rem;
  margin: 0 auto 2rem;
  font-size: 1.3rem;
  line-height: 1.35;
  opacity: 0.9;
}

.personal-site .testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.personal-site .testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}

.personal-site .testimonial-author h4 {
  margin: 0;
  font-size: 1.2rem;
  text-align: left;
}

.personal-site .testimonial-author p {
  margin: 0;
  opacity: 0.75;
  text-align: left;
}

.personal-site .carousel-control-next,
.personal-site .carousel-control-prev {
  width: 3rem;
  height: 3rem;
  top: 40%;
  background: var(--ui-borders);
  border-radius: 50%;
}

.cursor-trail-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1090;
  contain: strict;
}

.personal-site .site-footer {
  border-top: 1px solid var(--ui-borders);
  text-align: center;
  padding: 1.25rem;
  font-size: 0.85rem;
  background: rgb(24, 30, 37);
}

.personal-site .site-footer a {
  color: inherit;
  text-decoration: none;
}

.personal-site .site-footer a:hover {
  opacity: 0.9;
}

.personal-site.legal-page .legal-hero {
  background: var(--ui-borders);
  padding: 5.5rem 0 4.5rem;
}

.personal-site.legal-page .legal-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  color: #fff;
  margin-bottom: 1.1rem;
}

.personal-site.legal-page .legal-hero .hero-copy {
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.personal-site.legal-page .legal-logo-wrap {
  width: min(66%, 320px);
}

.personal-site.legal-page .legal-logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.personal-site.legal-page .legal-content {
  padding-top: 3.5rem;
  padding-bottom: 10rem;
}

.personal-site.legal-page .legal-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 2rem 0 0.8rem;
}

.personal-site.legal-page .legal-content p,
.personal-site.legal-page .legal-content li,
.personal-site.legal-page .legal-content a {
  font-size: 1.125rem;
  line-height: 1.75;
  opacity: 0.82;
}

.personal-site.legal-page .legal-content ul {
  margin: 0 0 1rem 1.2rem;
}

.personal-site .cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: var(--ui-borders);
  border-top: 1px solid rgba(232, 241, 242, 0.12);
  padding: 1.3rem 2.2rem;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.personal-site .cookie-banner__text {
  max-width: 70rem;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.85;
}

.personal-site .cookie-banner__actions {
  display: flex;
  gap: 0.9rem;
  flex-shrink: 0;
}

.personal-site .cookie-banner.is-hidden {
  display: none !important;
}

@media (max-width: 991.98px) {
  .personal-site .hero-section {
    min-height: 88vh;
  }
  .personal-site .hero-columns {
    min-height: 88vh;
    grid-template-columns: 1fr;
  }
  .personal-site .hero-left {
    background: linear-gradient(180deg, rgba(12, 10, 30, 0.84) 0%, rgba(12, 10, 30, 0.7) 100%);
  }
  .personal-site .hero-right {
    display: none;
  }
  .personal-site .hero-image {
    -o-object-position: center center;
       object-position: center center;
  }
  .personal-site .section-block {
    padding: 4rem 0;
  }
  .personal-site.legal-page .legal-content p,
  .personal-site.legal-page .legal-content li,
  .personal-site.legal-page .legal-content a {
    font-size: 1rem;
  }
}
@media (max-width: 767.98px) {
  .personal-site .biography-section .row {
    --bs-gutter-x: 0;
    margin-right: 0;
    margin-left: 0;
  }
  .personal-site .biography-section .row > * {
    padding-right: 0;
    padding-left: 0;
  }
  .personal-site .biography-section .col-lg-7 {
    padding-top: 1.25rem;
  }
  .personal-site .hero-content h1 {
    line-height: 1;
  }
  .personal-site .carousel-item {
    padding: 0 1rem;
  }
  .personal-site blockquote {
    font-size: 1.05rem;
  }
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 22px;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__logo {
  width: 40px;
  height: 40px;
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
  background: transparent;
  padding: 0;
}

.topbar__search {
  width: 230px;
  height: 30px;
  border-radius: 14px;
  background: var(--search-muted);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--avatar-muted);
}

.topbar__meta {
  display: grid;
  gap: 0;
}

.topbar__hello {
  font-size: 12px;
  line-height: 14px;
  color: var(--text-secondary);
}

.topbar__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
}

.action-button {
  background: var(--gradient-accent);
  color: var(--bg-card);
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
  padding: 0 15px;
  height: 40px;
  cursor: pointer;
  white-space: nowrap;
}

.action-button:hover {
  filter: brightness(1.04);
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.card__title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.card__subtitle {
  font-size: 14px;
  line-height: 16px;
  color: var(--text-secondary);
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-pill {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  font-size: 12px;
  line-height: 14px;
}

.meta-pill strong {
  color: var(--text-primary);
}

.range-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.range-button {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 14px;
  padding: 6px 8px;
  cursor: pointer;
}

.range-button--active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-card);
}

.chart-wrap {
  height: 340px;
  position: relative;
}

.chart-wrap canvas {
  width: 100%;
  height: 100%;
}

.stat-card {
  min-height: 130px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 16px;
}

.stat-value {
  margin-top: var(--space-2);
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-content {
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-donut-wrap {
  width: 58px;
  height: 58px;
}

.form-card {
  background: var(--bg-card);
}

.data-form {
  display: grid;
  gap: 10px;
}

.data-form__label {
  font-size: 14px;
  line-height: 16px;
  color: var(--text-secondary);
}

.data-form__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.data-form__input {
  flex: 1 1 220px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 0 12px;
  height: 40px;
  outline: none;
}

.data-form__input:focus {
  border-color: var(--accent);
}

.form-error {
  margin: 0;
  color: #b42318;
  font-size: 13px;
  line-height: 16px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  text-align: left;
}

.table-input {
  width: 130px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 6px 10px;
}

.checklist-item-input {
  width: 100%;
}

.table-button {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.table-button--danger {
  margin-left: 6px;
  color: #b42318;
}

.table-more-button {
  margin-top: 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.weekly-check-cell {
  text-align: center;
}

.budget-table th,
.budget-table td {
  white-space: nowrap;
}

.budget-table .table-input {
  width: 110px;
}

.budget-month-input {
  width: 84px !important;
}

.budget-total-cell {
  font-weight: 600;
}

.measurement-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items: start;
}

.measurement-image {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
}

@media (max-width: 960px) {
  .measurement-layout {
    grid-template-columns: 1fr;
  }
}