/* =============================================================
   SAMANSCODE 2026 — Professional Artistic Hugo Theme
   Palette: Blood Red · Black · White
   Font: Roboto (Google Fonts)
   ============================================================= */

/* ── Google Font ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400&display=swap');

/* ── CSS Custom Properties ───────────────────────────────────── */
:root,
[data-theme="light"] {
  --bg-primary:     #ffffff;
  --bg-secondary:   #f7f7f7;
  --bg-card:        #ffffff;
  --bg-nav:         rgba(255, 255, 255, 0.97);
  --text-primary:   #1a1a1a;
  --text-secondary: #444444;
  --text-muted:     #888888;
  --border-color:   #e2e2e2;
  /* Blood Red palette */
  --red-dark:       #6b0000;
  --red-primary:    #8b0000;
  --red-bright:     #cc0000;
  --red-glow:       rgba(139, 0, 0, 0.25);
  --red-glow-hover: rgba(139, 0, 0, 0.45);
  /* Shadows */
  --shadow-xs:  0 1px 4px  rgba(0,0,0,.08);
  --shadow-sm:  0 2px 10px rgba(0,0,0,.10);
  --shadow-md:  0 4px 24px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 48px rgba(0,0,0,.16);
  --shadow-red: 0 4px 24px rgba(139,0,0,.35);
  /* Misc */
  --transition: all .35s cubic-bezier(.4,0,.2,1);
  --radius:     8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --navbar-h:   72px;
}

[data-theme="dark"] {
  --bg-primary:     #0a0a0a;
  --bg-secondary:   #111111;
  --bg-card:        #181818;
  --bg-nav:         rgba(8, 8, 8, 0.97);
  --text-primary:   #efefef;
  --text-secondary: #bbbbbb;
  --text-muted:     #777777;
  --border-color:   #2a2a2a;
  --red-dark:       #8b0000;
  --red-primary:    #cc0000;
  --red-bright:     #ff2a2a;
  --red-glow:       rgba(204, 0, 0, .30);
  --red-glow-hover: rgba(204, 0, 0, .55);
  --shadow-xs:  0 1px 4px  rgba(0,0,0,.50);
  --shadow-sm:  0 2px 10px rgba(0,0,0,.55);
  --shadow-md:  0 4px 24px rgba(0,0,0,.65);
  --shadow-lg:  0 8px 48px rgba(0,0,0,.75);
  --shadow-red: 0 4px 24px rgba(204,0,0,.45);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color .35s ease, color .35s ease;
  overflow-x: hidden;
}

a {
  color: var(--red-primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--red-bright); }

img { max-width: 100%; height: auto; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
  background: var(--red-primary);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--red-bright); }

/* ── Selection ───────────────────────────────────────────────── */
::selection {
  background: var(--red-primary);
  color: #fff;
}

/* ── Page wrapper ────────────────────────────────────────────── */
.page-wrapper {
  padding-top: var(--navbar-h);
  min-height: calc(100vh - var(--navbar-h));
}

/* =============================================================
   NAVIGATION
   ============================================================= */

/* ── Navbar shell (desktop height, no overflow clip) ─────────── */
.sc-navbar {
  min-height: var(--navbar-h);
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--red-primary);
  box-shadow: 0 2px 20px rgba(139,0,0,.15);
  transition: background-color .35s ease, border-color .35s ease;
  z-index: 1050;
  /* keep the container row vertically centred at collapsed state */
  display: flex;
  align-items: center;
}

/* Ensure Bootstrap container row doesn't break vertical alignment */
.sc-navbar .container {
  align-items: center;
}

/* ── Brand ────────────────────────────────────────────────────── */
.sc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--text-primary) !important;
  text-decoration: none;
  letter-spacing: -.5px;
  line-height: var(--navbar-h);
}

