:root {
  --bg-darkest: #1E1E1E;
  --bg-dark: #2B2B2B;
  --bg-medium: #3A3A3A;
  --text-light: #F5F7FA;
  --text-muted: #E5E5E5;
  --accent-blue: #3A8DFF;
  --accent-teal: #00D9FF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--bg-darkest);
  color: var(--text-light);
  line-height: 1.65;
}

.hero-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
  padding: 70px 20px;
  border-bottom: 1px solid rgba(0, 217, 255, 0.3);
}

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

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 12px;
  text-shadow: 0 0 12px rgba(0, 217, 255, 0.25);
}

.hero-subtitle {
  font-size: 1.45rem;
  color: var(--accent-teal);
  margin-bottom: 14px;
  font-weight: 600;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-nav a,
.breadcrumb-link,
.back-link,
.back-to-top,
.card-button,
.linkedin-button,
.image-link {
  text-decoration: none;
}

.hero-nav a {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(58, 141, 255, 0.4);
  background: rgba(58, 141, 255, 0.08);
  transition: all 0.25s ease;
}

.hero-nav a:hover {
  color: var(--accent-teal);
  border-color: rgba(0, 217, 255, 0.8);
  box-shadow: 0 0 16px rgba(0, 217, 255, 0.45);
}

.labs-container,
.lab-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px;
}

.labs-section,
.case-study-section,
.lab-summary,
.lab-tools,
.lab-result {
  margin-bottom: 72px;
  scroll-margin-top: 96px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.section-icon {
  font-size: 2rem;
  color: var(--accent-teal);
}

.section-header h2,
.case-study-section h2,
.lab-detail h2 {
  font-size: 2rem;
  border-bottom: 2px solid rgba(0, 217, 255, 0.3);
  padding-bottom: 8px;
  color: var(--text-light);
  width: 100%;
}

.section-description,
.case-study-section p,
.lab-summary p,
.lab-result p,
.lab-detail p,
.lab-detail li {
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.card-placeholder,
.card-game,
.lab-card,
.lab-detail,
.case-study-section,
.lab-summary,
.lab-tools,
.lab-result {
  background: linear-gradient(135deg, rgba(58, 58, 58, 0.95), rgba(43, 43, 43, 0.95));
  border: 1px solid rgba(0, 217, 255, 0.24);
  border-radius: 12px;
  padding: 26px 22px;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.card-placeholder:hover,
.card-game:hover,
.lab-card:hover,
.case-study-section:hover,
.lab-summary:hover,
.lab-tools:hover,
.lab-result:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 217, 255, 0.75);
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.45);
}

.card-placeholder,
.card-game {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.card-icon {
  font-size: 2.7rem;
  color: var(--accent-teal);
  margin-bottom: 14px;
}

.card-game h3,
.card-placeholder h3,
.lab-card h3 {
  margin-bottom: 8px;
}

.card-game-desc,
.card-status,
.lab-card p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.card-button,
.linkedin-button,
.back-link {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(58, 141, 255, 0.8);
  background: rgba(58, 141, 255, 0.15);
  color: var(--text-light);
  font-weight: 600;
  transition: all 0.25s ease;
}

.card-button:hover,
.linkedin-button:hover,
.back-link:hover {
  color: var(--accent-teal);
  border-color: rgba(0, 217, 255, 0.75);
  box-shadow: 0 0 14px rgba(0, 217, 255, 0.45);
}

.lab-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.lab-card {
  min-width: 260px;
  flex: 0 0 260px;
}

.linkedin-horizontal-scroll {
  display: flex;
  overflow-x: auto;
  gap: 26px;
  padding: 18px 0;
}

.linkedin-post {
  width: 620px;
  height: 700px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 217, 255, 0.24);
}

.linkedin-post iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.linkedin-profile-container {
  margin-bottom: 24px;
}

.linkedin-profile-badge {
  text-align: center;
  background: linear-gradient(135deg, rgba(58, 58, 58, 0.95), rgba(43, 43, 43, 0.95));
  border: 1px solid rgba(0, 217, 255, 0.24);
  border-radius: 12px;
  padding: 24px;
}

