/* Homepage-only styles (scoped) */

/* Header styling when on homepage */
header.home-header {
  background: linear-gradient(90deg, #0ea5e9 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 6px 24px rgba(12, 15, 30, 0.08);
}

/* Make nav links and small text readable on the colored header */
header.home-header a,
header.home-header button,
header.home-header span,
header.home-header .font-medium,
header.home-header .text-sm {
  color: #fff !important;
}

/* Services toggle and inline buttons: ensure contrast and visible borders */
header.home-header #servicesToggle {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

header.home-header #servicesDropdown {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)) !important;
  color: #fff !important;
  transition: opacity .18s ease, transform .18s ease;
  opacity: 1;
}

/* caret rotation when open */
header.home-header #servicesCaret.rotate-180,
header.home-header #servicesCaret.rotate-180 {
  transform: rotate(180deg);
}

/* dropdown hidden state transition helpers */
.home-header #servicesDropdown.hidden {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.home-header #servicesDropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dropdown item hover */
header.home-header #servicesDropdown a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
}

/* Slightly increase dropdown width on larger screens */
@media (min-width: 1024px) {
  header.home-header #servicesDropdown {
    width: 20rem;
  }
}

/* Theme toggle button */
header.home-header #themeToggleBtn {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Guest CTA buttons (Login/Register/Join) get a stronger shadow and slightly larger padding */
header.home-header a[href*="login"],
header.home-header a[href*="register"],
header.home-header a[target] {
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.18) !important;
  transform: translateZ(0);
}

/* Logged-in Account button styling override: make it a colored gradient instead of white */
header.home-header .account-btn {
  background: linear-gradient(90deg, #06b6d4 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 8px 26px rgba(99, 102, 241, 0.12) !important;
  transition: transform .15s ease, box-shadow .15s ease;
}

header.home-header .account-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(99, 102, 241, 0.14) !important;
}

/* Banner tweaks */
.hp-banner img,
.hp-hero img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  display: block;
}

/* Product cards specific to homepage: enhanced shaded look */
.home-products .product-card {
  border-radius: 16px;
}

.home-products .product-card a {
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Product Card Actions Styling */
.pc-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  padding: 0.5rem;
}

.pc-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), box-shadow 180ms ease, opacity 160ms ease;
  text-decoration: none;
  gap: 0.5rem;
  color: white !important;
  font-weight: 700;
  font-size: 1rem;
}

