/*
 * TomHan Digital - Custom Stylesheet
 * Premium Dark Technology Theme (SaaS Style)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-color: #060913;
  --bg-card: rgba(13, 20, 38, 0.6);
  --bg-card-hover: rgba(22, 32, 60, 0.8);
  --bg-nav: rgba(6, 9, 19, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.16);
  
  /* Brand Gradients */
  --primary-color: #3b82f6; /* Blue */
  --accent-color: #8b5cf6; /* Violet */
  --cyan-color: #06b6d4; /* Cyan */
  
  --grad-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --grad-accent: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
  --grad-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --grad-text: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  --grad-text-glow: linear-gradient(135deg, #ffffff 20%, #93c5fd 100%);
  
  /* Text colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.15);
  --shadow-glow-purple: 0 0 25px rgba(139, 92, 246, 0.15);
}

/* Base Settings */
html, body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Explicit overrides for Bootstrap text utilities to ensure high contrast in dark mode */
.text-muted {
  color: var(--text-muted) !important;
}
.text-secondary {
  color: var(--text-muted) !important;
}
.text-dark {
  color: var(--text-dark) !important;
}
.text-body {
  color: var(--text-main) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Text Gradient Utilities */
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-primary {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-cyan {
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Glowing Background Blobs */
.glow-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}
.glow-blue {
  background-color: var(--primary-color);
}
.glow-purple {
  background-color: var(--accent-color);
}
.glow-cyan {
  background-color: var(--cyan-color);
}

/* Premium Navbar Styling */
.navbar-custom {
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
  backdrop-filter: none;
  z-index: 1050;
}
.navbar-custom.scrolled {
  background-color: var(--bg-nav);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
}
.navbar-brand-custom {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-nav .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  padding: 0.5rem 1rem !important;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffffff;
}

/* Card Styling (Glassmorphism) */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* Product Cards specifics */
.product-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35em 0.8em;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-mobile {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.badge-smart {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.badge-digital {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

/* Premium Buttons */
.btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}
.btn-primary-gradient {
  background: var(--grad-primary);
  border: none;
  color: #ffffff;
}
.btn-primary-gradient:hover {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}
.btn-accent-gradient {
  background: var(--grad-accent);
  border: none;
  color: #ffffff;
}
.btn-accent-gradient:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #c084fc 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-purple);
}
.btn-outline-custom {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.btn-outline-custom:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}
.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
  padding: 8rem 0 6rem 0;
  position: relative;
  z-index: 1;
}
.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}
.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* SVG Illustrations styling */
.tech-illustration {
  width: 100%;
  max-width: 480px;
  filter: drop-shadow(0 15px 35px rgba(59, 130, 246, 0.15));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Section Header styling */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.15);
  margin-bottom: 1rem;
}
.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--text-muted);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem;
}

/* Icons box styling */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}
.glass-card:hover .icon-box {
  background: var(--primary-color);
  color: #ffffff;
  transform: scale(1.05);
}
.icon-purple {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}
.glass-card:hover .icon-purple {
  background: var(--accent-color);
}
.icon-cyan {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
}
.glass-card:hover .icon-cyan {
  background: var(--cyan-color);
}

/* Step Wizard (How it works) */
.step-item {
  position: relative;
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Accordion Dark Custom styling */
.accordion-custom .accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.accordion-custom .accordion-button {
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  border: none;
  box-shadow: none;
  padding: 1.25rem 1.5rem;
}
.accordion-custom .accordion-button:not(.collapsed) {
  color: #60a5fa;
  background: rgba(255, 255, 255, 0.02);
}
.accordion-custom .accordion-button::after {
  filter: invert(1);
}
.accordion-custom .accordion-body {
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
}

/* Footer Styling */
.footer-custom {
  background-color: #03050a;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem 0;
  position: relative;
  z-index: 2;
}
.footer-link-group h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}
.footer-links a:hover {
  color: #ffffff;
  padding-left: 3px;
}

/* Filter controls on Products Page */
.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 30px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

/* Form Styling */
.form-control-custom {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: #ffffff;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
}
.form-control-custom:focus {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  color: #ffffff;
}
.form-control-custom::placeholder {
  color: var(--text-dark);
}
.form-control-custom option {
  background-color: #0d1426 !important;
  color: #ffffff !important;
}
.form-select.form-control-custom {
  background-color: rgba(255, 255, 255, 0.03) !important;
  color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}
.form-select.form-control-custom:focus {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}
label.label-custom {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Platform Icons badge list */
.platform-icons {
  display: flex;
  gap: 8px;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 1rem;
}
.platform-icons i {
  background: rgba(255, 255, 255, 0.04);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}
.platform-icons i:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Product Detail Specifics */
.detail-price-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.pricing-options .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.pricing-options .form-check {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.25rem 1rem 2.75rem;
  margin-bottom: 0.75rem;
  transition: var(--transition-smooth);
  cursor: pointer;
}
.pricing-options .form-check:hover {
  border-color: var(--border-color-hover);
  background: rgba(255, 255, 255, 0.02);
}
.pricing-options .form-check.active {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.05);
}

/* Security and Certification layout */
.security-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
}

/* About Page timeline or stat counts */
.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

/* Support Categories */
.support-category-card {
  padding: 2rem 1.5rem;
  text-align: center;
}
.support-category-card .icon-box {
  margin: 0 auto 1.5rem auto;
}

/* Payment Badges (Stripe, Paypal etc) */
.payment-methods {
  display: flex;
  gap: 12px;
  align-items: center;
}
.payment-badge {
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
}
.payment-badge svg {
  height: 18px;
  fill: currentColor;
  opacity: 0.6;
  transition: var(--transition-smooth);
}
.payment-badge:hover svg {
  opacity: 1;
}

/* Key Activation Check Tool */
.activation-tool {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(12px);
}

/* Legal text formatting */
.legal-container {
  max-width: 800px;
  margin-top: 6rem;
  margin-bottom: 6rem;
}
.legal-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.legal-content p, .legal-content li {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}
.legal-content li {
  margin-bottom: 0.5rem;
}
