/* ========================================
   DXCOREVN - Custom Styles
   Brand: #0D3692 (primary), #F5B400 (accent)
   ======================================== */

:root {
  --primary: #0D3692;
  --primary-dark: #071D54;
  --primary-light: #1a4db3;
  --accent: #F5B400;
  --accent-dark: #c49000;
  --secondary: #5E7FF2;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: #1E293B;
  background: #fff;
  overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ---- Selection ---- */
::selection { background: var(--accent); color: var(--primary-dark); }

/* ---- Typography ---- */
.font-display { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; }

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #ffca2c;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(245, 180, 0, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

.btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-blue:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(13,54,146,0.35);
}

/* ---- Section titles ---- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13,54,146,0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(13,54,146,0.15);
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Navbar ---- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 16px 0;
}

#navbar.scrolled {
  background: rgba(7, 29, 84, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
  padding: 4px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

/* ---- Hero ---- */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1a4db3 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-mesh::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(94,127,242,0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-mesh::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,180,0,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,180,0,0.15);
  border: 1px solid rgba(245,180,0,0.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(14px, 1.8vw, 18px);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.hero-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 50px;
}

/* ---- Device Mockup ---- */
.device-mockup {
  position: relative;
  perspective: 1200px;
}

.laptop-frame {
  background: #1a1a2e;
  border-radius: 12px 12px 0 0;
  padding: 8px 8px 0;
  box-shadow:
    0 0 0 2px #2a2a4e,
    0 40px 80px rgba(0,0,0,0.5);
  position: relative;
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
}

.laptop-screen {
  background: #0f172a;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.laptop-bottom {
  background: linear-gradient(180deg, #2a2a4e 0%, #1a1a2e 100%);
  height: 20px;
  border-radius: 0 0 4px 4px;
  margin: 0 -8px;
}

.laptop-base {
  background: linear-gradient(180deg, #1a1a2e 0%, #111124 100%);
  height: 12px;
  border-radius: 0 0 50px 50px;
  margin: 0 -20px;
}

.phone-frame {
  background: #1a1a2e;
  border-radius: 30px;
  padding: 10px 8px;
  box-shadow:
    0 0 0 2px #2a2a4e,
    0 30px 60px rgba(0,0,0,0.5);
  position: absolute;
  bottom: -20px;
  right: -40px;
  width: 120px;
}

.phone-screen {
  background: #0f172a;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 9/19;
}

/* ---- Stats ---- */
.stat-card {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}

.stat-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--gray-200);
}

.stat-card:last-child::after { display: none; }

.stat-number {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  color: var(--gray-600);
  font-weight: 500;
}

/* ---- Service Cards ---- */
.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 0.4s ease;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(13,54,146,0.15);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(13,54,146,0.1), rgba(94,127,242,0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 24px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.service-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tag {
  font-size: 12px;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 3px 10px;
  border-radius: 50px;
}

/* ---- Project Cards ---- */
.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--gray-900);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}

.project-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card__media {
  transform: scale(1.05);
}

.project-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.project-card__emoji {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,29,84,0.95) 0%, rgba(7,29,84,0.45) 45%, rgba(7,29,84,0.15) 100%);
  pointer-events: none;
  z-index: 1;
  transition: background 0.4s ease;
}

.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(7,29,84,0.98) 0%, rgba(7,29,84,0.75) 50%, rgba(7,29,84,0.4) 100%);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 22px 22px;
  z-index: 2;
  pointer-events: none;
}

.project-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
  width: calc(100% - 32px);
  pointer-events: none;
}

.project-card:hover .project-actions {
  opacity: 1;
  pointer-events: auto;
}

.project-card:hover .project-info {
  opacity: 0.15;
  transition: opacity 0.35s ease;
}

.project-action-btn {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.project-action-btn:hover {
  background: rgba(255,255,255,0.25);
}

.project-action-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}

.project-action-btn.primary:hover {
  background: #ffca2c;
}

.project-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.project-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tech {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-height: 52px;
  overflow: hidden;
}

.project-tech span {
  font-size: 11px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  padding: 3px 10px;
  border-radius: 50px;
}

/* Filter buttons */
.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---- Case Studies ---- */
.case-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.case-card:hover {
  box-shadow: 0 16px 50px rgba(13,54,146,0.12);
  transform: translateY(-4px);
}

.case-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 28px;
  color: #fff;
}

.case-body {
  padding: 28px;
}

.case-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  margin-bottom: 10px;
}

/* ---- Process Timeline ---- */
.process-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
}