.sc-brand .brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.sc-brand .brand-text {
  background: linear-gradient(135deg, var(--red-primary), var(--red-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sc-brand:hover { opacity: .85; }

/* ── Desktop nav links ────────────────────────────────────────── */
.sc-nav-link {
  font-weight: 500;
  font-size: .92rem;
  color: var(--text-secondary) !important;
  padding: 6px 14px !important;
  border-radius: 6px;
  position: relative;
  transition: var(--transition);
  letter-spacing: .3px;
  white-space: nowrap;
}

/* Underline indicator — desktop only */
@media (min-width: 992px) {
  .sc-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--red-primary);
    border-radius: 2px;
    transition: transform .25s ease;
  }
  .sc-nav-link:hover::after,
  .sc-nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
  }
}

.sc-nav-link:hover,
.sc-nav-link.active {
  color: var(--red-primary) !important;
  background: var(--red-glow);
}

/* Icon inside nav links — hidden on desktop, shown on mobile */
.sc-nav-icon { display: none; }

/* ── Mobile dropdown panel ────────────────────────────────────── */
@media (max-width: 991.98px) {
  /* The collapsible panel gets its own background + rounding */
  #mainNav {
    background: var(--bg-nav);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 12px 4px 16px;
    margin: 0 -12px;          /* bleed to container edge */
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
  }

  /* Each nav item fills full width */
  .sc-navbar .navbar-nav {
    width: 100%;
    gap: 4px;
  }

  .sc-navbar .nav-item {
    width: 100%;
  }

  /* Mobile nav link: full-width row with icon */
  .sc-nav-link {
    display: flex !important;
    align-items: center;
    padding: 11px 16px !important;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 500;
  }

  /* Show icons on mobile */
  .sc-nav-icon {
    display: inline-block;
    width: 20px;
    text-align: center;
    color: var(--red-primary);
    flex-shrink: 0;
  }

  /* Active / hover state on mobile */
  .sc-nav-link:hover,
  .sc-nav-link.active {
    background: var(--red-glow);
    color: var(--red-primary) !important;
    padding-left: 20px !important;  /* subtle indent effect */
  }

  /* Left accent bar on active mobile item */
  .sc-nav-link.active {
    border-left: 3px solid var(--red-primary);
    padding-left: 13px !important;
  }
}

/* ── Theme toggle button ──────────────────────────────────────── */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--red-primary);
  background: transparent;
  color: var(--red-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: var(--transition);
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}
.theme-toggle:hover {
  background: var(--red-primary);
  color: #fff;
  box-shadow: var(--shadow-red);
}

/* ── Hamburger button ─────────────────────────────────────────── */
.navbar-toggler {
  border: 2px solid var(--red-primary) !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  background: transparent !important;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--red-glow) !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%238b0000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 22px; height: 22px;
}

/* =============================================================
   SECTION GENERIC
   ============================================================= */
.sc-section {
  padding: 90px 0;
  background: var(--bg-primary);
  transition: background-color .35s ease;
}

.sc-section-alt {
  background: var(--bg-secondary);
}

.sc-section-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.sc-section-title .title-accent {
  color: var(--red-primary);
}

.sc-section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 48px;
  letter-spacing: .5px;
}

/* =============================================================
   CREATIVE SEPARATOR
   ============================================================= */
.sc-separator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 48px;
  overflow: hidden;
}

.sc-separator::before,
.sc-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--red-dark) 20%,
    var(--red-primary) 50%,
    var(--red-dark) 80%,
    transparent);
  opacity: .7;
}

.sc-separator .sep-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  flex-shrink: 0;
}

.sc-separator .sep-diamond {
  width: 10px;
  height: 10px;
  background: var(--red-primary);
  transform: rotate(45deg);
  border-radius: 2px;
  animation: sep-pulse 2.5s ease-in-out infinite;
}

.sc-separator .sep-diamond.large {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--red-dark), var(--red-bright));
  box-shadow: 0 0 12px var(--red-glow);
}

.sc-separator .sep-diamond.small {
  width: 7px;
  height: 7px;
  opacity: .6;
}

