/* ============================================
   Marty Schneider - Cybersecurity Portfolio
   Terminal/Hacker Aesthetic
   ============================================ */

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

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0d1221;
  --bg-card: #111827;
  --bg-terminal: #0c1018;
  --cyan: #00d9ff;
  --cyan-dim: #0ea5e9;
  --cyan-glow: rgba(0, 217, 255, 0.15);
  --cyan-glow-strong: rgba(0, 217, 255, 0.3);
  --amber: #f59e0b;
  --green: #22c55e;
  --red: #ef4444;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  --border: #1e293b;
  --border-glow: rgba(0, 217, 255, 0.2);
  --font-mono: 'JetBrains Mono', 'Courier New', Courier, monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--cyan-glow-strong);
}

::selection {
  background: var(--cyan);
  color: var(--bg-primary);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border-glow);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.nav-logo:hover {
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-separator {
  color: var(--text-dim);
  font-size: 0.85rem;
  user-select: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: var(--cyan);
  background: var(--cyan-glow);
  text-shadow: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: rgba(10, 14, 23, 0.98);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  padding: 10px 0;
  font-size: 0.95rem;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 40px;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0, 217, 255, 0.04) 0%, transparent 60%),
    var(--bg-primary);
}

.hero-content {
  max-width: 600px;
}

/* Profile Photo */
.hero-photo-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 36px;
}

.hero-photo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  opacity: 0.5;
  animation: ring-pulse 3s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0.3; box-shadow: 0 0 15px var(--cyan-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 30px var(--cyan-glow-strong); }
}

.hero-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  position: relative;
  background: var(--bg-secondary);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.3s;
}

.hero-photo:hover img {
  filter: grayscale(0%);
}

/* Fallback when image missing */
.hero-photo img.error {
  display: none;
}

.hero-photo .photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--cyan);
  background: var(--bg-secondary);
}

.hero-name {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 8px;
  text-shadow: 0 0 20px var(--cyan-glow);
}

.hero-title {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.hero-typing {
  font-size: 0.95rem;
  color: var(--text-dim);
  min-height: 1.7em;
  margin-bottom: 32px;
}

.cursor {
  animation: blink 1s step-end infinite;
  color: var(--cyan);
}

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

/* Social Icons */
.hero-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-link {
  color: var(--cyan);
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.social-link:hover {
  opacity: 1;
  transform: translateY(-2px);
  color: #fff;
  text-shadow: none;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.75rem;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
}

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

/* --- Sections --- */
.section {
  padding: 80px 24px;
  position: relative;
}

.section:nth-child(even) {
  background: var(--bg-secondary);
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 36px;
  color: var(--text-primary);
}

.prompt {
  color: var(--cyan);
  margin-right: 8px;
}

/* --- Terminal Block --- */
.terminal-block {
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(30, 41, 59, 0.5);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: var(--red); opacity: 0.8; }
.terminal-dot.yellow { background: var(--amber); opacity: 0.8; }
.terminal-dot.green { background: var(--green); opacity: 0.8; }

.terminal-title {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 24px;
  font-size: 0.9rem;
  line-height: 1.8;
}

.terminal-line {
  margin-bottom: 4px;
}

.comment {
  color: var(--text-dim);
}

.highlight {
  color: var(--cyan);
}

.inline-link {
  color: var(--cyan-dim);
  border-bottom: 1px dashed var(--cyan-dim);
}

.inline-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* --- Timeline (Experience) --- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.timeline-item:first-child .timeline-marker {
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow-strong);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.05);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.timeline-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--cyan-dim);
  white-space: nowrap;
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.timeline-details {
  list-style: none;
  padding: 0;
}

.timeline-details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.timeline-details li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* --- Certification Cards --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.cert-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.08);
}

.cert-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px; /* Gives breathing room for the icon */
  margin-bottom: 15px; /* Space below icon */
}

.cert-icon img {
  width: 70px; /* Adjust this: 60px for small, 80px for medium */
  height: auto; /* Keeps proportions intact */
  max-width: 100%; /* Prevents overflow on smaller screens */
  object-fit: contain; /* Ensures it fits without stretching */
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)); /* Optional: subtle shadow for polish */
}

