/* ----- GLOBAL RESETS ----- */
html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
  }

  /* Ensure layout sizing is predictable */
  *, *::before, *::after { box-sizing: border-box; }

  /* Media should never force horizontal overflow */
  img, video, canvas { max-width: 100%; height: auto; }

  /* GitHub-inspired theming variables */
  :root {
    --header-grad-1: #0d1117; /* GitHub dark base */
    --header-grad-2: #161b22; /* GitHub dark elevated */
    --header-grad-3: #0d1117; /* repeat for smooth loop */

    --aura-1: rgba(88, 166, 255, 0.15); /* GitHub blue */
    --aura-2: rgba(56, 139, 253, 0.12); /* GitHub link blue */
    --aura-3: rgba(201, 209, 217, 0.08); /* subtle gray */

    --title-grad-1: #58a6ff; /* GitHub blue */
    --title-grad-2: #79c0ff; /* GitHub lighter blue */
    --title-grad-3: #c9d1d9; /* GitHub text */
    
    /* GitHub semantic colors */
    --github-bg: #0d1117;
    --github-bg-elevated: #161b22;
    --github-border: #30363d;
    --github-border-muted: #21262d;
    --github-text: #c9d1d9;
    --github-text-muted: #8b949e;
    --github-blue: #58a6ff;
    --github-blue-hover: #79c0ff;
    --github-green: #238636;
    --github-green-hover: #2ea043;
    --github-red: #da3633;
    --github-red-hover: #f85149;
  }
  
  /* HEADER */
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    box-sizing: border-box;
  background: var(--github-bg);
    background-size: 200% 200%;
  min-height: 200px; 
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--github-border-muted);
    box-shadow: 0 1px 0 0 var(--github-border-muted);
  }

  /* Particle canvas wrapper sits behind the title but above base bg */
  .header-canvas-wrap {
    position: absolute;
    inset: 0;
    z-index: 0; /* under text, above header background */
    pointer-events: none;
  }
  #headerParticles {
    width: 100%;
    height: 100%;
    display: block;
  }
  
  @keyframes headerGradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  /* Subtle glow effect */
  header::before {
    content: "";
    position: absolute;
    inset: -45% -20% -40% -20%;
    background:
      radial-gradient(1200px 700px at 15% 35%, var(--aura-1) 0%, transparent 60%),
      radial-gradient(900px 600px at 70% 60%, var(--aura-2) 0%, transparent 60%);
    filter: blur(48px);
    opacity: 0.18;
    transform: translate3d(0,0,0);
    pointer-events: none;
  }

  /* Faint code grid overlay */
  header::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      repeating-linear-gradient(to right, rgba(33,38,45,0.4) 0 1px, transparent 1px 42px),
      repeating-linear-gradient(to bottom, rgba(33,38,45,0.4) 0 1px, transparent 1px 42px);
    opacity: 0.5;
    transform: translateZ(0);
    pointer-events: none;
  }

  @keyframes auroraDrift {
    0%   { transform: translate3d(-6%, -2%, 0) rotate(0.2deg); }
    50%  { transform: translate3d(4%, 1%, 0) rotate(-0.2deg); }
    100% { transform: translate3d(8%, -1%, 0) rotate(0.4deg); }
  }

  @keyframes gridPan {
    0%   { background-position: 0 0, 0 0; }
    100% { background-position: 140px 0, 0 140px; }
  }
  
  header hr {
    border: none;
    border-top: 1px solid var(--github-border);
    margin: 0;
  }
  
  /* GitHub-style site title */
  .site-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    font-size: clamp(28px, 6vw, 54px);
    font-weight: 700;
    text-align: left;
  margin-left: 220px;
  margin-top: 20px;
    letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--title-grad-1), var(--title-grad-2), var(--title-grad-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
    transition: opacity 3s ease;
    display: inline-block;
    position: relative;
    text-shadow: none;
  }

  /* Mobile header adjustments */
  @media (max-width: 768px) {
    header {
      padding: 18px 16px;
      min-height: 140px;
      justify-content: center;
    }
    .site-title {
      margin-left: 0;
      text-align: center;
    }
    /* performance: hide grid overlay on small screens */
    header::after { display: none; }
  }

  /* Subtle sheen that gently sweeps across the title */
  .site-title::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20%;
    width: 20%;
    background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
    filter: blur(2px);
    transform: skewX(-18deg);
    opacity: 0.0;
    animation: titleSheen 9s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes titleSheen {
    0%, 12% { left: -20%; opacity: 0; }
    16%     { opacity: .12; }
    28%     { left: 120%; opacity: .0; }
    100%    { left: 120%; opacity: 0; }
  }
  
  .site-title.hidden {
    opacity: 0;
  }

  /* Blinking caret shown only while typing */
  .site-title.typing::after {
    content: "";
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-52%);
    width: 2px;
    height: 1.1em;
    background: linear-gradient(to bottom, #fff7c2, #ffe27a);
    border-radius: 1px;
    box-shadow: 0 0 6px rgba(255, 226, 122, 0.55);
    animation: caretBlink 1s steps(1, end) infinite;
  }

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

  /* Motion sensitivity */
  @media (prefers-reduced-motion: reduce) {
    header { animation: none; }
    header::before, header::after { animation: none; }
    .site-title.typing::after { animation: none; }
  }
  
  /* CONTENT WRAPPER */
  .content-wrapper {
    display: flex;
    width: 100%;
    overflow-x: hidden; /* make sure child effects don’t push layout sideways */
    /* If you want a sticky footer approach:
       you could remove height: 100%;
       and rely on flex layout at the html/body level. */
  }
  
  /* SIDEBAR (fixed left) */
  .sidebar {
    width: 200px;
    background-color: var(--github-bg);
    padding: 20px;
    border-right: 1px solid var(--github-border-muted);
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
  }
  
  .sidebar ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    /* Scrollable after ~12 items: each item ~42px (15px margin + ~27px content) */
    max-height: calc(12 * 42px);
    overflow-y: auto;
    overflow-x: hidden;
    /* Subtle fade hint at bottom when scrollable */
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  }
  
  /* Remove mask when scrolled to bottom or not overflowing */
  .sidebar ul:not(:hover) {
    -webkit-mask-image: none;
    mask-image: none;
  }
  
  .sidebar ul:hover {
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
  }

  /* Mobile: shorter scroll threshold (5 items instead of 12) */
  @media (max-width: 768px) {
    .sidebar ul {
      max-height: calc(5 * 42px);
    }
  }
  
  .sidebar ul li {
    margin-bottom: 15px;
  }
  
  .sidebar ul li a {
    text-decoration: none;
    color: var(--github-text);
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.15s, color 0.15s;
    font-size: 10px;
    border: 1px solid var(--github-border);
    font-weight: 500;
  }
  
  .sidebar ul li a:hover {
    background-color: var(--github-bg-elevated);
    color: var(--github-blue);
    border-color: var(--github-blue); 
  }
  
  .sidebar ul li a.active {
    font-weight: 600;
    color: var(--github-blue);
    background-color: var(--github-bg-elevated);
    border-color: #388bfd;
  }
  
  /* MAIN */
  main {
    flex: 1;
    padding: 20px;
    background-color: var(--github-bg);
    margin-left: 200px;
    box-sizing: border-box;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100%;
  }
  
  /* CATEGORY SECTIONS */
  .category-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--github-border-muted);
  }
  
  .category-section h2 {
    font-size: 40px;
    margin-top: 0;
    color: var(--github-text);
    border-left: 4px solid var(--github-blue);
    padding-left: 12px;
    font-weight: 600;
  }
  
  /* ITEM GRID (for "Launching Soon" single blocks, etc.) */
  .item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  
  /* Single category item boxes */
  .category-item {
    display: block;
    background-color: var(--github-bg-elevated);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--github-border);
    text-align: center;
    transition: transform 0.1s ease, background-color 0.1s, border-color 0.15s;
    width: 80px; 
    height: 80px;
  }
  
  .category-item:hover {
    background-color: rgba(88, 166, 255, 0.15);
    border-color: var(--github-blue);
  }
  
  .category-link {
    text-decoration: none;
    color: inherit;
  }
  .category-link:hover {
    text-decoration: none;
  }
  
  .category-item h3 {
    margin: 0;
    font-size: 10px;
    color: var(--github-text);
  }
  
  .item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
  }

  /* Mobile: tighter item grid layout */
  @media (max-width: 768px) {
    .item-grid {
      grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
      gap: 12px;
    }
    .category-item {
      width: 100%;
      height: auto;
      aspect-ratio: 1 / 1;
    }
  }

  @media (max-width: 480px) {
    .item-grid {
      grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
      gap: 10px;
    }
  }
  
  /* SCROLLABLE BOX WITHIN CATEGORY GROUPS */
  .categories-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 20px;
  }
  
  .category-group {
    width: 200px;
    flex-shrink: 0;
  }
  