@keyframes sep-pulse {
  0%, 100% { box-shadow: 0 0 6px var(--red-glow); opacity: 1; }
  50%       { box-shadow: 0 0 18px var(--red-glow-hover); opacity: .8; }
}

/* =============================================================
   PROFILE SECTION
   ============================================================= */
.profile-section {
  padding: 80px 0 70px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.profile-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 65%);
  pointer-events: none;
}

.profile-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 65%);
  pointer-events: none;
}

/* Profile image left column */
.profile-img-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── Profile image frame ──────────────────────────────────────── */
.profile-img-frame {
  position: relative;
  width: 340px;
  height: 340px;
  flex-shrink: 0;
}

/* ── 3D depth layer — sits behind, same shape, offset ────────── */
.profile-img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 62% 32% 36% 64% / 58% 42% 54% 46%;
  background: linear-gradient(150deg, #6b0000 0%, #220000 55%, #080808 100%);
  transform: translate(10px, 13px);
  z-index: 0;
  opacity: .75;
  transition:
    border-radius .65s cubic-bezier(.4, 0, .2, 1),
    transform     .55s cubic-bezier(.4, 0, .2, 1);
}

.profile-img-frame:hover::before {
  border-radius: 50%;
  transform: translate(13px, 16px);
}

/* ── Image container — cloud shape, right edge tucked in ─────── */
.profile-img-frame .profile-img-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;

  /* resting: round cloud, right side dragging inward */
  border-radius: 62% 32% 36% 64% / 58% 42% 54% 46%;

  /* layered frame rings — simulates a picture frame */
  box-shadow:
    0 0 0 3px  rgba(139, 0, 0, .75),   /* red frame ring        */
    0 0 0 6px  rgba(8,   0, 0, .90),   /* dark gap              */
    0 0 0 9px  rgba(100, 0, 0, .40),   /* outer soft red ring   */
    0 0 0 11px rgba(30,  0, 0, .20),   /* outermost fade        */
    inset 0 0 30px rgba(0, 0, 0, .38); /* inner depth shadow    */

  transition:
    border-radius .65s cubic-bezier(.4, 0, .2, 1),
    box-shadow    .55s ease;
}

/* Hover — morphs into a perfect circle */
.profile-img-frame:hover .profile-img-inner {
  border-radius: 50%;
  box-shadow:
    0 0 0 3px  rgba(204, 0, 0, .90),
    0 0 0 6px  rgba(8,   0, 0, .90),
    0 0 0 9px  rgba(160, 0, 0, .45),
    0 0 0 11px rgba(50,  0, 0, .22),
    inset 0 0 30px rgba(0, 0, 0, .28);
}

.profile-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .65s cubic-bezier(.4, 0, .2, 1);
}

.profile-img-frame:hover img {
  transform: scale(1.04);
}

/* ── Slogan — sits below the image ───────────────────────────── */
.profile-slogan {
  font-size: .92rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
  max-width: 300px;
  padding: 0 8px;
  position: relative;
}

/* Decorative quote marks */
.profile-slogan::before {
  content: '\201C';
  font-size: 2.4rem;
  line-height: 0;
  vertical-align: -0.55em;
  color: var(--red-primary);
  font-style: normal;
  font-weight: 900;
  margin-right: 2px;
  opacity: .7;
}

.profile-slogan::after {
  content: '\201D';
  font-size: 2.4rem;
  line-height: 0;
  vertical-align: -0.55em;
  color: var(--red-primary);
  font-style: normal;
  font-weight: 900;
  margin-left: 2px;
  opacity: .7;
}

/* Profile right column */
.profile-content { padding-left: 20px; }

.profile-greeting {
  font-size: .95rem;
  font-weight: 500;
  color: var(--red-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.profile-name {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -1.5px;
}

.profile-designation {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: .3px;
}

.profile-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.social-link {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--red-primary);
  background: var(--red-primary);
  color: #fff !important;
  box-shadow: var(--shadow-red);
  transform: translateY(-3px);
}

.profile-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn-sc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: 'Roboto', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-sc-primary {
  background: linear-gradient(135deg, var(--red-dark), var(--red-bright));
  color: #fff !important;
  border-color: transparent;
  box-shadow: var(--shadow-red);
}
.btn-sc-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(139,0,0,.5);
  filter: brightness(1.1);
  color: #fff !important;
}

