/* --- Services page (brand-aligned with AssistThink) --- */
.hero-section {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #081220 0%, #0F1724 60%, #162235 100%);
  margin-top: 0;
  padding-top: calc(var(--topbar-height, 34px) + 5rem);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(47, 107, 255, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.7;
  z-index: 1;
}

.hero-bg-image {
  display: none;
}

.hero-overlay {
  display: none;
}

.hero-bg-elements {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse-hero 6s infinite ease-in-out;
}

.blob-1 {
  top: -160px;
  right: -160px;
  width: 320px;
  height: 320px;
  background: rgba(47, 107, 255, 0.22);
}

.blob-2 {
  bottom: -160px;
  left: -160px;
  width: 384px;
  height: 384px;
  background: rgba(102, 199, 255, 0.08);
  animation-delay: 1s;
}

.blob-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 256px;
  height: 256px;
  background: rgba(47, 107, 255, 0.12);
  animation-delay: 0.5s;
}

.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-title-gradient {
  display: block;
  color: #66C7FF;
  background: none;
  -webkit-text-fill-color: #66C7FF;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-trust {
  padding-top: 1.5rem;
}

.hero-trust .trust-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.hero-section .tech-badge {
  background: rgba(47, 107, 255, 0.12);
  border: 1px solid rgba(47, 107, 255, 0.28);
  color: rgba(255, 255, 255, 0.72);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: none;
}

.hero-section .tech-badge:hover {
  background: rgba(47, 107, 255, 0.2);
  border-color: rgba(47, 107, 255, 0.45);
  color: #fff;
  transform: translateY(-2px);
}

@keyframes pulse-hero {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .blob, .animate-fade-up { animation: none !important; }
}

/* --- Showcase --- */
.services-showcase {
  padding: 6rem 0;
  background: #F7F9FC;
  min-height: auto;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.services-title {
  text-align: center;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  margin-bottom: 1rem;
}

.services-subtitle {
  text-align: center;
  color: var(--text-body);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.services-intro {
  text-align: center;
  color: var(--text-body);
  max-width: 680px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  font-size: 1rem;
}

.services-offer-grid {
  margin-top: 0;
}

.tabs-container {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
  overflow-x: auto;
  padding: 10px 0;
}

.tabs-wrapper {
  display: flex;
  background: #fff;
  border: 1px solid #E6EDF5;
  border-radius: 12px;
  padding: 6px;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-body);
}

.tab-button.active {
  background: linear-gradient(135deg, #2F6BFF, #4A7FFF);
  color: #fff;
  box-shadow: 0 4px 16px rgba(47, 107, 255, 0.28);
}

.tab-count {
  background: rgba(47, 107, 255, 0.1);
  color: var(--blue-accent);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.tab-button.active .tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #E6EDF5;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.35s ease;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(8, 18, 32, 0.1);
  border-color: rgba(47, 107, 255, 0.22);
}

.card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--blue-accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 10;
}

.card-image-container {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #0F1724, #162235);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.4s ease;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 18, 32, 0.75), rgba(47, 107, 255, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .card-overlay { opacity: 1; }
.service-card:hover .card-image { transform: scale(1.05); }

.play-button-circle {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon-svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.details-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2F6BFF, #4A7FFF);
  color: #fff;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.25s ease;
}

.details-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.3);
}

.button-shine { display: none; }

/* --- Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.modal-container {
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #E6EDF5;
  position: relative;
  overflow-y: auto;
}

.modal-video-section {
  position: relative;
  height: 260px;
  background: linear-gradient(135deg, #081220, #0F1724, #2F6BFF);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-play-button-large {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 20px;
  cursor: pointer;
  display: inline-flex;
}

.modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.modal-body { padding: 2rem; }

.modal-category-badge {
  background: rgba(47, 107, 255, 0.1);
  color: var(--blue-accent);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 12px;
}

.modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: none;
  -webkit-text-fill-color: var(--text-primary);
}

.modal-features-section {
  background: #F7F9FC;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid #E6EDF5;
}

.modal-features-section h3 {
  color: var(--blue-accent) !important;
  font-size: 1rem !important;
}

#modal-description {
  color: var(--text-body) !important;
  line-height: 1.75;
}

.btn-demo {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-demo:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  color: #fff;
}

@media (max-width: 800px) {
  .services-container { padding: 0 1.4rem; }
  .hero-container { padding: 0 1.4rem; }
}