/* Price Button Styling */
.pc-action.pc-price {
  background: linear-gradient(90deg, #06b6d4, #0ea5e9) !important;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08), inset 0 -2px 6px rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* View button styling moved to view-button.css */

/* Hide time/delivery button */
.pc-action.pc-time {
  display: none !important;
}

/* Hover Effects */
.pc-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.home-products .product-card .price-display {
  background: linear-gradient(90deg, #06b6d4, #06b6d4) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.08);
}

.home-products .product-card .btn-primary {
  background: linear-gradient(90deg, #7c3aed, #06b6d4) !important;
  color: #fff !important;
  border-radius: 999px !important;
}

/* Scope homepage layout container */
.home-products {
  background: transparent;
  padding: 0;
}

/* Service name badge (small pill) */
.service-badge {
  display: inline-block;
  color: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
}

/* Common color variants for likely group slugs */
.svc-imeiservices {
  background: linear-gradient(90deg, #0ea5e9, #06b6d4) !important;
}

.svc-fileservices {
  background: linear-gradient(90deg, #06b6d4, #7c3aed) !important;
}

.svc-serverservices {
  background: linear-gradient(90deg, #f97316, #fb923c) !important;
}

.svc-remoteservices {
  background: linear-gradient(90deg, #10b981, #06b6d4) !important;
}

.svc-service {
  background: linear-gradient(90deg, #7c3aed, #06b6d4) !important;
}

/* Improve price pill contrast and sizing */
.home-products .product-card .price-display {
  background: linear-gradient(90deg, #06b6d4, #0ea5e9) !important;
  color: #fff !important;
  padding: 0.5rem 0.75rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
}

/* Enhanced 3D hover effect */
.home-products .product-card a:hover {
  transform: translateY(-12px) rotateX(2deg) rotateY(-1deg) scale(1.03);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.18),
    0 12px 32px rgba(0, 0, 0, 0.12),
    0 6px 16px rgba(0, 0, 0, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(102, 126, 234, 0.2);
}

/* Make the View button slightly larger on desktop */
@media (min-width: 768px) {
  .home-products .product-card .btn-primary {
    padding: 0.6rem 1rem !important;
    font-weight: 600 !important;
  }
}

/* Card media area (image) - Enhanced 3D */
.home-products .product-card .card-media {
  position: relative;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.home-products .product-card .card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(1) translateZ(0);
}

.home-products .product-card a:hover .card-media img {
  transform: scale(1.15) translateZ(20px);
}

.home-products .product-card .card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.00) 0%, rgba(2, 6, 23, 0.20) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.home-products .product-card a:hover .card-media-overlay {
  opacity: 1;
}

/* Delivery badge in media */
.home-products .product-card .delivery-badge {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  backdrop-filter: blur(6px);
}

/* Title and description tweaks */
.home-products .product-card .card-title {
  color: #0f172a;
}

.home-products .product-card .card-desc {
  color: #475569;
}

/* View button: add icon spacing and subtle inner shadow */
.home-products .product-card .view-btn i {
  width: 18px;
  text-align: center;
}

.home-products .product-card .view-btn {
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.12);
}

/* Accent border for cards */
.home-products .product-card a {
  border: 1px solid rgba(226, 232, 240, 0.6) !important;
}

.home-products .product-card a:hover {
  border-color: rgba(59, 130, 246, 0.25) !important;
}

/* Product card styles moved to product-buttons.css */
.pc-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  gap: 0.5rem;
  color: white !important;
}

.pc-action.pc-price {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%) !important;
}

.pc-action.pc-view {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%) !important;
}

.pc-action.pc-time {
  display: none !important;
}

.pc-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
}

.pc-action .pc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.pc-action .pc-icon i {
  font-size: 16px;
}

@media (max-width: 640px) {
  .pc-action {
    padding: 0.5rem 0.75rem;
  }

  .pc-action .pc-icon {
    width: 18px;
    height: 18px;
  }

  .pc-action .pc-icon i {
    font-size: 14px;
  }
}

/* subtle inner shading for product cards to improve contrast with white buttons */
.home-products .product-card a::before {
  content: none;
}

.home-products .product-card a .p-4 {
  background: transparent;
  padding-bottom: 0.5rem;
}


/* Increase contrast for service-badge text on small screens */
@media (max-width: 640px) {
  .home-products .product-card .service-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
  }
}

/* Improve legibility of dropdown items */
header.home-header #servicesDropdown a {
  color: #fff !important;
  opacity: 0.95;
}

/* Small responsive tweak */
@media (max-width: 768px) {
  header.home-header .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* 3D topbar / floating look */
header.home-header {
  position: sticky;
  top: 0;
  margin: 0;
  border-radius: 0;
  padding: 0;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.98) 0%, rgba(124, 58, 237, 0.98) 100%) !important;
  box-shadow: 0 4px 20px rgba(2, 6, 23, 0.15);
  transform: translateZ(0);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Slight inner highlight */
header.home-header::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Services button 3D style */
.services-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.12);
  backdrop-filter: blur(6px);
}

.services-btn i {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
  border-radius: 8px;
  color: #fff;
}

.services-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.16);
}

/* CTA buttons (login/register/join) look like 3D pills */
.cta-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.14);
  transform-style: preserve-3d;
}

.cta-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(124, 58, 237, 0.18);
}

/* Dropdown blend with 3D bar */
header.home-header #servicesDropdown {
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)) !important;
}

/* Emphasize dropdown items */
header.home-header #servicesDropdown a {
  color: #fff !important;
}

header.home-header #servicesDropdown a .w-3 {
  opacity: 0.95;
}