.btn-sc-outline {
  background: transparent;
  color: var(--red-primary) !important;
  border-color: var(--red-primary);
}
.btn-sc-outline:hover {
  background: var(--red-primary);
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
}

.btn-sc-ghost {
  background: transparent;
  color: var(--text-secondary) !important;
  border-color: var(--border-color);
}
.btn-sc-ghost:hover {
  border-color: var(--red-primary);
  color: var(--red-primary) !important;
}

.btn-sc-lg {
  padding: 14px 34px;
  font-size: 1rem;
}

/* =============================================================
   CONTENT CARDS  (Projects / Articles / Wiki)
   ============================================================= */
.sc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
  position: relative;
}

.sc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--red-primary), var(--red-dark));
  opacity: 0;
  transition: opacity .3s ease;
}

.sc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--red-primary);
  border-color: var(--red-primary);
}
.sc-card:hover::before { opacity: 1; }

.sc-card-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.sc-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.sc-card:hover .sc-card-thumb img { transform: scale(1.07); }

.sc-card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.45) 100%);
}

.sc-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sc-card-category {
  display: inline-block;
  padding: 3px 10px;
  background: var(--red-glow);
  color: var(--red-primary);
  border: 1px solid var(--red-primary);
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sc-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color .2s;
}
.sc-card:hover .sc-card-title { color: var(--red-primary); }

.sc-card-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.sc-card-footer {
  margin-top: auto;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--red-primary);
  padding: 7px 0;
  letter-spacing: .4px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.btn-card:hover {
  color: var(--red-bright);
  border-bottom-color: var(--red-bright);
  gap: 10px;
}

/* Section CTA */
.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* =============================================================
   SKILLS SECTION
   ============================================================= */
.skills-section { background: var(--bg-secondary); }

.skill-item {
  margin-bottom: 22px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-primary);
}
.skill-name i {
  color: var(--red-primary);
  width: 18px;
  text-align: center;
}

.skill-percent {
  font-size: .85rem;
  font-weight: 700;
  color: var(--red-primary);
}

.skill-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red-bright));
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px var(--red-glow);
}

/* Language skill */
.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: var(--transition);
}
.lang-item:hover {
  border-color: var(--red-primary);
  box-shadow: var(--shadow-xs);
}
.lang-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text-primary);
}
.lang-name i { color: var(--red-primary); }
.lang-level {
  font-size: .82rem;
  font-weight: 700;
  color: var(--red-primary);
  background: var(--red-glow);
  padding: 3px 10px;
  border-radius: 20px;
}

/* Talent badge */
.talent-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: var(--transition);
}
.talent-badge:hover {
  border-color: var(--red-primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-xs);
}
.talent-badge .talent-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--red-dark), var(--red-bright));
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.talent-badge .talent-name {
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-primary);
}

/* Timeline (Education / Experience) */
.sc-timeline { position: relative; padding-left: 28px; }
.sc-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 2px;
  height: calc(100% - 8px);
  background: linear-gradient(180deg, var(--red-primary), transparent);
}

