/* =============================================================
 * Site theme � warm terracotta palette + modernized home sections.
 * Scoped overrides on top of Bootstrap 3.
 * Sections targeted: navbar, #home (hero), #bbs (features),
 *                    #html5 (about), #bootstrap (solutions),
 *                    #course (services), #developer-info,
 *                    #contact, footer, brand-mark, scroll-reveal.
 * ============================================================= */

:root {
  --bk-primary: #e76f51;          /* warm coral / terracotta */
  --bk-primary-dark: #c2410c;     /* hover / pressed */
  --bk-primary-darker: #9a3412;   /* deeper accent */
  --bk-primary-100: #fed7aa;      /* peach tint */
  --bk-primary-50: #fff7ed;       /* cream tint background */
  --bk-accent: #f59e0b;           /* amber accent */
  --bk-text: #1c1917;             /* stone-900 */
  --bk-text-muted: #57534e;       /* stone-600 */
  --bk-text-soft: #78716c;        /* stone-500 */
  --bk-bg: #fafaf9;               /* warm white */
  --bk-bg-alt: #f5f5f4;           /* stone-100 */
  --bk-border: #e7e5e4;           /* stone-200 */
  --bk-card: #ffffff;
  --bk-shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --bk-shadow-md: 0 12px 32px rgba(28, 25, 23, 0.08);
  --bk-shadow-lg: 0 24px 60px rgba(28, 25, 23, 0.12);
  --bk-radius-sm: 6px;
  --bk-radius: 12px;
  --bk-radius-lg: 18px;
}

body {
  color: var(--bk-text);
  background: var(--bk-card);
}

a {
  color: var(--bk-primary);
}
a:hover,
a:focus {
  color: var(--bk-primary-dark);
}

/* ---------- Generic button overrides ---------- */
.btn-primary,
.btn-success {
  background-color: var(--bk-primary);
  border-color: var(--bk-primary);
  color: #fff;
  font-weight: 500;
  border-radius: var(--bk-radius-sm);
  padding: 10px 22px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
  background-color: var(--bk-primary-dark);
  border-color: var(--bk-primary-dark);
  color: #fff;
}
.btn-primary:active,
.btn-success:active {
  transform: translateY(1px);
}
.btn-default {
  background-color: #fff;
  border-color: var(--bk-border);
  color: var(--bk-text);
  font-weight: 500;
  border-radius: var(--bk-radius-sm);
  padding: 10px 22px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-default:hover,
.btn-default:focus {
  background-color: var(--bk-primary-50);
  border-color: var(--bk-primary);
  color: var(--bk-primary-dark);
}

.mai-icon {
  background: var(--bk-primary);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  text-align: center;
  line-height: 36px;
  margin-right: 16px;
  flex-shrink: 0;
}

/* ---------- Navbar ---------- */
.navbar {
  margin-bottom: 0;
  border-bottom: 1px solid var(--bk-border);
}
.navbar-default {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.navbar-default .navbar-brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--bk-primary);
  height: 64px;
  line-height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
}
.navbar-default .navbar-nav > li > a {
  font-size: 15px;
  color: var(--bk-text-muted);
  height: 64px;
  line-height: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: var(--bk-primary);
  background-color: transparent;
  outline: none;
  box-shadow: none;
}
.navbar-default .navbar-nav > li.active > a {
  color: var(--bk-primary);
  background-color: transparent;
}
.navbar-toggle {
  margin-top: 15px;
  border-color: var(--bk-border);
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: var(--bk-primary-50);
  border-color: var(--bk-primary);
}
.navbar-default .navbar-toggle .icon-bar {
  background-color: var(--bk-primary);
}