.linkedin-profile-badge i {
  font-size: 2.3rem;
  color: var(--accent-teal);
  margin-bottom: 8px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.breadcrumb-link {
  color: var(--accent-blue);
  font-weight: 600;
}

.breadcrumb-link:hover {
  color: var(--accent-teal);
}

.lab-detail {
  margin-bottom: 24px;
}

.case-study-section h3,
.lab-tools h3,
.lab-result h3 {
  color: var(--accent-teal);
  margin-bottom: 12px;
}

.lab-detail ul,
.lab-detail ol,
.case-study-section ul,
.case-study-section ol,
.lab-tools ul,
.lab-result ul {
  margin-left: 18px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.image-link {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 217, 255, 0.35);
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.image-link:hover {
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.45);
  border-color: rgba(0, 217, 255, 0.8);
}

.image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lab-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: inline-block;
  color: var(--accent-teal);
  border: 1px solid rgba(0, 217, 255, 0.65);
  background: rgba(0, 217, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.25s ease;
}

.back-to-top:hover {
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.55);
  transform: translateY(-2px);
}

.labs-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(0, 217, 255, 0.25);
  padding: 30px 20px;
  text-align: center;
  color: var(--text-muted);
}

/* GitHub Project Overview Cards */
.gh-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.gh-project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.gh-project-card-link:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 4px;
}

.gh-project-card {
  background: linear-gradient(135deg, rgba(58, 58, 58, 0.95), rgba(43, 43, 43, 0.95));
  border: 1px solid rgba(0, 217, 255, 0.24);
  border-radius: 12px;
  padding: 26px 22px;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gh-project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 217, 255, 0.75);
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.45);
}

.gh-project-icon {
  font-size: 2.5rem;
  color: var(--accent-teal);
}

.gh-project-label {
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.gh-project-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.gh-project-summary {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.gh-project-card .card-button {
  margin-top: auto;
  align-self: flex-start;
}

/* GitHub Case Study Cards */
.gh-case-study {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  background: linear-gradient(135deg, rgba(58, 58, 58, 0.95), rgba(43, 43, 43, 0.95));
  border: 1px solid rgba(0, 217, 255, 0.24);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  margin-bottom: 32px;
}

.gh-case-study:hover {
  border-color: rgba(0, 217, 255, 0.75);
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.35);
  transform: translateY(-4px);
}

.gh-case-preview {
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
}

.gh-case-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gh-case-preview-fallback {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 20px;
  text-align: center;
}

.gh-case-preview-fallback i {
  font-size: 3rem;
  color: var(--accent-teal);
}

.gh-case-body {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gh-case-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gh-lang-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.gh-badge {
  height: 20px;
  border-radius: 4px;
}

.gh-case-body h3 {
  font-size: 1.35rem;
  color: var(--text-light);
  margin: 0;
}

.gh-case-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.gh-case-section h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
  margin: 0 0 8px;
}

.gh-case-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.gh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gh-tag {
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: var(--accent-teal);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 20px;
}

.gh-case-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.gh-btn-outline {
  background: transparent;
  border: 1px solid var(--accent-teal);
  color: var(--accent-teal);
}

.gh-btn-outline:hover {
  background: rgba(0, 217, 255, 0.1);
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .section-header h2,
  .case-study-section h2,
  .lab-detail h2 { font-size: 1.5rem; }
  .linkedin-post { width: 92vw; height: 620px; }
  .labs-container,
  .lab-page { padding: 40px 16px; }
  .gh-case-study { grid-template-columns: 1fr; }
  .gh-case-preview { min-height: 180px; }
  .gh-tabs { gap: 8px; }
  .gh-tab { font-size: 0.82rem; padding: 8px 14px; }
}

/* GitHub Case Study Tabs */
.gh-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.gh-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(0, 217, 255, 0.3);
  background: rgba(0, 217, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.gh-tab:hover {
  border-color: rgba(0, 217, 255, 0.7);
  background: rgba(0, 217, 255, 0.12);
  color: var(--accent-teal);
}

.gh-tab.active {
  border-color: var(--accent-teal);
  background: rgba(0, 217, 255, 0.15);
  color: var(--accent-teal);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

/* Code block for automation lab script previews */
.code-block {
  background: #111;
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #c9d1d9;
  white-space: pre;
  margin-top: 12px;
}

.code-block code {
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