.cert-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cert-issuer {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.status-active {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 10px;
  border-radius: 12px;
  letter-spacing: 0.08em;
}

/* --- Projects Grid --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.08);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.project-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-tag {
  font-size: 0.7rem;
  color: var(--cyan);
  background: var(--cyan-glow);
  padding: 2px 10px;
  border-radius: 12px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tech span {
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(100, 116, 139, 0.15);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

/* --- Contact --- */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-sub {
  margin-top: 6px;
  font-size: 0.75rem;
}

/* --- Fade-in Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-name {
    font-size: 1.6rem;
    letter-spacing: 0.08em;
  }

  .hero-title {
    font-size: 0.9rem;
  }

  .hero-photo-wrapper {
    width: 140px;
    height: 140px;
  }

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

  .section {
    padding: 60px 16px;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-marker {
    left: -24px;
    width: 12px;
    height: 12px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 4px;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 1.3rem;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .terminal-body {
    padding: 16px;
    font-size: 0.82rem;
  }
}

/* ============================================
   Theme Toggle Button
   ============================================ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 6px;
  color: var(--text-secondary);
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.2s;
  margin-left: auto;
  margin-right: 12px;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-glow);
  transform: scale(1.1);
}

.theme-icon {
  transition: opacity 0.3s, transform 0.3s;
}

.theme-icon--terminal {
  opacity: 0;
  position: absolute;
  transform: rotate(-90deg) scale(0.5);
}

.theme-icon--warcraft {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ============================================
   Warcraft Theme - WoW Addon UI Aesthetic
   Thick ornate panel frames, gold accents,
   corner ornaments, textured backgrounds
   ============================================ */
html.warcraft {
  /* Base backgrounds */
  --bg-primary: #0f0b06;
  --bg-secondary: #161008;
  --bg-card: #1a150d;
  --bg-terminal: #120e07;

  /* Panel frame colors */
  --frame-outer: #2a1f12;
  --frame-inner: #3d2e1a;
  --frame-highlight: #5a4425;
  --frame-gold: #8b6914;

  /* Accent colors - gold spectrum */
  --gold: #d4a843;
  --gold-bright: #f0d060;
  --gold-dim: #b8922f;

  /* Reuse existing variable names for compatibility */
  --cyan: #d4a843;
  --cyan-dim: #b8922f;
  --cyan-glow: rgba(212, 168, 67, 0.15);
  --cyan-glow-strong: rgba(212, 168, 67, 0.35);
  --amber: #d4a843;
  --green: #5a9e3e;
  --red: #b33030;

  /* Text */
  --text-primary: #e8d5b5;
  --text-secondary: #b8a080;
  --text-dim: #7a6a55;

  /* Borders */
  --border: #3a2a18;
  --border-glow: rgba(212, 168, 67, 0.3);

  /* Font */
  --font-serif: 'Cinzel', 'Times New Roman', serif;
}

/* --- Warcraft Font Override --- */
html.warcraft body {
  font-family: var(--font-serif);
  line-height: 1.7;
  letter-spacing: 0.3px;
}

/* --- Show/Hide Dual Elements --- */
.nav-logo--wc,
.nav-separator--wc,
.nav-link--wc,
.section-title--wc,
.terminal-header--wc,
.scroll-indicator--wc,
.hero-title--wc,
.footer-sub--wc {
  display: none;
}

html.warcraft .nav-logo--cyber,
html.warcraft .nav-separator--cyber,
html.warcraft .nav-link--cyber,
html.warcraft .section-title--cyber,
html.warcraft .terminal-header--cyber,
html.warcraft .scroll-indicator--cyber,
html.warcraft .hero-title--cyber,
html.warcraft .footer-sub--cyber {
  display: none;
}

html.warcraft .nav-logo--wc { display: inline; }
html.warcraft .nav-separator--wc { display: inline; }
html.warcraft .nav-link--wc { display: block; }
html.warcraft .section-title--wc { display: block; }
html.warcraft .terminal-header--wc { display: flex; }
html.warcraft .scroll-indicator--wc {
  display: flex;
  flex-direction: column;
  align-items: center;
}
html.warcraft .hero-title--wc { display: block; }
html.warcraft .footer-sub--wc { display: block; }

/* --- Toggle Icon States --- */
html.warcraft .theme-icon--terminal {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html.warcraft .theme-icon--warcraft {
  opacity: 0;
  position: absolute;
  transform: rotate(90deg) scale(0.5);
}

html.warcraft .theme-toggle {
  background: none;
  border-style: solid;
  border-width: 4px;
  border-image-source: url('https://warcraftcn.com/warcraftcn/button-bg-sm.webp');
  border-image-slice: 16 fill;
  border-image-repeat: stretch;
  border-radius: 0;
  color: var(--cyan);
  padding: 4px;
}

html.warcraft .theme-toggle:hover {
  filter: brightness(1.3);
  color: #fff;
  transform: scale(1.1);
}

/* ============================================
   Warcraft Navigation - WoW Frame Header
   ============================================ */
html.warcraft .nav {
  background: rgba(17, 13, 7, 0.97);
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  border-style: solid;
  border-width: 0 0 5px 0;
  border-image-source: url('https://warcraftcn.com/warcraftcn/button-bg.webp');
  border-image-slice: 16 fill;
  border-image-repeat: stretch;
  border-image-width: 0 0 5px 0;
}

html.warcraft .nav.scrolled {
  box-shadow: 0 4px 30px rgba(212, 168, 67, 0.2);
}

html.warcraft .nav-logo--wc {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(212, 168, 67, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.warcraft .nav-separator--wc {
  color: var(--gold-dim);
  opacity: 0.4;
  font-size: 0.55rem;
  vertical-align: middle;
}

html.warcraft .nav-link {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}

html.warcraft .nav-link:hover {
  color: #fff;
  background: none;
  border-style: solid;
  border-width: 3px;
  border-image-source: url('https://warcraftcn.com/warcraftcn/button-bg-sm.webp');
  border-image-slice: 16 fill;
  border-image-repeat: stretch;
  border-radius: 0;
  text-shadow: 0 0 8px rgba(212, 168, 67, 0.5);
}

html.warcraft .nav-mobile {
  background: rgba(17, 13, 7, 0.98);
  border-top: none;
  border-style: solid;
  border-width: 3px 0 0 0;
  border-image-source: url('https://warcraftcn.com/warcraftcn/button-bg.webp');
  border-image-slice: 16;
  border-image-repeat: stretch;
}

/* ============================================
   Warcraft Hero - Character Portrait & Nameplate
   ============================================ */
html.warcraft .hero {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.02) 2px,
      rgba(0, 0, 0, 0.02) 4px
    ),
    radial-gradient(ellipse at 50% 30%, rgba(212, 168, 67, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(139, 69, 19, 0.06) 0%, transparent 40%),
    var(--bg-primary);
}

/* Square portrait frame - WoW character portrait style */
html.warcraft .hero-photo-wrapper {
  width: 160px;
  height: 160px;
  border-radius: 4px;
}

html.warcraft .hero-photo-ring {
  border-radius: 6px;
  border: 3px solid var(--frame-gold);
  animation: wc-ring-pulse 3s ease-in-out infinite;
}

@keyframes wc-ring-pulse {
  0%, 100% {
    opacity: 0.4;
    box-shadow: 0 0 15px rgba(212, 168, 67, 0.2), 0 0 30px rgba(212, 168, 67, 0.1);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 25px rgba(212, 168, 67, 0.4), 0 0 50px rgba(212, 168, 67, 0.15);
  }
}

html.warcraft .hero-photo {
  border: none;
  border-style: solid;
  border-width: 6px;
  border-image-source: url('https://warcraftcn.com/warcraftcn/button-bg-with-frame.webp');
  border-image-slice: 16;
  border-image-repeat: stretch;
  box-shadow: 0 0 25px rgba(212, 168, 67, 0.2), 0 0 50px rgba(0, 0, 0, 0.4);
}

html.warcraft .hero-photo img {
  filter: sepia(20%) saturate(120%);
}

html.warcraft .hero-photo:hover img {
  filter: sepia(5%) saturate(130%);
}

/* Nameplate - embossed gold text */
html.warcraft .hero-name {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 2.6rem;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  text-shadow:
    0 0 20px rgba(212, 168, 67, 0.4),
    0 2px 0 #8b6914,
    0 3px 6px rgba(0, 0, 0, 0.7);
}

html.warcraft .hero-title--wc {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-style: italic;
}

html.warcraft .hero-typing {
  font-family: var(--font-serif);
  font-weight: 400;
}

html.warcraft .cursor {
  color: var(--gold);
}

html.warcraft .social-link {
  color: var(--cyan);
  border-style: solid;
  border-width: 4px;
  border-image-source: url('https://warcraftcn.com/warcraftcn/button-bg-sm.webp');
  border-image-slice: 16 fill;
  border-image-repeat: stretch;
  border-radius: 0;
  padding: 6px;
  transition: filter 0.2s, transform 0.2s;
}

html.warcraft .social-link:hover {
  color: #fff;
  filter: brightness(1.3) drop-shadow(0 0 8px rgba(212, 168, 67, 0.5));
  transform: scale(1.05);
}

html.warcraft .scroll-indicator--wc {
  font-family: var(--font-serif);
  color: var(--gold-dim);
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

/* ============================================
   Warcraft Sections - Textured Backgrounds
   ============================================ */
html.warcraft .section:nth-child(even) {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.02) 2px,
      rgba(0, 0, 0, 0.02) 4px
    ),
    var(--bg-secondary);
}

/* Warcraft section titles - centered gold with decorative underline */
html.warcraft .section-title--wc {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.4rem;
  color: var(--gold);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  text-align: center;
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 36px;
}

html.warcraft .section-title--wc::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

html.warcraft .prompt-wc {
  color: var(--gold);
  margin-right: 10px;
  text-shadow: 0 0 6px rgba(212, 168, 67, 0.3);
}

/* ============================================
   Warcraft Panel Frames - WoW Addon UI Panels
   Thick borders, corner ornaments, gold trim
   ============================================ */
html.warcraft .terminal-block {
  background: none;
  border-style: solid;
  border-width: 6px;
  border-image-source: url('https://warcraftcn.com/warcraftcn/input-frame.webp');
  border-image-slice: 16 fill;
  border-image-repeat: stretch;
  border-radius: 0;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: visible;
}

html.warcraft .terminal-header {
  background: rgba(58, 42, 24, 0.5);
  border-bottom: 1px solid #3a2a18;
}

html.warcraft .terminal-header--wc::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

html.warcraft .terminal-title--wc {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

html.warcraft .terminal-body {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  line-height: 1.9;
}

html.warcraft .comment {
  color: #7a6a55;
  font-style: italic;
}

html.warcraft .highlight {
  color: var(--gold);
  text-shadow: 0 0 4px rgba(212, 168, 67, 0.2);
}

/* ============================================
   Warcraft Timeline - Battle Campaign
   Diamond markers, gold line, panel content boxes
   ============================================ */
html.warcraft .timeline::before {
  background: linear-gradient(
    to bottom,
    var(--gold) 0%,
    var(--frame-gold) 30%,
    var(--frame-gold) 70%,
    var(--gold) 100%
  );
  width: 3px;
  opacity: 0.6;
  left: 6px;
}

/* Diamond-shaped markers (rotated squares) */
html.warcraft .timeline-marker {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  transform: rotate(45deg);
  border: 2px solid var(--gold);
  background: var(--frame-outer);
  box-shadow: 0 0 8px rgba(212, 168, 67, 0.3);
  left: -31px;
  top: 8px;
}

html.warcraft .timeline-item:first-child .timeline-marker {
  background: var(--gold);
  box-shadow: 0 0 14px rgba(212, 168, 67, 0.5);
}

/* Timeline content as WoW panels */
html.warcraft .timeline-content {
  background-image: url('https://warcraftcn.com/warcraftcn/card-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  border-style: solid;
  border-width: 5px;
  border-image-source: url('https://warcraftcn.com/warcraftcn/button-bg-with-frame.webp');
  border-image-slice: 16 fill;
  border-image-repeat: stretch;
  border-radius: 0;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

html.warcraft .timeline-content:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 30px rgba(212, 168, 67, 0.15);
}

html.warcraft .timeline-header h3 {
  font-family: var(--font-serif);
  font-weight: 700;
}

html.warcraft .timeline-date {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--gold-dim);
}

html.warcraft .timeline-company {
  font-family: var(--font-serif);
}

/* Crossed swords list markers */
html.warcraft .timeline-details li::before {
  content: '\2694';
  color: var(--gold);
}

/* ============================================
   Warcraft Certification Cards - WoW Panel Frames
   ============================================ */
html.warcraft .cert-card {
  background-image: url('https://warcraftcn.com/warcraftcn/card-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  border-style: solid;
  border-width: 5px;
  border-image-source: url('https://warcraftcn.com/warcraftcn/button-bg-with-frame.webp');
  border-image-slice: 16 fill;
  border-image-repeat: stretch;
  border-radius: 0;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}

/* Hover: gold quality glow (like WoW epic item glow) */
html.warcraft .cert-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.15);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.2);
}

html.warcraft .cert-name {
  font-family: var(--font-serif);
  font-weight: 700;
}

html.warcraft .cert-issuer {
  font-family: var(--font-serif);
}

/* WoW-style status badge */
html.warcraft .status-active {
  color: #e8d5b5;
  background: none;
  border-style: solid;
  border-width: 4px;
  border-image-source: url('https://warcraftcn.com/warcraftcn/button-bg-sm.webp');
  border-image-slice: 16 fill;
  border-image-repeat: stretch;
  border-radius: 0;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 12px;
}

/* ============================================
   Warcraft Project Cards - WoW Panel Frames
   ============================================ */
html.warcraft .project-card {
  background-image: url('https://warcraftcn.com/warcraftcn/card-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  border-style: solid;
  border-width: 5px;
  border-image-source: url('https://warcraftcn.com/warcraftcn/button-bg-with-frame.webp');
  border-image-slice: 16 fill;
  border-image-repeat: stretch;
  border-radius: 0;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}

html.warcraft .project-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.15);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.2);
}

