:root {
  --text: #eee;
  --muted: #aaa;
  --border: #444;
  --bg: #111;
  --hover-bg: #1a1a1a;
}

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

body {
  font-family: "Segoe UI", "Roboto", "Arial", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}

header, footer { border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
footer { border-top: 1px solid var(--border); margin-top: 2rem; font-size: 0.85rem; color: var(--muted); }

h1 { font-size: 2rem; }
h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.subtitle { color: var(--muted); font-size: 1rem; }

.projects { display: grid; gap: 1rem; }

.project {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.project-header {
  padding: 1rem;
  cursor: pointer;
  background: var(--hover-bg);
  display: flex;
  flex-direction: column;
}

.project-header:hover { background: #222; }

.project-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.project-hero {
  font-size: 0.95rem;
  color: var(--text);
}

.project-body {
  display: none;
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.project-body img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.project-details {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.project-links a {
  font-size: 0.9rem;
  margin-right: 1rem;
  color: var(--text);
  text-decoration: none;
}

.project-links a:hover { text-decoration: underline; }

.visit-site {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #444;
  color: var(--text);
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  z-index: 10;
}

.visit-site:hover {
  background: #666;
}


/* focus btn  */
#focus-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: #444;
  color: #eee;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

#focus-btn:hover {
  background: #666;
}

#focus-gif-container img {
  width: 100%;
  max-width: 600px;
  margin-top: 1rem;
  display: block;
  border-radius: 6px;
}