/*
 * Globals
 */

:root {
  --bg0: #070a12;
  --bg1: #0b1222;
  --card: rgba(255, 255, 255, 0.78);
  --card-strong: rgba(255, 255, 255, 0.88);
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 26px 70px rgba(2, 6, 23, 0.32);
  --brand: #22c55e;
  --brand2: #60a5fa;
  --accent: #f97316;
  --radius: 18px;
}

html[data-theme="dark"] {
  --card: rgba(15, 23, 42, 0.62);
  --card-strong: rgba(15, 23, 42, 0.78);
  --text: #e5e7eb;
  --muted: #a1a1aa;
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 30px 90px rgba(0, 0, 0, 0.55);
}

 body {
    font-family: Helvetica, Arial, "Lucida Grande", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: radial-gradient(1200px 800px at 12% 10%, rgba(96, 165, 250, 0.20), transparent 60%),
      radial-gradient(900px 700px at 86% 18%, rgba(34, 197, 94, 0.18), transparent 60%),
      radial-gradient(900px 700px at 70% 86%, rgba(249, 115, 22, 0.14), transparent 55%),
      linear-gradient(180deg, #f8fbff 0%, #f5f7ff 36%, #f8fafc 100%);
    padding-top: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  html[data-theme="dark"] body {
    background: radial-gradient(1200px 800px at 12% 10%, rgba(96, 165, 250, 0.22), transparent 60%),
      radial-gradient(900px 700px at 86% 18%, rgba(34, 197, 94, 0.18), transparent 60%),
      radial-gradient(900px 700px at 70% 86%, rgba(249, 115, 22, 0.16), transparent 55%),
      linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
  }

  body::before,
  body::after {
    content: "";
    position: fixed;
    inset: -20%;
    pointer-events: none;
    z-index: -1;
  }

  body::before {
    background:
      radial-gradient(closest-side at 20% 20%, rgba(96, 165, 250, 0.16), transparent 55%),
      radial-gradient(closest-side at 78% 18%, rgba(34, 197, 94, 0.14), transparent 55%),
      radial-gradient(closest-side at 64% 78%, rgba(249, 115, 22, 0.12), transparent 55%);
    filter: blur(18px) saturate(120%);
    transform: translate3d(0,0,0);
    animation: ambientDrift 18s ease-in-out infinite alternate;
    opacity: .9;
  }

  body::after {
    background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: .35;
    mix-blend-mode: overlay;
  }
  
  h1, .h1,
  h2, .h2,
  h3, .h3,
  h4, .h4,
  h5, .h5,
  h6, .h6 {
    margin-top: 0;
    font-family: Helvetica, Arial, "Lucida Grande", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
    font-weight: normal;
    color: var(--text);
  }
  
  a:focus {
      text-decoration: none;
  }
  
  
  /*
   * Override Bootstrap's default container.
   */
  .logo {
    max-height: 20px;
  }
  
  .content {
    padding-top: 96px;
    padding-bottom: 40px;
    background-color: transparent;
  }
  
  .content > .container {
    background: linear-gradient(180deg, var(--card-strong), var(--card));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 32px 24px 36px;
  }
  
  @media (min-width: 768px) {
    .content > .container {
      padding: 40px 40px 44px;
    }
  }
  
  /* Surprise UI blocks */
  .surprise-hero {
    margin: 18px 0 26px;
    padding: 18px 18px 16px;
    border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(96, 165, 250, 0.10), rgba(249, 115, 22, 0.08));
    border: 1px solid var(--border);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.10);
    position: relative;
    overflow: hidden;
  }

  html[data-theme="dark"] .surprise-hero {
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  }

  .surprise-hero::before {
    content: "";
    position: absolute;
    inset: -30%;
    background:
      radial-gradient(closest-side at 30% 35%, rgba(96, 165, 250, 0.35), transparent 60%),
      radial-gradient(closest-side at 70% 30%, rgba(34, 197, 94, 0.28), transparent 60%),
      radial-gradient(closest-side at 55% 70%, rgba(249, 115, 22, 0.20), transparent 60%);
    filter: blur(22px);
    opacity: .75;
    transform: translate3d(0,0,0);
    animation: ambientDrift 14s ease-in-out infinite alternate;
  }

  .surprise-hero > * {
    position: relative;
  }

  .surprise-title {
    font-weight: 750;
    letter-spacing: .02em;
    font-size: 22px;
    margin: 0 0 6px;
  }

  .surprise-sub {
    color: var(--muted);
    margin: 0 0 12px;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }

  @media (min-width: 768px) {
    .feature-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }
  }

  .feature-card {
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.52));
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.08);
    transform: translateY(0);
    transition: transform .18s ease-out, box-shadow .18s ease-out, background-color .18s ease-out;
  }

  html[data-theme="dark"] .feature-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.50));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
  }

  .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 55px rgba(2, 6, 23, 0.14);
  }

  .feature-kicker {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
  }

  .feature-kicker .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.25);
  }

  .feature-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
  }

  .feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
  }

  .quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
  }

  .btn-pill {
    border-radius: 999px !important;
    padding: 10px 16px !important;
    font-weight: 600;
    letter-spacing: .02em;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    background: rgba(255,255,255,.72) !important;
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.08);
  }

  html[data-theme="dark"] .btn-pill {
    background: rgba(15, 23, 42, 0.62) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
  }

  .btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.14);
  }

  .btn-gradient {
    border: 0 !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--brand), var(--brand2)) !important;
  }

  .theme-toggle {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--card-strong), var(--card));
    color: var(--text);
    box-shadow: var(--shadow-strong);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25), var(--shadow-strong);
  }

  .theme-toggle .badge {
    background: rgba(15, 23, 42, 0.06);
    color: var(--muted);
    border: 1px solid var(--border);
    font-weight: 600;
  }

  html[data-theme="dark"] .theme-toggle .badge {
    background: rgba(255,255,255,.08);
    color: var(--muted);
  }

  .navbar-inverse .navbar-brand {
      color: #f9fafb;
      font-weight: 600;
      letter-spacing: .03em;
  }

  /* Make navbar feel modern without changing markup */
  .navbar.navbar-inverse.navbar-fixed-top {
    border: 0;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  }

  html[data-theme="dark"] .navbar.navbar-inverse.navbar-fixed-top {
    background: rgba(2, 6, 23, 0.70);
  }

  .navbar-inverse .navbar-nav > li > a {
    color: rgba(255,255,255,.78);
    font-weight: 500;
    transition: color .18s ease-out, transform .18s ease-out;
  }

  .navbar-inverse .navbar-nav > li > a:hover {
    color: rgba(255,255,255,.95);
    transform: translateY(-1px);
  }
  
  .navbar-brand > img {
    margin-right: 8px;
    display: inline-block;
  }
  
  .jumbotron {
    font-family: Helvetica, Arial, "Lucida Grande", sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    margin-bottom: 0;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.45);
  }
  
  .jumbotron h1{
    font-size: 48px;
  }
  
  .jumbotron h3 {
    color: #fff;
  }
  
  .jumbotron h4 {
    color: #fff;
    font-size: 18px;
  }
  
  .jumbotron p {
    font-family: Helvetica, Arial, "Lucida Grande", sans-serif;
    color: #ddd;
    font-size: 14px;
  }
  
  .vertical-align {
      display: flex;
      align-items: center;
  }
  
  .jumbotron p > a, .jumbotron h4 > a {
    color: #FDD04B;
    font-weight: 500;
  }
  
  .font17
  {
    font-size: 17px;
  }
  
  .vcenter {
      display: inline-block;
      vertical-align: middle;
      float: none;
  }
  
  /*
   * Masthead for nav
   */
  
  .blog-masthead {
    background-color: #428bca;
    -webkit-box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
            box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
  }
  
  /* Nav links */
  .blog-nav-item {
    position: relative;
    display: inline-block;
    padding: 10px;
    font-weight: 500;
    color: #cdddeb;
  }
  .blog-nav-item:hover,
  .blog-nav-item:focus {
    color: #fff;
    text-decoration: none;
  }
  
  /* Active state gets a caret at the bottom */
  .blog-nav .active {
    color: #fff;
  }
  .blog-nav .active:after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0;
    margin-left: -5px;
    vertical-align: middle;
    content: " ";
    border-right: 5px solid transparent;
    border-bottom: 5px solid;
    border-left: 5px solid transparent;
  }
  
  
  /*
   * Blog name and description
   */
  
  .blog-header {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .blog-title {
    margin-top: 30px;
    margin-bottom: 0;
    font-size: 60px;
    font-weight: normal;
  }
  .blog-description {
    font-size: 20px;
    color: #999;
  }
  
  
  /*
   * Main column and sidebar layout
   */
  
  .blog-main {
    font-size: 18px;
    line-height: 1.5;
  }
  
  /* Sidebar modules for boxing content */
  .sidebar-module {
    padding: 15px;
    margin: 0 -15px 15px;
  }
  .sidebar-module-inset {
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
  }
  .sidebar-module-inset p:last-child,
  .sidebar-module-inset ul:last-child,
  .sidebar-module-inset ol:last-child {
    margin-bottom: 0;
  }
  
  
  /* Pagination */
  .pager {
    margin-bottom: 60px;
    text-align: left;
  }
  .pager > li > a {
    width: 140px;
    padding: 10px 20px;
    text-align: center;
    border-radius: 30px;
  }
  
  
  /*
   * Blog posts
   */
  
  .blog-post {
    margin-bottom: 60px;
  }
  .blog-post-title {
    margin-bottom: 5px;
    font-size: 40px;
  }
  .blog-post-meta {
    margin-bottom: 20px;
    color: #999;
  }
  
  
  /*
   * Footer
   */
  
  .blog-footer {
    padding: 24px 0 28px;
    color: #6b7280;
    text-align: center;
    background-color: transparent;
    border-top: 0;
    font-size: 13px;
  }
  .blog-footer p:last-child {
    margin-bottom: 0;
  }
  .ss {
      color: red !important;
  }

  /* Pleasant motion & interactions */

  .mbr-hero__text {
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
    animation: heroFloat 6s ease-in-out infinite;
  }

  .mbr-hero__subtext {
    animation: heroFadeIn 1.1s ease-out forwards;
  }

  .mbr-buttons__btn {
    position: relative;
    overflow: hidden;
    border-radius: 999px !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    transition: transform .18s ease-out, box-shadow .18s ease-out, background-color .18s ease-out;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.28);
  }

  .mbr-buttons__btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,.18), rgba(255,255,255,0));
    transform: skewX(-20deg);
    opacity: 0;
    pointer-events: none;
  }

  .mbr-buttons__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
  }

  .mbr-buttons__btn:hover::after {
    animation: buttonShine .8s ease-out;
  }

  .content img.img-responsive {
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
    transition: transform .4s ease, box-shadow .4s ease;
  }

  .content img.img-responsive:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.35);
  }

  /* Scroll reveal sections */
  .reveal-section {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease-out, transform .7s ease-out;
  }

  .reveal-section.reveal-visible {
    opacity: 1;
    transform: translateY(0);
  }

  @keyframes heroFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
  }

  @keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes buttonShine {
    from {
      opacity: 0;
      transform: translateX(0) skewX(-20deg);
    }
    20% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: translateX(260%) skewX(-20deg);
    }
  }

  @keyframes ambientDrift {
    0% { transform: translate3d(-1.2%, -0.8%, 0) scale(1); }
    50% { transform: translate3d(1.4%, 1.0%, 0) scale(1.02); }
    100% { transform: translate3d(-0.6%, 1.6%, 0) scale(1.01); }
  }