/* Make header content align nicely inside the floating bar */
header.home-header .max-w-7xl {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

/* Homepage slim topbar */
.homepage-topbar {
  background: linear-gradient(90deg, #0b1220 0%, #0f172a 100%) !important;
  backdrop-filter: blur(4px);
  padding: 5px 0 !important;
  margin-bottom: 0 !important;
}

.homepage-topbar .topbar-link {
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  transition: all 0.2s ease;
  border-radius: 6px;
  min-height: 32px;
}

.homepage-topbar .topbar-link:hover {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.homepage-topbar .topbar-link i {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.homepage-topbar .topbar-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.homepage-topbar .lang-display {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 32px;
}

.homepage-topbar .lang-display:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.homepage-topbar .topbar-social {
  padding: 4px;
  border-radius: 50%;
  min-width: 32px;
  justify-content: center;
}

.homepage-topbar .topbar-left,
.homepage-topbar .topbar-right {
  flex-wrap: wrap;
}

/* Services dropdown tile styles */
.home-header #servicesDropdown .service-tile {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.home-header #servicesDropdown .service-tile .tile-icon {
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  color: #fff;
}

.home-header #servicesDropdown .service-tile .tile-title {
  color: #fff;
}

.home-header #servicesDropdown .service-tile .tile-sub {
  color: rgba(255, 255, 255, 0.85);
}

.home-header #servicesDropdown .dropdown-item {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #fff;
  padding: 6px 8px;
  border-radius: 8px;
}

.home-header #servicesDropdown .dropdown-item i {
  width: 18px;
  text-align: center;
}

/* make social items inline and visible on the dropdown footer */
.home-header #servicesDropdown .drp-technology {
  display: flex;
  gap: 8px;
}

/* small responsive tweaks */
@media (max-width: 768px) {
  .home-header #servicesDropdown {
    width: 100% !important;
    left: 0;
    right: 0;
  }

  .homepage-topbar {
    padding: 10px 0 !important;
  }

  .homepage-topbar .max-w-7xl {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .homepage-topbar .topbar-left,
  .homepage-topbar .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .homepage-topbar .topbar-link {
    font-size: 0.78rem;
  }
}

@media (max-width: 520px) {

  .homepage-topbar .topbar-left,
  .homepage-topbar .topbar-right {
    flex-direction: column;
    align-items: stretch;
  }

  .homepage-topbar .topbar-link {
    justify-content: center;
    width: 100%;
  }

  .homepage-topbar .lang-display {
    justify-content: center;
  }
}