.sc-timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.sc-timeline-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 6px;
  width: 12px; height: 12px;
  background: var(--red-primary);
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.sc-timeline-period {
  font-size: .78rem;
  font-weight: 700;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.sc-timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.sc-timeline-sub {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-style: italic;
}

.sc-timeline-desc {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Section headings within skills */
.skills-section-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red-glow);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =============================================================
   FOOTER
   ============================================================= */
.sc-footer {
  background: #0a0a0a;
  color: #ccc;
  padding: 50px 0 28px;
  border-top: 3px solid var(--red-primary);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand .brand-logo { width: 36px; height: 36px; }
.footer-brand .brand-text {
  background: linear-gradient(135deg, #cc0000, #ff4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  font-size: .88rem;
  color: #777;
  font-style: italic;
  margin-bottom: 0;
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  list-style: none;
  margin: 0; padding: 0;
}

.footer-nav-links a {
  font-size: .87rem;
  color: #999;
  text-decoration: none;
  transition: color .2s;
}
.footer-nav-links a:hover { color: #cc0000; }

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #2a2a2a 20%, #cc0000 50%, #2a2a2a 80%, transparent);
  margin: 24px 0 20px;
}

.footer-copy {
  font-size: .82rem;
  color: #555;
  text-align: center;
}
.footer-copy .heart { color: #cc0000; }

/* =============================================================
   BACK TO TOP BUTTON
   ============================================================= */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--red-dark), var(--red-bright));
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-red);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .35s ease, transform .35s ease, box-shadow .25s ease;
  z-index: 9999;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(139,0,0,.55);
  color: #fff;
}

/* Pulse ring animation */
.back-to-top::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--red-primary);
  animation: btt-ring 2.5s ease-in-out infinite;
  opacity: 0;
}
.back-to-top.visible::after { opacity: .6; }

@keyframes btt-ring {
  0%   { transform: scale(1);   opacity: .6; }
  70%  { transform: scale(1.4); opacity: 0;  }
  100% { transform: scale(1.4); opacity: 0;  }
}

/* =============================================================
   LIST PAGE  (Projects / Articles / Wiki)
   ============================================================= */
.list-hero {
  padding: 80px 0 60px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.list-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
}

.list-hero-icon {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, var(--red-dark), var(--red-bright));
  color: #fff;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-red);
}

.list-hero-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.list-hero-title span { color: var(--red-primary); }

.list-hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
}

.list-content { padding: 70px 0; }

/* Pagination */
.sc-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.sc-pagination a,
.sc-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
}

.sc-pagination a:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  background: var(--red-glow);
}

.sc-pagination .active,
.sc-pagination span.current {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #fff;
  box-shadow: var(--shadow-red);
}

/* =============================================================
   SINGLE POST / ARTICLE
   ============================================================= */
.post-hero {
  background: var(--bg-secondary);
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.post-category-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--red-glow);
  color: var(--red-primary);
  border: 1px solid var(--red-primary);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  color: var(--text-muted);
  font-size: .88rem;
}

.post-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-meta .meta-item i { color: var(--red-primary); }

