@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-900.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #fafafa;
  --foreground: #121212;
  --card: #f5f5f5;
  --card-foreground: #121212;
  --popover: #fafafa;
  --popover-foreground: #121212;
  --primary: #3399ff;
  --primary-foreground: #fafafa;
  --secondary: #ebebeb;
  --secondary-foreground: #262626;
  --muted: #ebebeb;
  --muted-foreground: #737373;
  --accent: #4cc8b3;
  --accent-foreground: #121212;
  --destructive: #ef4444;
  --destructive-foreground: #fafafa;
  --border: #d9d9d9;
  --input: #d9d9d9;
  --ring: #3399ff;
  --ide-orange: #d88364;
  --ide-green: #4cc8b3;
  --ide-blue: #3399ff;
  --ide-comment: #737373;
  --radius: 0.5rem;
}

html.dark {
  --background: #1f1f1f;
  --foreground: #d9d9d9;
  --card: #242424;
  --card-foreground: #d9d9d9;
  --popover: #242424;
  --popover-foreground: #d9d9d9;
  --primary: #3399ff;
  --primary-foreground: #121212;
  --secondary: #2e2e2e;
  --secondary-foreground: #d9d9d9;
  --muted: #2e2e2e;
  --muted-foreground: #808080;
  --accent: #4cc8b3;
  --accent-foreground: #121212;
  --destructive: #7f1d1d;
  --destructive-foreground: #f2f2f2;
  --border: #333333;
  --input: #333333;
  --ring: #3399ff;
  --ide-orange: #d88364;
  --ide-green: #4cc8b3;
  --ide-blue: #3399ff;
  --ide-comment: #6b6b6b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.vht-app {
  min-height: 100vh;
  background: var(--background);
  padding-bottom: 40px;
}

.vht-main {
  padding-top: 40px;
}

.vht-container {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.vht-section {
  padding: 6rem 0;
}

.vht-hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 2.5rem;
}

.vht-section-heading {
  margin-bottom: 3rem;
}

.vht-section-comment,
.vht-hero-comment {
  min-height: 1.5em;
  font-size: 0.75rem;
  color: var(--ide-comment);
}

.vht-section-title {
  min-height: 1.2em;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  color: var(--ide-blue);
}

.vht-hero {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.vht-hero-title {
  min-height: 1.2em;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
}

.vht-hero-subtitle {
  min-height: 1.5em;
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--ide-blue);
}

.vht-hero-description {
  min-height: 3em;
  max-width: 34rem;
  margin: 1rem auto 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.vht-hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.vht-hero-actions.is-visible {
  opacity: 1;
}

.vht-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.vht-button svg {
  width: 0.75rem;
  height: 0.75rem;
}

.vht-button-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.vht-button-primary:hover {
  filter: brightness(0.95);
}

.vht-button-secondary {
  background: transparent;
  color: var(--muted-foreground);
  border-color: var(--border);
}

.vht-button-secondary:hover {
  background: color-mix(in srgb, var(--card) 60%, transparent);
  color: var(--foreground);
}

.vht-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--background) 90%, transparent);
  border-bottom: 1px solid var(--border);
}

.vht-nav-inner {
  display: flex;
  align-items: center;
}

.vht-nav-tabs {
  display: flex;
  overflow-x: auto;
}

.vht-nav-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  padding: 0.6875rem 1rem;
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.vht-nav-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
}

.vht-nav-tab:hover {
  background: color-mix(in srgb, var(--card) 50%, transparent);
  color: var(--foreground);
}

.vht-nav-tab.is-active {
  background: var(--card);
  color: var(--foreground);
}

.vht-nav-tab.is-active::before {
  background: var(--primary);
}

.vht-nav-toggle {
  margin-left: auto;
  padding-right: 0.75rem;
}

.vht-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.125rem;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.vht-theme-toggle:hover {
  background: var(--card);
  color: var(--foreground);
}

.vht-theme-icon {
  display: none;
  width: 1rem;
  height: 1rem;
}