html.warcraft .project-header h3 {
  font-family: var(--font-serif);
  font-weight: 700;
}

/* WoW item-quality-style label */
html.warcraft .project-tag {
  background: none;
  color: #e8d5b5;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  border-style: solid;
  border-width: 4px;
  border-image-source: url('https://warcraftcn.com/warcraftcn/button-bg-sm.webp');
  border-image-slice: 16 fill;
  border-image-repeat: stretch;
  border-radius: 0;
  padding: 2px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

html.warcraft .project-desc {
  font-family: var(--font-serif);
  font-size: 0.84rem;
}

html.warcraft .project-tech span {
  background: none;
  color: #b8a080;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  border-style: solid;
  border-width: 3px;
  border-image-source: url('https://warcraftcn.com/warcraftcn/button-bg-sm.webp');
  border-image-slice: 16 fill;
  border-image-repeat: stretch;
  border-radius: 0;
  padding: 2px 8px;
  font-size: 0.7rem;
}

/* ============================================
   Warcraft Contact
   ============================================ */
html.warcraft .inline-link {
  color: var(--gold-dim);
  border-bottom-color: var(--gold-dim);
}

html.warcraft .inline-link:hover {
  color: #fff;
  border-bottom-color: #fff;
  text-shadow: 0 0 8px rgba(212, 168, 67, 0.3);
}

/* ============================================
   Warcraft Footer - Panel Bottom Frame
   ============================================ */
html.warcraft .footer {
  border-top: none;
  border-style: solid;
  border-width: 5px 0 0 0;
  border-image-source: url('https://warcraftcn.com/warcraftcn/button-bg.webp');
  border-image-slice: 16 fill;
  border-image-repeat: stretch;
  border-image-width: 5px 0 0 0;
  font-family: 'Cinzel', serif;
  position: relative;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.02) 2px,
      rgba(0, 0, 0, 0.02) 4px
    ),
    var(--bg-primary);
}

