@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  --magenta: #f43f5e;
  --purple:  #a855f7;
  --teal:    #2dd4bf;
  --amber:   #fbbf24;
  --dark:    #f8fafc;
  --mid:     #cbd5e1;
  --soft:    #94a3b8;
  --bg:      #0b0f17;
  --surface: #131926;
  --border:  #1e293b;
  --grad: linear-gradient(135deg, #f43f5e 0%, #a855f7 45%, #2dd4bf 100%);
  --selection-bg: var(--magenta);
  --font-heading: 'Arial', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
}

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

::selection {
  background-color: var(--selection-bg);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--selection-bg);
  color: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--teal);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}

a:hover {
  text-decoration: underline;
}

/* Sections */

section {
  border-top: 1px solid var(--border);
  padding-top: 4rem;
  padding-bottom: 3rem;
  scroll-margin-top: 2rem;
  transition: border-color 0.4s ease;
}

section:target {
  border-top-color: var(--teal);
}

.section-heading {
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-num {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
}

.section-subheading {
  color: var(--soft);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 2.2rem;
  line-height: 1.6;
}

/* Top Header Nav */

.top-header {
  position: sticky;
  top: 0;
  margin: 1.5rem auto;
  width: 92%;
  max-width: 1200px;
  padding: 0.75rem 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
  letter-spacing: -0.01em;
}

/* Left & Right Sidebars */

.left-sidebar, .right-sidebar {
  position: fixed;
  top: 64px;
  width: 45px;
  height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  z-index: 40;
  background: rgba(11, 15, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.left-sidebar {
  left: 0;
  border-right: 1px solid var(--border);
}

.left-sidebar .side-text {
  transform: rotate(180deg);
}

.right-sidebar {
  right: 0;
  border-left: 1px solid var(--border);
}

.side-text {
  text-decoration: none;
  color: var(--soft);
  writing-mode: vertical-lr;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.25s ease;
}

.side-text:hover {
  color: var(--teal);
  letter-spacing: 6px;
}

/* Main Content Container */

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 60px 5rem 60px;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Hero / Intro Section */

.intro-section {
  padding: 4rem 1rem 3rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
  align-items: center;
  text-align: center;
  position: relative;
}

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

.greeting {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--dark);
  margin-bottom: 1.2rem;
}

.hero-role {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 1.4rem;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--soft);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Buttons */

.btn {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 100px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--magenta);
  color: #ffffff !important;
  border: none;
  box-shadow: none;
}

.btn-primary:hover {
  background: #e11d48;
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1.5px solid var(--border);
  color: var(--mid) !important;
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal) !important;
  background: rgba(45, 212, 191, 0.1);
  transform: translateY(-2px);
}

.btn-download {
  background: var(--grad);
  color: #ffffff !important;
  border: none;
  font-size: 0.85rem;
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.35);
  transition: all 0.25s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.45);
  opacity: 0.92;
}

.btn-full {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
}

/* ── Modal / Popup ─────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 10, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem 2.2rem 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.05);
  animation: slideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

@keyframes slideUp {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--soft);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--magenta);
  color: var(--magenta);
  transform: rotate(90deg);
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--grad);
  display: grid;
  place-content: center;
  color: #fff;
  margin: 0 auto 1.4rem;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--soft);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--soft);
  pointer-events: none;
  flex-shrink: 0;
}

.modal-input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 0.8rem 1.2rem 0.8rem 2.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-input::placeholder {
  color: var(--soft);
  opacity: 0.7;
}

.modal-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.modal-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--soft);
  opacity: 0.7;
}

.modal-status {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.4;
  transition: all 0.25s ease;
}

.modal-status[hidden] {
  display: none !important;
}

.modal-status.status-error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

.modal-status.status-success {
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: #2dd4bf;
}

.modal-status.status-info {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}


/* Hero Stats Bar */

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

.hero-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}

.hero-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--magenta);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero-stat-label {
  font-size: 0.775rem;
  color: var(--soft);
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Blog-Style Table of Contents */

.toc-container {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.2rem;
  margin-top: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.toc-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.2rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.toc-title-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.toc-icon {
  font-size: 1.4rem;
}

.toc-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin: 0;
}

.toc-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-grid li {
  display: flex;
}

.toc-grid li a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  height: 145px;
  padding: 1.2rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--dark);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.toc-grid li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.toc-grid li a:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(45, 212, 191, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.toc-grid li a:hover::before {
  transform: scaleX(1);
}

.toc-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--magenta);
  background: rgba(244, 63, 94, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(244, 63, 94, 0.25);
  margin-bottom: 0.5rem;
}

.toc-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
  line-height: 1.35;
  margin-top: auto;
}

/* Grid & Cards */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(45, 212, 191, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.badge-blue,
.badge-green {
  background: rgba(45, 212, 191, 0.12);
  color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.25);
}