.post-thumbnail {
  margin: 48px 0 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.post-photo-credit {
  margin: 0;
  padding: 7px 14px;
  font-size: .78rem;
  color: var(--text-muted);
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  text-align: right;
  letter-spacing: .2px;
}

.post-body {
  padding: 60px 0;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: .6em;
}

.post-content h2 {
  font-size: 1.6rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.post-content a {
  color: var(--red-primary);
  border-bottom: 1px solid transparent;
}
.post-content a:hover {
  color: var(--red-bright);
  border-bottom-color: var(--red-bright);
}

.post-content code {
  background: var(--bg-secondary);
  color: var(--red-primary);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: .9em;
  border: 1px solid var(--border-color);
}

.post-content pre {
  background: #0d0d0d;
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid #2a2a2a;
}
.post-content pre code {
  background: none;
  color: #e8e8e8;
  padding: 0;
  border: none;
  font-size: .9rem;
}

.post-content blockquote {
  border-left: 4px solid var(--red-primary);
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5em 0;
  color: var(--text-secondary);
  font-style: italic;
}

.post-content img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin: 1em 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}
.post-content th,
.post-content td {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  font-size: .93rem;
}
.post-content th {
  background: var(--red-glow);
  color: var(--text-primary);
  font-weight: 700;
}

.post-content ul,
.post-content ol {
  padding-left: 1.4em;
  margin: .8em 0 1.2em;
}
.post-content li { margin-bottom: .4em; }

/* Post navigation */
.post-navigation {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition);
  height: 100%;
}
.post-nav-link:hover {
  border-color: var(--red-primary);
  background: var(--bg-secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.post-nav-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.post-nav-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

/* Post share */
.post-share {
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  text-align: center;
}
.post-share-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.post-share-icons { display: flex; justify-content: center; gap: 12px; }

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1rem;
  color: #fff;
  transition: var(--transition);
  text-decoration: none;
}
.share-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: #fff; }
.share-btn-twitter  { background: #1da1f2; }
.share-btn-linkedin { background: #0077b5; }
.share-btn-facebook { background: #1877f2; }
.share-btn-copy     { background: var(--red-primary); }

/* =============================================================
   ABOUT PAGE
   ============================================================= */
.about-hero {
  padding: 80px 0 60px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.about-content {
  padding: 60px 0;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

/* =============================================================
   CONTACT PAGE
   ============================================================= */
.contact-hero {
  padding: 80px 0 60px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.contact-content { padding: 60px 0; }

/* Intro card — left column */
.contact-intro-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.contact-intro-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--red-dark), var(--red-bright));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
  box-shadow: var(--shadow-red);
}

/* Social link rows */
.contact-social-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  margin-bottom: 14px;
  transition: var(--transition);
}
.contact-social-item:hover {
  border-color: var(--red-primary);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.contact-social-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-social-text {
  flex: 1;
}
.contact-social-text strong {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  font-size: .95rem;
}
.contact-social-text span {
  font-size: .83rem;
  color: var(--text-muted);
}

.contact-social-arrow {
  font-size: .75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .25s ease, color .25s ease;
}
.contact-social-item:hover .contact-social-arrow {
  color: var(--red-primary);
  transform: translateX(4px);
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-form-wrapper iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  display: block;
}

/* =============================================================
   UTILITY  &  MISC
   ============================================================= */
.text-red   { color: var(--red-primary) !important; }
.text-bold  { font-weight: 700; }
.section-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 6px;
  display: block;
}

/* Animated gradient headline */
.gradient-text {
  background: linear-gradient(135deg, var(--red-dark), var(--red-bright), var(--red-dark));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-move 4s linear infinite;
}
@keyframes gradient-move {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Fade-in-up animation on scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   404 PAGE
   ============================================================= */

/* Page wrapper */
.page-404 {
  position: relative;
  min-height: calc(100vh - var(--navbar-h) - 200px);
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  overflow: hidden;
}

/* Subtle scanline overlay */
.page-404-scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,.04) 3px,
    rgba(0,0,0,.04) 4px
  );
}
[data-theme="dark"] .page-404-scanlines {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(255,255,255,.025) 3px,
    rgba(255,255,255,.025) 4px
  );
}

/* --- Glitch 404 --- */
.glitch-404-wrap {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.glitch-404 {
  display: inline-block;
  font-size: clamp(5rem, 20vw, 11rem);
  font-weight: 900;
  letter-spacing: -6px;
  color: var(--text-primary);
  position: relative;
  line-height: 1;
  animation: glitch-main 3.5s infinite;
}

.glitch-404::before,
.glitch-404::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font-weight: 900;
}

.glitch-404::before {
  color: var(--red-primary);
  animation: glitch-top 3.5s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%);
  transform: translate(-3px, 0);
  opacity: 0;
}

.glitch-404::after {
  color: #00cfff;
  animation: glitch-bottom 3.5s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  transform: translate(3px, 0);
  opacity: 0;
}

@keyframes glitch-main {
  0%, 90%, 100% { transform: none; }
  91%            { transform: skewX(-1deg); }
  93%            { transform: skewX(1.5deg) scaleX(1.01); }
  95%            { transform: skewX(-0.5deg); }
  97%            { transform: none; }
}

@keyframes glitch-top {
  0%, 88%, 100% { opacity: 0; transform: translate(0, 0); }
  89%           { opacity: 1; transform: translate(-4px, -2px); }
  90%           { opacity: 1; transform: translate(4px, 1px); }
  91%           { opacity: 1; transform: translate(-2px, -1px); }
  93%           { opacity: 0; }
}