.process-card {
  background: #F8FAFC;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid #E2E8F0;
  position: relative;
  height: 100%;
}

.process-card:nth-child(even) {
  background: #F0F7FF;
}

.process-card--highlight {
  background: linear-gradient(135deg, #071D54, #0D3692) !important;
  border-color: transparent;
}

.process-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.process-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0D3692, #5E7FF2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(13, 54, 146, 0.25);
}

.process-card__icon i {
  color: #fff;
  font-size: 18px;
}

.process-card--highlight .process-card__icon {
  background: rgba(245, 180, 0, 0.2);
  box-shadow: none;
}

.process-card--highlight .process-card__icon i {
  color: #F5B400;
}

.process-card__num {
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  border: 2px solid rgba(13, 54, 146, 0.15);
  color: #0D3692;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(13, 54, 146, 0.08);
}

.process-card--highlight .process-card__num {
  background: rgba(245, 180, 0, 0.15);
  border-color: rgba(245, 180, 0, 0.45);
  color: #F5B400;
  box-shadow: none;
}

.process-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

.process-card--highlight .process-card__title {
  color: #fff;
}

.process-card__desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.6;
}

.process-card--highlight .process-card__desc {
  color: rgba(255, 255, 255, 0.72);
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
}

.process-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(13,54,146,0.3);
}

.process-connector {
  position: absolute;
  left: 24px;
  top: 48px;
  bottom: -24px;
  width: 1px;
  background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
}

/* ---- Tech Stack ---- */
.tech-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  transition: all 0.3s ease;
  cursor: default;
}

.tech-logo:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(13,54,146,0.12);
  transform: translateY(-4px);
}

.tech-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.tech-logo span {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
}

/* ---- Cost Estimator (dark section) ---- */
#estimator .estimator-option {
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

#estimator .estimator-option:hover {
  border-color: rgba(245, 180, 0, 0.55);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

#estimator .estimator-option.selected {
  border-color: #F5B400;
  background: rgba(245, 180, 0, 0.14);
  box-shadow: 0 0 0 1px rgba(245, 180, 0, 0.25);
}

#estimator .estimator-option__title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
}

#estimator .estimator-option__meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 2px;
}

#estimator .estimator-option.selected .estimator-option__title {
  color: #F5B400;
}

#estimator .estimator-option--compact {
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  justify-content: center;
  text-align: center;
}

#estimator .estimator-option--compact .estimator-option__title {
  font-size: 18px;
  font-weight: 800;
}

#estimator .estimator-option--compact .estimator-option__meta {
  font-size: 11px;
}

#estimator .estimator-option .option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #071D54;
  margin-left: auto;
}

#estimator .estimator-option .option-check--square {
  border-radius: 6px;
  margin-left: 0;
}

#estimator .estimator-option.selected .option-check {
  background: #F5B400;
  border-color: #F5B400;
  color: #071D54;
}

#estimator .estimator-option:hover .option-check {
  border-color: rgba(245, 180, 0, 0.6);
}

.price-range {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 20px;
  padding: 32px;
  color: #fff;
  text-align: center;
}

.price-range .price-value {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  color: var(--accent);
  margin: 12px 0;
}

/* ---- Testimonials ---- */
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--gray-200);
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 16px 50px rgba(13,54,146,0.1);
  transform: translateY(-4px);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 80px;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

/* ---- Blog Cards ---- */
.blog-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 16px 50px rgba(13,54,146,0.1);
  transform: translateY(-4px);
}

.blog-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.blog-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  text-decoration: none;
  overflow: hidden;
}

.blog-card__media-inner {
  width: 100%;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
}

.blog-card__category {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-card__media-title {
  font-size: 15px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.4;
}

.blog-card__link,
.blog-card__read-more {
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card__link {
  color: inherit;
}

.blog-card__link:hover {
  color: var(--primary);
}

.blog-card__read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card__read-more:hover {
  color: var(--primary-dark);
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #1a4db3 100%);
  padding: 120px 0 64px;
}

.page-hero--center {
  text-align: center;
}

.page-hero--article {
  padding-bottom: 48px;
}

.page-hero__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
}

.page-hero__subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  max-width: 640px;
}

.page-hero--center .page-hero__subtitle {
  margin: 0 auto;
}

.page-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-hero__breadcrumb a:hover {
  color: var(--accent);
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.page-hero__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid transparent;
}

