/* ===================================
   MELYNNA GARCIA — PORTFOLIO
   MySpace × Terminal × Whiteboard × Apple
   =================================== */

/* ----- RESET & VARIABLES ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f5f5;
  --bg-window: rgba(255, 255, 255, 0.92);
  --bg-card: rgba(250, 250, 250, 0.95);
  --text: #1a1a1a;
  --text-light: #fafafa;
  --gray-100: #2a2a2a;
  --gray-200: #444444;
  --gray-300: #666666;
  --gray-400: #888888;
  --gray-500: #aaaaaa;
  --gray-600: rgba(245, 245, 245, 0.95);
  --gray-700: rgba(238, 238, 238, 0.95);
  --border: #dddddd;
  --border-dark: #cccccc;
  --accent: #39FF14;
  --accent-glow: rgba(57, 255, 20, 0.2);
  --chrome: #c0c0c0;
  --chrome-light: #dfdfdf;
  --chrome-dark: #808080;

  --font-mono: "SF Mono", "Monaco", "Cascadia Code", "Roboto Mono", monospace;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 0px;
  --radius-lg: 0px;
}

html {
  scroll-behavior: smooth;
  background: #0a0a0a;
}

body {
  font-family: var(--font-mono);
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem;
  overflow-x: hidden;

  /* Custom cursor - labradoodle! */
  cursor: url('cursor.svg') 16 16, auto;
}

/* Pointer cursor for clickable elements - paw on hover! */
a, button, .chip, .nav-link, .project-link, .contact-method {
  cursor: url('cursor-paw.svg') 12 12, pointer;
}

/* ----- IMAGE BACKGROUND ----- */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url('charlie.PNG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
}

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

ul {
  list-style: none;
}

