/* ==========================================================================
   Literom Tech Solutions - Custom Stylesheet (Official Flame Brand Theme)
   ========================================================================== */

/* --- Custom Variables & Theme Tokens (Flame Red & Warm Orange Palette) --- */
:root {
  --primary-rgb: 239, 68, 68;
  --primary-color: #ef4444; /* Flame Crimson Red */
  --primary-hover: #dc2626;
  --primary-light: rgba(239, 68, 68, 0.12);
  --secondary-color: #f97316; /* Warm Flame Orange */
  --secondary-hover: #ea580c;
  --accent-color: #ff9800; /* Bright Flame Gold */
  --dark-accent: #1e1b18;
  
  /* Light Theme Default */
  --bg-body: #fafafa;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --border-color: #e4e4e7;
  --border-hover: #d4d4d8;
  --text-main: #18181b;
  --text-muted: #71717a;
  --text-inverse: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(239, 68, 68, 0.15);
  --shadow-glow: 0 0 25px rgba(249, 115, 22, 0.25);
  --hero-bg-gradient: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.08) 0%, rgba(239, 68, 68, 0.05) 50%, transparent 100%);
  --card-gradient: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,250,250,0.9) 100%);
}

/* --- Dark Theme Variables (Rich Charcoal & Flame Glow) --- */
[data-bs-theme="dark"] {
  --bg-body: #0d0e12;
  --bg-surface: #13151b;
  --bg-surface-elevated: #1a1d26;
  --bg-glass: rgba(19, 21, 27, 0.88);
  --border-color: #232733;
  --border-hover: #33394a;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-inverse: #0d0e12;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(249, 115, 22, 0.3);
  --hero-bg-gradient: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.18) 0%, rgba(239, 68, 68, 0.12) 60%, transparent 100%);
  --card-gradient: linear-gradient(135deg, rgba(26, 29, 38, 0.8) 0%, rgba(19, 21, 27, 0.9) 100%);
}

/* --- Global Reset & Typography --- */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.text-muted-custom {
  color: var(--text-muted) !important;
}

/* --- Gradient Text Utility (Flame Orange to Crimson Red) --- */
.text-gradient-primary {
  background: linear-gradient(135deg, #ff9800 0%, #ef4444 60%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* --- Buttons with Flame Gradient --- */
.btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  border: none;
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

/* --- Glassmorphism Effect --- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.glass-nav {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

/* --- Header & Topbar --- */
.top-announcement-bar {
  background: linear-gradient(90deg, #ff9800 0%, #ef4444 50%, #b91c1c 100%);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.brand-logo-img {
  height: 52px;
  max-height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Logo Theme Switch Rules */
[data-bs-theme="dark"] .logo-light-mode {
  display: none !important;
}
[data-bs-theme="dark"] .logo-dark-mode {
  display: inline-block !important;
}

[data-bs-theme="light"] .logo-light-mode {
  display: inline-block !important;
}
[data-bs-theme="light"] .logo-dark-mode {
  display: none !important;
}

@media (max-width: 767.98px) {
  .brand-logo-img {
    height: 44px;
  }
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  padding: 0.35rem 0.6rem !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

/* Theme Switcher Toggle */
.theme-switch-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-switch-btn:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* --- Hero Section --- */
.hero-wrapper {
  position: relative;
  padding: 5rem 0 4rem 0;
  background: var(--hero-bg-gradient);
  overflow: hidden;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50rem;
  background: var(--primary-light);
  color: var(--primary-color);
  border: 1px solid rgba(239, 68, 68, 0.2);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 800;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* --- Dashboard Mockup Graphic --- */
.dashboard-preview-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  position: relative;
  transition: transform 0.5s ease;
}

.dashboard-preview-window:hover {
  transform: translateY(-5px) scale(1.01);
}

.window-header-bar {
  background: var(--bg-surface-elevated);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f97316; }
.dot-green { background-color: #10b981; }

.window-body {
  padding: 1.5rem;
}

/* --- Metric Counter Cards --- */
.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}

.metric-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.metric-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

/* --- Section Styling --- */
.section-padding {
  padding: 5rem 0;
}

.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.85rem;
  }
}

/* --- Product Feature Tabs --- */
.product-tabs .nav-pills {
  background: var(--bg-surface-elevated);
  padding: 0.35rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  display: inline-flex;
}

.product-tabs .nav-link {
  border-radius: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.75rem 1.5rem !important;
  transition: all 0.2s ease;
}

.product-tabs .nav-link.active {
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.feature-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.feature-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* --- Service Cards --- */
.service-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.glass-card:hover .service-icon-wrapper {
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #ffffff;
  transform: scale(1.1) rotate(-5deg);
}

/* --- Simulator Interactive Box --- */
.simulator-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  overflow: hidden;
}

.simulator-toolbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
}

.sim-btn {
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

/* --- ROI Calculator Card --- */
.calculator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-range::-webkit-slider-thumb {
  background: var(--primary-color);
}

.result-badge {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* --- Testimonials & Team Avatars --- */
.team-avatar-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.25);
  transition: all 0.3s ease;
  background: var(--bg-surface-elevated);
}

.glass-card:hover .team-avatar-wrapper {
  transform: scale(1.06) rotate(2deg);
  border-color: var(--secondary-color);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
}

.team-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.75rem;
  height: 100%;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

/* --- Custom Floating CTA --- */
.floating-contact-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #ffffff;
  border: none;
  border-radius: 50rem;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.floating-contact-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(239, 68, 68, 0.5);
  color: #ffffff;
}

/* --- Footer --- */
.footer-wrapper {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.footer-link:hover {
  color: var(--primary-color);
  transform: translateX(3px);
}

/* Animations */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 0 30px rgba(249, 115, 22, 0.5); }
  100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
}

.pulse-glow {
  animation: pulseGlow 3s infinite ease-in-out;
}

/* --- Mobile & Tablet Media Query Polish --- */
@media (max-width: 767.98px) {
  .section-padding {
    padding: 3rem 0;
  }
  .calculator-card {
    padding: 1.5rem 1.25rem;
  }
  .floating-contact-btn {
    bottom: 15px;
    right: 15px;
    padding: 0.65rem 1.15rem;
    font-size: 0.85rem;
  }
  .product-tabs .nav-pills {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
    padding: 0.3rem;
  }
  .product-tabs .nav-link {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem;
  }
}