.badge-amber {
  background: rgba(251, 191, 36, 0.12);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.badge-red {
  background: rgba(244, 63, 94, 0.12);
  color: var(--magenta);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

/* Checklist Items */

.item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
  color: var(--dark);
  cursor: pointer;
  user-select: none;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.checklist-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  border: 1.5px solid var(--soft);
  border-radius: 4px;
  background: var(--bg);
  margin-top: 0.15rem;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.checklist-item input[type="checkbox"]:hover {
  border-color: var(--teal);
}

.checklist-item input[type="checkbox"]:checked {
  background: var(--teal);
  border-color: var(--teal);
}

.checklist-item input[type="checkbox"]:checked::before {
  content: "check";
  font-family: var(--font-mono);
  color: var(--bg);
  font-weight: bold;
  font-size: 13px;
}

.checklist-item input[type="checkbox"]:checked + span {
  color: var(--soft);
  text-decoration: line-through;
  opacity: 0.85;
}

/* Tags */

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  background: var(--bg);
  color: var(--dark);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tag:hover        { border-color: var(--teal);    color: var(--teal);    transform: translateY(-1px); }
.tag-red:hover    { border-color: var(--magenta); color: var(--magenta); }
.tag-amber:hover  { border-color: var(--amber);   color: var(--amber);   }
.tag-purple:hover { border-color: var(--purple);  color: var(--purple);  }

/* Command Terminal Box */

.terminal-box {
  background-color: #080c14;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--teal);
  margin-top: 1.2rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
  position: relative;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

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

.dot-red    { background: var(--magenta); }
.dot-yellow { background: var(--amber); }
.dot-green  { background: var(--teal); }

.terminal-title {
  color: var(--soft);
  font-size: 0.8rem;
  margin-left: 6px;
  font-weight: 500;
}

.command-line {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.prompt {
  color: var(--purple);
  user-select: none;
  font-weight: 600;
}

/* Timeline Component */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: relative;
  padding-left: 1.6rem;
  margin-top: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: var(--grad);
}

.timeline-step {
  position: relative;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
}

.timeline-step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--amber);
  font-weight: 700;
}

.timeline-step-desc {
  font-size: 0.92rem;
  color: var(--soft);
  line-height: 1.5;
}

/* Cert Cards */

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.15);
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--magenta);
  flex-shrink: 0;
  font-weight: 800;
}

.cert-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.cert-info p {
  font-size: 0.875rem;
  color: var(--soft);
}

/* Footer */

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 5% 2rem 5%;
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
}

.footer-brand-section {
  max-width: 400px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.footer-brand span {
  color: var(--magenta);
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--soft);
  line-height: 1.6;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--teal);
  transform: translateX(3px);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--soft);
}

/* Responsive Design */

@media (max-width: 1100px) {
  .left-sidebar, .right-sidebar {
    display: none;
  }
  .main {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .top-header {
    top: 0.6rem;
    margin: 0.8rem auto;
    width: calc(100% - 1.5rem);
    padding: 0.5rem 0.85rem;
  }
  .brand-pill {
    padding: 0;
    gap: 0.5rem;
  }
  .brand-logo-img {
    height: 30px;
    padding-left: 0;
  }
  .logo-text {
    font-size: 1.05rem;
  }
  .top-header .btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    width: auto;
    white-space: nowrap;
    gap: 0.4rem;
  }
  .top-header .btn svg {
    width: 14px;
    height: 14px;
  }
  .main {
    padding-top: 4.5rem;
    gap: 3rem;
  }
  .intro-section {
    padding: 2rem 0.5rem 1.5rem 0.5rem;
  }
  .hero-name {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .hero-role {
    font-size: 1rem;
  }
  .hero-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .hero-stats-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
  .hero-stat-card {
    padding: 0.8rem 0.4rem;
  }
  .hero-stat-num {
    font-size: 1.8rem;
  }
  .hero-stat-label {
    font-size: 0.7rem;
  }
  .section-heading {
    font-size: 1.8rem;
    flex-wrap: wrap;
  }
  .section-num {
    font-size: 1.1rem;
  }
  .section-subheading {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  .toc-container {
    padding: 1.4rem;
    margin-top: 0.5rem;
  }
  .toc-title {
    font-size: 1.4rem;
  }
  .toc-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
  }
  .toc-grid li a {
    height: 125px;
    padding: 0.9rem;
  }
  .toc-num {
    font-size: 0.82rem;
    padding: 0.2rem 0.5rem;
  }
  .toc-text {
    font-size: 0.85rem;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .card {
    padding: 1.3rem;
  }
  .card-title {
    font-size: 1.25rem;
  }
  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-columns {
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 500px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta .btn,
  .modal-form .btn {
    width: 100%;
    justify-content: center;
  }
  .top-header {
    margin: 0.5rem auto;
    width: calc(100% - 1rem);
    padding: 0.4rem 0.75rem;
  }
  .brand-logo-img {
    height: 26px;
  }
  .logo-text {
    font-size: 0.95rem;
  }
  .top-header .btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    gap: 0.35rem;
    width: auto;
  }
  .top-header .btn svg {
    width: 13px;
    height: 13px;
  }
  .hero-stats-bar {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .toc-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .toc-grid li a {
    height: 115px;
    padding: 0.8rem;
  }
  .toc-num {
    font-size: 0.78rem;
    padding: 0.15rem 0.45rem;
  }
  .toc-text {
    font-size: 0.82rem;
  }
  .checklist-item {
    font-size: 0.88rem;
    padding: 0.35rem 0;
  }
  .tag {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
  }
  .terminal-box {
    padding: 0.9rem;
    font-size: 0.78rem;
  }
  .command-line {
    font-size: 0.75rem;
  }
  .footer-columns {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Print Stylesheet */
@media print {
  body {
    background: #ffffff !important;
    color: #1a1a1a !important;
  }
  .left-sidebar, .right-sidebar, .top-header, .btn {
    display: none !important;
  }
  .card, .cert-card, .toc-container, .hero-stat-card, .terminal-box {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    color: #1a1a1a !important;
    box-shadow: none !important;
  }
  .card-title, .hero-name, .section-heading, .toc-title {
    color: #000000 !important;
    -webkit-text-fill-color: initial !important;
  }
  .tag {
    background: #f0f0f0 !important;
    color: #333333 !important;
    border: 1px solid #dddddd !important;
  }
  .section-num, .toc-num {
    background: #e9ecef !important;
    color: #000000 !important;
  }
}