/* ----- WINDOW FRAME (Apple Desktop) ----- */
.window {
  width: 100%;
  max-width: 800px;
  min-height: calc(100vh - 4rem);
  background: var(--bg-window);
  border-radius: 0;
  border: 3px solid;
  border-color: var(--chrome-light) var(--chrome-dark) var(--chrome-dark) var(--chrome-light);
  box-shadow:
    4px 4px 0 rgba(0,0,0,0.7),
    0 0 60px rgba(0,0,0,0.3);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 3px 5px;
  background: linear-gradient(to right, #1a0040, #5000c0, #1a0040);
  border-bottom: 2px solid var(--chrome-dark);
  user-select: none;
}

.window-buttons {
  display: flex;
  gap: 3px;
  margin-left: auto;
}

.window-buttons span {
  width: 16px;
  height: 14px;
  border-radius: 0;
  background: var(--chrome);
  border: 2px solid;
  border-color: var(--chrome-light) var(--chrome-dark) var(--chrome-dark) var(--chrome-light);
  font-size: 9px;
  font-family: var(--font-system);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  cursor: default;
  line-height: 1;
}

.btn-close::after { content: "×"; color: #900; }
.btn-min::after  { content: "−"; }
.btn-max::after  { content: "□"; }

.btn-close, .btn-min, .btn-max { background: var(--chrome); }

.window-title {
  font-size: 12px;
  color: #fff;
  font-weight: bold;
  font-family: var(--font-system);
  letter-spacing: 0.03em;
  flex: 1;
  text-align: left;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

/* ----- NAVIGATION ----- */
nav {
  display: none;
  gap: 2px;
  background: var(--chrome);
  border-bottom: 3px solid var(--chrome-dark);
  padding: 4px 4px 0 4px;
}

.nav-link {
  flex: 1;
  padding: 0.5rem 0.4rem;
  text-align: center;
  font-size: 11px;
  font-family: var(--font-system);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #222;
  background: var(--chrome-light);
  border: 2px solid;
  border-color: var(--chrome-light) var(--chrome-dark) transparent var(--chrome-light);
  transition: all 0.1s ease;
}

.nav-link:last-child {
  border-right-color: var(--chrome-dark);
}

.nav-link:hover {
  background: #fff;
  color: var(--accent);
}

.nav-link.active {
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  border-top: 3px solid var(--accent);
  border-bottom-color: #fff;
  position: relative;
  z-index: 1;
}

/* ----- MAIN CONTENT ----- */
.content {
  padding: 2rem;
  flex: 1;
}

/* ----- TERMINAL LINES (removed) ----- */
.terminal-line { display: none; }
.prompt, .command { display: none; }

/* ----- RETRO SECTION HEADERS ----- */
.retro-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem 0;
  font-size: 11px;
  font-family: var(--font-system);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 900;
  color: var(--accent);
}

.retro-header::before {
  content: "★";
  font-size: 12px;
  flex-shrink: 0;
}

.retro-header::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
}

.retro-note {
  font-size: 12px;
  font-family: var(--font-system);
  color: var(--gray-400);
  font-style: italic;
  margin: 1rem 0 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px dashed var(--border);
  text-align: center;
}

/* ----- HERO BLOCK (Home) ----- */
.hero-block {
  padding: 3rem 0;
}

.hero-block.compact {
  padding: 1.5rem 0 1rem 0;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0 0 0;
}

.hero-intro {
  display: flex;
  align-items: center;
  width: 100%;
}

.photo-frame {
  flex-shrink: 0;
  padding: 6px;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 50%, #e0e0e0 100%);
  border-radius: 4px;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.photo-frame-inner {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 2px;
  background: #fff;
}

.photo-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.photo-placeholder-home {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-family: "SF Mono", monospace;
  font-size: 11px;
  transition: opacity 0.3s ease;
  position: relative;
}

/* ASCII art effect on hover */
.photo-frame {
  position: relative;
  cursor: pointer;
}

.photo-frame-inner {
  position: relative;
  overflow: hidden;
}

/* ASCII overlay */
.photo-frame-inner::after {
  content: "████░░██ ██░░░░██ ░░████░░ ██████▓▓ ▓▓▒▒▒▒▓▓ ▒▒░░░░▒▒ ░░    ░░ ▓▓████▓▓ ██▓▓▓▓██ ▓▓▒▒▒▒▓▓ ▒▒░░░░▒▒ ░░░░░░░░ ████████ ▓▓▓▓▓▓▓▓ ▒▒▒▒▒▒▒▒";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  color: #00ff00;
  font-family: "SF Mono", "Monaco", monospace;
  font-size: 7px;
  line-height: 1.1;
  letter-spacing: 0px;
  word-break: break-all;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-shadow:
    0 0 5px #00ff00,
    0 0 10px #00ff00,
    0 0 20px #00ff00,
    0 0 40px #00aa00;
  pointer-events: none;
  animation: none;
}

.photo-frame:hover .photo-frame-inner img,
.photo-frame:hover .photo-placeholder-home {
  opacity: 0;
}

.photo-frame:hover .photo-frame-inner::after {
  opacity: 1;
  animation: ascii-flicker 0.1s steps(2) infinite;
}

@keyframes ascii-flicker {
  0%, 100% {
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00aa00;
  }
  50% {
    text-shadow: 0 0 5px #00ff00, 0 0 15px #00ff00, 0 0 25px #00aa00;
  }
}

/* Scanline effect over ASCII */
.photo-frame-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.3) 2px,
    rgba(0, 0, 0, 0.3) 4px
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.photo-frame:hover .photo-frame-inner::before {
  opacity: 1;
}

.hero-text {
  text-align: left;
}

.hero-text.inline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.hero-text.inline h1 {
  margin-bottom: 0;
}

.hero-text.inline .subtitle {
  margin: 0;
  text-align: right;
}

/* Hero banner image */
.hero-banner {
  width: 100%;
  margin-bottom: 1rem;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Hero photo - halftone/dithered effect */
.hero-photo {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  cursor: pointer;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.4);
  mix-blend-mode: multiply;
  position: relative;
  z-index: 1;
}

/* Halftone dot pattern overlay */
.hero-photo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, #000 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: screen;
  z-index: 2;
  pointer-events: none;
  opacity: 0.3;
}

/* Noise/grain overlay */
.hero-photo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.15;
  mix-blend-mode: overlay;
  z-index: 3;
  pointer-events: none;
}

/* ASCII overlay on hover */
.ascii-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  overflow: hidden;
}

.ascii-overlay span {
  color: #00ff00;
  font-family: "SF Mono", "Monaco", monospace;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0;
  word-break: break-all;
  text-align: center;
  padding: 8px;
  text-shadow:
    0 0 5px #00ff00,
    0 0 10px #00ff00,
    0 0 20px #00aa00;
  animation: ascii-flicker 0.1s steps(2) infinite;
  animation-play-state: paused;
}

.hero-photo:hover .ascii-overlay {
  opacity: 1;
}

.hero-photo:hover .ascii-overlay span {
  animation-play-state: running;
}

@keyframes ascii-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* Local time display */
.local-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.time-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-400);
}

.time-value {
  font-size: 14px;
  color: var(--gray-200);
  font-variant-numeric: tabular-nums;
}

.hero-block h1 {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  font-family: var(--font-system);
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

@media (max-width: 500px) {
  .hero-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .hero-text {
    text-align: left;
  }

  .hero-photo {
    width: 150px;
    height: 150px;
  }
}

/* ----- WHITEBOARD CARDS ----- */
.whiteboard-card {
  position: relative;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  padding: 1.5rem;
  margin: 0.5rem 0 2rem 0;
}

.whiteboard-card.large {
  padding: 2rem;
}

.whiteboard-card h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.whiteboard-card p {
  color: var(--gray-200);
  line-height: 1.7;
}

.whiteboard-card p + p {
  margin-top: 1rem;
}

/* Corner markers (like pinned to a board) */
.card-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--gray-400);
}