/* --- Warcraft Selection --- */
html.warcraft ::selection {
  background: var(--gold);
  color: var(--bg-primary);
}

html.warcraft ::-webkit-scrollbar {
  width: 10px;
}

html.warcraft ::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

html.warcraft ::-webkit-scrollbar-thumb {
  background: var(--frame-outer);
  border-radius: 2px;
  border: 2px solid var(--bg-primary);
}

html.warcraft ::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ============================================
   Warcraft Links & Fade-in
   ============================================ */
html.warcraft a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(212, 168, 67, 0.4);
}

html.warcraft .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Theme Transition (Shared)
   ============================================ */
html {
  transition: background-color 0.4s;
}

body,
.nav,
.hero,
.section,
.terminal-block,
.terminal-header,
.terminal-header--cyber,
.terminal-header--wc,
.timeline-content,
.cert-card,
.project-card,
.footer,
.nav-mobile {
  transition: background-color 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s;
}

.hero-name,
.nav-logo,
.nav-logo--cyber,
.nav-logo--wc,
.nav-link,
.section-title,
.section-title--cyber,
.section-title--wc,
.prompt,
.prompt-wc,
.highlight,
.cursor,
.social-link {
  transition: color 0.4s, text-shadow 0.4s;
}

/* ============================================
   Warcraft Responsive
   ============================================ */
@media (max-width: 768px) {
  html.warcraft .hero-name {
    font-size: 1.7rem;
    letter-spacing: 0.08em;
  }

  html.warcraft .hero-photo-wrapper,
  html.warcraft .hero-photo {
    width: 130px;
    height: 130px;
  }

  html.warcraft .nav-link {
    font-size: 0.85rem;
  }

  html.warcraft .section-title--wc {
    font-size: 1.15rem;
  }

  /* Reduce border weight on mobile */
  html.warcraft .terminal-block,
  html.warcraft .timeline-content,
  html.warcraft .cert-card,
  html.warcraft .project-card {
    border-width: 2px;
  }

  .theme-toggle {
    margin-right: 8px;
  }
}

@media (max-width: 480px) {
  html.warcraft .hero-name {
    font-size: 1.4rem;
  }

  html.warcraft .hero-photo-wrapper,
  html.warcraft .hero-photo {
    width: 110px;
    height: 110px;
  }

  html.warcraft .terminal-body {
    font-size: 0.8rem;
    padding: 16px;
  }

  html.warcraft .section-title--wc {
    font-size: 1rem;
  }
}
