@font-face {
  font-family: "Victor Mono";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../assets/fonts/victor-mono.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

::selection {
  background-color: #ffffff;
  color: #000000;
}

::-moz-selection {
  background-color: #ffffff;
  color: #000000;
}

html,
body {
  background-color: #000000;
  color: #d8d8d8;
  font-family: "Victor Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1.74;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.8rem, 3.2vh, 3.5rem) clamp(2rem, 5vw, 6rem) clamp(1.2rem, 2.2vh, 2.2rem);
}

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

.terminal-container {
  max-width: clamp(880px, 72vw, 1200px);
  width: 100%;
  margin: 0;
  text-align: left;
}

.page-title {
  font-size: clamp(30px, 2.2vw, 44px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin-bottom: clamp(12px, 1.8vh, 22px);
}

.avatar-wrap {
  position: relative;
  width: clamp(135px, 16vh, 185px);
  height: clamp(135px, 16vh, 185px);
  margin-bottom: clamp(14px, 1.8vh, 24px);
}

.avatar-box {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #333333;
  background: #111111;
  cursor: zoom-in;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.2s ease;
}

.avatar-box:hover {
  border-color: #FF922E;
  transform: scale(1.02);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% 15%;
  display: block;
}

.yt-embed-host {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  border: 1px solid #FF922E;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.yt-embed-host iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
  display: block;
}

body[data-music-playing="true"] .avatar-box {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

body[data-music-playing="true"] .yt-embed-host {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.welcome-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(15.5px, 1.05vw, 19px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: clamp(8px, 1.2vh, 15px);
}

.coffee-cup-wrap {
  display: inline-flex;
  align-items: flex-end;
  position: relative;
  width: 24px;
  height: 22px;
  flex-shrink: 0;
}

.coffee-icon {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 24px;
  height: 24px;
  color: #FF922E;
  overflow: visible;
  pointer-events: none;
}

.cup-body,
.cup-handle {
  stroke-width: 2.2px;
}

.steam {
  stroke-dasharray: 14 10;
  stroke-linecap: round;
  filter: blur(0.45px) drop-shadow(0 0 4px rgba(255, 146, 46, 0.5));
}

.steam-1 {
  animation: steamRiseLeft 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.steam-2 {
  animation: steamRiseCenter 3s cubic-bezier(0.4, 0, 0.2, 1) 0.5s infinite;
}

.steam-3 {
  animation: steamRiseRight 3.4s cubic-bezier(0.4, 0, 0.2, 1) 1s infinite;
}

@keyframes steamRiseLeft {
  0% {
    stroke-dashoffset: 40;
    transform: translate(0, 0) scaleX(0.9);
    opacity: 0;
  }
  25% {
    opacity: 0.85;
  }
  65% {
    opacity: 0.45;
  }
  100% {
    stroke-dashoffset: 0;
    transform: translate(-4px, -11px) scaleX(1.2);
    opacity: 0;
  }
}

@keyframes steamRiseCenter {
  0% {
    stroke-dashoffset: 40;
    transform: translate(0, 0);
    opacity: 0;
  }
  25% {
    opacity: 0.95;
  }
  65% {
    opacity: 0.5;
  }
  100% {
    stroke-dashoffset: 0;
    transform: translate(0, -13px) scaleX(1.15);
    opacity: 0;
  }
}

@keyframes steamRiseRight {
  0% {
    stroke-dashoffset: 40;
    transform: translate(0, 0) scaleX(0.9);
    opacity: 0;
  }
  25% {
    opacity: 0.85;
  }
  65% {
    opacity: 0.45;
  }
  100% {
    stroke-dashoffset: 0;
    transform: translate(4px, -11px) scaleX(1.2);
    opacity: 0;
  }
}

.bio-paragraph {
  font-size: clamp(15px, 1.02vw, 18.5px);
  color: #d4d4d4;
  line-height: 1.7;
  margin-bottom: clamp(10px, 1.4vh, 18px);
  max-width: 1050px;
}

.status-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: clamp(13.5px, 0.92vw, 16px);
  color: #a3a3a3;
  margin-bottom: clamp(12px, 1.6vh, 20px);
}

.status-dot-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.pulse-core {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(34, 197, 94, 0.7);
  animation: radarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPing {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70%, 100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.remote-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d4d4d4;
}

.rotating-globe {
  color: #FF922E;
  flex-shrink: 0;
  animation: rotateGlobe 7s linear infinite;
  transform-origin: center;
  filter: drop-shadow(0 0 2px rgba(255, 146, 46, 0.4));
}

@keyframes rotateGlobe {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.status-sep {
  color: #666666;
}

.music-trigger-wrap {
  margin-bottom: clamp(16px, 2vh, 26px);
}

.intent-section {
  margin-top: clamp(18px, 2.2vh, 32px);
}

.intent-heading {
  font-size: clamp(20px, 1.45vw, 28px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.intent-heading .dots {
  color: #FF922E;
}

.intent-subtitle {
  font-size: clamp(14px, 0.95vw, 17.5px);
  color: #a3a3a3;
  margin-bottom: clamp(10px, 1.3vh, 18px);
}

.buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 0.7vw, 12px);
  align-items: center;
}

.win7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: clamp(13px, 0.92vw, 16px);
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  padding: clamp(6px, 0.55vw, 9px) clamp(13px, 1vw, 18px);
  border: 1px solid #707070;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff 0%, #ececec 48%, #dfdfdf 52%, #f4f4f4 100%);
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  outline: none;
  user-select: none;
  line-height: 1.35;
  transition: background-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.15s ease;
}

.win7-btn:hover {
  outline: none;
  border-color: #e07412;
  background-color: #FF922E;
  background-image: none;
  color: #000000;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 146, 46, 0.45);
  transform: translateY(-1px);
}

.win7-btn:active {
  background-color: #e07412;
  border-color: #c25e08;
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
}

.win7-btn:focus-visible {
  outline: 2px solid #FF922E;
  outline-offset: 1px;
}

.music-btn {
  padding: clamp(7px, 0.6vw, 10px) clamp(16px, 1.2vw, 22px);
}

.win7-btn[data-playing="true"] {
  outline: none;
  border-color: #e07412;
  background-color: #FF922E;
  background-image: none;
  color: #000000;
  font-weight: 600;
  box-shadow: inset 0 0 5px rgba(224, 116, 18, 0.6), 0 0 8px rgba(255, 146, 46, 0.4);
}

.music-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 13px;
  width: 11px;
}

.eq-b {
  width: 2.5px;
  background-color: #000000;
  border-radius: 1px;
}

.eq-1 { height: 4px; }
.eq-2 { height: 9px; }
.eq-3 { height: 5px; }

.win7-btn[data-playing="true"] .eq-1 {
  animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.win7-btn[data-playing="true"] .eq-2 {
  animation: eqBounce 0.8s ease-in-out 0.25s infinite alternate;
}

.win7-btn[data-playing="true"] .eq-3 {
  animation: eqBounce 0.8s ease-in-out 0.5s infinite alternate;
}

@keyframes eqBounce {
  0% { height: 3px; }
  100% { height: 12px; }
}

.terminal-footer {
  margin-top: clamp(18px, 2.5vh, 38px);
  padding-top: clamp(10px, 1.2vh, 16px);
  border-top: 1px solid #1a1a1a;
  font-size: clamp(11.5px, 0.78vw, 13.5px);
  color: #888888;
  letter-spacing: 0.02em;
  user-select: none;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-modal[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.photo-modal-card {
  position: relative;
  z-index: 2;
  max-width: min(720px, 92vw);
  max-height: 88vh;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #333333;
  background: #000000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 146, 46, 0.25);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-modal[data-open="true"] .photo-modal-card {
  transform: scale(1);
}

.photo-modal-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

.photo-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.photo-modal-close:hover {
  background-color: #FF922E;
  border-color: #FF922E;
  color: #000000;
}

@media (max-width: 680px) {
  body {
    padding: 2.2rem 1.25rem 3.5rem;
  }

  .page-title {
    font-size: 28px;
  }

  .avatar-wrap {
    width: 140px;
    height: 140px;
  }

  .welcome-text {
    font-size: 16px;
  }

  .bio-paragraph {
    font-size: 14.5px;
    line-height: 1.7;
  }

  .status-line {
    font-size: 13.5px;
  }

  .buttons-row {
    gap: 7px;
  }

  .win7-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (max-width: 420px) {
  body {
    padding: 1.8rem 1rem 3rem;
  }

  .page-title {
    font-size: 25px;
  }

  .avatar-wrap {
    width: 125px;
    height: 125px;
  }

  .buttons-row {
    gap: 6px;
  }

  .win7-btn {
    font-size: 11.5px;
    padding: 5px 10px;
  }
}
