:root {
  --bg: #00071c;
  --ink: #C8A2C8;
  --ink-muted: rgba(200, 162, 200, 0.7);
  --ink-faint: rgba(200, 162, 200, 0.32);
  --accent: #c084fc;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.container {
  display: flex;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.videoSection {
  position: relative;
  flex: 1;
  height: 100%;
}

.matrixBar {
  width: 20px;
  height: 100%;
  flex-shrink: 0;
  background: var(--bg);
  display: block;
}

.backgroundVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.videoContent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--ink);
  background-color: rgba(0, 0, 0, 0.78);
  padding: 16px 26px;
}

.blogSection {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 24px 0 40px;
}

.text-wrapper {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 28px;
}

.socialLinks {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
}

.socialLinks a {
  color: var(--ink-muted);
  display: inline-block;
  transition: color 0.25s ease, transform 0.25s ease;
}

.socialLinks a:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.section {
  margin-bottom: 4rem;
}

.section-heading {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 1.75rem;
  display: flex;
  align-items: center;
}

.section-heading::before {
  content: "##";
  color: var(--ink-faint);
  font-weight: 400;
  margin-right: 0.5em;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink-faint);
  margin-left: 0.75em;
}

.text {
  max-width: 540px;
  margin: 0 0 1.75rem;
  text-align: left;
  line-height: 1.65;
  font-size: 0.95rem;
  color: var(--ink);
}

.text:last-child {
  margin-bottom: 0;
}

.text h3 {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.text h3::before {
  content: "> ";
  color: var(--ink-faint);
  font-weight: 400;
}

.text p {
  margin: 0;
}

a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 620px;
  margin: 0;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@property --proximity {
  syntax: '<number>';
  initial-value: 0;
  inherits: false;
}

.project-card {
  --angle: 0deg;
  --proximity: 0;
  position: relative;
  border: 1px solid transparent;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(
      from var(--angle),
      hsla(280, 55%, 70%, calc(0.16 + var(--proximity) * 0.18)) 0deg,
      hsla(280, 55%, 70%, calc(0.16 + var(--proximity) * 0.18)) 70deg,
      hsla(286, 95%, 78%, calc(0.55 + var(--proximity) * 0.45)) 130deg,
      hsla(280, 55%, 70%, calc(0.16 + var(--proximity) * 0.18)) 190deg,
      hsla(280, 55%, 70%, calc(0.16 + var(--proximity) * 0.18)) 360deg
    ) border-box;
  animation: rotateBorder 4s linear infinite;
  transition: --proximity 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 0 transparent;
}

.project-card:hover {
  box-shadow:
    0 0 4px rgba(192, 132, 252, 0.7),
    0 0 18px rgba(192, 132, 252, 0.45),
    0 0 36px rgba(192, 132, 252, 0.18);
}

@keyframes rotateBorder {
  to { --angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card {
    animation: none;
  }
}

.project-card h3 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  margin: 0 0 6px 0;
  color: inherit;
}

.project-card p {
  font-family: var(--sans);
  font-size: 0.825rem;
  margin: 0;
  line-height: 1.45;
  color: var(--ink);
}

.end-marker {
  text-align: left;
  margin: 1.5rem 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--ink-faint);
  letter-spacing: 0;
}

.end-marker::before {
  content: "// ";
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .socialLinks a:hover {
    transform: none;
  }
}

@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    height: auto;
    max-height: none;
  }

  .videoSection {
    width: 100%;
    flex: none;
    height: 50vh;
  }

  .matrixBar {
    display: none;
  }

  .blogSection {
    width: 100%;
    flex: none;
    height: auto;
    padding: 40px 0;
  }

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

@media screen and (max-width: 480px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    font-size: 1.25rem;
  }
}

@media screen and (min-width: 1440px) {
  .text-wrapper {
    max-width: 820px;
  }

  .text {
    max-width: 720px;
  }

  .projects-grid {
    max-width: 820px;
  }
}

@media screen and (min-width: 1920px) {
  .text-wrapper {
    max-width: 920px;
  }

  .text {
    max-width: 780px;
  }

  .projects-grid {
    max-width: 920px;
  }
}
