/* HEADER */

.site-header {
  position: sticky;
  top: 1.5rem;

  z-index: 1000;

  padding-bottom: 4rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1rem 1.5rem;

  background: rgba(255,255,255,0.82);

  border: 1px solid #c8c8c8;
  border-radius: 18px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-left ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;

  list-style: none;

  margin: 0;
  padding: 0;
}

.nav-left a {
  font-family: "Fira Code", monospace;
  font-size: 12pt;

  color: #7f7f7f;

  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.nav-left a:hover {
  color: #4f63f1;
}

.nav-left a.active {
  color: #0a0c14;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-right img {
  width: 24px;
  height: 24px;

  opacity: 1;

  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-right img:hover {
  transform: translateY(-2px);
  opacity: 0.7;
}

/* HERO */

.hero {
  margin-bottom: 4rem;
}

.hero h1 {
  font-family: "Fira Sans", sans-serif;
  font-weight: 800;
  font-size: 60pt;
  line-height: 0.9;
  color: #0a0c14;

  margin: 0 0 1rem;
}

.subtitle {
  font-family: "Fira Code", monospace;
  font-size: 30pt;
  color: #434343;

  margin-bottom: 2rem;
}

.bio {
  max-width: 1000px;

  font-family: "Fira Sans", sans-serif;
  font-size: 16pt;
  line-height: 1.7;

  font-weight: 400;
  color: #434343;
}

.bio strong {
  font-weight: 600;
  color: #434343;
}

/* GRID */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}


.card {
  position: relative;

  border: 10px solid white;
  border-radius: 18px;

  overflow: hidden;

  aspect-ratio: 4 / 3.05;

  cursor: pointer;

  transition:
    box-shadow 220ms ease,
    border-color 20ms linear;
}

.card:hover {
  box-shadow:
    0 0 40px rgba(114,130,244,1);
}

.card-content h3 {
  font-family: "Fira Sans", sans-serif;
  font-size: 20pt;

  margin: 0 0 0.5rem;
}

.card-content p {
  font-family: "Fira Code", monospace;
  font-size: 12pt;

  margin: 0;
}


/* IMAGE */

.card-image {
  position: absolute;
  inset: 0;

  background-image: url('../assets/images/card-placeholder.png');
  background-size: cover;
  background-position: center;

  transition:
    filter 220ms ease,
    transform 220ms ease;
}


/* DARK OVERLAY */

.card-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,0);

  transition: background 220ms ease;
}

/* CONTENT */

.card-content {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;

  z-index: 5;

  opacity: 0;

  transition: opacity 220ms ease;
}

.card-content h3 {
  font-family: "Fira Sans", sans-serif;
  font-size: 24pt;
  font-weight: 700;

  color: white;

  margin: 0 0 1rem;
}

.card-content p {
  font-family: "Fira Code", monospace;
  font-size: 14pt;
  line-height: 1.5;

  color: #d8d8d8;

  margin: 0;
}

/* HOVER STATES */

.card:hover .card-image {
  filter: blur(6px);
}

.card:hover .card-overlay {
  background: rgba(0,0,0,0.6);
}

.card:hover .card-content {
  opacity: 1;
}

/* FOOTER */

.footer {
  margin-top: 6rem;

  background: #0a0c14;

  border-radius: 18px;

  padding: 2rem 2.5rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  margin: 0;

  font-family: "Fira Code", monospace;
  font-size: 10pt;

  color: #ffffff;
}

.footer a {
  font-family: "Fira Code", monospace;
  font-size: 10pt;

  color: #7282f4;

  text-decoration: none;

  transition: opacity 180ms ease;
}

.footer a:hover {
  color: #94a5f7;
}

/* RESPONSIVE */

@media (max-width: 1000px) {

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

  .hero h1 {
    font-size: 42pt;
  }

  .subtitle {
    font-size: 22pt;
  }

  .nav-left a {
    font-size: 14pt;
  }

  .site-header {
    top: 0.75rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* DARK MODE TOGGLE */

.dm-toggle {
  appearance: none;
  border: none;
  background: transparent;

  padding: 0;
  margin-left: 0.5rem;

  cursor: pointer;
}

/* TRACK */

.dm-track {
  width: 58px;
  height: 30px;

  background: #d7d7d7;

  border: 1px solid #c8c8c8;
  border-radius: 999px;

  position: relative;

  transition:
    background 220ms ease,
    border-color 220ms ease;
}

/* THUMB */

.dm-thumb {
  width: 24px;
  height: 24px;

  background: white;

  border-radius: 50%;

  position: absolute;

  top: 2px;
  left: 2px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 2px 8px rgba(0,0,0,0.12);

  transition:
    transform 220ms ease,
    background 220ms ease;
}

/* ICONS */

.dm-icon {
  width: 12px;
  height: 12px;

  transform: scale(0.65);

  display: block;

  pointer-events: none;
}

/* LIGHT MODE */

.dm-sun {
  display: block;
}

.dm-moon {
  display: none;
}

/* DARK MODE */

body.dark-mode .dm-track {
  background: #7282f4;
  border-color: #7282f4;
}

body.dark-mode .dm-thumb {
  transform: translateX(28px);
}

body.dark-mode .dm-sun {
  display: none;
}

body.dark-mode .dm-moon {
  display: block;
}

/* PREVENT HOVER MOVEMENT */

.dm-toggle:hover .dm-thumb {
  transform: none;
}

body.dark-mode .dm-toggle:hover .dm-thumb {
  transform: translateX(28px);
}

/* ACTIVE NAV */

.nav-left a.active {
  color: #0a0c14;
}

body.dark-mode .nav-left a.active {
  color: white;
}