.page-hero__category {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.page-hero__info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.page-hero__info i {
  margin-right: 6px;
}

body.has-page-hero #navbar {
  background: rgba(7, 29, 84, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* ---- Blog Pages ---- */
.blog-page {
  padding: 64px 0 96px;
  background: #fff;
}

.blog-page__header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-empty {
  text-align: center;
  padding: 64px 24px;
  color: #64748B;
}

.blog-empty i {
  font-size: 48px;
  color: #CBD5E1;
  margin-bottom: 16px;
}

.blog-detail {
  padding: 48px 0 96px;
  background: #fff;
}

.blog-detail__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94A3B8;
  margin-bottom: 28px;
}

.blog-detail__breadcrumb a {
  color: #0D3692;
  text-decoration: none;
}

.blog-detail__breadcrumb a:hover {
  text-decoration: underline;
}

.blog-detail__header {
  margin-bottom: 36px;
}

.blog-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.blog-detail__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
}

.blog-detail__category {
  font-size: 13px;
  color: #64748B;
}

.blog-detail__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  margin-bottom: 16px;
}

.blog-detail__excerpt {
  font-size: 18px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 20px;
}

.blog-detail__info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: #94A3B8;
}

.blog-detail__info i {
  margin-right: 6px;
}

.blog-detail__content {
  font-size: 16px;
  line-height: 1.85;
  color: #334155;
  padding: 0 0 32px;
  border-bottom: 1px solid #E2E8F0;
}

.blog-detail__content p {
  margin-bottom: 1.25em;
}

.blog-detail__cta {
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(135deg, #F8FAFC, #EFF6FF);
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  text-align: center;
}

.blog-detail__cta h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

.blog-detail__cta p {
  font-size: 14px;
  color: #64748B;
  margin-bottom: 20px;
}

.blog-detail__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.blog-detail__related {
  margin-top: 56px;
}

.blog-detail__related h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 24px;
}

/* ---- Legal Pages ---- */
.legal-page {
  padding: 48px 0 96px;
  background: #fff;
}

.legal-page__content {
  font-size: 16px;
  line-height: 1.85;
  color: #334155;
}

.legal-page__content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin: 32px 0 12px;
}

.legal-page__content p {
  margin-bottom: 1.1em;
}

.legal-page__content ul,
.legal-page__content ol {
  margin: 0 0 1.25em 1.25em;
  padding: 0;
}

.legal-page__content li {
  margin-bottom: 0.5em;
}

.legal-page__content a {
  color: #0D3692;
  text-decoration: underline;
}

.legal-page__content a:hover {
  color: #071D54;
}

/* ---- Contact ---- */
.contact-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  color: var(--gray-800);
  outline: none;
}

.contact-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13,54,146,0.08);
}

.contact-input::placeholder { color: #94A3B8; }

/* ---- Footer ---- */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
}

footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

footer a:hover { color: var(--accent); }

.footer-title {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s ease;
  font-size: 15px;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}

/* ---- Floating Buttons ---- */
.floating-buttons {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  white-space: nowrap;
  overflow: hidden;
}

.float-btn .float-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  transition: transform 0.3s ease;
}

.float-btn .float-label {
  padding-right: 16px;
  font-size: 14px;
  font-weight: 600;
  max-width: 0;
  opacity: 0;
  transition: all 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
}

.float-btn:hover .float-label {
  max-width: 150px;
  opacity: 1;
}

.float-btn:hover .float-icon {
  transform: scale(1.1);
}

.float-zalo {
  background: #0068FF;
  color: #fff;
}

.float-zalo .float-icon {
  background: #0068FF;
  font-size: 20px;
}

.float-contact {
  background: var(--accent);
  color: var(--primary-dark);
}

.float-contact .float-icon {
  background: var(--accent);
}

.float-scroll-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(13,54,146,0.3);
  transition: all 0.3s ease;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

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

.float-scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ---- Section backgrounds ---- */
.bg-hero-dark { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.bg-section-alt { background: var(--gray-50); }
.bg-dark { background: var(--primary-dark); }

/* ---- Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 100ms; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 200ms; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 300ms; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 400ms; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 500ms; }

/* ---- Particles canvas ---- */
#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ---- Misc ---- */
.divider { height: 1px; background: var(--gray-200); }

.badge-accent {
  background: rgba(245,180,0,0.12);
  border: 1px solid rgba(245,180,0,0.3);
  color: #c49000;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
}

.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

/* ---- Loading indicator for counter ---- */
.counter-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

/* Mobile menu */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,29,84,0.98);
  z-index: 1001;
  padding: 80px 24px 32px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

#mobile-menu.open { display: flex; }

#mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: color 0.2s;
  flex-shrink: 0;
}