/* ---------- Hero (#home) ---------- */
#home {
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(231, 111, 81, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(245, 158, 11, 0.12), transparent 55%),
    linear-gradient(165deg, #fff7ed 0%, #fafaf9 65%, #fff7ed 100%);
  overflow: hidden;
}
#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -22deg,
    transparent,
    transparent 56px,
    rgba(231, 111, 81, 0.045) 56px,
    rgba(231, 111, 81, 0.045) 57px
  );
  pointer-events: none;
}
#home .jumbotron.banner {
  background: transparent;
  color: inherit;
  text-align: left;
  margin-bottom: 0;
  padding: 0;
}
.hero {
  position: relative;
  z-index: 1;
  padding: 80px 0 96px;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(231, 111, 81, 0.1);
  color: var(--bk-primary-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero__title {
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--bk-text);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.hero__subtitle {
  font-size: 17px;
  line-height: 1.75;
  color: var(--bk-text-muted);
  margin: 0 0 28px;
  max-width: 540px;
}
.hero__subtitle strong {
  color: var(--bk-primary-dark);
  font-weight: 600;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 36px;
}
.hero__actions .btn {
  font-size: 15px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--bk-border);
  padding-top: 24px;
  max-width: 540px;
}
.hero__stat {
  position: relative;
  padding-right: 16px;
}
.hero__stat + .hero__stat {
  padding-left: 20px;
  border-left: 1px solid var(--bk-border);
}
.hero__stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--bk-primary-dark);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.hero__stat-label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--bk-text-soft);
}
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}
.hero__visual svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(28, 25, 23, 0.1));
}

@media (max-width: 991px) {
  .hero { padding: 56px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__title { font-size: 30px; }
  .hero__subtitle { font-size: 16px; }
  .hero__visual { order: -1; min-height: 220px; }
  .hero__visual svg { max-width: 340px; }
}
@media (max-width: 480px) {
  .hero { padding: 40px 0 56px; }
  .hero__title { font-size: 26px; }
  .hero__stats { grid-template-columns: 1fr; gap: 12px; }
  .hero__stat + .hero__stat { padding-left: 0; border-left: 0; padding-top: 12px; border-top: 1px solid var(--bk-border); }
}

/* ---------- Features (#bbs) ---------- */
#bbs {
  background: linear-gradient(180deg, var(--bk-card) 0%, var(--bk-bg) 100%);
  padding: 100px 0 92px;
}
#bbs .feature-block {
  padding: 32px 28px;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
  background: linear-gradient(145deg, var(--bk-card) 0%, #FFFCF8 100%);
  height: 100%;
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}
#bbs .feature-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bk-primary), var(--bk-accent));
  opacity: 0;
  transition: opacity 0.35s ease;
}
#bbs .feature-block:hover {
  border-color: rgba(231, 111, 81, 0.3);
  box-shadow:
    0 4px 6px -1px rgba(28, 25, 23, 0.04),
    0 12px 24px -4px rgba(28, 25, 23, 0.06),
    0 20px 48px -8px rgba(231, 111, 81, 0.08);
  transform: translateY(-4px);
}
#bbs .feature-block:hover::before {
  opacity: 1;
}
#bbs .feature-block .feature-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bk-primary-50) 0%, rgba(231, 111, 81, 0.08) 100%);
  color: var(--bk-primary);
  margin-bottom: 20px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 2px 8px rgba(231, 111, 81, 0.08);
}
#bbs .feature-block:hover .feature-icon {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 4px 16px rgba(231, 111, 81, 0.15);
}
#bbs .feature-block .feature-icon svg {
  width: 26px;
  height: 26px;
}
#bbs .feature-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--bk-text);
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}
#bbs .feature-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--bk-text-muted);
}

