/* =========================
   Color Theme
   ========================= */
:root {
  --bg-main: #1C1F24;
  --bg-card: #24282E;
  --border-soft: #32363C;

  --text-main: #E6E6E6;
  --text-muted: #B8BCC2;

  --accent-primary: #8F8AEF;
  --accent-secondary: #7A7E8A;
  --accent-tertiary: #B67C9D;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2rem;
  font-family: "Segoe UI", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* =========================
   Global Links
   ========================= */
a {
  color: var(--accent-secondary);
  text-decoration: none;
}
a:hover { color: var(--accent-tertiary); }

/* =========================
   Footer
   ========================= */
footer {
  margin-top: 4rem;
  padding-top: 1rem;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
}

/* =========================
   Homepage Section Title
   ========================= */
h2 {
  text-align: center;
  margin: 0 0 2rem;
  color: var(--accent-secondary);
}

/* =========================
   Hero Section
   ========================= */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin-bottom: 3rem;
  padding: 6rem 2rem 4rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2.8rem;
  letter-spacing: 2px;
  color: var(--accent-primary);
}

.hero h3 {
  margin: 0 0 1rem;
  color: var(--accent-tertiary);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-text p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.nickname {
  font-weight: 400;
  opacity: 0.7;
}

/* Hero Illustration */
.hero-illustration {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 70vw);
  opacity: 0.10;
  pointer-events: none;
  z-index: 1;
}

.hero-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero Buttons */
.hero-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-links a {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--accent-primary);
  border-radius: 8px;
  color: var(--accent-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-links a:hover {
  background-color: var(--accent-primary);
  color: var(--bg-main);
}

/* =========================
   Shared Card / Panel Style
   ========================= */
.project,
.docs-section {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}

/* =========================
   Homepage Project Grid
   ========================= */
#featured-projects {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.project {
  padding: 1.5rem;
  max-width: 400px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(143, 138, 239, 0.25);
}

.project h3 { color: var(--accent-primary); }

/* ==================================================
   Docs Page Add-On Styles
   (Only applied to documentation pages)
   ================================================== */

/* Docs Layout Column */
.docs {
  max-width: 900px;
  margin: 0 auto;
}

/* Reduced hero spacing for docs pages */
.docs-hero {
  padding: 4.5rem 2rem 2.5rem;
  margin-bottom: 2rem;
}

/* Breadcrumb Navigation */
.breadcrumbs {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Docs Section Panel */
.docs-section {
  padding: 2rem;
  margin: 0 0 1.5rem;
}

/* Docs Section Titles */
.docs-section h2 {
  text-align: left;
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--accent-primary);
  letter-spacing: 0.3px;
}

/* Paragraph spacing */
.docs-section p { margin: 0 0 1rem; }
.docs-section p:last-child { margin-bottom: 0; }

/* Quick Facts Grid */
.facts {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}

.facts li {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.02);
}

.facts strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Callout Box */
.callout {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(143, 138, 239, 0.06);
  color: var(--text-muted);
}

/* Two-Column Layout */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Mini Cards */
.mini-card {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.02);
}

.mini-card h3 {
  margin: 0 0 0.5rem;
  color: var(--accent-primary);
  font-size: 1.05rem;
}

.mini-card p {
  margin: 0;
  color: var(--text-muted);
}

/* Docs Lists */
.docs-section ul,
.docs-section ol {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.docs-section li { margin: 0.35rem 0; }

/* Code Blocks */
.code {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: #171a1f;
  overflow-x: auto;
}

.code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: pre;
}

/* Small Notes */
.small-note {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Docs Footer Navigation */
.docs-footer {
  text-align: center;
  margin: 2rem 0 0;
}

.docs-footer a {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.docs-footer a:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* =========================
   Responsive Adjustments
   ========================= */
@media (max-width: 820px) {
  .docs { max-width: 700px; }
  .facts { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .docs-section { padding: 1.4rem; }
}

/* ==================================================
   Wizard Rescue Media Helpers
   (Video + Image styling for game project pages)
   ================================================== */

/* Responsive video wrapper (YouTube / embed) */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  background: #171a1f;
}

/* Embedded iframe fills wrapper */
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Local MP4 video element */
.video {
  width: 100%;
  margin-top: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: #171a1f;
}

/* Highlight images inside mini-cards */
.highlight-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  margin-bottom: 0.85rem;
  display: block;
}

/* ==================================================
   Resume Page Add-On Styles
   ================================================== */

a.is-active {
  background-color: var(--accent-primary);
  color: var(--bg-main);
}

#resumeSkills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.resume-skill {
  display: inline-block;

  padding: 0.55rem 0.9rem;
  border-radius: 10px;

  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);

  font-size: 0.9rem;
  color: var(--text-muted);
}