/* =========================================================
   Hi-TechWebMaster — Design System
   Tokens are CSS custom properties so the admin color-picker
   (Phase 2) can re-theme the whole site by rewriting :root.
   ========================================================= */

:root {
  --c-navy: #0F172A;
  --c-blue: #2563EB;
  --c-cyan: #06B6D4;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F8FAFC;
  --c-text: #0F172A;
  --c-text-muted: #475569;
  --c-border: #E2E8F0;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;

  --shadow-soft: 0 24px 48px -24px rgba(15, 23, 42, .22);
  --shadow-soft-sm: 0 12px 28px -16px rgba(15, 23, 42, .18);
  --shadow-hover: 0 28px 56px -20px rgba(37, 99, 235, .28);

  --gradient-brand: linear-gradient(135deg, var(--c-blue) 0%, var(--c-cyan) 100%);
  --gradient-dark: linear-gradient(160deg, var(--c-navy) 0%, #16213E 60%, #0B1222 100%);

  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-max: 1240px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: var(--font-display);
  color: var(--c-navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { color: var(--c-text-muted); }

a { color: var(--c-blue); text-decoration: none; }

.text-muted-custom { color: var(--c-text-muted); }
.bg-alt { background: var(--c-bg-alt); }
.bg-navy { background: var(--c-navy); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: rgba(37, 99, 235, .08);
  padding: .4rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.section { padding: 5.5rem 0; }
@media (max-width: 767.98px) { .section { padding: 3.25rem 0; } }

.container-custom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.85rem, 1.5rem + 1.5vw, 2.75rem); }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-family: var(--font-display); font-weight: 700; padding: .85rem 1.75rem; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease; border: none; }
.btn:focus-visible { outline: 3px solid var(--c-cyan); outline-offset: 2px; }

.btn-brand {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-soft-sm);
}
.btn-brand:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: #fff; }

.btn-outline-brand {
  background: #fff;
  color: var(--c-navy);
  border: 1.5px solid var(--c-border);
}
.btn-outline-brand:hover { border-color: var(--c-blue); color: var(--c-blue); transform: translateY(-2px); }

.btn-ghost-light {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-2px); }

.btn-sm-pill { padding: .55rem 1.1rem; font-size: .85rem; border-radius: 999px; }

/* ---------- Sticky Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1040;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 30px -20px rgba(15,23,42,.35);
  border-bottom-color: var(--c-border);
}
.site-header .navbar-brand img { height: 36px; width: auto; }
.site-header .nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-navy) !important;
  padding: .5rem 1rem !important;
  border-radius: 999px;
  position: relative;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--c-blue) !important; background: rgba(37,99,235,.07); }

.dropdown-menu { border: none; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); padding: .6rem; }
.dropdown-menu .dropdown-item { border-radius: 10px; font-weight: 500; padding: .55rem .85rem; }
.dropdown-menu .dropdown-item:hover { background: var(--c-bg-alt); color: var(--c-blue); }

/* ---------- Hero / Aurora signature ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-dark);
  padding: 6rem 0 5rem;
  isolation: isolate;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  opacity: .55;
}
.hero::before {
  width: 480px; height: 480px;
  background: var(--c-blue);
  top: -160px; right: -120px;
}
.hero::after {
  width: 420px; height: 420px;
  background: var(--c-cyan);
  bottom: -180px; left: -100px;
  opacity: .35;
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.8rem + 2.4vw, 3.8rem); }
.hero .lead { color: rgba(255,255,255,.78); font-size: 1.15rem; max-width: 540px; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-stats .stat-num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: #fff; }
.hero-stats .stat-label { font-size: .82rem; color: rgba(255,255,255,.62); }

/* Browser mockup (CSS-only website preview, no stock photos) */
.browser-mock {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform: rotate(1.5deg);
}
.browser-mock .mock-bar { background: var(--c-bg-alt); padding: .7rem 1rem; display: flex; gap: .4rem; align-items: center; border-bottom: 1px solid var(--c-border); }
.browser-mock .mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #CBD5E1; }
.browser-mock .mock-body { padding: 1.4rem; }
.browser-mock .mock-line { height: 10px; border-radius: 6px; background: var(--c-bg-alt); margin-bottom: .6rem; }
.browser-mock .mock-block { height: 70px; border-radius: var(--radius-sm); background: var(--gradient-brand); opacity: .12; margin-bottom: .9rem; }

.floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.2rem;
  font-family: var(--font-display);
}
.floating-card.fc-1 { bottom: -1.4rem; left: -1.6rem; }
.floating-card.fc-2 { top: -1.2rem; right: -1.4rem; }
@media (max-width: 991.98px) { .floating-card { position: static; margin-top: 1rem; transform: none !important; } }

/* ---------- Cards ---------- */
.card-soft {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card-soft:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: transparent; }

.icon-tile {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,99,235,.08);
  color: var(--c-blue);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.service-card .icon-tile { transition: background .3s ease, color .3s ease, transform .3s ease; }
.service-card:hover .icon-tile { background: var(--gradient-brand); color: #fff; transform: scale(1.06) rotate(-4deg); }

.card-soft .learn-link { font-weight: 700; font-family: var(--font-display); font-size: .92rem; display: inline-flex; align-items: center; gap: .35rem; }
.card-soft .learn-link i { transition: transform .25s ease; }
.card-soft:hover .learn-link i { transform: translateX(4px); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--c-bg-alt); border-radius: var(--radius-lg); padding: 2.5rem; }
.trust-stat .stat-num { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust-stat .stat-label { color: var(--c-text-muted); font-weight: 600; font-size: .9rem; }

.logo-strip { display: flex; gap: 3rem; flex-wrap: wrap; align-items: center; justify-content: center; opacity: .55; }
.logo-strip span { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--c-navy); }

/* ---------- Process timeline ---------- */
.process-step { position: relative; padding-top: 1rem; }
.process-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9;
  line-height: 1;
}
.process-line { display: none; }
@media (min-width: 992px) {
  .process-line {
    display: block;
    position: absolute; top: 2.4rem; left: 60%; width: 80%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--c-border) 0 8px, transparent 8px 14px);
    z-index: 0;
  }
}

/* ---------- Why choose / feature row ---------- */
.feature-row { display: flex; gap: 1.1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--c-border); }
.feature-row:last-child { border-bottom: none; }
.feature-row .icon-tile { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 0; flex-shrink: 0; }

/* ---------- Portfolio ---------- */
.portfolio-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-soft-sm); }
.portfolio-card .pf-thumb { aspect-ratio: 4/3; background: var(--gradient-brand); position: relative; }
.portfolio-card .pf-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,23,42,.88) 0%, rgba(15,23,42,0) 55%);
  display: flex; align-items: flex-end; padding: 1.4rem;
  opacity: 0; transition: opacity .3s ease;
}
.portfolio-card:hover .pf-overlay { opacity: 1; }
.portfolio-card .pf-overlay h4 { color: #fff; margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft-sm); padding: 2.2rem; height: 100%; }
.testimonial-card .stars { color: var(--c-cyan); letter-spacing: .15rem; margin-bottom: .8rem; }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-family: var(--font-display); }

/* ---------- FAQ Accordion ---------- */
.accordion-custom .accordion-item { border: none; border-radius: var(--radius-md) !important; overflow: hidden; margin-bottom: .9rem; background: var(--c-bg-alt); }
.accordion-custom .accordion-button {
  font-family: var(--font-display); font-weight: 700; color: var(--c-navy);
  background: var(--c-bg-alt); padding: 1.15rem 1.4rem; box-shadow: none;
}
.accordion-custom .accordion-button:not(.collapsed) { background: #fff; color: var(--c-blue); box-shadow: var(--shadow-soft-sm); }
.accordion-custom .accordion-button:focus { box-shadow: none; }
.accordion-custom .accordion-button::after { background-size: 1.1rem; }
.accordion-custom .accordion-body { padding: 0 1.4rem 1.3rem; }

/* ---------- CTA section ---------- */
.cta-band {
  background: var(--gradient-dark);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: var(--c-cyan); filter: blur(100px); opacity: .3; top: -120px; right: -80px; z-index: -1;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.72); }