.vht-theme-icon svg {
  width: 100%;
  height: 100%;
}

html.dark .vht-theme-icon-sun,
html:not(.dark) .vht-theme-icon-moon {
  display: inline-flex;
}

.vht-about-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.vht-about-photo-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.vht-about-photo-frame {
  width: 12rem;
  height: 14rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.vht-about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.vht-online-badge {
  position: absolute;
  right: -0.5rem;
  bottom: -0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: var(--card);
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  color: var(--ide-green);
}

.vht-code-card,
.vht-info-card,
.vht-impact-card,
.vht-github-card,
.vht-blog-card {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
}

.vht-code-card {
  padding: 1.5rem;
}

.vht-code-line,
.vht-code-object {
  font-size: 0.875rem;
}

.vht-code-object {
  padding-left: 1rem;
  margin-top: 0.25rem;
}

.vht-code-object p + p {
  margin-top: 0.25rem;
}

.vht-code-orange {
  color: var(--ide-orange);
}

.vht-code-comment {
  color: var(--ide-comment);
}

.vht-code-blue {
  color: var(--ide-blue);
}

.vht-code-green {
  color: var(--ide-green);
}

.vht-code-muted {
  color: var(--muted-foreground);
}

.vht-code-foreground {
  color: var(--foreground);
}

.vht-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
}

.vht-tag {
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--muted-foreground);
  border-radius: 0.125rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.vht-grid-three,
.vht-grid-two {
  display: grid;
  gap: 1rem;
}

.vht-info-card {
  padding: 1.5rem;
}

.vht-card-title {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.vht-card-description,
.vht-impact-description,
.vht-github-card-description,
.vht-blog-intro {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.vht-list-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.vht-timeline-item,
.vht-credential-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 2px solid transparent;
  border-radius: 0.125rem;
  padding: 0.75rem 1rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.vht-timeline-item:hover,
.vht-credential-item:hover {
  background: var(--card);
  border-left-color: var(--primary);
}

.vht-timeline-period {
  width: 6rem;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.vht-list-logo {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border-radius: 0.125rem;
  object-fit: cover;
}

.vht-timeline-copy {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.vht-timeline-company,
.vht-credential-title,
.vht-impact-title,
.vht-github-card-title,
.vht-blog-card-title {
  font-size: 0.875rem;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  color: var(--foreground);
}

.vht-timeline-role,
.vht-credential-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.vht-linkout-row {
  margin-bottom: 4rem;
  padding: 0 1rem;
}

.vht-linkout {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ide-blue);
  text-underline-offset: 0.25rem;
}

.vht-linkout:hover {
  text-decoration: underline;
}

.vht-subsection + .vht-subsection {
  margin-top: 4rem;
}

.vht-subsection-title {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: var(--foreground);
}

.vht-impact-card,
.vht-github-card,
.vht-blog-card {
  padding: 1.25rem;
}

.vht-github-card-link {
  display: inline-block;
  color: var(--ide-blue);
  text-underline-offset: 0.25rem;
}

.vht-github-card-link:hover {
  text-decoration: underline;
}

.vht-github-card-description {
  margin-top: 0.5rem;
}

.vht-impact-metric {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ide-green);
}

.vht-blog-tag {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ide-orange);
}

.vht-blog-card-title {
  margin-top: 0.5rem;
  font-size: 1rem;
}

.vht-blog-card-status {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--muted-foreground);
}

.vht-blog-card:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

.vht-coming-soon {
  margin-top: 1rem;
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.vht-coming-soon-large {
  padding: 2rem;
}

.vht-contact-grid {
  display: grid;
  gap: 3rem;
}

.vht-contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vht-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.vht-contact-link:hover {
  color: var(--foreground);
}

.vht-contact-link:hover .vht-contact-icon {
  transform: scale(1.1);
}

.vht-contact-link.is-static:hover {
  color: var(--muted-foreground);
}

.vht-contact-icon {
  width: 1rem;
  height: 1rem;
  color: var(--ide-green);
  transition: transform 0.2s ease;
}

.vht-contact-icon svg,
.vht-chat-icon svg,
.vht-chat-email-icon svg {
  width: 100%;
  height: 100%;
}

.vht-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vht-contact-form input,
.vht-contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--card);
  color: var(--foreground);
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vht-contact-form input::placeholder,
.vht-contact-form textarea::placeholder {
  color: var(--muted-foreground);
}