@keyframes glitch-bottom {
  0%, 88%, 100% { opacity: 0; transform: translate(0, 0); }
  89%           { opacity: 1; transform: translate(4px, 2px); }
  90%           { opacity: 1; transform: translate(-4px, -1px); }
  92%           { opacity: 1; transform: translate(2px, 1px); }
  94%           { opacity: 0; }
}

/* --- Terminal window --- */
.terminal-window {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(180,0,0,.25),
    0 24px 60px rgba(0,0,0,.40),
    0 0 60px rgba(180,0,0,.06);
  border: 1px solid var(--border-color);
  background: #0d0d0d;
}

[data-theme="light"] .terminal-window {
  background: #111113;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #1c1c1e;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.terminal-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.t-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.t-dot-red    { background: #ff5f57; }
.t-dot-yellow { background: #febc2e; }
.t-dot-green  { background: #28c840; }

.terminal-title-text {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  font-family: 'Roboto Mono', 'Courier New', monospace;
  margin: 0 auto;
}

.terminal-body {
  padding: 24px 28px 28px;
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-size: .85rem;
  line-height: 1.7;
  color: #c8c8d0;
  min-height: 220px;
}

.terminal-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 2px;
}

.t-prompt {
  color: #c8c8d0;
  white-space: nowrap;
  user-select: none;
}
.t-at     { color: rgba(255,255,255,.3); }
.t-colon  { color: rgba(255,255,255,.3); }
.t-path   { color: #5fb3ff; }
.t-dollar { color: var(--red-primary); margin-right: 1px; }
.t-cmd    { color: #e8e8e8; }

.t-output {
  padding-left: 0;
  color: #a0a0b0;
}
.t-output.t-muted  { color: rgba(255,255,255,.25); }
.t-output.t-red    { color: #ff5f57; }
.t-output.t-yellow { color: #febc2e; }
.t-output.t-bold   { font-weight: 700; }

/* Blinking cursor */
.t-cursor {
  color: var(--red-primary);
  animation: blink-cursor .9s step-end infinite;
  font-weight: 400;
  margin-left: 4px;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* --- Action buttons --- */
.page-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 575.98px) {
  .glitch-404 { letter-spacing: -3px; }
  .terminal-body { padding: 18px 16px 22px; font-size: .78rem; }
  .page-404-actions { flex-direction: column; align-items: center; }
  .page-404-actions .btn-sc { width: 100%; justify-content: center; }
}

/* Red glow card highlight */
.highlight-card {
  border: 1px solid var(--red-primary);
  box-shadow: var(--shadow-red);
}

/* Skills section download CV */
.cv-download-wrap { text-align: center; padding-top: 36px; }

/* =============================================================
   PROJECT PAGE
   ============================================================= */
.project-hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  padding-bottom: 56px;
}

.project-hero-banner {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  margin-bottom: 0;
}
.project-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.project-hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.18) 0%,
    rgba(0,0,0,.55) 60%,
    var(--bg-secondary) 100%
  );
}

.project-hero-content {
  padding-top: 40px;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.project-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: var(--red-glow);
  color: var(--red-primary);
  border: 1px solid var(--red-primary);
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.project-title {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

.project-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 24px;
}

.project-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  color: var(--text-muted);
  font-size: .88rem;
}
.project-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.project-meta-item i { color: var(--red-primary); }

/* --- Project Body --- */
.project-body {
  padding: 60px 0 80px;
}

.project-content { /* inherits post-content styles */ }

/* --- Action buttons --- */
.project-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 36px 0;
}
.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: none;
  cursor: pointer;
}
.project-btn:hover { transform: translateY(-2px); text-decoration: none; }
.project-btn-primary {
  background: var(--red-primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(180,0,0,.35);
}
.project-btn-primary:hover {
  background: var(--red-hover);
  box-shadow: 0 6px 24px rgba(180,0,0,.50);
  color: #fff;
}
.project-btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  box-shadow: none;
}
.project-btn-secondary:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  box-shadow: 0 4px 16px rgba(180,0,0,.15);
}