/* ---------- About / Solutions (#html5, #bootstrap) ---------- */
#html5 {
  background: linear-gradient(180deg, var(--bk-bg) 0%, var(--bk-card) 100%);
}
#bootstrap {
  background: linear-gradient(180deg, var(--bk-card) 0%, var(--bk-bg) 100%);
}
#html5,
#bootstrap {
  padding: 0;
}
#html5 .section-eyebrow,
#bootstrap .section-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bk-primary);
  font-weight: 600;
  margin-bottom: 12px;
}
#html5 h2,
#bootstrap h2 {
  font-weight: 700;
  font-size: 28px;
  color: var(--bk-text);
  margin: 0 0 20px;
  letter-spacing: -0.005em;
}
#html5 p,
#bootstrap p {
  line-height: 1.85;
  color: var(--bk-text-muted);
  font-size: 15.5px;
}
#html5 .img-wrap,
#bootstrap .img-wrap {
  position: relative;
  border-radius: var(--bk-radius-lg);
  overflow: hidden;
  box-shadow: var(--bk-shadow-md);
  background: var(--bk-card);
}
#html5 .img-wrap svg,
#bootstrap .img-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Course (#course) ---------- */
#course {
  background: linear-gradient(180deg, var(--bk-bg) 0%, var(--bk-card) 100%);
  padding: 100px 0 96px;
  text-align: center;
}
#course h2 {
  font-weight: 700;
  font-size: 28px;
  color: var(--bk-text);
  padding-bottom: 12px;
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
#course .section-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bk-primary);
  font-weight: 600;
  margin-bottom: 8px;
}
#course .course-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 0 12px;
  color: var(--bk-text-muted);
  font-size: 15.5px;
  line-height: 1.85;
}
#course .col-md-3 {
  margin-bottom: 24px;
}
.course {
  background: linear-gradient(145deg, var(--bk-card) 0%, #FFFCF8 100%);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
  overflow: hidden;
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  position: relative;
}
.course::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bk-primary), var(--bk-accent));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}
.course:hover {
  border-color: rgba(231, 111, 81, 0.3);
  box-shadow:
    0 4px 6px -1px rgba(28, 25, 23, 0.04),
    0 12px 24px -4px rgba(28, 25, 23, 0.06),
    0 20px 48px -8px rgba(231, 111, 81, 0.08);
  transform: translateY(-4px);
}
.course:hover::before {
  opacity: 1;
}
.course__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bk-primary-50);
}
.course__media .case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.course:hover .course__media .case-img {
  transform: scale(1.04);
}
.course__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(28, 25, 23, 0.18));
  pointer-events: none;
}
.course__body {
  padding: 18px 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--bk-text);
  margin: 0 0 6px;
}
.course__desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--bk-text-muted);
  margin: 0;
}

/* ---------- Developer-info ---------- */
#developer-info {
  background: linear-gradient(180deg, var(--bk-card) 0%, var(--bk-bg-alt) 100%);
  padding: 80px 0 !important;
}
#developer-info h2 {
  font-weight: 700;
  font-size: 26px;
  color: var(--bk-text);
  margin: 0 0 16px;
}
#developer-info h3 {
  font-weight: 600;
  font-size: 18px;
  color: var(--bk-text);
}
#developer-info ul li {
  color: var(--bk-text-muted);
}
#developer-info ul li a {
  font-weight: 500;
}
#developer-info .apps-table {
  background: var(--bk-card);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}
#developer-info .apps-table thead th {
  background: var(--bk-bg-alt);
  border-bottom: 1px solid var(--bk-border);
  border-right: 0;
  border-top: 0;
  border-left: 0;
  color: var(--bk-text);
  font-weight: 600;
  padding: 12px 16px;
  font-size: 13.5px;
}
#developer-info .apps-table td {
  border: 0;
  border-top: 1px solid var(--bk-border);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--bk-text-muted);
}
#developer-info .apps-table a {
  color: var(--bk-primary);
}
#developer-info .apps-table a:hover {
  color: var(--bk-primary-dark);
}

