:root {
  --font-apple: "SF Pro Display", "SF Pro Text", "SF Pro", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

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

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #000000;
  color: #ffffff;
  font-family: var(--font-apple);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

#app {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#center-container {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#logo-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  z-index: 10;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

#logo-btn:hover {
  transform: scale(1.05);
}

#logo-btn:active {
  transform: scale(0.96);
}

#logo-img {
  width: 190px;
  height: auto;
  max-height: 190px;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  will-change: transform;
}

@keyframes logoSquashBounce {
  0% {
    transform: scale(1, 1);
  }
  20% {
    transform: scale(1.16, 0.84);
  }
  50% {
    transform: scale(0.9, 1.14);
  }
  75% {
    transform: scale(1.05, 0.96);
  }
  100% {
    transform: scale(1, 1);
  }
}

#logo-img.is-bouncing {
  animation: logoSquashBounce 0.42s cubic-bezier(0.2, 1.25, 0.35, 1) both;
}

#buttons-group {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  z-index: 5;
  pointer-events: none;
}

#app.open #buttons-group {
  pointer-events: auto;
}

/* tactile pill buttons */
.orb-pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 38px;
  box-sizing: border-box;
  padding: 0 16px;
  border-radius: 19px;
  background-color: #000000;
  border: 2px solid #2c2c2c;
  background-clip: padding-box;
  color: #ffffff;
  font-family: var(--font-apple);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) translate(0, 0) scale(0.85);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  will-change: transform, opacity;
  transition: 
    transform 0.48s cubic-bezier(0.2, 1.18, 0.32, 1),
    opacity 0.22s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  pointer-events: none;
  touch-action: none;
}

.solar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  pointer-events: none;
}

.solar-icon,
.solar-icon * {
  stroke-width: 2 !important;
}

.pill-text {
  pointer-events: none;
}

#app.open .orb-pill {
  opacity: 1;
  pointer-events: auto;
  cursor: grab;
}

#app.open .orb-pill:hover {
  z-index: 20;
  transition-delay: 0s !important;
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.4);
}

.orb-pill.is-dragging {
  cursor: grabbing !important;
  z-index: 30 !important;
  transition: none !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}

/* ultra-subtle chromatic border tints */
.orb-pill[data-target="portfolio"] {
  border-color: #243852;
}

.orb-pill[data-target="links"] {
  border-color: #38254c;
}

.orb-pill[data-target="bio"] {
  border-color: #23453b;
}

.orb-pill[data-target="contact"] {
  border-color: #4c2c22;
}

/* macos window system */
#window-workspace {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.mac-window {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: auto;
  background: #000000;
  border: 1px solid #222222;
  border-radius: 10px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 0 1px #141414;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: auto;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.mac-window.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.mac-window.is-dragging {
  transition: none !important;
}

.mac-titlebar {
  height: 38px;
  background: #090909;
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
  padding: 0 12px;
  cursor: grab;
  position: relative;
  touch-action: none;
}

.mac-titlebar:active {
  cursor: grabbing;
}

.mac-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mac-dot svg {
  width: 6px;
  height: 6px;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.mac-dots:hover .mac-dot svg,
.mac-dot:hover svg {
  opacity: 1;
}

.mac-close {
  background-color: #ff5f56;
}

.mac-min {
  background-color: #ffbd2e;
}

.mac-max {
  background-color: #27c93f;
}

.mac-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-apple);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #777777;
  pointer-events: none;
}

.mac-content {
  padding: 20px;
  font-family: var(--font-apple);
  background: #000000;
  color: #e5e5e5;
  overflow-y: auto;
  max-height: 70vh;
}

/* portfolio content */
.win-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.win-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #060606;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.win-item:hover {
  border-color: #383838;
  background: #0b0b0b;
}

.win-num {
  font-size: 12px;
  font-weight: 600;
  color: #777777;
  padding-top: 1px;
}