/* Strong override for homepage topbar to ensure visible background and stacking */
.homepage-topbar {
  position: relative !important;
  z-index: 9999 !important;
  /* place above header */
  background: linear-gradient(90deg, #0b1220 0%, #0f172a 100%) !important;
  color: #fff !important;
  padding: 6px 0 !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}

.homepage-topbar .topbar-link,
.homepage-topbar .topbar-link a,
.homepage-topbar .lang-display {
  color: #fff !important;
}

/* Improved mobile topbar - Better layout and touch targets */
.homepage-topbar .topbar-inner {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  transition: box-shadow 0.2s ease;
}

.homepage-topbar .topbar-inner.scrolling {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.homepage-topbar .topbar-inner::-webkit-scrollbar {
  display: none;
}

/* Add subtle scroll indicator for mobile */
@media (max-width: 768px) {
  .homepage-topbar .topbar-inner::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .homepage-topbar .topbar-inner:hover::after {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .homepage-topbar {
    padding: 8px 0 !important;
    min-height: 48px;
  }

  .homepage-topbar .topbar-inner {
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    align-items: center !important;
    padding: 0 1rem !important;
  }

  .homepage-topbar .topbar-left,
  .homepage-topbar .topbar-right {
    flex-wrap: nowrap !important;
    width: auto !important;
    gap: 1rem !important;
  }

  .homepage-topbar .topbar-link {
    font-size: 0.875rem;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    min-width: 0;
    white-space: nowrap;
  }

  .homepage-topbar .topbar-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .homepage-topbar .lang-display {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8125rem;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .homepage-topbar .topbar-inner {
    gap: 0.75rem !important;
    padding: 0 0.75rem !important;
  }

  .homepage-topbar .topbar-left,
  .homepage-topbar .topbar-right {
    gap: 0.75rem !important;
  }

  .homepage-topbar .topbar-link {
    font-size: 0.8125rem;
    padding: 5px 6px;
  }

  .homepage-topbar .lang-display {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .homepage-topbar {
    padding: 6px 0 !important;
  }

  .homepage-topbar .topbar-inner {
    gap: 0.375rem !important;
    padding: 0 0.375rem !important;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .homepage-topbar .topbar-primary {
    flex-shrink: 0;
  }

  .homepage-topbar .topbar-secondary {
    margin-left: 0.5rem;
    flex-shrink: 0;
  }

  /* Optimize for very small screens - keep essential contact info readable */
  .homepage-topbar .topbar-link {
    gap: 0.25rem;
    padding: 4px 5px;
    font-size: 0.6875rem;
    min-height: 28px;
  }

  .homepage-topbar .topbar-link i {
    width: 16px;
    font-size: 0.75rem;
  }

  .homepage-topbar .topbar-text {
    font-size: 0.6875rem;
    max-width: 80px;
    /* Prevent overly long text */
  }

  .homepage-topbar .lang-display {
    padding: 4px 5px;
    font-size: 0.625rem;
    min-height: 28px;
  }

  .homepage-topbar .lang-display i {
    font-size: 0.75rem;
  }

  .homepage-topbar .topbar-social {
    padding: 3px;
    min-width: 28px;
    min-height: 28px;
  }

  .homepage-topbar .topbar-social i {
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {

  /* Extra small screens - prioritize essential elements */
  .homepage-topbar .topbar-inner {
    gap: 0.25rem !important;
    padding: 0 0.25rem !important;
  }

  .homepage-topbar .topbar-text {
    display: none;
    /* Hide text on very small screens, keep icons */
  }

  .homepage-topbar .topbar-link {
    padding: 4px;
    min-width: 32px;
    justify-content: center;
  }

  .homepage-topbar .lang-display span {
    display: none;
    /* Hide language text, keep icon */
  }

  .homepage-topbar .lang-display {
    padding: 4px;
    min-width: 28px;
    justify-content: center;
  }
}

/* Force dark dropdown background and tile styles to avoid white default */
header.home-header #servicesDropdown {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(12, 15, 30, 0.96)) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

/* Dropdown inner anchors and tiles should be readable and not inherit white backgrounds */
header.home-header #servicesDropdown .service-tile,
header.home-header #servicesDropdown a.service-tile {
  background: rgba(255, 255, 255, 0.02) !important;
  color: #fff !important;
  border-radius: 8px !important;
}

header.home-header #servicesDropdown .service-tile:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  transform: translateY(-3px);
}

header.home-header #servicesDropdown a,
header.home-header #servicesDropdown a * {
  color: #fff !important;
}

/* Remove any accidental white backgrounds from nested elements */
header.home-header #servicesDropdown [style] {
  background: transparent !important;
}

/* Mobile drawer styling - Simple and Clean */
body.mobile-nav-open {
  overflow: hidden;
}

.mobile-nav-backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
}

.mobile-nav-panel {
  background: #1f2937;
  color: #fff;
  z-index: 99999;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.mobile-nav-header {
  background: #111827;
  border-bottom: 1px solid #374151;
}

.mobile-nav-content {
  scrollbar-width: thin;
  scrollbar-color: #4b5563 transparent;
}

.mobile-nav-content::-webkit-scrollbar {
  width: 6px;
}

.mobile-nav-content::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-nav-content::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 3px;
}

.mobile-nav-content::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

.mobile-nav-link,
.mobile-quick-link,
.mobile-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: transparent;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease;
  gap: 0.75rem;
}

.mobile-nav-link:hover,
.mobile-quick-link:hover,
.mobile-cta:hover {
  background: #374151;
}

.mobile-services-list {
  border-left: 2px solid #374151;
  margin-left: 1.25rem;
}

.mobile-service-item {
  display: block;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  background: transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mobile-service-item:hover {
  background: #374151;
}

.mobile-service-item .fa-chevron-right {
  opacity: 0;
  transform: translateX(-4px);
}

.mobile-service-item:hover .fa-chevron-right {
  opacity: 1;
  transform: translateX(0);
}

.mobile-cta {
  font-weight: 500;
}

.mobile-cta.logout-btn {
  color: #fff;
}

.mobile-cta.logout-btn:hover {
  background: #7f1d1d;
}

/* Caret rotation */
#mobileServicesToggle[aria-expanded="true"] [data-role="caret"] {
  transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .mobile-nav-panel {
    max-width: 280px;
  }
}

@media (min-width: 641px) {
  .mobile-nav-panel {
    max-width: 320px;
  }
}

/* Smooth transitions */
.mobile-nav-panel {
  transition: transform 0.3s ease-out;
}

.mobile-nav-backdrop {
  transition: opacity 0.3s ease;
}

/* Header button hover */
header.home-header #mobileNavToggle {
  transition: background-color 0.2s ease;
}

header.home-header #mobileNavToggle:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Full-width banner styles for homepage - edge to edge */
.hp-banner-container {
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.hp-banner-frame {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

.hp-banner {
  width: 100%;
  max-width: 100%;
  /* Fixed height to show full banner without cropping */
  height: 400px;
  overflow: hidden;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.hp-banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Stacked banner images for crossfade */
.hp-banner {
  position: relative;
}

.hp-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 8s cubic-bezier(.2, .8, .2, 1);
  transform: scale(1);
  will-change: opacity, transform;
  pointer-events: none;
}

.hp-banner-img.active {
  opacity: 1;
  transform: scale(1.06);
}

/* Optional slight parallax hint for active image using pseudo-element */
.hp-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.06));
  mix-blend-mode: multiply;
}

