@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500&display=swap");

:root {
  color-scheme: dark;
  --font-display: "Instrument Serif", serif;
  --font-body: "Inter", sans-serif;
  --background: 201 100% 13%;
  --foreground: 0 0% 100%;
  --muted-foreground: 240 4% 66%;
  --primary: 0 0% 100%;
  --primary-foreground: 0 0% 4%;
  --secondary: 0 0% 10%;
  --muted: 0 0% 10%;
  --accent: 0 0% 10%;
  --border: 0 0% 18%;
  --input: 0 0% 18%;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: hsl(var(--background));
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.logo sup {
  font-size: 0.75rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: hsl(var(--foreground));
}

.nav-cta {
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: transform 180ms ease;
}

.nav-cta:hover,
.hero-cta:hover {
  transform: scale(1.03);
}

.hero-section {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: calc(100vh - 5.75rem);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5.625rem 1.5rem 10rem;
  text-align: center;
  overflow: hidden;
}

.hero-section h1 {
  max-width: 80rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -2.46px;
  color: hsl(var(--foreground));
}

.hero-section h1 em {
  color: hsl(var(--muted-foreground));
  font-style: normal;
}

.hero-subtext {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.625;
}

.hero-cta {
  margin-top: 3rem;
  padding: 1.25rem 3.5rem;
  border-radius: 9999px;
  color: hsl(var(--foreground));
  font-size: 1rem;
  cursor: pointer;
  transition: transform 180ms ease;
}

.liquid-glass {
  position: relative;
  overflow: hidden;
  border: none;
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

.content-section {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  padding: 7.5rem 2rem;
}

.content-section h2 {
  max-width: 54rem;
  margin: 0 0 2.25rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.75rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.section-kicker {
  margin-bottom: 1.25rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 3rem;
  align-items: start;
}

.glass-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.18));
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.intro-card {
  padding: 2rem;
}

.intro-card p,
.timeline-card p,
.project-card p,
.skill-card p,
.contact-card p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.8;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.meta-grid span {
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: hsl(var(--foreground));
  font-size: 0.875rem;
}

.timeline-grid,
.project-grid,
.skill-grid {
  display: grid;
  gap: 1rem;
}

.timeline-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-card,
.project-card,
.skill-card {
  padding: 1.5rem;
}

.timeline-card h3,
.project-card h3,
.skill-card h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 500;
}

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

.project-card span {
  display: block;
  margin-bottom: 5.5rem;
  color: hsl(var(--muted-foreground));
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

.project-card strong {
  display: block;
  margin: 0 0 1rem;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 500;
}

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

.tool-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tool-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
}

.contact-section {
  padding-bottom: 9rem;
}

.contact-card {
  display: grid;
  gap: 1rem;
  padding: 2rem;
}

.contact-card a {
  color: hsl(var(--foreground));
  font-size: clamp(1.35rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.animate-fade-rise {
  animation: fade-rise 0.8s ease-out both;
}

.animate-fade-rise-delay {
  animation: fade-rise 0.8s ease-out 0.2s both;
}

.animate-fade-rise-delay-2 {
  animation: fade-rise 0.8s ease-out 0.4s both;
}

@media (min-width: 640px) {
  .hero-section h1 {
    font-size: 4.5rem;
  }

  .hero-subtext {
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .hero-section h1 {
    font-size: 6rem;
  }
}

@media (max-width: 960px) {
  .split-layout,
  .timeline-grid,
  .project-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .project-card span {
    margin-bottom: 3rem;
  }
}

@media (max-width: 640px) {
  .nav-bar {
    padding: 1.25rem;
  }

  .nav-cta {
    display: none;
  }

  .content-section {
    padding: 5rem 1.25rem;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }
}