/* --- Feature cards grid --- */
.project-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 32px 0;
}
.project-feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.project-feature-card:hover {
  border-color: var(--red-primary);
  box-shadow: 0 4px 24px rgba(180,0,0,.12);
  transform: translateY(-3px);
}
.project-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--red-glow);
  border: 1px solid rgba(180,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.1rem;
  color: var(--red-primary);
}
.project-feature-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.project-feature-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* --- Suite cards --- */
.project-suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.project-suite-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color .25s ease, transform .25s ease;
}
.project-suite-card:hover {
  border-color: var(--red-primary);
  transform: translateY(-2px);
}
.project-suite-card.active {
  border-color: var(--red-primary);
  background: var(--red-glow);
}
.project-suite-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.project-suite-card.active .project-suite-icon {
  background: var(--red-primary);
  color: #fff;
}
.project-suite-card:not(.active) .project-suite-icon {
  background: var(--bg-primary);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}
.project-suite-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.project-suite-card.active .project-suite-name { color: var(--red-primary); }
.project-suite-role {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Quick start steps --- */
.project-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0;
}
.project-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: border-color .2s ease;
}
.project-step:hover { border-color: var(--red-primary); }
.project-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red-primary);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.project-step-text {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  padding-top: 6px;
}
.project-step-text strong { color: var(--text-primary); }

/* --- Section heading inside project content --- */
.project-section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red-primary);
  margin-bottom: 10px;
}
.project-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.5px;
  margin-bottom: 6px;
}
.project-section-sub {
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Divider inside project content --- */
.project-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 48px 0;
}

/* --- Link row (GitLab / Download) --- */
.project-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
  align-items: center;
}
.project-link-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  background: var(--bg-secondary);
}
.project-link-item:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(180,0,0,.12);
  text-decoration: none;
}
.project-link-item i { font-size: .95rem; }

/* --- Tags --- */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}
.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .project-hero-banner { height: 280px; }
  .project-title { font-size: 2rem; }
}
@media (max-width: 767.98px) {
  .project-hero-banner { height: 220px; }
  .project-title { font-size: 1.65rem; }
  .project-features { grid-template-columns: 1fr 1fr; }
  .project-suite-grid { grid-template-columns: 1fr 1fr; }
  .project-action-bar { flex-direction: column; }
  .project-btn { justify-content: center; }
}
@media (max-width: 575.98px) {
  .project-features { grid-template-columns: 1fr; }
  .project-suite-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 991.98px) {
  .sc-section { padding: 60px 0; }
  .profile-section { padding: 60px 0 50px; }
  .profile-img-frame { width: 290px; height: 290px; }
  .profile-name { font-size: 2.1rem; }
  .profile-content { padding-left: 0; padding-top: 32px; }

  .sc-section-title { font-size: 1.7rem; }
  .post-title { font-size: 1.9rem; }
  .list-hero-title { font-size: 1.9rem; }
}

@media (max-width: 767.98px) {
  :root { --navbar-h: 60px; }
  .sc-section { padding: 50px 0; }
  .profile-section { padding: 50px 0 40px; }
  .profile-img-frame { width: 250px; height: 250px; }
  .profile-name { font-size: 1.75rem; }
  .profile-actions { flex-direction: column; }
  .profile-actions .btn-sc { width: 100%; justify-content: center; }

  .sc-section-title { font-size: 1.5rem; }
  .post-title { font-size: 1.55rem; }

  .back-to-top { bottom: 20px; right: 20px; }
  .list-hero, .post-hero, .contact-hero, .about-hero { padding: 50px 0 38px; }
}

@media (max-width: 575.98px) {
  .profile-img-col { align-items: flex-start; }
  .profile-img-frame { width: 220px; height: 220px; }
  .social-links { flex-wrap: wrap; }
}