/* Smaller screens: allow natural aspect ratio */
@media (max-width: 768px) {
  .hp-banner {
    aspect-ratio: auto;
    border-radius: 0;
  }
}

/* Allow banner to display at natural height - no fixed fallbacks needed */

/* Mosaic tile assembly polish */
.hp-banner {
  position: relative;
}

.hp-banner-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 0;
}

.hp-mosaic {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hp-mosaic .tile {
  position: absolute;
  /* JS will set exact width/height and background-position; these are safe fallbacks */
  width: calc(100% / 12);
  height: calc(100% / 6);
  background-size: 1200% 600%;
  transition: transform 700ms cubic-bezier(.2, .9, .25, 1), opacity 600ms ease, box-shadow 500ms ease;
  transform-origin: center center;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
  will-change: transform, opacity;
  border-radius: 4px;
}

.hp-mosaic .tile.ghost {
  opacity: 0;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hp-mosaic .tile {
    transition: none !important;
    transform: none !important;
  }
}

/* Group buttons card below banner */
.hp-group-buttons {
  display: flex;
  justify-content: center;
  padding: 10px;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hp-group-buttons {
  /* card background */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(250, 250, 252, 0.95));
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.04);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}

.hp-group-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08), inset 0 -2px 6px rgba(255, 255, 255, 0.02);
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), box-shadow 180ms ease, opacity 160ms ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hp-group-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
}

/* Group-specific color overrides fallback to svc-* classes already defined */
.hp-group-btn.svc-imeiservices {
  background: linear-gradient(90deg, #06b6d4, #0ea5e9);
}

.hp-group-btn.svc-fileservices {
  background: linear-gradient(90deg, #06b6d4, #7c3aed);
}

.hp-group-btn.svc-remoteservices {
  background: linear-gradient(90deg, #10b981, #06b6d4);
}

/* Make buttons wrap on small screens and center nicely */
@media (max-width: 640px) {
  .hp-group-buttons {
    gap: 0.5rem;
    padding: 8px;
  }

  .hp-group-btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.9rem;
  }
}

/* Icon inside the pill */
.hp-group-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  font-size: 16px;
}

.hp-group-label {
  display: inline-block;
  line-height: 1;
  padding-left: 2px;
}

/* Focus and accessibility */
.hp-group-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), 0 22px 48px rgba(2, 6, 23, 0.14);
}