.card-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.card-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.card-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.card-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ----- QUICK LINKS (Home) ----- */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 2rem 0;
}

.chip {
  padding: 0.5rem 1rem;
  background: var(--chrome-light);
  border: 2px solid;
  border-color: var(--chrome-light) var(--chrome-dark) var(--chrome-dark) var(--chrome-light);
  border-radius: 0;
  font-size: 12px;
  font-family: var(--font-system);
  font-weight: 700;
  color: var(--gray-100);
  transition: all 0.1s ease;
}

.chip:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* ----- STATUS BAR (Home) ----- */
.status-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--gray-400);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-500);
}

.status-dot.online {
  background: #28c840;
  box-shadow: 0 0 8px rgba(40, 200, 64, 0.5);
}

a.status-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

a.status-link:hover {
  color: var(--white);
}

/* ----- ABOUT PAGE ----- */
.about-section {
  margin-bottom: 1rem;
}

.belief-list {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.belief-list li {
  position: relative;
  color: var(--gray-200);
  margin-bottom: 0.5rem;
}

.belief-list li::before {
  content: "→";
  position: absolute;
  left: -1.5rem;
  color: var(--gray-400);
}

/* Skills Grid */
.skills-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 0.5rem 0 2rem 0;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
}

.skill-column h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.skill-list li {
  font-size: 13px;
  color: var(--gray-200);
  padding: 0.25rem 0;
}

/* Previously Section */
.previously-section {
  margin: 0.25rem 0;
  padding: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.previously-section + .terminal-line {
  margin-top: 1.5rem;
}

.previously-label {
  font-size: 12px;
  color: var(--gray-400);
  text-transform: lowercase;
}

.previously-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.previously-item {
  font-size: 13px;
  color: var(--gray-200);
  text-decoration: none;
  transition: color 0.2s ease;
}

a.previously-item:hover {
  color: var(--accent);
  text-decoration: underline;
}

.previously-sep {
  color: var(--gray-500);
}

/* Currently Section */
.currently-section {
  margin: 0.5rem 0 1rem 0;
}

.currently-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.currently-item {
  background: #ffffff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.currently-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-400);
}

.currently-value {
  font-size: 14px;
  color: var(--text);
}

/* Live Projects Section */
.live-projects-section {
  margin: 0.5rem 0 2rem 0;
}

.live-project {
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border);
}

.live-project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.live-project-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.live-project-status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 2px;
}

.live-project-desc {
  font-size: 13px;
  color: var(--gray-300);
  margin-bottom: 0.75rem;
}

.live-project-link {
  font-size: 12px;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

.live-project-link:hover {
  color: var(--text);
}

/* ----- WORK PAGE ----- */
.work-intro {
  margin: 0.5rem 0 2rem 0;
  color: var(--gray-300);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.project-entry {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #ffffff;
  align-items: start;
  transition: background 0.2s ease;
}

.project-entry:hover {
  background: #f8f8f8;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-index {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-500);
  line-height: 1;
}

.project-year {
  font-size: 11px;
  color: var(--gray-400);
}

.project-info h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 13px;
  color: var(--gray-300);
  margin-bottom: 0.75rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.5rem;
  background: #f0f0f0;
  border-radius: 2px;
  color: var(--gray-300);
}

.project-link-wrap {
  display: flex;
  align-items: center;
}

.project-link {
  padding: 0.5rem 1rem;
  background: var(--chrome-light);
  border: 2px solid;
  border-color: var(--chrome-light) var(--chrome-dark) var(--chrome-dark) var(--chrome-light);
  font-size: 12px;
  font-family: var(--font-system);
  font-weight: 700;
  color: #222;
  transition: all 0.1s ease;
  white-space: nowrap;
}

.project-link:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* Button reset for project links */
button.project-link {
  font-family: var(--font-system);
  cursor: pointer;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 0.5rem 0 2rem 0;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--gray-800);
  text-decoration: none;
  transition: background 0.2s ease;
}

.gallery-item:hover {
  background: var(--gray-700);
}

.gallery-icon {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.gallery-title {
  font-size: 13px;
  color: var(--white);
  font-weight: 500;
}

.gallery-type {
  font-size: 11px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 0.5rem 0 1.5rem 0;
}

.skill-card {
  padding: 1rem;
  background: var(--gray-800);
}

.skill-card h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-size: 12px;
  color: var(--gray-200);
  background: var(--gray-700);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
}

/* Work History Inline */
.work-history {
  font-size: 13px;
  color: var(--gray-400);
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.work-history .history-label {
  color: var(--gray-500);
  margin-right: 0.5rem;
}

.work-history a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.2s ease;
}