.win-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.win-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.win-item h4 {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.win-meta-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.win-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #0d0d0d;
  border: 1px solid #1c1c1c;
  color: #888888;
  cursor: default;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.win-brand-icon.lang-cpp {
  color: #70a4db;
}

.win-brand-icon.lang-py {
  color: #ebd06a;
}

.win-brand-icon.lang-py path:first-child {
  fill: #6ea3d8;
}

.win-brand-icon.lang-py path:last-child {
  fill: #ebd06a;
}

.win-brand-icon.lang-rs {
  color: #e8a88a;
}

.win-brand-icon.lang-luau {
  color: #72bcf7;
}

.win-brand-icon.lang-html {
  color: #f28b74;
}

.win-brand-icon.lang-css {
  color: #8fa8f5;
}

.win-brand-icon.lang-js {
  color: #f5dc62;
}

.win-brand-icon:hover {
  border-color: #333333;
  filter: brightness(1.2);
}

.win-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #0d0d0d;
  border: 1px solid #1c1c1c;
  color: #888888;
  transition: all 0.15s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.win-icon-link:hover {
  background: #141414;
  border-color: #333333;
  color: #ffffff;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  background: #181818;
  color: #e5e5e5;
  border: 1px solid #2e2e2e;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.win-item p {
  font-size: 13px;
  color: #888888;
  line-height: 1.45;
}

.win-indicator {
  padding-top: 6px;
  text-align: center;
  font-size: 10px;
  color: #444444;
  letter-spacing: 0.08em;
}

/* bio content */
.win-bio {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-apple);
}

.bio-intro {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bio-greeting {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.bio-sub {
  font-size: 13px;
  color: #888888;
  line-height: 1.4;
}

.flag-ro {
  font-weight: 500;
}

.flag-ro .ro-b {
  color: #609bd8;
}

.flag-ro .ro-y {
  color: #edd262;
}

.flag-ro .ro-r {
  color: #e87373;
}

.bio-passions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #141414;
  border-bottom: 1px solid #141414;
  padding: 12px 0;
}

.bio-lead {
  font-size: 12px;
  color: #777777;
  letter-spacing: 0.02em;
}

.bio-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bio-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #dddddd;
  flex-wrap: wrap;
}

.bio-dash {
  color: #555555;
  font-family: var(--font-apple);
}

.bio-label {
  color: #ffffff;
  font-weight: 500;
}

.bio-tech-logos {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
}

.bio-humble {
  font-family: var(--font-apple);
  font-size: 11px;
  color: #555555;
  margin-top: 2px;
  padding-left: 12px;
}

.bio-closing p {
  font-size: 12px;
  color: #888888;
}

/* links content */
.win-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #060606;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-apple);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.link-row:hover {
  background: #0c0c0c;
  border-color: #333333;
}

.link-lead {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-icon {
  color: #888888;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.link-row:hover .link-icon {
  color: #ffffff;
}

.link-url {
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.01em;
}

.url-base {
  color: #f0f0f0;
  font-weight: 500;
}

.url-path {
  color: #666666;
  transition: color 0.15s ease;
}

.link-row:hover .url-path {
  color: #aaaaaa;
}

.link-arrow {
  color: #555555;
  transition: color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.link-row:hover .link-arrow {
  color: #ffffff;
  transform: translate(2px, -2px);
}

/* contact content */
.win-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.win-contact p {
  font-size: 12px;
  color: #777777;
}

.win-mail {
  font-size: 13px;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid #222222;
  padding: 10px 14px;
  border-radius: 6px;
  display: inline-block;
  background: #060606;
  transition: all 0.15s ease;
}

.win-mail:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.win-sub {
  font-size: 10px;
  color: #555555;
}

@media (max-width: 600px) {
  #logo-img {
    width: 140px;
    max-height: 140px;
  }

  .mac-window {
    width: 90vw !important;
    max-width: 360px;
  }
}
