:root {
  --background: oklch(14.8% 0.004 228.8);
  --foreground: oklch(96.3% 0.002 197.1);
  --primary: oklch(87.9% 0.169 91.605);
  --primary-foreground: oklch(76.9% 0.188 70.08);
  --muted: oklch(0.274 0.006 286.033);
  --muted-foreground: oklch(72.3% 0.014 214.4);
  --border: oklch(1 0 0 / 10%);

  --bp-sm: 40rem;   /* 640px  - large phones */

  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SF Mono, SF Mono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;

  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */

  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --leading-tight: 1.2;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.02em;
  --tracking-wide: 0.05em;

  --logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Crect x='0' y='0' width='24' height='24' fill='none' stroke='none'/%3E%3Cpath d='M20 15.4961C20 19.7938 16.9692 23 12.1057 23C7.10132 23 4 19.862 4 15.4961C4 12.6651 5.40969 10.6527 6.92511 9.59535C7.91189 8.87907 9.88546 8.02636 12 8.02636H12.1057L5.62115 3.14884V1H17.3216V2.87597H8.37004L16.511 8.98139C19.1189 10.9256 20 12.938 20 15.4961ZM18.0617 15.5302C18.0617 13.7907 16.9692 9.83411 12.0352 9.83411C8.22907 9.83411 5.93833 12.5287 5.93833 15.5302C5.93833 18.1566 7.94714 21.124 12.0705 21.124C15.5595 21.124 18.0617 18.7705 18.0617 15.5302Z' fill='currentColor' stroke='currentColor'/%3E%3C/svg%3E%0A");
  --github: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3C!-- Icon from Myna UI Icons by Praveen Juge - https://github.com/praveenjuge/mynaui-icons/blob/main/LICENSE --%3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'%3E%3Cpath d='M3.5 15.668q.675.081 1 .618c.326.537 1.537 2.526 2.913 2.526H9.5m5.672-3.513q.823 1.078.823 1.936V21m-5.625-5.609q-.87.954-.869 1.813V21'/%3E%3Cpath d='M15.172 15.299c1.202-.25 2.293-.682 3.14-1.316c1.448-1.084 2.188-2.758 2.188-4.411c0-1.16-.44-2.243-1.204-3.16c-.425-.511.819-3.872-.286-3.359c-1.105.514-2.725 1.198-3.574.947c-.909-.268-1.9-.416-2.936-.416c-.9 0-1.766.111-2.574.317c-1.174.298-2.296-.363-3.426-.848c-1.13-.484-.513 3.008-.849 3.422C4.921 7.38 4.5 8.44 4.5 9.572c0 1.653.895 3.327 2.343 4.41c.965.722 2.174 1.183 3.527 1.41'/%3E%3C/g%3E%3C/svg%3E");
  --x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3C!-- Icon from Myna UI Icons by Praveen Juge - https://github.com/praveenjuge/mynaui-icons/blob/main/LICENSE --%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m19 4l-5.93 6.93M5 20l5.93-6.93m0 0l5.795 6.587c.19.216.483.343.794.343h1.474c.836 0 1.307-.85.793-1.435L13.07 10.93m-2.14 2.14L4.214 5.435C3.7 4.85 4.17 4 5.007 4h1.474c.31 0 .604.127.794.343l5.795 6.587'/%3E%3C/svg%3E");
  --sky: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3C!-- Icon from Simple Icons by Simple Icons Collaborators - https://github.com/simple-icons/simple-icons/blob/develop/LICENSE.md --%3E%3Cpath fill='currentColor' d='M7.387 13.656c0 1.423-.933 2.454-2.823 2.675c-1.35.147-3.337-.025-4.294-.148c-.025-.147-.074-.343-.074-.49c0-1.252.663-1.522 1.3-1.522c.664 0 1.694.123 2.455.123c.834 0 1.104-.295 1.104-.565c0-.368-.343-.515-1.006-.638l-1.767-.343C.785 12.453 0 11.423 0 10.343c0-1.325.933-2.454 2.798-2.65c1.398-.148 3.116.024 4.049.122c.024.172.049.32.049.491c0 1.252-.663 1.522-1.276 1.522c-.491 0-1.227-.099-2.086-.099c-.884 0-1.227.246-1.227.54c0 .32.343.442.883.54l1.718.32c1.742.294 2.479 1.3 2.479 2.527m3.092 1.521c0 .761-.295 1.203-1.792 1.203c-.196 0-.368-.025-.54-.05V6.22c0-.76.27-1.57 1.767-1.57c.196 0 .393.024.565.049zm6.085 3.927c.197.098.59.22 1.105.245c.859.025 1.325-.319 1.693-1.08L24 7.913a2.5 2.5 0 0 0-.957-.22c-.589 0-1.399.122-1.914 1.325l-1.497 3.534l-2.945-4.81c-.196-.05-.662-.148-1.006-.148c-1.03 0-1.62.393-2.233 1.031l-2.871 3.141l2.306 3.632c.418.663.982 1.006 1.89 1.006c.589 0 1.104-.147 1.325-.245l-2.773-4.196l1.963-2.086l3.24 5.08Z'/%3E%3C/svg%3E");
  --rolls-royce: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3C!-- Icon from Simple Icons by Simple Icons Collaborators - https://github.com/simple-icons/simple-icons/blob/develop/LICENSE.md --%3E%3Cpath fill='currentColor' d='M13.363 3.663H9.961v6.865q-.615.295-1.341.511a8 8 0 0 1-.776.182V3.968s.06-1.041-.519-1.393v-.13h5.434c.244.297.463.697.604 1.218m.958 9.391c2.465-1.182 3.652-3.262 3.674-5.646c.015-1.622-.557-2.618-1.197-3.148a2 2 0 0 0-.117-.089a6.5 6.5 0 0 0-.612-1.618q.178.026.324.057c1.788.38 3.225 1.436 3.905 3.474c.554 1.662.285 3.724-.904 5.377c-.281.391-1.03 1.226-1.89 1.842c-.156.112-.25.174-.414.277c1.077 1.726 1.608 2.717 2.295 4.6c.6 1.644 1.055 3.83 1.117 4.344c.15 1.223.515 1.32.599 1.345V24h-4.295v-.13c.132-.07 1.293-.546 1.299-2.367c.006-1.337-.32-2.808-.914-4.46a23 23 0 0 0-1.277-2.829l-.014-.021a8 8 0 0 1-.872.321c-.223-.516-.45-.983-.707-1.459zm-4.36-.144v1.116c.325-.014 1.34-.096 2.254-.274c.207.468.387.912.511 1.257l.017.048a26 26 0 0 1-1.23.166a33 33 0 0 1-1.552.131v7.21c0 .159.037 1.008.59 1.306V24H7.254v-.13c.538-.283.59-1.147.59-1.305v-9.27a19 19 0 0 0 2.118-.385zm.457-11.66l-.462-.007H5.662v10.575c.426-.019 2.013-.152 3.052-.46c3.465-1.025 5.12-3.447 5.146-6.293c.015-1.655-.568-2.672-1.222-3.212c-.407-.337-.946-.496-1.338-.554c-.22-.044-.71-.05-.882-.05zM3.502 20.557V1.554S3.564.492 2.972.133V0h7.346c.613.001 1.415.063 1.907.17c1.824.387 3.291 1.464 3.985 3.544c.565 1.696.291 3.8-.922 5.487c-.287.4-1.05 1.25-1.93 1.88a7 7 0 0 1-.422.281c1.1 1.762 1.641 2.773 2.343 4.695c.612 1.677 1.076 3.909 1.14 4.432c.151 1.248.525 1.374.61 1.4v.132h-4.382l-.001-.133c.136-.072 1.32-.583 1.326-2.442c.007-1.363-.326-2.865-.932-4.55a23 23 0 0 0-1.305-2.887l-.014-.022c-.582.265-1.812.624-2.61.775c-.571.108-1.15.197-1.865.277c-.623.07-1.227.111-1.584.134v7.384c0 .161.038 1.028.603 1.332v.132H2.9v-.132c.549-.29.603-1.17.603-1.332Z'/%3E%3C/svg%3E");
  --rl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' width='1em' height='1em' viewBox='0 0 34 30'%3E%3Cpath fill='currentColor' d='M13.219 4.632 0 0v30l18.885-3.751V7.546l12.277-3.857v22.81l-9.45-2.354v2.807L34 30V0L16.052 5.624V24L2.828 26.639V3.789l10.39 3.65z'/%3E%3C/svg%3E")
}

