/* Base */
.page {
  --bg: #000000;
  --fg: #f2f2f2;
  --muted: #a6a6a6;
  --line: #1a1a1a;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  --layout-left: 360px;
  --layout-right: 536px;
  --layout-gap: 56px;
  --grid-size: 48px;
  --glow-one-x: 240px;
  --glow-one-y: 200px;
  --glow-one-radius: 420px;
  --glow-two-x: 860px;
  --glow-two-y: 120px;
  --glow-two-radius: 360px;
  --shine-color: rgba(255, 255, 255, 0.3);
  --shine-soft: rgba(246, 176, 69, 0.18);
  --shine-size: 180px;
  --shine-soft-stop: 60px;
  --shine-clear-stop: 120px;
  --shine-opacity: 0.5;
  margin: 0;
  min-height: 900px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  background-color: var(--bg);
  color: var(--fg);
  padding: 48px 24px;
}

.page,
.page * {
  box-sizing: border-box;
}

/* Normalize */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.3px;
}

p {
  margin: 0;
}

.page::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    radial-gradient(
      circle at var(--glow-one-x) var(--glow-one-y),
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0) var(--glow-one-radius)
    ),
    radial-gradient(
      circle at var(--glow-two-x) var(--glow-two-y),
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0) var(--glow-two-radius)
    ),
    linear-gradient(
      rgba(255, 255, 255, 0.035) 1px,
      rgba(255, 255, 255, 0) 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 1px,
      rgba(255, 255, 255, 0) 1px
    );
  background-size: 1600px 1600px, 1600px 1600px, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size);
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* Typography */
.heading {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.title {
  font-size: 34px;
  line-height: 38px;
}

.section-title {
  font-size: 22px;
  line-height: 26px;
  margin-bottom: 16px;
  color: var(--fg);
}

.column-title {
  font-size: 20px;
  line-height: 24px;
  margin-bottom: 12px;
  color: var(--fg);
}

.skills-heading {
  margin-bottom: 0;
}

.role {
  margin-top: 10px;
  font-size: 18px;
  line-height: 22px;
  font-weight: 500;
}

.text {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
}

.summary {
  margin-top: 16px;
  max-width: 420px;
}

.item-title {
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 6px;
  color: var(--fg);
}

.item-role {
  color: var(--muted);
  font-weight: 400;
}

.meta {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Links */
.contact-link {
  color: var(--muted);
  text-underline-offset: 4px;
}

.contact-link:focus,
.contact-link:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* Layout */
.resume {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid var(--line);
  padding: 56px 64px;
  box-shadow: var(--shadow);
  background-color: transparent;
}

.hero {
  display: grid;
  grid-template-columns: var(--layout-left) var(--layout-right);
  column-gap: var(--layout-gap);
  row-gap: 32px;
  align-items: start;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list {
  display: grid;
  gap: 8px;
}

.contact-item {
  display: grid;
  align-items: center;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 36px 0;
}

.split {
  display: grid;
  grid-template-columns: var(--layout-left) var(--layout-right);
  gap: var(--layout-gap);
  align-items: start;
}

.split-column {
  min-width: 0;
}

.item {
  margin-bottom: 28px;
}

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

.skills {
  display: grid;
  grid-template-columns: var(--layout-left) var(--layout-right);
  gap: var(--layout-gap);
  align-items: baseline;
}

.skills-title {
  min-width: 0;
}

.skills-columns {
  display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 24px;
  align-items: start;
}

.skills-column {
  min-width: 0;
}

.skills-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

/* Shine effect */
.shine-surface {
  position: relative;
}

.shine-surface::after {
  content: "";
  position: fixed;
  top: -1px;
  right: -1px;
  bottom: -1px;
  left: -1px;
  background: radial-gradient(
    circle var(--shine-size) at var(--shine-x, 0px) var(--shine-y, 0px),
    var(--shine-color) 0px,
    var(--shine-soft) var(--shine-soft-stop),
    rgba(255, 255, 255, 0) var(--shine-clear-stop)
  );
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.shine-surface:hover::after,
.shine-surface.is-hovered::after {
  opacity: var(--shine-opacity);
}

/* Motion */
.animate {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .page {
    --layout-left: 320px;
    --layout-right: 480px;
    --layout-gap: 48px;
    padding: 40px 20px;
  }

  .resume {
    max-width: 960px;
    padding: 48px 56px;
  }

  .skills-columns {
    grid-template-columns: 144px 144px 144px;
    column-gap: 24px;
  }
}

@media (max-width: 1000px) {
  .page {
    padding: 32px 20px;
  }

  .resume {
    max-width: 720px;
    padding: 40px 40px;
  }

  .hero,
  .split,
  .skills {
    display: block;
  }

  .contact-list {
    margin-top: 24px;
  }

  .split-column + .split-column {
    margin-top: 32px;
  }

  .skills-columns {
    display: block;
    margin-top: 16px;
  }

  .skills-column + .skills-column {
    margin-top: 24px;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 28px 16px;
  }

  .resume {
    max-width: 520px;
    padding: 32px 28px;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 24px 12px;
  }

  .resume {
    max-width: 100%;
    padding: 24px 20px;
  }

  .contact-item {
    column-gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .shine-surface::after {
    display: none;
  }
}