.work-history a:hover {
  color: var(--accent);
}

.work-history .history-sep {
  color: var(--gray-600);
  margin: 0 0.25rem;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.work-footer {
  margin-top: 1rem;
  color: var(--gray-400);
}

.work-footer a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.work-footer a:hover {
  color: var(--gray-300);
}

/* ----- RANTS PAGE (Thoughts Feed) ----- */

.rant-disclaimer {
  margin: 0.5rem 0 1.5rem 0;
  padding: 1rem 1.5rem;
  background: #fff9e6;
  border-left: 3px solid #e6c200;
  font-size: 13px;
  color: #5d4e37;
}

.thoughts-feed-container {
  position: relative;
  margin: 0.5rem 0;
}

.thoughts-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.thoughts-feed::-webkit-scrollbar {
  width: 8px;
}

.thoughts-feed::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 4px;
}

.thoughts-feed::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 4px;
}

.thoughts-feed::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--gray-900) 0%, transparent 100%);
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.5rem;
}

.scroll-indicator span {
  font-family: "SF Mono", monospace;
  font-size: 10px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.thought {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 0;
  position: relative;
  font-family: "SF Mono", "Monaco", monospace;
}

.thought::before {
  content: ">";
  position: absolute;
  left: -1rem;
  top: 0.75rem;
  color: #888;
  font-size: 12px;
}

.thought-text {
  font-size: 13px;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.thought-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.thought-date {
  font-size: 10px;
  color: var(--gray-500);
}

.thought-tag {
  font-size: 9px;
  text-transform: lowercase;
  padding: 0.15rem 0.4rem;
  background: transparent;
  border: 1px solid var(--gray-500);
  border-radius: 0;
  color: var(--gray-400);
}

.thought-tag.hot {
  background: transparent;
  border-color: #ff6b6b;
  color: #ff6b6b;
}

/* ----- PREDICTION / MAGIC 8-BALL ----- */
.prediction-trigger {
  cursor: pointer;
  transition: all 0.2s ease;
}

.prediction-trigger:hover {
  color: var(--text);
}

.prediction-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.prediction-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Fog effect - natural floating gas/powder */
.fog {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  transition: opacity 1.2s ease;
  overflow: hidden;
}

.prediction-overlay.active .fog {
  opacity: 1;
}

/* Layer 1 - soft drifting powder clouds */
.fog::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background:
    /* Light powder puffs */
    radial-gradient(ellipse at 15% 25%, rgba(200, 200, 210, 0.4) 0%, transparent 25%),
    radial-gradient(ellipse at 85% 20%, rgba(190, 190, 200, 0.35) 0%, transparent 28%),
    radial-gradient(ellipse at 40% 60%, rgba(210, 210, 220, 0.45) 0%, transparent 30%),
    radial-gradient(ellipse at 75% 70%, rgba(195, 195, 205, 0.4) 0%, transparent 26%),
    radial-gradient(ellipse at 25% 85%, rgba(205, 205, 215, 0.38) 0%, transparent 27%),
    radial-gradient(ellipse at 60% 35%, rgba(185, 185, 195, 0.42) 0%, transparent 24%),
    /* Dark shadows floating */
    radial-gradient(ellipse at 30% 40%, rgba(0, 0, 0, 0.4) 0%, transparent 20%),
    radial-gradient(ellipse at 70% 55%, rgba(0, 0, 0, 0.35) 0%, transparent 22%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 0, 0, 0.3) 0%, transparent 25%),
    radial-gradient(ellipse at 20% 65%, rgba(0, 0, 0, 0.32) 0%, transparent 18%);
  animation: fog-drift-natural 8s ease-in-out infinite;
}

