/* ==============================================================================
   Active Khata - Triple Platform Hub Styles (Android, Web & Windows)
   ============================================================================== */

/* --- Hero Platform Bar & Quick Access Cards --- */
.hero-platform-hub {
  margin-top: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}

.platform-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.platform-card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(222, 226, 230, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: height 0.3s ease;
}

.platform-card.android::before {
  background: linear-gradient(90deg, #3DDC84, #10B981);
}

.platform-card.web::before {
  background: linear-gradient(90deg, #6366F1, #8B5CF6);
}

.platform-card.windows::before {
  background: linear-gradient(90deg, #0078D4, #0EA5E9);
}

.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.08);
}

.platform-card:hover::before {
  height: 6px;
}

.platform-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.platform-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.platform-card:hover .platform-icon-wrap {
  transform: scale(1.08) rotate(3deg);
}

.platform-card.android .platform-icon-wrap {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.platform-card.web .platform-icon-wrap {
  background: rgba(99, 102, 241, 0.12);
  color: #4F46E5;
}

.platform-card.windows .platform-icon-wrap {
  background: rgba(14, 165, 233, 0.12);
  color: #0284C7;
}

.platform-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
}

.platform-card.android .platform-badge {
  background: #DCFCE7;
  color: #15803D;
}

.platform-card.web .platform-badge {
  background: #EEF2FF;
  color: #4338CA;
}

.platform-card.windows .platform-badge {
  background: #E0F2FE;
  color: #0369A1;
}

.platform-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #0F172A;
}

.platform-card-body p {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.platform-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.platform-action-btn.btn-android {
  background: #10B981;
  color: #FFFFFF;
}

.platform-action-btn.btn-android:hover {
  background: #059669;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.platform-action-btn.btn-web {
  background: #6366F1;
  color: #FFFFFF;
}

.platform-action-btn.btn-web:hover {
  background: #4F46E5;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.platform-action-btn.btn-windows {
  background: #0284C7;
  color: #FFFFFF;
}

.platform-action-btn.btn-windows:hover {
  background: #0369A1;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.platform-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
}

/* --- Dedicated Platform Installation & Download Section --- */
.download-hub-section {
  padding: 5rem 0;
  background: #F8FAFC;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-head .badge-pill {
  display: inline-block;
  background: #E2E8F0;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-head p {
  font-size: 1.05rem;
  color: #64748B;
}

.platform-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.platform-detail-box {
  background: #FFFFFF;
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-detail-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.1);
}

.pdb-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pdb-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-detail-box.android .pdb-icon {
  background: #DCFCE7;
  color: #059669;
}

.platform-detail-box.web .pdb-icon {
  background: #EEF2FF;
  color: #4F46E5;
}

.platform-detail-box.windows .pdb-icon {
  background: #E0F2FE;
  color: #0284C7;
}

.pdb-title h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.pdb-title span {
  font-size: 0.85rem;
  color: #64748B;
}

.pdb-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.pdb-specs {
  background: #F8FAFC;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #F1F5F9;
}

.pdb-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  padding: 0.35rem 0;
  color: #64748B;
}

.pdb-spec-row strong {
  color: #1E293B;
}

.pdb-steps-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.pdb-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.pdb-steps li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.65rem;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.45;
}

.pdb-steps li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 1px;
  width: 1.35rem;
  height: 1.35rem;
  background: #E2E8F0;
  color: #475569;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdb-steps {
  counter-reset: step-counter;
}

/* Navbar Web badge */
.nav-link-web {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #4F46E5 !important;
  font-weight: 600;
}

.nav-link-web .dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .platform-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .platform-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