@media (max-width: 767.98px) { .cta-band { padding: 2.2rem 1.5rem; } }

/* ---------- Modal ---------- */
.modal-content { border: none; border-radius: var(--radius-lg); overflow: hidden; }
.modal-header { background: var(--gradient-dark); border: none; padding: 1.6rem 1.8rem; }
.modal-header .modal-title { color: #fff; font-family: var(--font-display); }
.modal-header .btn-close { filter: invert(1); }
.modal-body { padding: 1.8rem; }
.form-control, .form-select {
  border-radius: var(--radius-sm); border: 1.5px solid var(--c-border);
  padding: .75rem 1rem; font-size: .95rem;
}
.form-control:focus, .form-select:focus { border-color: var(--c-blue); box-shadow: 0 0 0 .2rem rgba(37,99,235,.12); }
.form-label { font-weight: 600; font-size: .87rem; color: var(--c-navy); }

/* ---------- Sticky inquiry tab ---------- */
.sticky-inquiry {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%) rotate(0);
  z-index: 1030;
  background: var(--gradient-brand);
  color: #fff; font-family: var(--font-display); font-weight: 700;
  padding: .9rem .6rem;
  writing-mode: vertical-rl;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  box-shadow: var(--shadow-soft-sm);
  letter-spacing: .04em;
  cursor: pointer;
  border: none;
}
.sticky-inquiry:hover { padding-right: .9rem; }
@media (max-width: 575.98px) { .sticky-inquiry { display: none; } }

/* ---------- Scroll to top ---------- */
.scroll-top-btn {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 1030;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--c-navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft-sm);
  border: none; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .3s ease;
}
.scroll-top-btn.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Mobile sticky CTA ---------- */
.mobile-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
  background: #fff; border-top: 1px solid var(--c-border);
  padding: .7rem 1rem; display: none;
  box-shadow: 0 -8px 24px -16px rgba(15,23,42,.3);
}
@media (max-width: 767.98px) { .mobile-sticky-cta { display: flex; gap: .6rem; } }
.mobile-sticky-cta .btn { flex: 1; }
body { padding-bottom: 0; }
@media (max-width: 767.98px) { body { padding-bottom: 74px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy); color: rgba(255,255,255,.65); padding: 4.5rem 0 1.6rem; }
.site-footer h5 { color: #fff; font-family: var(--font-display); font-size: 1rem; margin-bottom: 1.2rem; }
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: var(--c-cyan); }
.site-footer .footer-brand img { height: 34px; margin-bottom: 1rem; }
.site-footer .social-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, transform .25s ease;
}
.site-footer .social-icon:hover { background: var(--gradient-brand); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.6rem; font-size: .85rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--gradient-dark); padding: 4.5rem 0 4rem; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content:''; position:absolute; width:380px; height:380px; border-radius:50%; background:var(--c-cyan); filter: blur(100px); opacity:.28; top:-140px; right:-60px; z-index:-1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.6rem + 2vw, 3rem); }
.page-hero p.lead { color: rgba(255,255,255,.75); max-width: 620px; }
.breadcrumb-custom { color: rgba(255,255,255,.55); font-size: .85rem; font-weight: 600; }
.breadcrumb-custom a { color: rgba(255,255,255,.55); }
.breadcrumb-custom a:hover { color: var(--c-cyan); }