.category-header {
  font-size: 12px;
  color: var(--github-text);
  margin: 10px 0 5px;
  padding-left: 20px;
  text-align: left;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: var(--github-blue);
  }

  .scrollable-box {
    max-height: 150px;
    overflow-y: auto;
    background-color: var(--github-bg-elevated);
    border: 1px solid var(--github-border);
    border-radius: 6px;
    padding: 10px;
    box-sizing: border-box;
    font-size: 12px;
  }
  
  .scrollable-box ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  
  .scrollable-box ul li {
    margin-bottom: 5px;
  }
  
  .scrollable-box ul li a {
    text-decoration: none;
    color: var(--github-text);
    display: block;
    padding: 5px 10px;
    transition: background-color 0.15s, color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 4px;
  }
  
  .scrollable-box ul li a:hover {
    background-color: var(--github-border-muted);
    color: var(--github-blue);
  }
  
  /* BOTTOM SECTION (rendered dynamically) */
  .bottom-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: calc(100% - 200px);
    padding: 20px 0;
    color: var(--github-text);
    text-align: left;
    background: none;
    box-shadow: none;
    margin-left: 200px;
    margin-top: -60px;
    border-top: 1px solid var(--github-border-muted);
  }
  
  .bottom-section .column {
    flex: 0 1 200px;
    min-width: 200px;
    padding: 10px;
    box-sizing: border-box;
    border-right: 1px solid var(--github-border-muted);
  }
  
  .bottom-section .column:last-child {
    border-right: none;
  }
  
  .bottom-section .column h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #f59e0b;
    font-weight: 600;
  }
  
  .bottom-section .column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .bottom-section .column ul li {
    margin-bottom: 5px;
  }
  
  .bottom-section .column ul li a {
    color: var(--github-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease;
  }

  .bottom-section .column ul li a:hover {
    color: var(--github-blue);
  }

  /* Mobile bottom-section layout */
  @media (max-width: 768px) {
    .bottom-section {
      margin-left: 0;
      padding-left: 0;
      margin-top: 0;
      flex-wrap: wrap;
      width: 100%;
      gap: 14px;
      padding: 16px 12px;
    }
    .bottom-section .column {
      width: 100%;
      min-width: 100%;
      flex: 1 1 100%;
      border-right: none;
      border-bottom: 1px solid var(--github-border-muted);
      padding: 8px 0 14px;
    }
    .bottom-section .column:last-child {
      border-bottom: none;
    }
  }


  footer.site-footer {
    text-align: center;
    background-color: var(--github-bg);
    color: var(--github-text-muted);
    padding: 10px 0;
    font-size: 14px;
    border-top: 1px solid var(--github-border-muted);
  }
  
  /* SCROLLBAR STYLING */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-thumb {
    background-color: var(--github-border);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background-color: #484f58;
  }
  ::-webkit-scrollbar-track {
    background-color: var(--github-bg);
  }
  html {
    scrollbar-color: var(--github-border) var(--github-bg); /* For Firefox */
    scrollbar-width: thin;
  }
  
  /* RESPONSIVE BREAKPOINTS */

  /* ===========================
     Promo / Advertisement Section
     =========================== */
  .promo-section {
    position: relative;
    margin: 0 0 60px 0;
    padding: 60px clamp(1.5rem,4vw,3rem);
    border: 1px solid var(--github-border);
    border-radius: 12px;
    background: radial-gradient(circle at 20% 15%, rgba(88,166,255,0.06), transparent 60%),
                radial-gradient(circle at 85% 70%, rgba(35,134,54,0.06), transparent 55%),
                linear-gradient(135deg, var(--github-bg-elevated) 0%, var(--github-bg) 85%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    backdrop-filter: blur(6px) saturate(140%);
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 8px 40px -8px rgba(0,0,0,0.5);
  }

  .promo-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(60deg, rgba(88,166,255,0.08), rgba(35,134,54,0.08));
    opacity: .3;
    mix-blend-mode: overlay;
    pointer-events: none;
  }

  .promo-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }

  .promo-title {
    margin: 0 0 12px;
    font-size: clamp(2.2rem,5vw,3.2rem);
    line-height: 1.05;
    letter-spacing: .5px;
    background: linear-gradient(to right, var(--github-blue), #a5d6ff, var(--github-text));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    font-weight: 700;
  }

  .promo-tagline {
    margin: 0 0 26px;
    font-size: clamp(1.0rem,2.1vw,1.35rem);
    line-height: 1.4;
    color: var(--github-text);
    font-weight: 400;
    max-width: 900px;
  }

  .promo-points { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 10px 26px; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }
  .promo-points li {
    position: relative;
    padding: 10px 14px 10px 40px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    font-size: .9rem;
    line-height: 1.35;
    letter-spacing: .4px;
    color: #d5d5d5;
    overflow: hidden;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .promo-points li::before {
    content: '';
    position: absolute;
    left: 14px; top: 14px;
    width: 14px; height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg,#ffcc33,#ff6a00);
    box-shadow: 0 0 6px -1px rgba(255,200,0,0.7);
  }

  /* Promo bullet variants and inline CTA layout */
  .promo-points li.span-all { grid-column: 1 / -1; }
  .promo-points li.span-all { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
  .promo-points li .bullet-text { flex: 1 1 auto; }
  .promo-btn.inline {
    padding: 10px 20px;
    font-size: .8rem;
    box-shadow: 0 3px 14px -4px rgba(255,190,0,0.55), 0 0 0 1px rgba(255,230,150,0.35) inset;
  }
  .promo-btn.inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -6px rgba(255,190,0,0.65), 0 0 0 1px rgba(255,240,180,0.5) inset;
  }

  /* ===== Semantic Bullet Colors (Professional Palette) ===== */
  
  /* Standard Tier - Calm green for value/affordability */
  .promo-points li.bullet-standard { 
    border-color: rgba(76, 175, 80, 0.35); 
    box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.20) inset, 0 2px 10px -4px rgba(56, 142, 60, 0.35); 
  }
  .promo-points li.bullet-standard::before { 
    background: linear-gradient(135deg, #43a047, #66bb6a); 
    box-shadow: 0 0 6px -1px rgba(76, 175, 80, 0.6); 
  }

  /* Premium Tier - Warm gold for premium quality */
  .promo-points li.bullet-premium { 
    border-color: rgba(255, 193, 7, 0.35); 
    box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.18) inset, 0 2px 10px -4px rgba(255, 160, 0, 0.35); 
  }
  .promo-points li.bullet-premium::before { 
    background: linear-gradient(135deg, #ff8f00, #ffb300); 
    box-shadow: 0 0 6px -1px rgba(255, 193, 7, 0.6); 
  }

  /* Code Ownership - Trust blue */
  .promo-points li.bullet-ownership { 
    border-color: rgba(33, 150, 243, 0.35); 
    box-shadow: 0 0 0 1px rgba(33, 150, 243, 0.20) inset, 0 2px 10px -4px rgba(25, 118, 210, 0.35); 
  }
  .promo-points li.bullet-ownership::before { 
    background: linear-gradient(135deg, #1976d2, #42a5f5); 
    box-shadow: 0 0 6px -1px rgba(33, 150, 243, 0.6); 
  }

  /* AWS Infrastructure - Professional purple */
  .promo-points li.bullet-aws { 
    border-color: rgba(130, 120, 255, 0.35); 
    box-shadow: 0 0 0 1px rgba(110, 90, 255, 0.25) inset, 0 2px 10px -4px rgba(90, 70, 255, 0.4); 
  }
  .promo-points li.bullet-aws::before { 
    background: linear-gradient(135deg, #6a5acd, #8a7dff); 
    box-shadow: 0 0 6px -1px rgba(130, 110, 255, 0.7); 
  }

  /* Support & Documentation - Calm teal */
  .promo-points li.bullet-support { 
    border-color: rgba(0, 150, 136, 0.35); 
    box-shadow: 0 0 0 1px rgba(0, 150, 136, 0.20) inset, 0 2px 10px -4px rgba(0, 121, 107, 0.35); 
  }
  .promo-points li.bullet-support::before { 
    background: linear-gradient(135deg, #00897b, #26a69a); 
    box-shadow: 0 0 6px -1px rgba(0, 150, 136, 0.6); 
  }

  /* Legacy classes (kept for backward compatibility) */
  .promo-points li.bullet-excel { border-color: rgba(80,200,120,0.35); box-shadow: 0 0 0 1px rgba(60,180,110,0.25) inset, 0 2px 10px -4px rgba(50,170,100,0.4); }
  .promo-points li.bullet-excel::before { background: linear-gradient(135deg,#32cd32,#7CFF9E); box-shadow: 0 0 6px -1px rgba(70,220,120,0.65); }
  .promo-points li.bullet-web { border-color: rgba(255,200,70,0.35); box-shadow: 0 0 0 1px rgba(255,200,70,0.18) inset, 0 2px 10px -4px rgba(255,180,60,0.35); }
  .promo-points li.bullet-web::before { background: linear-gradient(135deg,#e34f26,#2965f1,#f7df1e); box-shadow: 0 0 6px -1px rgba(255,210,90,0.55); }
  .promo-points li.bullet-ops { border-color: rgba(255,80,80,0.42); box-shadow: 0 0 0 1px rgba(255,100,90,0.20) inset, 0 2px 10px -4px rgba(200,40,40,0.45); background: linear-gradient(145deg, rgba(255,70,70,0.10), rgba(80,20,20,0.15)); }
  .promo-points li.bullet-ops::before { background: linear-gradient(135deg,#ff4747,#ff7b54,#ffb199); box-shadow: 0 0 6px -1px rgba(255,120,100,0.65); }
  .promo-points li.bullet-docs { border-color: rgba(130,110,255,0.38); box-shadow: 0 0 0 1px rgba(110,90,255,0.22) inset, 0 2px 10px -4px rgba(90,70,255,0.40); background: linear-gradient(145deg, rgba(120,110,255,0.08), rgba(70,60,140,0.14)); }
  .promo-points li.bullet-docs::before { background: linear-gradient(135deg,#6a5acd,#8f7dff,#87ceeb); box-shadow: 0 0 6px -1px rgba(130,110,255,0.7); }

  .promo-ctas { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 14px; 
    margin-top: 38px;  /* More separation from bullets above */
    margin-bottom: 48px;  /* Breathing room below to next section */
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .promo-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: .85rem;
    letter-spacing: .5px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
    line-height: 1;
    cursor: pointer;
    transition: background .3s, transform .25s, box-shadow .3s, border-color .3s;
    isolation: isolate;
  }
  /* Primary - subtle, blended style instead of bold gold */
  .promo-btn.primary {
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    color: #e8e8e8;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 2px 10px -3px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
  /* Secondary - slightly dimmer, complementary */
  .promo-btn.secondary {
    background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    color: #b8b8b8;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 2px 8px -2px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.02) inset;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .promo-btn.outline { background: rgba(255,255,255,0.04); color: #f5f5f5; border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 2px 8px -2px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.05) inset; }
  .promo-btn.outline:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); box-shadow: 0 6px 22px -8px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.08) inset; }
  .promo-btn.primary:hover { 
    transform: translateY(-2px); 
    background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    border-color: rgba(255,255,255,0.25);
    color: #fff;
    box-shadow: 0 6px 20px -6px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08) inset; 
  }
  .promo-btn.secondary:hover { 
    transform: translateY(-2px); 
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border-color: rgba(255,255,255,0.15);
    color: #d0d0d0;
    box-shadow: 0 6px 18px -6px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset; 
  }
  .promo-btn:active { transform: translateY(0); }

  @media (max-width: 760px) {
    .promo-section { padding: 46px 1.4rem 54px; }
    .promo-title { font-size: clamp(2rem,8vw,2.6rem); }
    .promo-points { grid-template-columns: 1fr; }
    .promo-points li { padding-left: 46px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .promo-btn, .promo-section, .promo-points li { transition: none !important; }
  }
  @media screen and (max-width: 768px) {
    .sidebar {
      position: static; 
      width: 100%;
      border-right: none;
      border-bottom: 1px solid var(--github-border-muted);
      height: auto;
    }
    .sidebar ul li a {
      font-size: 14px;
      padding: 12px 16px;
      min-height: 44px; /* touch target */
    }
    main {
      margin-left: 0;
      padding: 20px;
    }
    .content-wrapper {
      flex-direction: column;
    }
    .categories-container {
      flex-direction: column;
      gap: 15px;
    }
    .category-group {
      width: 100%;
    }
  }
  
  @media screen and (max-width: 480px) {
    .item-grid {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
  }
  
/* ===========================
   Account (Updated)
   =========================== */
   #sidebarNav li:first-child a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: center;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;

    /* Background Image */
    background: url("/frontend/ancillary/images/account.webp") no-repeat center center;
    background-repeat: repeat-x; /* Infinite horizontal movement */
    background-size: cover;

    /* Gradient Overlay */
    background-blend-mode: multiply;
    background-color: rgba(30, 30, 40, 0.7); /* Slight blue tint for uniqueness */

    /* Neon border effect using Account colors */
    border-image: linear-gradient(to right, #6a5acd, #87ceeb); /* SlateBlue to SkyBlue */
    border-image-slice: 1;

    /* Soft blue glow and transition effects */
    box-shadow: 0 0 8px rgba(106, 90, 205, 0.3);
    transition: 
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease,
        border-image 0.3s ease;
}

/* Hover Effect */
#sidebarNav li:first-child a:hover {
    background-color: rgba(30, 30, 40, 0.9); /* Darker overlay effect */
    border-image: linear-gradient(to right, #87ceeb, #6a5acd); /* Reverse gradient */
    border-image-slice: 1;

    /* Stronger blue glow */
    box-shadow: 0 0 12px rgba(106, 90, 205, 0.6);

    /* Slight movement */
    transform: translateY(-2px);
    color: #e0e0ff; /* Softer blue glow effect on text */
}

/* The container must be positioned relative so the overlay sits on top */
.overlay-container {
  position: relative;
}

/* The overlay is initially invisible (opacity: 0) and non-interactive */
.no-copy-overlay {
  position: absolute;
  inset: 0; /* avoid overflow by keeping overlay within its container */
  background: rgba(0, 0, 0, 0);
  border-radius: 12px; /* Adjust value for more or less rounding */
  opacity: 0;
  pointer-events: none;  /* Not clickable at first */
  transition: background 0.4s ease, opacity 0.4s ease;
  z-index: 9999;
}

.overlay-container:hover .no-copy-overlay,
.no-copy-overlay:hover {
  background: rgba(0, 0, 0, 0.8);
  opacity: 1;
  pointer-events: all;  /* Now it blocks clicks */
  cursor: not-allowed;
}

/* The text that appears in the center of the overlay */
.no-copy-overlay::before {
  content: "Site Development In Progress";
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  background: rgba(30, 30, 30, 0.8);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  pointer-events: none;  /* The text doesn't capture clicks */
  opacity: 0;            /* Hidden initially */
  transition: opacity 0.4s ease;
}

/* Fade the text in when hovering the container or overlay */
.overlay-container:hover .no-copy-overlay::before,
.no-copy-overlay:hover::before {
  opacity: 1;
}

/* =============================================================
   HERO SECTION - Value Proposition with Offerings Cards
   Clear, scannable layout for immediate user orientation
   ============================================================= */

.promo-section.promo-hero {
  padding: 50px clamp(1.5rem, 4vw, 3rem) 40px;
  background: var(--github-bg);
  border: 1px solid var(--github-border);
  overflow: hidden;
  max-width: 100%;
}

.promo-section.promo-hero::before {
  background: radial-gradient(circle at 20% 15%, rgba(88, 166, 255, 0.06), transparent 60%);
  opacity: 0.8;
}

.promo-section.promo-hero .hero-inner {
  text-align: center;
  max-width: 100%;
}

/* Hero title - larger, more prominent */
.promo-section.promo-hero .hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  margin-bottom: 48px;
  color: var(--github-text);
  background: none;
  -webkit-text-fill-color: var(--github-text);
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* Hero tagline */
.promo-section.promo-hero .hero-tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--github-text-muted);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Offerings Grid - 3 cards in a row */
.hero-offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
  width: 100%;
  max-width: 100%;
}

/* Individual offering card */
.hero-offering-card {
  background: var(--github-bg-elevated);
  border: 1px solid var(--github-border);
  border-radius: 6px;
  padding: 28px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 0; /* Allow flex child to shrink below content size */
  max-width: 100%;
}

.hero-offering-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Color themes for offering cards - GitHub semantic palette */

/* Code Library - GitHub blue with subtle background image */
.hero-offering-card.theme-ownership {
  border-color: var(--github-border);
  position: relative;
  overflow: hidden;
}
.hero-offering-card.theme-ownership::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("/frontend/ancillary/images/discover.webp") no-repeat center center;
  background-size: cover;
  opacity: 0.08;
  z-index: 0;
  transition: opacity 0.4s ease, filter 0.4s ease;
  filter: saturate(0.8);
}
.hero-offering-card.theme-ownership:hover::before {
  opacity: 0.28;
  filter: saturate(1.3) brightness(1.1);
}
/* Subtle blue glow overlay on hover */
.hero-offering-card.theme-ownership::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(88, 166, 255, 0.15) 0%, transparent 70%);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.hero-offering-card.theme-ownership:hover::after {
  opacity: 1;
}
.hero-offering-card.theme-ownership > * {
  position: relative;
  z-index: 1;
}
.hero-offering-card.theme-ownership .offering-icon {
  color: var(--github-blue);
}
.hero-offering-card.theme-ownership:hover {
  border-color: var(--github-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--github-blue);
}
.hero-offering-card.theme-ownership .offering-cta {
  background: #1f6feb;
  color: #ffffff;
  border: 1px solid #388bfd;
}
.hero-offering-card.theme-ownership .offering-cta:hover {
  background: #388bfd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Kraken Terminal - GitHub green with subtle background image */
.hero-offering-card.theme-premium {
  border-color: var(--github-border);
  position: relative;
  overflow: hidden;
}
.hero-offering-card.theme-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("/frontend/ancillary/images/kraken-terminal.webp") no-repeat center center;
  background-size: cover;
  opacity: 0.08;
  z-index: 0;
  transition: opacity 0.4s ease, filter 0.4s ease;
  filter: saturate(0.8);
}
.hero-offering-card.theme-premium:hover::before {
  opacity: 0.28;
  filter: saturate(1.3) brightness(1.1);
}
/* Subtle green glow overlay on hover */
.hero-offering-card.theme-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(46, 160, 67, 0.12) 0%, transparent 70%);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.hero-offering-card.theme-premium:hover::after {
  opacity: 1;
}

/* Kraken Terminal card video background */
.hero-offering-card.theme-premium .card-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
}
.hero-offering-card.theme-premium .card-video-bg.loaded {
  opacity: 0.18;
  filter: saturate(0.9);
}
.hero-offering-card.theme-premium:hover .card-video-bg.loaded {
  opacity: 0.35;
  filter: saturate(1.25) brightness(1.08);
}
.hero-offering-card.theme-premium .card-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Use object-fit approach: slightly larger to cover without excessive zoom */
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
  object-fit: cover;
}
/* Hide static image when video is loaded */
.hero-offering-card.theme-premium:has(.card-video-bg.loaded)::before {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero-offering-card.theme-premium .card-video-bg {
    display: none;
  }
}

.hero-offering-card.theme-premium > * {
  position: relative;
  z-index: 1;
}
.hero-offering-card.theme-premium .offering-icon {
  color: var(--github-green-hover);
}
.hero-offering-card.theme-premium:hover {
  border-color: var(--github-green-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--github-green-hover);
}
.hero-offering-card.theme-premium .offering-cta {
  background: var(--github-green);
  color: #ffffff;
  border: 1px solid var(--github-green-hover);
}
.hero-offering-card.theme-premium .offering-cta:hover {
  background: var(--github-green-hover);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Custom Development - Purple accent */
.hero-offering-card.theme-aws {
  border-color: var(--github-border);
  position: relative;
  overflow: hidden;
}
.hero-offering-card.theme-aws::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(137, 87, 229, 0.06) 0%, rgba(163, 113, 247, 0.04) 50%, rgba(88, 166, 255, 0.05) 100%);
  opacity: 1;
  z-index: 0;
  transition: opacity 0.4s ease, filter 0.4s ease;
}
.hero-offering-card.theme-aws:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(137, 87, 229, 0.18) 0%, rgba(163, 113, 247, 0.12) 50%, rgba(88, 166, 255, 0.1) 100%);
}

/* Custom Development card video background (MP4 or YouTube) */
.hero-offering-card.theme-aws .card-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
}
.hero-offering-card.theme-aws .card-video-bg.loaded {
  opacity: 0.15;
  filter: saturate(0.85) brightness(0.9);
}
.hero-offering-card.theme-aws:hover .card-video-bg.loaded {
  opacity: 0.32;
  filter: saturate(1.2) brightness(1.05);
}
/* Video element (for local MP4) */
.hero-offering-card.theme-aws .card-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}
/* iframe element (for YouTube embed) */
.hero-offering-card.theme-aws .card-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
  object-fit: cover;
}
/* Hide static gradient when video is loaded */
.hero-offering-card.theme-aws:has(.card-video-bg.loaded)::before {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero-offering-card.theme-aws .card-video-bg {
    display: none;
  }
}
/* Subtle purple glow overlay on hover */
.hero-offering-card.theme-aws::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(163, 113, 247, 0.15) 0%, transparent 70%);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.hero-offering-card.theme-aws:hover::after {
  opacity: 1;
}
.hero-offering-card.theme-aws > * {
  position: relative;
  z-index: 1;
}
.hero-offering-card.theme-aws .offering-icon {
  color: #a371f7;
}
.hero-offering-card.theme-aws:hover {
  border-color: #a371f7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 1px #a371f7;
}
.hero-offering-card.theme-aws .offering-cta {
  background: #8957e5;
  color: #ffffff;
  border: 1px solid #a371f7;
}
.hero-offering-card.theme-aws .offering-cta:hover {
  background: #a371f7;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Card header with icon and title */
.offering-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.offering-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offering-icon svg {
  width: 100%;
  height: 100%;
}

.offering-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--github-text);
  margin: 0;
  letter-spacing: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Card description */