#mobile-menu a:hover { color: var(--accent); }

#mobile-menu .mobile-menu-cta {
  margin-top: 16px;
  justify-content: center;
  width: 100%;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  #hero {
    min-height: auto;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  /* Section spacing */
  #services,
  #projects,
  #case-studies,
  #process,
  #technology,
  #estimator,
  #testimonials,
  #blog,
  #contact {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  .page-hero {
    padding: 96px 0 48px;
  }

  .page-hero--article {
    padding-bottom: 36px;
  }

  .legal-page {
    padding: 32px 0 56px;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(28px, 7.5vw, 40px);
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .hero-trust__divider {
    display: none;
  }

  .hero-trust__item {
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
  }

  /* Stats */
  .stat-card::after { display: none; }

  /* Project cards — luôn hiện nút trên mobile/touch */
  .project-card {
    min-height: 240px;
  }

  .project-actions {
    opacity: 1;
    pointer-events: auto;
    top: auto;
    bottom: 92px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
  }

  .project-card:hover .project-info,
  .project-info {
    opacity: 1;
  }

  .project-action-btn {
    padding: 8px 14px;
    font-size: 12px;
    flex: 1;
    text-align: center;
    min-width: 0;
    white-space: normal;
  }

  /* Project filters — scroll ngang */
  #project-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 4px;
    padding-right: 4px;
  }

  #project-filters::-webkit-scrollbar { display: none; }

  .filter-btn {
    flex-shrink: 0;
    font-size: 13px;
    padding: 8px 16px;
  }

  /* Tech stack */
  .tech-logo {
    padding: 14px 10px;
  }

  .tech-logo img {
    width: 36px;
    height: 36px;
  }

  .tech-logo span {
    font-size: 11px;
    text-align: center;
    line-height: 1.3;
  }

  /* Estimator & contact panels */
  .estimator-panel,
  .contact-form-panel,
  .contact-info-panel {
    padding: 24px !important;
  }

  #estimator .estimator-option {
    padding: 12px 14px;
    gap: 10px;
  }

  #estimator .estimator-option--compact {
    padding: 12px 8px;
  }

  /* Case studies */
  .case-study-metrics {
    padding-left: 0 !important;
    grid-template-columns: 1fr !important;
  }

  /* Blog detail */
  .blog-detail__content {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .blog-detail__content img,
  .blog-detail__content video,
  .blog-detail__content iframe {
    max-width: 100%;
    height: auto;
  }

  .blog-detail__content pre {
    overflow-x: auto;
    font-size: 13px;
  }

  .blog-detail__cta {
    padding: 24px 20px;
  }

  .blog-detail__cta-actions {
    flex-direction: column;
  }

  .blog-detail__cta-actions .btn-primary,
  .blog-detail__cta-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

  /* Floating buttons */
  .floating-buttons {
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    right: max(16px, env(safe-area-inset-right, 16px));
  }

  .float-btn .float-label { display: none !important; }

  .float-btn .float-icon {
    width: 48px;
    height: 48px;
  }

  body {
    padding-bottom: max(72px, calc(env(safe-area-inset-bottom, 0px) + 56px));
  }

  /* Navbar logo */
  #navbar {
    padding: 12px 0;
  }

  .laptop-frame { transform: none; }
}

@media (max-width: 640px) {
  .max-w-7xl.px-6,
  .max-w-4xl.px-6,
  section .px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .section-title { font-size: clamp(22px, 6vw, 28px); }

  .section-subtitle {
    font-size: 14px;
  }

  .btn-primary,
  .btn-outline {
    padding: 12px 18px;
    font-size: 14px;
    white-space: normal;
    text-align: center;
  }

  .page-hero__title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .page-hero__subtitle {
    font-size: 14px;
  }

  .page-hero__breadcrumb {
    font-size: 12px;
  }

  .project-card {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }

  .project-info {
    padding: 16px;
  }

  .project-actions {
    bottom: 78px;
    gap: 8px;
  }

  #estimator .estimator-option__title {
    font-size: 12px;
  }

  #offer-popup > div {
    padding: 28px 20px !important;
    border-radius: 20px !important;
  }
}

/* Touch devices — hiện nút dự án không cần hover */
@media (hover: none), (pointer: coarse) {
  .project-actions {
    opacity: 1;
    pointer-events: auto;
  }

  .project-card:hover .project-info,
  .project-info {
    opacity: 1;
  }
}

/* ---- Custom scrollspy highlight ---- */
.nav-link.current::after { width: 100%; }
.nav-link.current { color: #fff; }
