/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  overflow-y: auto;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  color: #fff;
  background: #000;
}

/* ===== Toggle (checkbox hack) ===== */
.more-toggle {
  display: none;
}

/* ===== Background Layers ===== */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / .80);
  z-index: 1;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 60%, rgb(59 130 246 / .08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 40%, rgb(168 85 247 / .06) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

/* ===== Content ===== */
.content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 100vh;
  width: 100%;
  padding: 2rem 1.5rem;
  transition: gap .4s cubic-bezier(.16, 1, .3, 1);
}

/* ===== Card (shared) ===== */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 2.5rem 3rem;
  border: 1px solid rgb(255 255 255 / .08);
  background: rgb(255 255 255 / .04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / .04),
    0 8px 40px rgb(0 0 0 / .4);
  width: 100%;
}

.cards-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 420px;
  width: 100%;
}

.card-left {
  animation: card-enter .6s cubic-bezier(.16, 1, .3, 1) both;
}

.card-about {
  display: none;
  align-items: flex-start;
  gap: 1rem;
  animation: card-enter .5s .1s cubic-bezier(.16, 1, .3, 1) both;
}

.more-toggle:checked ~ .content .card-about {
  display: flex;
}

.about-heading {
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .3);
  width: 100%;
}

.about-text {
  font-size: .92rem;
  font-weight: 300;
  color: rgb(255 255 255 / .72);
  line-height: 1.7;
  letter-spacing: .01em;
}

.card-right {
  display: none;
  max-width: 720px;
  align-items: flex-start;
  gap: 1.5rem;
}

.card-columns {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  width: 100%;
  align-items: flex-start;
}

.card-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

/* Show right card when toggled */
.more-toggle:checked ~ .content {
  align-items: flex-start;
  gap: 1.5rem;
}

.more-toggle:checked ~ .content .card-right {
  display: flex;
  animation: card-enter .45s cubic-bezier(.16, 1, .3, 1) both;
}

/* Rotate arrow when open */
.more-toggle:checked ~ .content .cta-arrow {
  transform: rotate(90deg);
}

.more-toggle:checked ~ .content .cta-btn:hover .cta-arrow {
  transform: rotate(90deg);
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.97);
  }
}

/* ===== Card Header: Avatar + Info ===== */
.card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

/* ===== Avatar ===== */
.avatar {
  width: 7rem;
  height: 7rem;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgb(255 255 255 / .12);
  border: 2px solid rgb(255 255 255 / .1);
  transition: box-shadow .3s ease, border-color .3s ease;
}

.avatar:hover {
  box-shadow: 0 0 28px rgb(255 255 255 / .22);
  border-color: rgb(255 255 255 / .25);
}

/* ===== Name + Socials ===== */
.card-info {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.name {
  font-size: 1.875rem;
  font-weight: 200;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .92);
  line-height: 1.1;
}

.socials {
  display: flex;
  gap: .5rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .15);
  color: rgb(255 255 255 / .6);
  transition: all .25s ease;
  text-decoration: none;
}

.social-btn:hover {
  color: #fff;
  border-color: rgb(255 255 255 / .5);
  box-shadow: 0 0 12px rgb(255 255 255 / .15);
  transform: scale(1.1);
}

.social-btn svg {
  width: 1rem;
  height: 1rem;
}

/* ===== Tagline ===== */
.tagline {
  font-size: .8rem;
  font-weight: 300;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .55);
  text-align: center;
}

/* ===== CTA Button ===== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.5rem;
  border: 1px solid rgb(255 255 255 / .15);
  border-radius: .375rem;
  background: transparent;
  color: rgb(255 255 255 / .8);
  font-size: .875rem;
  font-weight: 300;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  transition: all .3s ease;
  user-select: none;
}

.cta-btn:hover {
  border-color: rgb(255 255 255 / .45);
  color: #fff;
  box-shadow: 0 0 18px rgb(255 255 255 / .12);
}

.cta-arrow {
  transition: transform .3s ease;
}

.cta-btn:hover .cta-arrow {
  transform: translateX(4px);
}

/* ===== Skill Groups ===== */
.skill-groups {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  width: 100%;
}