.offering-description {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--github-text-muted);
  margin: 0 0 20px;
  flex-grow: 1;
  text-align: justify;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Card CTA button - GitHub button style */
.offering-cta {
  display: inline-block;
  padding: 10px 20px;
  background: #21262d;
  color: var(--github-text);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--github-border);
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  word-wrap: break-word;
  white-space: normal;
}

.offering-cta:hover {
  background: #30363d;
  border-color: #8b949e;
  transform: translateY(-1px);
}

.offering-cta:active {
  transform: translateY(0);
}

.offering-cta:focus-visible {
  outline: 2px solid var(--github-blue);
  outline-offset: 2px;
}

/* Bottom CTAs (Contact Us) */
.hero-bottom-ctas {
  margin-top: 10px;
  text-align: center;
}

.hero-bottom-ctas .promo-btn {
  font-size: 0.9rem;
  padding: 10px 28px;
  background: transparent;
  color: var(--github-text-muted);
  border: 1px solid var(--github-border);
  position: relative;
  overflow: hidden;
}

.hero-bottom-ctas .promo-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(88, 166, 255, 0.08) 50%, 
    transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.hero-bottom-ctas .promo-btn:hover {
  color: var(--github-text);
  border-color: var(--github-blue);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.15);
  transform: translateY(-1px);
}