/* Layer 2 - secondary floating particles */
.fog::after {
  content: "";
  position: absolute;
  top: -15%;
  left: -15%;
  width: 130%;
  height: 130%;
  background:
    radial-gradient(ellipse at 55% 15%, rgba(220, 220, 230, 0.35) 0%, transparent 22%),
    radial-gradient(ellipse at 20% 50%, rgba(215, 215, 225, 0.4) 0%, transparent 26%),
    radial-gradient(ellipse at 80% 45%, rgba(200, 200, 210, 0.38) 0%, transparent 24%),
    radial-gradient(ellipse at 45% 75%, rgba(210, 210, 220, 0.36) 0%, transparent 25%),
    radial-gradient(ellipse at 90% 85%, rgba(195, 195, 205, 0.32) 0%, transparent 23%),
    radial-gradient(ellipse at 10% 30%, rgba(205, 205, 215, 0.34) 0%, transparent 21%),
    /* More dark wisps */
    radial-gradient(ellipse at 65% 30%, rgba(0, 0, 0, 0.35) 0%, transparent 18%),
    radial-gradient(ellipse at 35% 70%, rgba(0, 0, 0, 0.3) 0%, transparent 20%),
    radial-gradient(ellipse at 85% 60%, rgba(0, 0, 0, 0.28) 0%, transparent 16%);
  animation: fog-drift-natural-2 10s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes fog-drift-natural {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  20% {
    transform: translate(2%, -1.5%) scale(1.02);
  }
  40% {
    transform: translate(-1%, 2%) scale(0.98);
  }
  60% {
    transform: translate(1.5%, 1%) scale(1.03);
  }
  80% {
    transform: translate(-2%, -1%) scale(0.99);
  }
}

@keyframes fog-drift-natural-2 {
  0%, 100% {
    transform: translate(0, 0) scale(1.02);
  }
  25% {
    transform: translate(-1.5%, 1%) scale(1);
  }
  50% {
    transform: translate(1%, -2%) scale(1.04);
  }
  75% {
    transform: translate(2%, 1.5%) scale(0.98);
  }
}

/* Floating powder particles layer */
.prediction-overlay.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 8%),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 6%),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.14) 0%, transparent 7%),
    radial-gradient(circle at 85% 55%, rgba(255, 255, 255, 0.11) 0%, transparent 5%),
    radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.13) 0%, transparent 6%),
    radial-gradient(circle at 60% 45%, rgba(255, 255, 255, 0.1) 0%, transparent 5%),
    radial-gradient(circle at 30% 15%, rgba(0, 0, 0, 0.2) 0%, transparent 8%),
    radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.18) 0%, transparent 7%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.15) 0%, transparent 10%);
  animation: powder-float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* Extra atmosphere */
.prediction-overlay.active::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(180, 180, 190, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 30%, rgba(0, 0, 0, 0.25) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 70%, rgba(0, 0, 0, 0.2) 0%, transparent 35%);
  animation: atmosphere-pulse 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes powder-float {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.8;
  }
  33% {
    transform: translate(1%, -1%);
    opacity: 0.9;
  }
  66% {
    transform: translate(-1%, 0.5%);
    opacity: 0.85;
  }
}

@keyframes atmosphere-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Magic 8-Ball */
.magic-ball {
  position: relative;
  z-index: 10;
  cursor: pointer;
  transform: scale(0) rotate(-20deg);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
  transition-delay: 0s;
}

.prediction-overlay.active .magic-ball {
  transform: scale(1) rotate(0deg);
  opacity: 1;
  transition-delay: 0.3s;
}

.ball-outer {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle at 30% 30%, #4a4a4a, #1a1a1a 60%, #000 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    inset 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.ball-inner {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 50% 50%, #1a1a4a, #0a0a2a 70%, #000 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ball-window {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #0a0a3a 0%, #1a1a5a 50%, #0a0a2a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;
}

.magic-ball.reveal .ball-window {
  opacity: 1;
  transform: scale(1);
}

.prediction-text {
  font-family: "SF Mono", monospace;
  font-size: 8px;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  word-break: break-word;
  overflow-wrap: break-word;
  padding: 4px;
  width: 100%;
}

.ball-shine {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 40px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.4) 0%, transparent 70%);
  border-radius: 50%;
  transform: rotate(-30deg);
}

.ball-hint {
  text-align: center;
  font-family: "SF Mono", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1.5rem;
  text-transform: lowercase;
  opacity: 0;
  transition: opacity 0.5s ease;
  transition-delay: 0s;
}

.prediction-overlay.active .ball-hint {
  opacity: 1;
  transition-delay: 2.5s; /* Appears after ball */
}

.close-prediction {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.6);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-prediction:hover {
  border-color: #fff;
  color: #fff;
}

/* ----- MODALS (Work & Rants) ----- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-header h2 {
  font-size: 1.25rem;
  color: #1a1a1a;
  margin: 0 0 0.75rem 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: #1a1a1a;
}

.modal-body {
  padding: 2rem;
}

.modal-body p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.modal-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  background: #f0f0f0;
  border-radius: 2px;
  color: #666;
}

.modal-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-family: "SF Mono", monospace;
  font-size: 12px;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--chrome-light);
  color: #222;
  font-family: var(--font-system);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 2px solid;
  border-color: var(--chrome-light) var(--chrome-dark) var(--chrome-dark) var(--chrome-light);
  transition: all 0.1s ease;
}

.modal-link:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* ----- CONTACT PAGE ----- */
.contact-content {
  display: flex;
  flex-direction: column;
}

.contact-hero {
  margin-bottom: 1rem;
}

.contact-hero h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 0.5rem 0 2rem 0;
}

.contact-method {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  background: #ffffff;
  transition: all 0.2s ease;
}

.contact-method:hover {
  background: #f8f8f8;
}

