:root {
  --bg-color: #0a1128;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: #e8ff00;
  --accent-transparent: rgba(232, 255, 0, 0.15);
  --card-hover-bg: rgba(255, 255, 255, 0.04);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-secondary);
  margin: 0;
  padding-bottom: 0;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1024px) {
  html,
  body {
    overflow: hidden;
    height: 100%;
  }
}

::selection {
  background-color: var(--accent);
  color: var(--bg-color);
}

/* Spotlight Effect */
#cursor-spotlight {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  transition: background 0.1s ease;
  background: radial-gradient(600px circle at 0px 0px, rgba(29, 78, 216, 0.15), transparent 80%);
}

.layout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 1.5rem;
}

@media (min-width: 1024px) {
  .layout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    height: 100vh;
    overflow: hidden;
    gap: 1rem;
  }
}

.left-column {
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .left-column {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 5rem;
    padding-bottom: 3rem;
    margin-bottom: 0;
  }
}

.right-column {
  padding-top: 3rem;
}

@media (min-width: 1024px) {
  .right-column {
    grid-column: 2;
    grid-row: 1;
    padding-top: 5rem;
    padding-bottom: 5rem;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .right-column::-webkit-scrollbar {
    display: none;
  }

  .right-column-spacer {
    height: 5rem;
  }
}

/* Section tab switching */
.right-column section {
  display: none;
  opacity: 0;
  animation: none;
}

.right-column section.section-visible {
  display: block;
  animation: sectionFadeIn 0.35s ease forwards;
  opacity: 1;
}

.site-footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.8;
  width: 100%;
  margin-top: auto;
}

@media (min-width: 1024px) {
  .site-footer {
    grid-column: 1 / 3;
    grid-row: 2;
    padding-bottom: 1.5rem;
  }
}

.site-footer .footer-link {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer .footer-link:hover {
  color: var(--accent);
}



@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Profile Image */
.profile-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 2px solid var(--accent);
}

/* Typography */
h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.intro-desc {
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

strong,
b {
  color: var(--text-primary);
  font-weight: 600;
}

@media (min-width: 640px) {
  h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Nav */
.nav {
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.nav ul {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav ul::-webkit-scrollbar {
  display: none;
}

.nav li a {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav li a.active {
  color: var(--accent);
}

@media (min-width: 1024px) {
  .nav {
    position: static;
    display: flex;
    flex-direction: column;
    margin-top: 3rem;
    padding: 0;
    margin-bottom: 0;
  }

  .nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Social links */
.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}

.social-links svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.social-links a {
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.social-links a:hover {
  opacity: 1;
  color: var(--accent);
}

/* Sections */
section {
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
}

@media (min-width: 1024px) {
  section {
    margin-bottom: 0.75rem;
  }
}

section h3.section-title {
  display: none !important;
}

#about-text p {
  margin-bottom: 1rem;
}

/* Card Lists */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Card layout wrapper to enable group hover effect */
.card-list:hover .card {
  opacity: 0.5;
}

.card-list .card:hover {
  opacity: 1 !important;
  overflow: visible;
}

.card {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  /* default */
  /* to compensate for padding */
}

@media (min-width: 640px) {
  .card {
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    padding: 0.5rem;
  }
}

.card:hover {
  background-color: var(--card-hover-bg);
  box-shadow: inset 0 1px 0 0 rgba(148, 163, 184, 0.1);
}

.card-date {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  opacity: 0.8;
  margin-top: 0.25rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.card-title a {
  color: var(--text-primary);
  display: inline-flex;
  align-items: baseline;
}

.ext-link-arrow {
  display: inline-block;
  width: 0.875rem;
  height: 0.875rem;
  margin-left: 0.25rem;
  fill: currentColor;
  vertical-align: middle;
  transition: transform 0.2s;
}

.card:hover .ext-link-arrow {
  transform: translate(2px, -2px);
}

.card:hover .card-title,
.card:hover .card-title a {
  color: var(--accent);
}

.card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
}

.card-description {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.card-points {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.card-points li {
  margin-bottom: 0.25rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background-color: var(--accent-transparent);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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