.hero-bottom-ctas .promo-btn:hover::before {
  transform: translateX(100%);
}

/* Responsive: Stack cards on tablet/mobile */
@media (max-width: 900px) {
  .hero-offerings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .hero-offering-card {
    padding: 24px 20px;
    width: 100%;
    max-width: 100%;
  }
  
  .offering-description {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .promo-section.promo-hero {
    padding: 30px 16px;
  }
  
  .promo-section.promo-hero .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-offerings-grid {
    gap: 16px;
  }
  
  .offering-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =============================================================
   CAPABILITIES CARD (inside Hero section)
   Full-width card that spans below the 3 offering cards
   ============================================================= */

.hero-capabilities-card {
  grid-column: 1 / -1; /* Span all 3 columns */
  background: var(--github-bg-elevated);
  border: 1px solid var(--github-border);
  border-radius: 6px;
  padding: 24px;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  max-width: 100%;
}

.hero-capabilities-card:hover {
  border-color: var(--github-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Card header */
.cap-card-header {
  margin-bottom: 20px;
  text-align: center;
}

.cap-card-title {
  font-size: 1.4rem;
  color: var(--github-text);
  font-weight: 600;
  margin: 0 0 8px 0;
}

.cap-card-description {
  font-size: 0.95rem;
  color: var(--github-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Table wrapper for scrolling */
.cap-card-table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 500px;
  border: 1px solid var(--github-border-muted);
  border-radius: 6px;
  background: var(--github-bg);
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Scrollbar styling */
.cap-card-table-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.cap-card-table-wrapper::-webkit-scrollbar-track {
  background: var(--github-bg);
  border-radius: 4px;
}

.cap-card-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--github-border);
  border-radius: 4px;
}

.cap-card-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--github-text-muted);
}

/* The table */
.cap-card-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

/* Table header */
.cap-card-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #21262d;
}

.cap-card-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--github-text);
  border-bottom: 1px solid var(--github-border);
  white-space: nowrap;
}