.method-icon {
  font-size: 1.25rem;
  color: var(--gray-400);
  font-weight: 600;
}

.method-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-400);
}

.method-value {
  font-size: 13px;
  color: var(--text);
}

/* Availability */
.availability {
  margin: 0.5rem 0 2rem 0;
}

.availability-card {
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
}

.availability-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.availability-card > p {
  color: var(--gray-300);
  font-size: 13px;
  margin-bottom: 1rem;
}

.availability-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.detail {
  display: flex;
  gap: 1rem;
  font-size: 12px;
}

.detail-label {
  color: var(--gray-400);
  min-width: 80px;
}

.detail-value {
  color: var(--gray-200);
}

/* ----- WRITING PAGE ----- */
.writing-intro {
  margin: 0.5rem 0 2rem 0;
  color: var(--gray-300);
}

.writing-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.writing-entry {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  transition: background 0.2s ease;
}

.writing-entry:hover {
  background: #f8f8f8;
}

.writing-status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.writing-status.wip {
  background: #fff9e6;
  color: #b8860b;
}

.writing-status.pub {
  background: #e8f5e9;
  color: #2e7d32;
}

.writing-info h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.writing-info h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.writing-info h2 a:hover {
  color: var(--gray-300);
}

.writing-desc {
  font-size: 13px;
  color: var(--gray-400);
}

.writing-link-wrap {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.writing-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--chrome-light);
  border: 2px solid;
  border-color: var(--chrome-light) var(--chrome-dark) var(--chrome-dark) var(--chrome-light);
  font-size: 12px;
  font-family: var(--font-system);
  font-weight: 700;
  color: #222;
  text-decoration: none;
  transition: all 0.1s ease;
  white-space: nowrap;
}

.writing-link:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.writing-link.disabled {
  color: var(--gray-400);
  border-color: var(--gray-400);
  cursor: default;
  opacity: 0.6;
}

.writing-link.disabled:hover {
  background: transparent;
  color: var(--gray-400);
  border-color: var(--gray-400);
}

/* ----- FOOTER ----- */
footer {
  padding: 0.6rem 1rem;
  border-top: 2px solid var(--chrome-dark);
  font-size: 12px;
  font-family: var(--font-system);
  color: #333;
  background: var(--chrome);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stream-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--gray-400);
  transition: color 0.2s ease;
}

.stream-status:hover {
  color: var(--gray-200);
}

.stream-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc3545;
}

.stream-status.offline .stream-dot {
  background: #dc3545;
}

.stream-status.live .stream-dot {
  background: #28c840;
  box-shadow: 0 0 8px rgba(40, 200, 64, 0.6);
  animation: pulse-live 2s ease-in-out infinite;
}