/* reset */

/* 1. Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
}

/* 3. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 4. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 5. Avoid text overflow issues */
p,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 6. Root defaults */
html {
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color-scheme: light dark;
}

/* 7. Remove default body margin */
body {
  margin: 0;
}

/* reset end */

html, body {
  color: var(--foreground);
  background-color: var(--background);
}

/* Page Layout */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: var(--bp-sm);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Hero Section */
.hero {
  padding: 3rem 0;
  animation: fadeInUp 0.6s ease-out;
}

.name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin-bottom: 1.5rem;
  letter-spacing: var(--tracking-tight);
  background: linear-gradient(135deg, var(--foreground) 0%, var(--muted-foreground) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--muted-foreground);
  margin: 0;
}

/* Work Section */
.work-section {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.sysmon-section {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.sysmon-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.sysmon-value-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.sysmon-label {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.sysmon-value {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--foreground);
}

.sysmon-chart {
  display: block;
  height: 132px;
  border: 1px solid var(--border);
  background: oklch(from var(--muted) l c h / 0.16);

  /* Chart line styles */
  --cpu-line-color: oklch(87.9% 0.169 91.605);
  --cpu-line-width: 2;
  --cpu-area-color: oklch(87.9% 0.169 91.605 / 0.12);
  --memory-line-color: oklch(0.705 0.015 286.067);
  --memory-line-width: 1.6;
  --memory-area-color: oklch(0.705 0.015 286.067 / 0.08);
}

.section-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.work-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 2px dashed var(--border);
  background: oklch(from var(--muted) l c h / 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-item:hover {
  border-color: oklch(from var(--foreground) l c h / 0.15);
  background: oklch(from var(--muted) l c h / 0.12);
}

.work-title {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.work-companies {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.separator {
  color: var(--muted-foreground);
  opacity: 0.5;
}


/* Links Section */
.links-section {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.find-me {
  font-size: var(--text-base);
  color: var(--muted-foreground);
}

/* Link Styles */
a {
  color: var(--primary);
  text-decoration: none;
  position: relative;
  transition: text-decoration 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

.work-link {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--foreground);
  padding: 0.25rem 0.5rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.work-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: var(--foreground);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-link:hover {
  color: var(--foreground);
  text-decoration: none;
}

.work-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.social-link {
  font-size: var(--text-base);
  color: var(--muted-foreground);
  padding: 0.25rem 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.social-link:hover {
  color: var(--primary);
  border-color: oklch(from var(--primary) l c h / 0.3);
  background: oklch(from var(--primary) l c h / 0.05);
  text-decoration: none;
}

.icon {
  display: inline-block;
  width: 1.125em;
  height: 1.125em;
  background-color: currentColor;
  flex-shrink: 0;
}

.icon-github {
  mask: var(--github) no-repeat;
  mask-size: 100% 100%;
}

.icon-x {
  mask: var(--x) no-repeat;
  mask-size: 100% 100%;
}

.icon-sky {
  mask: var(--sky) no-repeat;
  mask-size: 100% 100%;
}

.icon-rolls-royce {
  mask: var(--rolls-royce) no-repeat;
  mask-size: 100% 100%;
}

.icon-rl {
  mask: var(--rl) no-repeat;
  mask-size: 100% 100%;
}

.icon-logo {
  width: 1.5em;
  height: 1.5em;
  mask: var(--logo) no-repeat;
  mask-size: 100% 100%;
  background-color: var(--primary);
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.footer p {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .page-container {
    padding: 1.5rem 1rem;
  }

  .content {
    gap: 3rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .name {
    font-size: 2rem;
  }

  .intro {
    font-size: var(--text-base);
  }

  .work-link {
    font-size: var(--text-lg);
  }
}
