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

:root {
  --color-bg: #0f172a;
  --color-bg-card: rgba(30, 41, 59, 0.5);
  --color-bg-card-hover: rgba(30, 41, 59, 0.8);
  --color-text: #94a3b8;
  --color-text-heading: #e2e8f0;
  --color-text-muted: #64748b;
  --color-accent: #5eead4;
  --color-accent-muted: rgba(94, 234, 212, 0.1);
  --color-border: rgba(148, 163, 184, 0.1);
  --color-link-hover: #5eead4;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --transition-default: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-default);
}

ul,
ol {
  list-style: none;
}

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

.spotlight {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  background: radial-gradient(
    600px circle at var(--x, 50%) var(--y, 50%),
    rgba(29, 78, 216, 0.15),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.spotlight.active {
  opacity: 1;
}

.floating-shapes {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
}

.shape--circle {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
}

.shape--ring {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--color-accent);
  background: transparent;
}

.shape--dot {
  width: 4px;
  height: 4px;
  background: #818cf8;
}

.shape--cross {
  width: 12px;
  height: 12px;
  border-radius: 0;
  background: transparent;
}

.shape--cross::before,
.shape--cross::after {
  content: "";
  position: absolute;
  background: var(--color-accent);
  border-radius: 1px;
}

.shape--cross::before {
  width: 12px;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.shape--cross::after {
  width: 1.5px;
  height: 12px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.shape--triangle {
  width: 0;
  height: 0;
  border-radius: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--color-accent);
}

.shape--1 {
  top: 12%;
  left: 8%;
  opacity: 0.2;
  animation: float-drift 18s ease-in-out infinite;
}

.shape--2 {
  top: 25%;
  right: 12%;
  opacity: 0.12;
  animation: float-drift 22s ease-in-out infinite reverse;
}

.shape--3 {
  top: 55%;
  left: 5%;
  opacity: 0.25;
  animation: float-drift 15s ease-in-out infinite;
}

.shape--4 {
  top: 40%;
  right: 6%;
  opacity: 0.15;
  animation: float-drift 20s ease-in-out infinite reverse;
}

.shape--5 {
  bottom: 20%;
  right: 18%;
  opacity: 0.18;
  animation: float-drift 24s ease-in-out infinite;
}

.shape--6 {
  bottom: 35%;
  left: 15%;
  opacity: 0.12;
  animation: float-drift 19s ease-in-out infinite reverse;
}

.shape--7 {
  top: 75%;
  right: 8%;
  opacity: 0.2;
  animation: float-drift 16s ease-in-out infinite;
}

.shape--8 {
  bottom: 10%;
  left: 10%;
  opacity: 0.1;
  animation: float-drift 21s ease-in-out infinite reverse;
}

@keyframes float-drift {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(12px, -18px) rotate(5deg);
  }
  50% {
    transform: translate(-8px, -30px) rotate(-3deg);
  }
  75% {
    transform: translate(15px, -10px) rotate(4deg);
  }
}

.layout {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6rem 0 2rem;
  gap: 1rem;
}

.header__photo-wrapper {
  margin-bottom: 1.75rem;
  position: relative;
  width: 100%;
  max-width: fit-content;
}

.header__photo-wrapper::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--color-accent), #818cf8, var(--color-accent));
  opacity: 0.4;
}

.header__photo {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 0.85rem;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--color-bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.header__name {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.header__name a {
  color: var(--color-text-heading);
}

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

.header__title {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-heading);
  letter-spacing: -0.01em;
}

.header__tagline {
  margin-top: 1rem;
  font-size: 1rem;
  max-width: 320px;
  color: var(--color-text);
}

.nav {
  margin-top: 2.5rem;
  display: none;
}

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

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition-default);
}

.nav__indicator {
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--color-text-muted);
  transition: all var(--transition-default);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-text-heading);
}

.nav__link:hover .nav__indicator,
.nav__link.active .nav__indicator {
  width: 4rem;
  background: var(--color-text-heading);
}

.social-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding-bottom: 2rem;
}

.social-links a {
  color: var(--color-text-muted);
  transition: color var(--transition-default);
}

.social-links a:hover {
  color: var(--color-text-heading);
}

.social-links svg {
  width: 24px;
  height: 24px;
}

.main {
  padding-bottom: 6rem;
}

.section {
  margin-bottom: 6rem;
}

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

.section__header-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1.25rem 0;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.75);
}

.section__heading {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-heading);
}

.section__content p {
  margin-bottom: 1rem;
}

.section__content p a {
  color: var(--color-text-heading);
  font-weight: 500;
  transition: color var(--transition-default);
}

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

.experience-list,
.project-list,
.writing-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.experience-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 1rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  transition: all var(--transition-default);
  text-decoration: none;
  color: inherit;
}