.stream-status.live .stream-text {
  color: #28c840;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 600px) {
  body {
    padding: 0;
  }

  .window {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .content {
    padding: 1.5rem;
  }

  .project-entry {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-meta {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .project-link-wrap {
    justify-content: flex-start;
  }

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

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

  .terminal-line {
    flex-wrap: wrap;
  }
}

/* ----- WINDOW DRAG & DOCK ----- */
.window-bar {
  cursor: grab;
}

.window.minimized {
  display: none !important;
}

/* Laser beam */
#laser-beam {
  position: fixed;
  left: 0;
  top: -6px;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, #fff 50%, var(--accent) 70%, transparent 100%);
  box-shadow: 0 0 12px var(--accent), 0 0 40px var(--accent), 0 0 80px rgba(57,255,20,0.4);
  z-index: 99999;
  transition: top 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
#laser-beam.laser-fire {
  top: calc(100vh + 6px);
}

/* Email layout */
.email-app {
  display: flex;
  flex-direction: column;
  height: calc(80vh - 36px);
  background: #fff;
  overflow: hidden;
}

.email-toolbar {
  padding: 10px 16px;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f8f8;
}

.email-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-family: var(--font-system);
  font-size: 13px;
  font-weight: 500;
  cursor: default;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.email-pane {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.email-header {
  padding: 16px 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.email-field {
  display: flex;
  gap: 8px;
  font-family: var(--font-system);
  font-size: 13px;
  align-items: baseline;
}

.email-field-label {
  color: #888;
  min-width: 48px;
  font-weight: 500;
}

.email-field-value { color: #1a1a1a; }

.email-subject-field { margin-top: 6px; }
.email-subject-text {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.email-body {
  padding: 24px;
  font-family: var(--font-system);
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.7;
  flex: 1;
}

.email-body p { margin-bottom: 14px; }

.email-contact-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.email-contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  color: #1a1a1a;
  background: #fff;
  transition: background 0.1s, border-color 0.1s;
}

.email-contact-btn:hover { background: #f0f4ff; border-color: #c5d8f8; }

.ecb-icon {
  width: 36px;
  height: 36px;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #444;
  flex-shrink: 0;
}

.ecb-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ecb-value {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
}

.email-footer-note {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
}

/* Google Drive layout */
.drive-app {
  display: flex;
  flex-direction: column;
  height: calc(80vh - 36px);
  background: #fff;
  overflow: hidden;
}

.drive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
}

.drive-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-system);
  font-size: 14px;
}

.drive-crumb {
  color: #444;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}

.drive-crumb:hover { background: #f0f0f0; }
.drive-root { font-weight: 600; color: #1a1a1a; }
.drive-sep { color: #aaa; }

.drive-toolbar-right {
  font-family: var(--font-system);
  font-size: 12px;
  color: #888;
}

.drive-toolbar-right a { color: #1a73e8; text-decoration: none; }
.drive-toolbar-right a:hover { text-decoration: underline; }

.drive-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.drive-view.hidden { display: none; }

.drive-section-label {
  font-family: var(--font-system);
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.drive-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.drive-folder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  width: 210px;
  background: #fff;
  transition: background 0.1s, border-color 0.1s;
}

.drive-folder:hover { background: #f6f9ff; border-color: #c5d8f8; }

.drive-folder-icon { font-size: 20px; }

.drive-folder-name {
  font-family: var(--font-system);
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
}

.drive-folder-meta {
  font-family: var(--font-system);
  font-size: 11px;
  color: #999;
}

.drive-orgs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-system);
  font-size: 13px;
  color: #888;
}

.drive-orgs a { color: #1a73e8; text-decoration: none; }
.drive-orgs a:hover { text-decoration: underline; }

.drive-folder-header {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-family: var(--font-system);
  font-size: 13px;
  color: #444;
  line-height: 1.6;
}

.drive-folder-header .drive-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.drive-file-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drive-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #1a1a1a;
  font-family: var(--font-system);
  transition: background 0.1s;
}

.drive-file:hover { background: #f0f4ff; }
.drive-file-icon { font-size: 18px; }
.drive-file-name { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.drive-file-type { font-size: 11px; color: #999; margin-top: 1px; }
.drive-file-desc { font-size: 12px; color: #666; margin-top: 3px; line-height: 1.4; }

/* Notes app layout */
.notes-app {
  display: flex;
  height: calc(80vh - 36px);
  overflow: hidden;
  background: #fff;
  margin: 0;
  padding: 0;
}

.notes-sidebar {
  width: 200px;
  min-width: 200px;
  background: #f5f5f5;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notes-search input {
  width: calc(100% - 16px);
  margin: 8px;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #e8e8e8;
  font-size: 12px;
  font-family: var(--font-system);
  color: #999;
  outline: none;
}

.notes-list {
  overflow-y: auto;
  flex: 1;
}

.notes-list-item {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  user-select: none;
}

.notes-list-item:hover {
  background: #ebebeb;
}

.notes-list-item.active {
  background: #FFD60A;
}

.note-item-title {
  font-family: var(--font-system);
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.note-item-meta {
  display: flex;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-system);
  color: #888;
}

.note-item-preview {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 110px;
}

.notes-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  background: #fff;
}

.note-pane { display: block; }
.note-pane.hidden { display: none; }

.note-date {
  font-family: var(--font-system);
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-bottom: 16px;
}

.note-title {
  font-family: var(--font-system);
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
  line-height: 1.2;
}

.note-content {
  font-family: var(--font-system);
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.7;
}

.note-content p { margin-bottom: 10px; }

.note-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.note-content ul li::before {
  content: '– ';
  color: #555;
}

.note-content ul li {
  padding-left: 16px;
  margin-bottom: 4px;
}

.note-content a {
  color: #1a1a1a;
  text-decoration: underline;
}

.app-window-body {
  overflow-y: auto;
  max-height: calc(80vh - 36px);
}

.win-loading {
  padding: 1.5rem;
  opacity: 0.5;
  font-family: var(--font-mono);
}

#desktop-clock {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-left: 1px solid var(--chrome-dark);
  min-width: 72px;
}

.clock-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: bold;
  color: var(--text);
  line-height: 1.2;
}

.clock-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text);
  line-height: 1.2;
}

#retro-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 34px;
  background: var(--chrome);
  border-top: 2px solid var(--chrome-dark);
  display: flex;
  align-items: center;
  padding: 2px 8px;
  gap: 4px;
  z-index: 9990;
  font-family: var(--font-system);
}

.dock-label {
  font-size: 11px;
  font-weight: 700;
  color: #555;
  padding-right: 8px;
  border-right: 1px solid var(--chrome-dark);
  margin-right: 4px;
  white-space: nowrap;
}

.dock-item {
  padding: 3px 12px;
  background: var(--chrome-light);
  border: 2px solid;
  border-color: var(--chrome-light) var(--chrome-dark) var(--chrome-dark) var(--chrome-light);
  font-size: 11px;
  font-family: var(--font-system);
  font-weight: 700;
  color: #000;
  cursor: pointer;
  white-space: nowrap;
}

.dock-item:hover {
  background: var(--accent);
  color: #000;
}

/* ----- DESKTOP SHORTCUTS ----- */
.desktop-shortcut {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 72px;
  padding: 6px 4px;
  text-decoration: none;
  z-index: 4;
  border: 2px solid transparent;
  transition: background 0.1s ease, border-color 0.1s ease;
}

.desktop-shortcut:hover {
  background: rgba(57, 255, 20, 0.15);
  border-color: var(--accent);
}

.shortcut-icon {
  font-size: 30px;
  line-height: 1;
  filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.6));
}

.shortcut-label {
  font-size: 11px;
  font-family: var(--font-system);
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-shadow:
    1px 1px 3px rgba(0,0,0,0.9),
    -1px -1px 3px rgba(0,0,0,0.9);
  line-height: 1.2;
}

/* ----- STICKY NOTE ----- */
#sticky-note {
  position: fixed;
  top: 80px;
  right: 80px;
  width: 200px;
  background: #FFF176;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.35);
  transform: rotate(2deg);
  z-index: 5;
  transition: transform 0.15s ease;
}

#sticky-note.sticky-hidden {
  display: none;
}

.sticky-header {
  background: #FFD600;
  padding: 4px 6px 4px 8px;
  font-size: 10px;
  font-family: var(--font-system);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #333;
  cursor: grab;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  user-select: none;
}

.sticky-close {
  background: none;
  border: none;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  font-family: var(--font-system);
}

.sticky-close:hover {
  color: #000;
}

.sticky-body {
  padding: 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: #333;
  min-height: 90px;
  outline: none;
  line-height: 1.6;
  cursor: text;
  white-space: pre-wrap;
  word-break: break-word;
}

.sticky-body:empty::before {
  content: 'click to type...';
  color: #aaa;
  pointer-events: none;
}

/* ── MOBILE HOME SCREEN (< 600px) ──────────────────────────────────── */
@media (max-width: 599px) {
  body { padding: 0; cursor: auto; }

  #mobile-home {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 24px 20px;
  }

  #mobile-title {
    text-align: center;
    margin-bottom: 44px;
  }

  #mobile-title h1 {
    font-family: var(--font-system);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
  }

  #mobile-title p {
    font-family: var(--font-system);
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    margin-top: 5px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  }

  .mobile-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 320px;
  }

  .mobile-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 18px 8px 12px;
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s;
  }

  .mobile-icon:active { background: rgba(255,255,255,0.32); }

  .mobile-icon-emoji {
    font-size: 34px;
    line-height: 1;
  }

  .mobile-icon-label {
    font-size: 10px;
    font-family: var(--font-system);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.75);
    text-align: center;
  }

  /* Slide-up panel */
  #mobile-panel {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9000;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  #mobile-panel.panel-open { transform: translateY(0); }

  #mobile-panel-bar {
    background: linear-gradient(to right, #1a0040, #5000c0, #1a0040);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-height: 48px;
  }

  #mobile-panel-back {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 12px;
    font-family: var(--font-system);
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
  }

  #mobile-panel-title {
    color: #fff;
    font-size: 13px;
    font-family: var(--font-system);
    font-weight: bold;
  }

  #mobile-panel-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* Notes app — stack sidebar above content */
  #mobile-panel-body .notes-app {
    height: 100%;
    flex-direction: column;
    overflow: hidden;
  }

  #mobile-panel-body .notes-sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    flex-shrink: 0;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  #mobile-panel-body .notes-search { display: none; }

  #mobile-panel-body .notes-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }

  #mobile-panel-body .notes-list-item {
    min-width: 120px;
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid #e0e0e0;
  }

  #mobile-panel-body .note-item-preview { display: none; }

  #mobile-panel-body .notes-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
  }

  /* Drive app — scrollable, no fixed height */
  #mobile-panel-body .drive-app {
    height: 100%;
    overflow-y: auto;
  }

  #mobile-panel-body .drive-body {
    overflow: visible;
    flex: unset;
  }

  #mobile-panel-body .drive-grid { flex-direction: column; }

  #mobile-panel-body .drive-folder { width: 100%; }

  /* Email app */
  #mobile-panel-body .email-app {
    height: 100%;
    overflow: hidden;
  }

  #mobile-panel-body .email-pane {
    overflow-y: auto;
  }
}

/* ----- SELECTION ----- */
::selection {
  background: var(--text);
  color: var(--text-light);
}

/* ----- SCROLLBAR ----- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaaaaa;
}