/* Table body */
.cap-card-table tbody tr {
  transition: background 0.15s ease;
}

.cap-card-table tbody tr:hover {
  background: rgba(88, 166, 255, 0.05);
}

.cap-card-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid var(--github-border-muted);
}

.cap-card-table td {
  padding: 14px 16px;
  color: var(--github-text-muted);
  line-height: 1.5;
  vertical-align: top;
}

/* Field column */
.cap-card-table td.cap-field {
  color: var(--github-blue);
  font-weight: 600;
  white-space: nowrap;
  min-width: 160px;
}

/* Capability icon - visual aid for learners */
.cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  vertical-align: middle;
  color: var(--github-blue);
  opacity: 0.85;
}

.cap-icon svg {
  flex-shrink: 0;
}

/* Details column */
.cap-card-table td.cap-details {
  min-width: 220px;
}

/* Explanation column */
.cap-card-table td.cap-explanation {
  color: var(--github-text);
  font-style: italic;
  min-width: 240px;
}

/* Responsive adjustments for capabilities card */
@media (max-width: 900px) {
  .hero-capabilities-card {
    padding: 20px;
  }
  
  .cap-card-table-wrapper {
    max-height: 280px;
  }
}

@media (max-width: 480px) {
  .hero-capabilities-card {
    padding: 16px;
  }
  
  .cap-card-title {
    font-size: 1.2rem;
  }
  
  .cap-card-description {
    font-size: 0.9rem;
  }
  
  .cap-card-table {
    font-size: 0.85rem;
  }
  
  .cap-card-table th,
  .cap-card-table td {
    padding: 10px 12px;
  }
  
  .cap-card-table-wrapper {
    max-height: 250px;
  }
}