/* ---------- Contact (#contact) ---------- */
#contact {
  position: relative;
  color: var(--bk-text);
  background-color: var(--bk-bg);
  background-image:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(231, 111, 81, 0.16), transparent 55%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(245, 158, 11, 0.12), transparent 50%),
    linear-gradient(165deg, #fff7ed 0%, #fafaf9 55%, #fff7ed 100%);
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 44px,
    rgba(231, 111, 81, 0.04) 44px,
    rgba(231, 111, 81, 0.04) 45px
  );
  pointer-events: none;
}
#contact .contact-wrap {
  position: relative;
  z-index: 1;
  padding: 88px 0 96px;
}
#contact h2 {
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 22px;
  color: var(--bk-text);
  letter-spacing: -0.005em;
}
#contact h2 .glyphicon {
  color: var(--bk-primary);
}
#contact p {
  line-height: 1.75;
  margin-bottom: 8px;
  color: var(--bk-text-muted);
  font-size: 15.5px;
}
#contact address {
  margin-top: 22px;
  font-style: normal;
  color: var(--bk-text-muted);
  font-size: 15px;
}
#contact address p {
  margin-bottom: 10px;
}
#contact address a {
  color: var(--bk-primary-dark);
  font-weight: 500;
}
#contact address a:hover,
#contact address a:focus {
  color: var(--bk-primary-darker);
  text-decoration: underline;
}
#contact .form-control {
  border: none;
  border-radius: 0;
  height: 50px;
  margin-bottom: 20px;
}
#contact textarea.form-control {
  height: auto;
}
#contact input[type="submit"] {
  background: var(--bk-primary);
  color: #fff;
  font-weight: bold;
  transition: all 0.3s;
}
#contact input[type="submit"]:hover {
  background: var(--bk-primary-dark);
}

.contact-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 12px 0 8px;
}
.contact-visual__frame {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  padding: 3px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--bk-primary) 0%, var(--bk-accent) 60%, #fb923c 100%);
  box-shadow: 0 24px 56px rgba(28, 25, 23, 0.12);
}
.contact-visual__inner {
  position: relative;
  background: #fff;
  border-radius: 17px;
  padding: 44px 28px 40px;
  text-align: center;
  overflow: hidden;
}
.contact-visual__inner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(231, 111, 81, 0.1);
}
.contact-visual__glyph {
  position: relative;
  z-index: 1;
  font-size: 64px;
  line-height: 1;
  color: var(--bk-primary);
}
.contact-visual__lines {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
  align-items: center;
}
.contact-visual__lines span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--bk-primary-100), var(--bk-bg-alt));
}
.contact-visual__lines span:nth-child(1) { width: 88%; }
.contact-visual__lines span:nth-child(2) { width: 72%; }
.contact-visual__lines span:nth-child(3) { width: 56%; }

/* ---------- Brand mark (CSS-only logo + wordmark) ---------- */
.navbar-default .navbar-brand.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: normal;
  color: var(--bk-text);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.navbar-default .navbar-brand.brand-mark:hover,
.navbar-default .navbar-brand.brand-mark:focus {
  color: var(--bk-primary-dark);
  text-decoration: none;
}
.brand-mark__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
}
.brand-mark__bar {
  display: block;
  width: 22px;
  height: 5px;
  background: var(--bk-primary);
  border-radius: 3px;
  transition: background-color 0.2s ease;
}
.brand-mark__bar:nth-child(2) { width: 18px; }
.brand-mark__bar:nth-child(3) { width: 14px; }
.navbar-default .navbar-brand.brand-mark:hover .brand-mark__bar {
  background: var(--bk-primary-dark);
}
.brand-mark__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bk-text);
  font-family: inherit;
}
.navbar-default .navbar-brand.brand-mark:hover .brand-mark__name {
  color: var(--bk-primary-dark);
}

/* ---------- Footer ---------- */
footer {
  font-weight: 400;
  text-align: center;
  padding: 40px 20px 32px;
  color: var(--bk-text-soft);
  background: linear-gradient(180deg, var(--bk-bg-alt) 0%, var(--bk-bg) 100%);
  border-top: 1px solid var(--bk-border);
  font-size: 14px;
}
footer a {
  color: var(--bk-text-muted);
}
footer a:hover,
footer a:focus {
  color: var(--bk-primary-dark);
  text-decoration: none;
}

/* ---------- Scroll-reveal helper ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