/* Larger on desktop */
@media (min-width: 768px) {
  .hp-group-btn {
    padding: 0.75rem 1.25rem;
    font-size: 1.02rem;
  }

  .hp-group-btn i {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}

/* Modern Group Button Styles */
.hp-group-buttons {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 100% !important;
}

.hp-group-btn-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  min-width: 200px;
  max-width: 280px;
}

.hp-group-btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.hp-group-btn-modern:hover::before {
  left: 100%;
}

.hp-group-btn-modern:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.hp-group-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.hp-group-btn-modern:hover .hp-group-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
}

.hp-group-icon-wrapper i {
  font-size: 1.5rem;
  color: #6366f1;
  transition: all 0.3s ease;
}

.hp-group-btn-modern:hover .hp-group-icon-wrapper i {
  color: #4f46e5;
  transform: scale(1.1);
}

.hp-group-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.hp-group-label {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.hp-group-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.2;
}

.hp-group-arrow {
  font-size: 1rem;
  color: #94a3b8;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.hp-group-btn-modern:hover .hp-group-arrow {
  color: #6366f1;
  transform: translateX(4px);
}

/* Color variants for different service types */
.hp-group-btn-modern.svc-fileservices .hp-group-icon-wrapper {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(124, 58, 237, 0.1));
}

.hp-group-btn-modern.svc-fileservices .hp-group-icon-wrapper i {
  color: #06b6d4;
}

.hp-group-btn-modern.svc-fileservices:hover .hp-group-icon-wrapper {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(124, 58, 237, 0.2));
}

.hp-group-btn-modern.svc-imeiservices .hp-group-icon-wrapper {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(14, 165, 233, 0.1));
}

.hp-group-btn-modern.svc-imeiservices .hp-group-icon-wrapper i {
  color: #06b6d4;
}

.hp-group-btn-modern.svc-imeiservices:hover .hp-group-icon-wrapper {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(14, 165, 233, 0.2));
}

.hp-group-btn-modern.svc-remoteservices .hp-group-icon-wrapper {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
}

.hp-group-btn-modern.svc-remoteservices .hp-group-icon-wrapper i {
  color: #10b981;
}

.hp-group-btn-modern.svc-remoteservices:hover .hp-group-icon-wrapper {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hp-group-btn-modern {
    min-width: 100%;
    max-width: 100%;
    padding: 1rem 1.25rem;
  }

  .hp-group-icon-wrapper {
    width: 44px;
    height: 44px;
  }

  .hp-group-icon-wrapper i {
    font-size: 1.25rem;
  }

  .hp-group-label {
    font-size: 0.9375rem;
  }

  .hp-group-desc {
    font-size: 0.8125rem;
  }
}

@media (max-width: 640px) {
  .hp-group-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-group-btn-modern {
    width: 100%;
  }
}



/* Official Seller Section Enhancements */
/* Infinite Marquee Animation for Official Sellers */
.seller-marquee-container {
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.seller-scroll {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 1.5rem;
}

.seller-track {
  display: flex;
  flex-shrink: 0;
  gap: 1.5rem;
  min-width: 100%;
  animation: scroll-marquee 25s linear infinite;
}

@keyframes scroll-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

/* Pause on hover */
.seller-scroll:hover .seller-track {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .seller-track {
    animation-duration: 20s;
    gap: 1rem;
  }
}

.gradient-primary {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-card {
  background-color: #ffffff;
}

.bg-muted {
  background-color: #f1f5f9;
}

.border-border {
  border-color: #e2e8f0;
}

.text-card-foreground {
  color: #1e293b;
}

/* Text Gradient Helper */
.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}