.skill-group {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.skill-label {
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .25);
  white-space: nowrap;
  padding-top: .22rem;
  min-width: 4.5rem;
}

/* ===== Pills ===== */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
}

.pill {
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: rgb(255 255 255 / .55);
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: .25rem;
  padding: .2rem .55rem;
}

/* ===== Section Headings ===== */
.section-heading {
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .3);
  margin-bottom: .75rem;
}

/* ===== Entry List ===== */
.entry-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.entry {
  padding: .75rem 0 .75rem .875rem;
  border-left: 1px solid rgb(255 255 255 / .08);
  position: relative;
}

.entry::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 1.05rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(255 255 255 / .2);
}

.entry-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}

.entry-name {
  font-size: .875rem;
  font-weight: 400;
  color: rgb(255 255 255 / .85);
}

.entry-period {
  font-size: .7rem;
  color: rgb(255 255 255 / .3);
  letter-spacing: .03em;
  white-space: nowrap;
}

.entry-role {
  font-size: .75rem;
  color: rgb(255 255 255 / .45);
  margin-top: .15rem;
  letter-spacing: .02em;
}

.entry-desc {
  font-size: .78rem;
  color: rgb(255 255 255 / .4);
  margin-top: .3rem;
  line-height: 1.5;
}

/* ===== Project entries ===== */
.project-entry a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  text-decoration: none;
  flex-wrap: wrap;
}

.project-entry a:hover .entry-name {
  color: #fff;
}

.entry-stat {
  font-size: .7rem;
  color: rgb(255 255 255 / .28);
  letter-spacing: .03em;
  white-space: nowrap;
}

/* ===== View All Link ===== */
.view-all {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .75rem;
  font-size: .75rem;
  color: rgb(255 255 255 / .35);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s ease;
}

.view-all:hover {
  color: rgb(255 255 255 / .7);
}

/* ===== Media Controls ===== */
.media-controls {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.volume-group {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .5rem .25rem .25rem;
  border-radius: 1.25rem;
  border: 1px solid rgb(255 255 255 / .15);
  background: rgb(0 0 0 / .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.volume-group .media-btn {
  border: none;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

/* ===== Volume Slider ===== */
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 5rem;
  height: 4px;
  border-radius: 2px;
  background: rgb(255 255 255 / .15);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgb(255 255 255 / .85);
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgb(255 255 255 / .85);
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  background: #fff;
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb:hover {
  background: #fff;
  transform: scale(1.2);
}

.volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: rgb(255 255 255 / .15);
}

.media-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .15);
  background: rgb(0 0 0 / .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgb(255 255 255 / .7);
  cursor: pointer;
  transition: all .25s ease;
}

.media-btn:hover {
  border-color: rgb(255 255 255 / .4);
  color: #fff;
  background: rgb(0 0 0 / .7);
}

.media-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Icon toggling via CSS state classes */
#btn-mute .icon-unmuted,
#btn-mute.is-unmuted .icon-muted {
  display: none;
}

#btn-mute.is-unmuted .icon-unmuted {
  display: block;
}

#btn-pause .icon-play,
#btn-pause.is-paused .icon-pause {
  display: none;
}

#btn-pause.is-paused .icon-play {
  display: block;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .more-toggle:checked ~ .content {
    flex-direction: column;
    align-items: center;
  }

  .card-right {
    max-width: 600px;
  }
}

@media (max-width: 640px) {
  .card-columns {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1.75rem 1.5rem;
    gap: 1.25rem;
  }

  .card-header {
    gap: 1rem;
  }

  .avatar {
    width: 5rem;
    height: 5rem;
  }

  .name {
    font-size: 1.35rem;
    letter-spacing: .14em;
  }

  .tagline {
    font-size: .7rem;
    letter-spacing: .22em;
  }

  .media-controls {
    bottom: 1rem;
    right: 1rem;
  }

  .volume-slider {
    width: 3.5rem;
  }
}