.experience-card:hover {
  background: var(--color-bg-card);
  border-color: var(--color-border);
  box-shadow: 0 0 0 1px var(--color-border);
}

.experience-card:hover .experience-card__title {
  color: var(--color-accent);
}

.experience-card:hover .experience-card__arrow {
  transform: translate(2px, -2px);
}

.experience-card__date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
  margin-bottom: 0.25rem;
}

.experience-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.experience-card__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-heading);
  line-height: 1.4;
  transition: color var(--transition-default);
}

.experience-card__arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 0.25rem;
  transition: transform var(--transition-default);
}

.experience-card__description {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-text);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background: var(--color-accent-muted);
  color: var(--color-accent);
  white-space: nowrap;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  transition: all var(--transition-default);
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  background: var(--color-bg-card);
  border-color: var(--color-border);
  box-shadow: 0 0 0 1px var(--color-border);
}

.project-card:hover .project-card__title {
  color: var(--color-accent);
}

.project-card:hover .project-card__arrow {
  transform: translate(2px, -2px);
}

.project-card__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-default), background var(--transition-default);
}

.project-card:hover .project-card__icon-wrapper {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(94, 234, 212, 0.03);
}

.project-card__icon--music {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.05) 0%, rgba(129, 140, 248, 0.05) 100%);
}

.project-card__icon--dream {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.06) 0%, rgba(94, 234, 212, 0.03) 100%);
}

.project-card__icon--security {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.04) 0%, rgba(52, 211, 153, 0.04) 100%);
}

.project-card__icon--data {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.04) 0%, rgba(94, 234, 212, 0.05) 100%);
}

.project-card__icon--health {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.04) 0%, rgba(94, 234, 212, 0.04) 100%);
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card__title {
  display: inline;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-heading);
  line-height: 1.4;
  transition: color var(--transition-default);
}

.project-card__arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 0.25rem;
  flex-shrink: 0;
  transition: transform var(--transition-default);
}

.project-card__description {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-text);
}

.writing-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  transition: all var(--transition-default);
  text-decoration: none;
  color: inherit;
  align-items: baseline;
}

.writing-card:hover {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}

.writing-card:hover .writing-card__title {
  color: var(--color-accent);
}

.writing-card:hover .writing-card__arrow {
  transform: translate(2px, -2px);
}

.writing-card__year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.writing-card__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-heading);
  line-height: 1.4;
  transition: color var(--transition-default);
}

.writing-card__arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 0.25rem;
  transition: transform var(--transition-default);
}

.writing-card__source {
  grid-column: 2;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.skills-group {
  margin-bottom: 1.5rem;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.skills-group__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.tag-list--skills {
  gap: 0.5rem;
}

.tag-list--skills .tag {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-heading);
  transition: color var(--transition-default);
}

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

.inline-link svg {
  transition: transform var(--transition-default);
}

.inline-link:hover svg {
  transform: translate(2px, -2px);
}

.footer {
  margin-top: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
}

.footer__cta {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.footer__email {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-heading);
  border-bottom: 1px dashed var(--color-text-muted);
  padding-bottom: 2px;
  transition: color var(--transition-default), border-color var(--transition-default);
}

.footer__email:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.footer__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (min-width: 1024px) {
  .layout {
    flex-direction: row;
    gap: 4rem;
    padding: 0 6rem;
  }

  .header {
    position: sticky;
    top: 0;
    width: 48%;
    max-width: 480px;
    height: 100vh;
    flex-shrink: 0;
    padding: 6rem 0;
  }

  .nav {
    display: block;
  }

  .main {
    padding-top: 6rem;
    flex: 1;
    min-width: 0;
  }

  .section__header-sticky {
    position: relative;
    top: auto;
    padding: 0 0 1rem;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .experience-card {
    grid-template-columns: 140px 1fr;
    gap: 0 1.5rem;
  }

  .experience-card__date {
    padding-top: 0.25rem;
  }

  .project-card {
    grid-template-columns: 200px 1fr;
    gap: 0 1.5rem;
    align-items: start;
  }

  .project-card__icon-wrapper {
    order: -1;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .layout {
    padding: 0 3rem;
  }

  .experience-card {
    grid-template-columns: 120px 1fr;
    gap: 0 1rem;
  }

  .project-card {
    grid-template-columns: 160px 1fr;
    gap: 0 1rem;
    align-items: start;
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.nav__link:focus-visible {
  outline-offset: 2px;
}

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

@media (max-width: 767px) {
  .header__photo-wrapper {
    width: 180px;
    height: auto;
  }

  .header__photo {
    width: 180px;
    height: auto;
  }

  .header__name {
    font-size: 2rem;
  }

  .header__title {
    font-size: 1.1rem;
  }

  .header__tagline {
    max-width: 100%;
  }
}