.vht-contact-form input:focus,
.vht-contact-form textarea:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 1px var(--ring);
}

.vht-contact-form textarea {
  resize: none;
}

.vht-built-by {
  margin-top: 3rem;
  text-align: center;
}

.vht-built-by a {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.vht-built-by a:hover {
  color: var(--foreground);
}

.vht-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--background) 95%, transparent);
  border-top: 1px solid var(--border);
}

.vht-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 1rem;
}

.vht-footer-left,
.vht-footer-right {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
}

.vht-footer-left {
  color: var(--muted-foreground);
}

.vht-footer-right {
  color: var(--ide-green);
}

.vht-status-dot {
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
}

.vht-status-dot span:first-child {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--ide-green);
  opacity: 0.75;
  animation: vht-ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.vht-status-dot span:last-child {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--ide-green);
}

.vht-chat-button {
  position: fixed;
  right: 1.5rem;
  bottom: 3rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vht-chat-button:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
}

.vht-chat-icon,
.vht-chat-email-icon {
  width: 1rem;
  height: 1rem;
}

.vht-chat-modal {
  position: fixed;
  right: 1.5rem;
  bottom: 6rem;
  z-index: 50;
  width: min(20rem, calc(100vw - 3rem));
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.vht-chat-modal[hidden] {
  display: none !important;
}

.vht-chat-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
}

.vht-chat-modal-file {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.vht-chat-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.2s ease;
}

.vht-chat-close:hover {
  color: var(--foreground);
}

.vht-chat-close svg {
  width: 1rem;
  height: 1rem;
}

.vht-chat-modal-body {
  padding: 1rem;
}

.vht-chat-message {
  border-radius: 0.375rem;
  background: var(--secondary);
  padding: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.vht-chat-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
  border-radius: 0.375rem;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}

.vht-chat-email:hover {
  background: color-mix(in srgb, var(--primary) 20%, transparent);
}

.vht-chat-scroll {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.vht-chat-scroll:hover {
  color: var(--foreground);
}

.vht-reveal {
  opacity: 0;
  transform: translateY(40px);
}

.vht-reveal.is-visible {
  animation: vht-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.typing-cursor,
.vht-typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  background: var(--ide-green);
  vertical-align: text-bottom;
  animation: vht-blink 1s step-end infinite;
}

.vht-boot-sequence {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
}

.vht-boot-inner {
  width: 100%;
  max-width: 32rem;
  padding: 0 1.5rem;
}

.vht-boot-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.vht-boot-line {
  display: none;
  color: var(--ide-green);
}

html.vht-boot-done .vht-boot-sequence {
  display: none;
}

.vht-boot-sequence.is-fading {
  animation: vht-boot-fade-out 0.6s ease-out forwards;
}

.vht-boot-line.is-visible {
  display: block;
  animation: vht-terminal-line 0.3s ease-out forwards;
}

@keyframes vht-terminal-line {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes vht-boot-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    pointer-events: none;
  }
}

@keyframes vht-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@keyframes vht-fade-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vht-ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@media (min-width: 640px) {
  .vht-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .vht-about-grid {
    grid-template-columns: auto 1fr;
  }

  .vht-about-photo-wrap {
    margin: 0;
  }

  .vht-about-photo-frame {
    width: 14rem;
    height: 16rem;
  }

  .vht-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vht-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vht-timeline-copy {
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
  }

  .vht-timeline-role::before {
    content: "— ";
  }
}

@media (max-width: 639px) {
  .vht-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .vht-footer-inner {
    gap: 0.75rem;
  }

  .vht-footer-left,
  .vht-footer-right {
    font-size: 0.625rem;
  }
}