/* ---------- Tech icon strip ---------- */
.tech-icon { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--c-bg-alt); display:flex; align-items:center; justify-content:center; font-size:1.8rem; color: var(--c-navy); transition: all .25s ease; }
.tech-icon:hover { background: var(--gradient-brand); color: #fff; transform: translateY(-4px); }

/* ---------- Utility animations ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

::selection { background: var(--c-cyan); color: #fff; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--c-cyan); outline-offset: 2px;
}

/* =========================================================
   Blog / CMS content styles
   ========================================================= */
.cms-content h1,.cms-content h2,.cms-content h3,.cms-content h4 { color:var(--c-navy); margin-top:2rem; margin-bottom:.75rem; }
.cms-content p  { margin-bottom:1.25rem; }
.cms-content ul,.cms-content ol { padding-left:1.4rem; margin-bottom:1.25rem; color:var(--c-text-muted); }
.cms-content li { margin-bottom:.4rem; }
.cms-content a  { color:var(--c-blue); text-decoration:underline; }
.cms-content blockquote { border-left:4px solid var(--c-blue); padding:.75rem 1.25rem; background:var(--c-bg-alt); border-radius:0 var(--radius-sm) var(--radius-sm) 0; margin:1.5rem 0; font-style:italic; }
.cms-content img { max-width:100%; border-radius:var(--radius-md); height:auto; margin:1rem 0; }
.cms-content table { width:100%; border-collapse:collapse; margin-bottom:1.5rem; }
.cms-content th,.cms-content td { padding:.65rem 1rem; border:1px solid var(--c-border); }
.cms-content th { background:var(--c-bg-alt); font-weight:700; color:var(--c-navy); }
.cms-content pre,.cms-content code { background:var(--c-bg-alt); border-radius:var(--radius-sm); font-family:monospace; font-size:.88rem; }
.cms-content pre { padding:1rem; overflow-x:auto; }
.cms-content code { padding:.15rem .4rem; }

/* Blog card thumbnail hover effect */
.blog-thumb { transition:transform .4s ease; }
a:hover .blog-thumb { transform:scale(1.04); }

/* Portfolio card gradient placeholders — richer background pattern */
.pf-thumb {
  background:
    linear-gradient(135deg, rgba(37,99,235,.8) 0%, rgba(6,182,212,.6) 100%);
  position:relative; overflow:hidden;
}
.pf-thumb::before {
  content:''; position:absolute; inset:0;
  background: repeating-linear-gradient(45deg,rgba(255,255,255,.04) 0,rgba(255,255,255,.04) 1px,transparent 1px,transparent 12px);
}
.pf-thumb img { width:100%; height:100%; object-fit:cover; display:block; }

/* Pagination */
.pagination .page-link { border-radius:999px !important; border:1.5px solid var(--c-border); color:var(--c-navy); font-weight:600; min-width:36px; text-align:center; padding:.4rem .75rem; }
.pagination .page-item.active .page-link { background:var(--gradient-brand); border-color:transparent; color:#fff; }

/* About page team card */
.team-card { position:relative; overflow:hidden; }
.team-card .team-avatar { width:72px; height:72px; border-radius:50%; background:var(--gradient-brand); display:flex; align-items:center; justify-content:center; font-size:1.6rem; color:#fff; font-weight:800; font-family:var(--font-display); margin:0 auto 1rem; }

/* Service page image placeholders */
.service-visual { background:var(--gradient-brand); border-radius:var(--radius-lg); aspect-ratio:4/3; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.service-visual::before { content:''; position:absolute; inset:0; background:repeating-linear-gradient(45deg,rgba(255,255,255,.04) 0,rgba(255,255,255,.04) 1px,transparent 1px,transparent 14px); }
.service-visual i { font-size:5rem; color:rgba(255,255,255,.3); position:relative; }

/* Homepage hero browser mock — richer visual */
.mock-img-row { display:flex; gap:.5rem; margin-bottom:.7rem; }
.mock-img-block { flex:1; aspect-ratio:16/9; border-radius:6px; background:var(--gradient-brand); opacity:.2; }

/* Testimonial star fill */
.stars { font-size:1rem; color:#FBBF24; letter-spacing:.1rem; }

/* Placeholder image utility — use when no real photo exists */
.img-placeholder { background:var(--gradient-brand); display:flex; align-items:center; justify-content:center; overflow:hidden; position:relative; }
.img-placeholder::after { content:'[ Photo ]'; position:absolute; font-size:.75rem; font-weight:700; color:rgba(255,255,255,.5); letter-spacing:.06em; text-transform:uppercase; }

/* About page stats bar */
.about-stat-row { display:flex; gap:2.5rem; flex-wrap:wrap; }
.about-stat .num { font-family:var(--font-display); font-weight:800; font-size:2.2rem; background:var(--gradient-brand); -webkit-background-clip:text; background-clip:text; color:transparent; }
